From 8fef5aee6e40c27fc95a39f153bd9586d8874732 Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Fri, 15 Mar 2024 22:32:33 +0300 Subject: [PATCH 01/40] fix(hfr): refactor --- .../mint/Statistics/Statistics.module.scss | 1 + src/containers/mint/Statistics/Statistics.tsx | 29 +++ .../mint/components/Slider/Slider.ts | 0 src/containers/mint/index.tsx | 238 ++++++------------ src/containers/mint/{types.d.ts => types.ts} | 6 + src/containers/mint/utils.ts | 87 +++++++ 6 files changed, 197 insertions(+), 164 deletions(-) create mode 100644 src/containers/mint/Statistics/Statistics.module.scss create mode 100644 src/containers/mint/Statistics/Statistics.tsx create mode 100644 src/containers/mint/components/Slider/Slider.ts rename src/containers/mint/{types.d.ts => types.ts} (66%) create mode 100644 src/containers/mint/utils.ts diff --git a/src/containers/mint/Statistics/Statistics.module.scss b/src/containers/mint/Statistics/Statistics.module.scss new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/src/containers/mint/Statistics/Statistics.module.scss @@ -0,0 +1 @@ + diff --git a/src/containers/mint/Statistics/Statistics.tsx b/src/containers/mint/Statistics/Statistics.tsx new file mode 100644 index 000000000..7be03e5ae --- /dev/null +++ b/src/containers/mint/Statistics/Statistics.tsx @@ -0,0 +1,29 @@ +import React from 'react' + +function Statistics() { + return ( +
+ } + value={formatNumber(vestedA)} + /> + } + value={formatNumber(vestedV)} + /> + +
+ ); +} + +export default Statistics; diff --git a/src/containers/mint/components/Slider/Slider.ts b/src/containers/mint/components/Slider/Slider.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/containers/mint/index.tsx b/src/containers/mint/index.tsx index 3d241e77f..2d98e235f 100644 --- a/src/containers/mint/index.tsx +++ b/src/containers/mint/index.tsx @@ -1,14 +1,19 @@ import { useEffect, useState, useMemo } from 'react'; -import { Tablist, Pane } from '@cybercongress/gravity'; +import { Pane } from '@cybercongress/gravity'; import Slider from 'rc-slider'; +import 'rc-slider/assets/index.css'; import BigNumber from 'bignumber.js'; import { useIbcDenom } from 'src/contexts/ibcDenom'; import { useQueryClient } from 'src/contexts/queryClient'; -import { Btn, ItemBalance } from './ui'; -import 'rc-slider/assets/index.css'; +import { useAdviser } from 'src/features/adviser/context'; +import Display from 'src/components/containerGradient/Display/Display'; +import { useAppSelector } from 'src/redux/hooks'; +import { selectCurrentAddress } from 'src/redux/features/pocket'; +import { QueryParamsResponse as QueryParamsResponseResources } from '@cybercongress/cyber-js/build/codec/cyber/resources/v1beta1/query'; +import { ItemBalance } from './ui'; +import ERatio from './eRatio'; import { formatNumber, getDisplayAmount } from '../../utils/utils'; import { CYBER } from '../../utils/config'; -import ERatio from './eRatio'; import { Dots, CardStatisics, @@ -19,15 +24,9 @@ import { import useGetSlots from './useGetSlots'; import { TableSlots } from '../energy/ui'; import ActionBar from './actionBar'; -import { useAdviser } from 'src/features/adviser/context'; -import Display from 'src/components/containerGradient/Display/Display'; -import ImgDenom from 'src/components/valueImg/imgDenom'; -import { useAppSelector } from 'src/redux/hooks'; -import { selectCurrentAddress } from 'src/redux/features/pocket'; import styles from './Mint.module.scss'; - -const BASE_VESTING_TIME = 86401; -const BASE_MAX_MINT_TIME = 41; +import { SLOTS_MAX, getAmountResource, getERatio, getMaxTimeMint } from './utils'; +import { SelectedState } from './types'; const grid = { display: 'grid', @@ -50,37 +49,46 @@ const returnColorDot = (marks) => { }; }; -const SLOTS_MAX = 16; - -enum SelectedState { - millivolt = 'millivolt', - milliampere = 'milliampere', -} function Mint() { const queryClient = useQueryClient(); const { traseDenom } = useIbcDenom(); const [updateAddress, setUpdateAddress] = useState(0); - // const { balance } = useGetBalance(addressActive, updateAddress); const [selected, setSelected] = useState( SelectedState.milliampere ); const [value, setValue] = useState(0); const [valueDays, setValueDays] = useState(1); - const [max, setMax] = useState(0); - const [maxMintTime, setMaxMintTime] = useState(BASE_MAX_MINT_TIME); - const [eRatio, setERatio] = useState(0); - const [resourceToken, setResourceToken] = useState(0); const [height, setHeight] = useState(0); - const [resourcesParams, setResourcesParams] = useState(null); + const [resourcesParams, setResourcesParams] = + useState(undefined); const [balanceHydrogen, SetBalanceHydrogen] = useState(0); const addressActive = useAppSelector(selectCurrentAddress); - const { slotsData, vested, loadingAuthAccounts, originalVesting } = - useGetSlots(addressActive, updateAddress); + const { slotsData, vested, loadingAuthAccounts, originalVesting, update } = + useGetSlots(addressActive); const { setAdviser } = useAdviser(); + const liquidH = + originalVesting[CYBER.DENOM_LIQUID_TOKEN] > 0 + ? new BigNumber(originalVesting[CYBER.DENOM_LIQUID_TOKEN]) + .minus(vested[CYBER.DENOM_LIQUID_TOKEN]) + .toNumber() + : 0; + + const eRatio = getERatio(liquidH, balanceHydrogen); + const max = new BigNumber(balanceHydrogen) + .minus(liquidH) + .dp(0, BigNumber.ROUND_FLOOR) + .toNumber(); + + const maxMintTime = getMaxTimeMint(resourcesParams, selected, height); + const resourceToken = getAmountResource(resourcesParams, selected, height, { + valueH: value, + valueDays, + }); + useEffect(() => { const availableSlots = SLOTS_MAX - @@ -102,161 +110,64 @@ function Mint() { }, [setAdviser, slotsData]); useEffect(() => { - const getBalanceH = async () => { - let amountHydrogen = 0; - if (queryClient && addressActive !== null) { - const responseBalance = await queryClient.getBalance( - addressActive, - CYBER.DENOM_LIQUID_TOKEN - ); - if (responseBalance.amount) { - amountHydrogen = parseFloat(responseBalance.amount); - } - } - SetBalanceHydrogen(amountHydrogen); - }; - getBalanceH(); - }, [queryClient, addressActive]); - - useEffect(() => { - const getParam = async () => { - const responseResourcesParams = await queryClient.resourcesParams(); - if ( - responseResourcesParams.params && - Object.keys(responseResourcesParams.params).length > 0 - ) { - const { params } = responseResourcesParams; - setResourcesParams((item) => ({ ...item, ...params })); - } - - const responseGetHeight = await queryClient.getHeight(); - if (responseGetHeight > 0) { - setHeight(responseGetHeight); - } - }; - getParam(); - }, [queryClient]); - - useEffect(() => { - let vestedTokens = 0; - let maxValue = 0; - if (originalVesting[CYBER.DENOM_LIQUID_TOKEN] > 0) { - vestedTokens = - parseFloat(originalVesting[CYBER.DENOM_LIQUID_TOKEN]) - - parseFloat(vested[CYBER.DENOM_LIQUID_TOKEN]); - } - if (balanceHydrogen > 0) { - maxValue = Math.floor(balanceHydrogen) - vestedTokens; - } else { - maxValue = 0; + if (!queryClient || !addressActive) { + return; } - setMax(maxValue); - }, [balanceHydrogen, vested, originalVesting]); - - useEffect(() => { - let vestedTokens = 0; - if (originalVesting[CYBER.DENOM_LIQUID_TOKEN] > 0) { - vestedTokens = - parseFloat(originalVesting[CYBER.DENOM_LIQUID_TOKEN]) - - parseFloat(vested[CYBER.DENOM_LIQUID_TOKEN]); - } - if (vestedTokens > 0 && balanceHydrogen > 0) { - const procent = (vestedTokens / balanceHydrogen) * 100; - const eRatioTemp = Math.floor(procent * 100) / 100; - setERatio(eRatioTemp); - } else { - setERatio(0); - } - }, [balanceHydrogen, vested, originalVesting]); + queryClient + .getBalance(addressActive, CYBER.DENOM_LIQUID_TOKEN) + .then((response) => { + SetBalanceHydrogen(parseFloat(response.amount)); + }); + }, [queryClient, addressActive, updateAddress]); useEffect(() => { - let maxValueTaime = BASE_MAX_MINT_TIME; - if (resourcesParams !== null) { - const { - halvingPeriodAmpereBlocks: halvingPeriodBlocksAmpere, - halvingPeriodVoltBlocks: halvingPeriodBlocksVolt, - } = resourcesParams; - let halvingPeriod = 0; - if (selected === 'millivolt') { - halvingPeriod = halvingPeriodBlocksVolt; - } else { - halvingPeriod = halvingPeriodBlocksAmpere; - } - - const halving = 2 ** Math.floor(height / halvingPeriod); - maxValueTaime = Math.floor( - (halvingPeriod * 5 * halving) / BASE_VESTING_TIME - ); + if (!queryClient) { + return; } - setMaxMintTime(maxValueTaime); - }, [resourcesParams, height, selected]); - useEffect(() => { - let token = 0; - if (resourcesParams !== null && value > 0 && valueDays > 0) { - const hydrogen = value; - const { - baseInvestmintAmountVolt, - baseInvestmintAmountAmpere, - baseInvestmintPeriodVolt, - baseInvestmintPeriodAmpere, - halvingPeriodAmpereBlocks: halvingPeriodBlocksAmpere, - halvingPeriodVoltBlocks: halvingPeriodBlocksVolt, - } = resourcesParams; - let baseLength = 0; - let baseAmount = 0; - let halvingPeriod = 0; - if (selected === 'millivolt') { - baseLength = baseInvestmintPeriodVolt; - baseAmount = parseFloat(baseInvestmintAmountVolt.amount); - halvingPeriod = halvingPeriodBlocksVolt; - } else { - baseLength = baseInvestmintPeriodAmpere; - baseAmount = parseFloat(baseInvestmintAmountAmpere.amount); - halvingPeriod = halvingPeriodBlocksAmpere; - } - const vestingTime = valueDays * BASE_VESTING_TIME; - const cycles = vestingTime / baseLength; - const base = hydrogen / baseAmount; - const halving = 0.5 ** Math.floor(height / halvingPeriod); + queryClient + .resourcesParams() + .then((response: QueryParamsResponseResources) => { + setResourcesParams(response.params); + }); - token = Math.floor(cycles * base * halving); - } - setResourceToken(token); - }, [value, valueDays, selected, resourcesParams, height]); + queryClient.getHeight().then((response) => { + setHeight(response); + }); + }, [queryClient]); const updateFunc = () => { setValue(0); setValueDays(1); - setUpdateAddress(updateAddress + 1); + setUpdateAddress((item) => item + 1); + update(); }; const vestedA = useMemo(() => { - let amountA = 0; - if (originalVesting.milliampere > 0) { - const [{ coinDecimals }] = traseDenom('milliampere'); - const vestedTokensA = new BigNumber(originalVesting.milliampere) - .minus(vested.milliampere) - .toNumber(); - amountA = getDisplayAmount(vestedTokensA, coinDecimals); + if (originalVesting.milliampere <= 0) { + return 0; } - return amountA; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [vested, originalVesting]); + + const [{ coinDecimals }] = traseDenom(SelectedState.milliampere); + const amount = new BigNumber(originalVesting.milliampere) + .minus(vested.milliampere) + .toNumber(); + + return getDisplayAmount(amount, coinDecimals); + }, [vested, originalVesting, traseDenom]); const vestedV = useMemo(() => { - let amountV = 0; - if (originalVesting.millivolt > 0) { - const [{ coinDecimals }] = traseDenom('millivolt'); - const vestedTokensA = new BigNumber(originalVesting.millivolt) - .minus(vested.millivolt) - .toNumber(); - amountV = getDisplayAmount(vestedTokensA, coinDecimals); + if (originalVesting.millivolt <= 0) { + return 0; } - return amountV; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [vested, originalVesting]); + + const [{ coinDecimals }] = traseDenom(SelectedState.millivolt); + const amount = new BigNumber(originalVesting.millivolt) + .minus(vested.millivolt) + .toNumber(); + return getDisplayAmount(amount, coinDecimals); + }, [vested, originalVesting, traseDenom]); return ( <> @@ -304,7 +215,6 @@ function Mint() { height: '100%', }} > - {/* */} { + if (liquidH <= 0 || balanceHydrogen <= 0) { + return 0; + } + + return new BigNumber(liquidH) + .dividedBy(balanceHydrogen) + .shiftedBy(2) + .dp(2, BigNumber.ROUND_FLOOR) + .toNumber(); +}; + +export const getMaxTimeMint = ( + resourcesParams: QueryParamsResponseResources['params'], + selected: SelectedState, + height: number +) => { + if (!resourcesParams || height <= 0) { + return BASE_MAX_MINT_TIME; + } + + const { halvingPeriodAmpereBlocks, halvingPeriodVoltBlocks } = + resourcesParams; + + const halvingPeriod = + selected === SelectedState.millivolt + ? halvingPeriodVoltBlocks + : halvingPeriodAmpereBlocks; + + const halving = new BigNumber(2).pow( + new BigNumber(height).dividedBy(halvingPeriod).dp(0, BigNumber.ROUND_FLOOR) + ); + + return new BigNumber( + new BigNumber(halvingPeriod).multipliedBy(5).multipliedBy(halving) + ) + .dividedBy(BASE_VESTING_TIME) + .dp(0, BigNumber.ROUND_FLOOR) + .toNumber(); +}; + +export const getAmountResource = ( + params: QueryParamsResponseResources['params'], + selected: SelectedState, + height: number, + value: { valueH: number; valueDays: number } +) => { + const { valueH, valueDays } = value; + if (!params || valueDays <= 0 || valueH <= 0) { + return 0; + } + + const baseLength = + selected === SelectedState.millivolt + ? params.baseInvestmintPeriodVolt + : params.baseInvestmintPeriodAmpere; + const baseAmount = + selected === SelectedState.millivolt + ? params.baseInvestmintAmountVolt?.amount || 0 + : params.baseInvestmintAmountAmpere?.amount || 0; + const halvingPeriod = + selected === SelectedState.millivolt + ? params.halvingPeriodVoltBlocks + : params.halvingPeriodAmpereBlocks; + + const cycles = new BigNumber( + new BigNumber(valueDays).multipliedBy(BASE_VESTING_TIME) + ).dividedBy(baseLength); + const base = new BigNumber(valueH).dividedBy(baseAmount); + const halving = new BigNumber(0.5).pow( + new BigNumber(height).dividedBy(halvingPeriod).dp(0, BigNumber.ROUND_FLOOR) + ); + + return new BigNumber(cycles) + .multipliedBy(base) + .multipliedBy(halving) + .dp(0, BigNumber.ROUND_FLOOR) + .toNumber(); +}; From 878b93485a85a6cdb18fd887769901d433335d21 Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Fri, 15 Mar 2024 23:33:25 +0300 Subject: [PATCH 02/40] fix(hfr): slider, resourceToken --- src/containers/mint/Mint.module.scss | 11 +- .../mint/Statistics/Statistics.module.scss | 8 ++ src/containers/mint/Statistics/Statistics.tsx | 21 ++-- .../mint/components/Slider/Slider.ts | 0 .../mint/components/Slider/Slider.tsx | 43 +++++++ src/containers/mint/index.tsx | 106 +++++------------- 6 files changed, 103 insertions(+), 86 deletions(-) delete mode 100644 src/containers/mint/components/Slider/Slider.ts create mode 100644 src/containers/mint/components/Slider/Slider.tsx diff --git a/src/containers/mint/Mint.module.scss b/src/containers/mint/Mint.module.scss index 8b81b0d06..4350e2d66 100644 --- a/src/containers/mint/Mint.module.scss +++ b/src/containers/mint/Mint.module.scss @@ -18,7 +18,16 @@ white-space: nowrap; } - > div { + >div { display: inline-block !important; } } + +.containerRcSlider { + display: grid; + grid-template-rows: repeat(3, 1fr); + justify-items: center; + padding: 0px 10px; + height: 100%; + width: 100%; +} \ No newline at end of file diff --git a/src/containers/mint/Statistics/Statistics.module.scss b/src/containers/mint/Statistics/Statistics.module.scss index 8b1378917..b946f24aa 100644 --- a/src/containers/mint/Statistics/Statistics.module.scss +++ b/src/containers/mint/Statistics/Statistics.module.scss @@ -1 +1,9 @@ +.container { + margin-top: 10px; + margin-bottom: 50px; + display: grid; + grid-template-columns: repeat(3, 300px); + grid-gap: 20px; + justify-content: center; +} \ No newline at end of file diff --git a/src/containers/mint/Statistics/Statistics.tsx b/src/containers/mint/Statistics/Statistics.tsx index 7be03e5ae..63e228a1e 100644 --- a/src/containers/mint/Statistics/Statistics.tsx +++ b/src/containers/mint/Statistics/Statistics.tsx @@ -1,15 +1,16 @@ -import React from 'react' +import { CardStatisics, ValueImg } from 'src/components'; +import { formatNumber } from 'src/utils/utils'; +import styles from './Statistics.module.scss'; + +function Statistics({ + amount, +}: { + amount: { vestedA: number; vestedV: number }; +}) { + const { vestedA, vestedV } = amount; -function Statistics() { return ( -
+
} value={formatNumber(vestedA)} diff --git a/src/containers/mint/components/Slider/Slider.ts b/src/containers/mint/components/Slider/Slider.ts deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/containers/mint/components/Slider/Slider.tsx b/src/containers/mint/components/Slider/Slider.tsx new file mode 100644 index 000000000..5bdf95c0a --- /dev/null +++ b/src/containers/mint/components/Slider/Slider.tsx @@ -0,0 +1,43 @@ +import Slider from 'rc-slider'; +import 'rc-slider/assets/index.css'; +import { GenericSliderProps } from 'rc-slider/lib/interface'; + +type Props = { + minMax: { + min: number; + max: number; + }; + value: { + amount: number; + onChange: (amount: number) => void; + }; + marks: GenericSliderProps['marks']; +}; + +function RcSlider({ minMax, value, marks }: Props) { + return ( + + ); +} + +export default RcSlider; diff --git a/src/containers/mint/index.tsx b/src/containers/mint/index.tsx index 2d98e235f..ba06caa19 100644 --- a/src/containers/mint/index.tsx +++ b/src/containers/mint/index.tsx @@ -16,17 +16,26 @@ import { formatNumber, getDisplayAmount } from '../../utils/utils'; import { CYBER } from '../../utils/config'; import { Dots, - CardStatisics, ValueImg, DenomArr, Tabs, + MainContainer, + FormatNumber, + FormatNumberTokens, } from '../../components'; import useGetSlots from './useGetSlots'; import { TableSlots } from '../energy/ui'; import ActionBar from './actionBar'; import styles from './Mint.module.scss'; -import { SLOTS_MAX, getAmountResource, getERatio, getMaxTimeMint } from './utils'; +import { + SLOTS_MAX, + getAmountResource, + getERatio, + getMaxTimeMint, +} from './utils'; import { SelectedState } from './types'; +import Statistics from './Statistics/Statistics'; +import RcSlider from './components/Slider/Slider'; const grid = { display: 'grid', @@ -49,7 +58,6 @@ const returnColorDot = (marks) => { }; }; - function Mint() { const queryClient = useQueryClient(); const { traseDenom } = useIbcDenom(); @@ -169,30 +177,14 @@ function Mint() { return getDisplayAmount(amount, coinDecimals); }, [vested, originalVesting, traseDenom]); + const onChangeValue = (eValue: number) => setValue(eValue); + + const onChangeValueDays = (days: number) => setValueDays(days); + return ( <> -
- - } - value={formatNumber(vestedA)} - /> - } - value={formatNumber(vestedV)} - /> - - + +
} />
-
- {resourceToken} - + + + setValue(eValue)} - trackStyle={{ backgroundColor: '#3ab793' }} - railStyle={{ backgroundColor: '#97979775' }} - dotStyle={{ - backgroundColor: '#97979775', - borderColor: '#97979775', - }} - activeDotStyle={{ - borderColor: '#3ab793', - backgroundColor: '#3ab793', - }} - handleStyle={{ - border: 'none', - backgroundColor: '#3ab793', - }} /> - setValueDays(eValue)} - trackStyle={{ backgroundColor: '#3ab793' }} - railStyle={{ backgroundColor: '#97979775' }} - dotStyle={{ - backgroundColor: '#97979775', - borderColor: '#97979775', - }} - activeDotStyle={{ - borderColor: '#3ab793', - backgroundColor: '#3ab793', - }} - handleStyle={{ - border: 'none', - backgroundColor: '#3ab793', - }} />
@@ -315,7 +271,7 @@ function Mint() { )} -
+ Date: Sat, 16 Mar 2024 00:18:20 +0300 Subject: [PATCH 03/40] refactor(hfr): folder, index --- .../mint/InfoText/InfoText.module.scss | 19 ++++ src/containers/mint/InfoText/InfoText.tsx | 31 +++++++ .../LiquidBalances/LiquidBalances.module.scss | 5 ++ .../mint/LiquidBalances/LiquidBalances.tsx | 29 ++++++ src/containers/mint/Mint.module.scss | 30 +++---- .../mint/{actionBar.jsx => actionBar.tsx} | 61 ++++--------- .../mint/components/ERatio/ERatio.module.scss | 12 +++ .../ERatio/ERatio.tsx} | 26 ++---- .../ItemBalance/ItemBalance.module.scss | 11 +++ .../components/ItemBalance/ItemBalance.tsx | 23 +++++ src/containers/mint/index.tsx | 88 +++++-------------- src/containers/mint/ui.jsx | 42 --------- 12 files changed, 189 insertions(+), 188 deletions(-) create mode 100644 src/containers/mint/InfoText/InfoText.module.scss create mode 100644 src/containers/mint/InfoText/InfoText.tsx create mode 100644 src/containers/mint/LiquidBalances/LiquidBalances.module.scss create mode 100644 src/containers/mint/LiquidBalances/LiquidBalances.tsx rename src/containers/mint/{actionBar.jsx => actionBar.tsx} (69%) create mode 100644 src/containers/mint/components/ERatio/ERatio.module.scss rename src/containers/mint/{eRatio.jsx => components/ERatio/ERatio.tsx} (67%) create mode 100644 src/containers/mint/components/ItemBalance/ItemBalance.module.scss create mode 100644 src/containers/mint/components/ItemBalance/ItemBalance.tsx delete mode 100644 src/containers/mint/ui.jsx diff --git a/src/containers/mint/InfoText/InfoText.module.scss b/src/containers/mint/InfoText/InfoText.module.scss new file mode 100644 index 000000000..1ce6139d8 --- /dev/null +++ b/src/containers/mint/InfoText/InfoText.module.scss @@ -0,0 +1,19 @@ +.text { + text-align: center; + grid-area: 2/2/2/2; + font-size: 16px; + position: absolute; + bottom: 30px; + + color: var(--grayscale-dark); + + strong { + color: white; + font-weight: 400; + white-space: nowrap; + } + + >div { + display: inline-block !important; + } +} \ No newline at end of file diff --git a/src/containers/mint/InfoText/InfoText.tsx b/src/containers/mint/InfoText/InfoText.tsx new file mode 100644 index 000000000..40d67066b --- /dev/null +++ b/src/containers/mint/InfoText/InfoText.tsx @@ -0,0 +1,31 @@ +import { formatNumber } from 'src/utils/utils'; +import { DenomArr } from 'src/components'; +import { SLOTS_MAX } from '../utils'; +import styles from './InfoText.module.scss'; +import { SelectedState } from '../types'; + +type Props = { + value: { + amount: number; + days: number; + }; + selected: SelectedState; + resourceToken: number; +}; + +function InfoText({ value: { amount, days }, selected, resourceToken }: Props) { + return ( +

+ You’re freezing {formatNumber(amount)}{' '} + for{' '} + {days} days. It will release{' '} + {resourceToken}{' '} + for you. At the end of the + period, {selected} becomes liquid automatically, but you can use it to + boost ranking during the freeze. You can have only{' '} + {SLOTS_MAX} slots for investmint at a time. +

+ ); +} + +export default InfoText; diff --git a/src/containers/mint/LiquidBalances/LiquidBalances.module.scss b/src/containers/mint/LiquidBalances/LiquidBalances.module.scss new file mode 100644 index 000000000..c3b351fcc --- /dev/null +++ b/src/containers/mint/LiquidBalances/LiquidBalances.module.scss @@ -0,0 +1,5 @@ +.wrapper { + display: grid; + align-content: space-evenly; + height: 100%; +} \ No newline at end of file diff --git a/src/containers/mint/LiquidBalances/LiquidBalances.tsx b/src/containers/mint/LiquidBalances/LiquidBalances.tsx new file mode 100644 index 000000000..560ec5efe --- /dev/null +++ b/src/containers/mint/LiquidBalances/LiquidBalances.tsx @@ -0,0 +1,29 @@ +import { CYBER } from 'src/utils/config'; +import ItemBalance from '../components/ItemBalance/ItemBalance'; +import styles from './LiquidBalances.module.scss'; + +type Props = { + amount: { + liquidH: number; + frozenH: number; + }; +}; + +function LiquidBalances({ amount: { liquidH, frozenH } }: Props) { + return ( +
+ + +
+ ); +} + +export default LiquidBalances; diff --git a/src/containers/mint/Mint.module.scss b/src/containers/mint/Mint.module.scss index 4350e2d66..73347b56c 100644 --- a/src/containers/mint/Mint.module.scss +++ b/src/containers/mint/Mint.module.scss @@ -3,26 +3,6 @@ margin: 0 auto; } -.text { - text-align: center; - grid-area: 2/2/2/2; - font-size: 16px; - position: absolute; - bottom: 30px; - - color: var(--grayscale-dark); - - strong { - color: white; - font-weight: 400; - white-space: nowrap; - } - - >div { - display: inline-block !important; - } -} - .containerRcSlider { display: grid; grid-template-rows: repeat(3, 1fr); @@ -30,4 +10,14 @@ padding: 0px 10px; height: 100%; width: 100%; +} + +.containerControl { + display: grid; + grid-template-columns: 250px 1fr 250px; + grid-template-rows: auto; + align-items: center; + margin: 64px 8px 0 8px; + grid-gap: 16px; + padding-bottom: 150px; } \ No newline at end of file diff --git a/src/containers/mint/actionBar.jsx b/src/containers/mint/actionBar.tsx similarity index 69% rename from src/containers/mint/actionBar.jsx rename to src/containers/mint/actionBar.tsx index fa5c4ec1a..7877dec38 100644 --- a/src/containers/mint/actionBar.jsx +++ b/src/containers/mint/actionBar.tsx @@ -1,19 +1,15 @@ import { useEffect, useState } from 'react'; import { coin } from '@cosmjs/launchpad'; -import { Link } from 'react-router-dom'; import { useSigningClient } from 'src/contexts/signerClient'; import { useQueryClient } from 'src/contexts/queryClient'; import { Dots, - ActionBarContentText, TransactionSubmitted, Confirmed, TransactionError, - Account, ActionBar as ActionBarContainer, - BtnGrd, } from '../../components'; -import { CYBER, LEDGER, DEFAULT_GAS_LIMITS } from '../../utils/config'; +import { CYBER, LEDGER } from '../../utils/config'; import { getTxs } from '../../utils/search/utils'; const { @@ -32,7 +28,6 @@ function ActionBar({ valueDays, resourceToken, updateFnc, - addressActive, }) { const queryClient = useQueryClient(); const { signer, signingClient } = useSigningClient(); @@ -74,46 +69,26 @@ function ActionBar({ if (signer && signingClient) { setStage(STAGE_SUBMITTED); const [{ address }] = await signer.getAccounts(); - const gas = DEFAULT_GAS_LIMITS * 2; - const fee = { - amount: [], - gas: gas.toString(), - }; - if (addressActive === address) { - try { - const response = await signingClient.investmint( - address, - coin(parseFloat(value), CYBER.DENOM_LIQUID_TOKEN), - selected, - parseFloat(BASE_VESTING_TIME * valueDays), - fee - ); - - if (response.code === 0) { - setTxHash(response.transactionHash); - } else if (response.code === 4) { - setTxHash(null); - setErrorMessage( - 'Cyberlinking and investmint is not working. Wait for updates.' - ); - setStage(STAGE_ERROR); - } else { - setTxHash(null); - setErrorMessage(response.rawLog.toString()); - setStage(STAGE_ERROR); - } - } catch (error) { + + try { + const response = await signingClient.investmint( + address, + coin(parseFloat(value), CYBER.DENOM_LIQUID_TOKEN), + selected, + parseFloat(BASE_VESTING_TIME * valueDays), + 'auto' + ); + + if (response.code === 0) { + setTxHash(response.transactionHash); + } else { setTxHash(null); - setErrorMessage(error.toString()); + setErrorMessage(response.rawLog.toString()); setStage(STAGE_ERROR); } - } else { - setErrorMessage( - - Add address to your - pocket or make active{' '} - - ); + } catch (error) { + setTxHash(null); + setErrorMessage(error.toString()); setStage(STAGE_ERROR); } } diff --git a/src/containers/mint/components/ERatio/ERatio.module.scss b/src/containers/mint/components/ERatio/ERatio.module.scss new file mode 100644 index 000000000..35b224eae --- /dev/null +++ b/src/containers/mint/components/ERatio/ERatio.module.scss @@ -0,0 +1,12 @@ +.containerText { + font-size: 20px; + margin-bottom: 20px; + display: flex; + justify-content: center; + align-items: center; + + .icon { + margin-left: 5px; + margin-top: 5px; + } +} \ No newline at end of file diff --git a/src/containers/mint/eRatio.jsx b/src/containers/mint/components/ERatio/ERatio.tsx similarity index 67% rename from src/containers/mint/eRatio.jsx rename to src/containers/mint/components/ERatio/ERatio.tsx index 390a83ad3..1184ffa8c 100644 --- a/src/containers/mint/eRatio.jsx +++ b/src/containers/mint/components/ERatio/ERatio.tsx @@ -1,25 +1,13 @@ import QuestionBtn from 'src/components/Rank/QuestionBtn/QuestionBtn'; -import { Tooltip } from '../../components'; +import { Tooltip } from 'src/components'; +import styles from './ERatio.module.scss'; -function ERatio({ eRatio }) { +function ERatio({ eRatio }: { eRatio: number }) { return ( - <> -
+
+
E-Ratio -
+
{eRatio}
- +
); } diff --git a/src/containers/mint/components/ItemBalance/ItemBalance.module.scss b/src/containers/mint/components/ItemBalance/ItemBalance.module.scss new file mode 100644 index 000000000..c45190398 --- /dev/null +++ b/src/containers/mint/components/ItemBalance/ItemBalance.module.scss @@ -0,0 +1,11 @@ +.wrapper { +display: flex; + flex-direction: column; + align-items: flex-start; + gap: 8px; + font-size: 16px; + + .text { + color: var(--grayscale-dark); + } +} \ No newline at end of file diff --git a/src/containers/mint/components/ItemBalance/ItemBalance.tsx b/src/containers/mint/components/ItemBalance/ItemBalance.tsx new file mode 100644 index 000000000..220814cd4 --- /dev/null +++ b/src/containers/mint/components/ItemBalance/ItemBalance.tsx @@ -0,0 +1,23 @@ +import { FormatNumberTokens } from 'src/components'; +import styles from './ItemBalance.module.scss'; + +type Props = { + text: string; + amount: number; + demon: string; +}; + +function ItemBalance({ text, amount, demon }: Props) { + return ( +
+ {text} + +
+ ); +} + +export default ItemBalance; diff --git a/src/containers/mint/index.tsx b/src/containers/mint/index.tsx index ba06caa19..127f3352b 100644 --- a/src/containers/mint/index.tsx +++ b/src/containers/mint/index.tsx @@ -1,7 +1,4 @@ import { useEffect, useState, useMemo } from 'react'; -import { Pane } from '@cybercongress/gravity'; -import Slider from 'rc-slider'; -import 'rc-slider/assets/index.css'; import BigNumber from 'bignumber.js'; import { useIbcDenom } from 'src/contexts/ibcDenom'; import { useQueryClient } from 'src/contexts/queryClient'; @@ -10,19 +7,16 @@ import Display from 'src/components/containerGradient/Display/Display'; import { useAppSelector } from 'src/redux/hooks'; import { selectCurrentAddress } from 'src/redux/features/pocket'; import { QueryParamsResponse as QueryParamsResponseResources } from '@cybercongress/cyber-js/build/codec/cyber/resources/v1beta1/query'; -import { ItemBalance } from './ui'; -import ERatio from './eRatio'; -import { formatNumber, getDisplayAmount } from '../../utils/utils'; -import { CYBER } from '../../utils/config'; import { Dots, ValueImg, DenomArr, Tabs, MainContainer, - FormatNumber, FormatNumberTokens, -} from '../../components'; +} from 'src/components'; +import { formatNumber, getDisplayAmount } from 'src/utils/utils'; +import { CYBER } from '../../utils/config'; import useGetSlots from './useGetSlots'; import { TableSlots } from '../energy/ui'; import ActionBar from './actionBar'; @@ -36,17 +30,9 @@ import { import { SelectedState } from './types'; import Statistics from './Statistics/Statistics'; import RcSlider from './components/Slider/Slider'; - -const grid = { - display: 'grid', - gridTemplateColumns: '250px 1fr 250px', - gridTemplateRows: 'auto', - alignItems: 'center', - margin: '64px 8px 0 8px', - gridGap: '16px 16px', - position: 'relative', - paddingBottom: '150px', -}; +import InfoText from './InfoText/InfoText'; +import LiquidBalances from './LiquidBalances/LiquidBalances'; +import ERatio from './components/ERatio/ERatio'; const returnColorDot = (marks) => { return { @@ -78,16 +64,17 @@ function Mint() { const { setAdviser } = useAdviser(); - const liquidH = + const frozenH = originalVesting[CYBER.DENOM_LIQUID_TOKEN] > 0 ? new BigNumber(originalVesting[CYBER.DENOM_LIQUID_TOKEN]) .minus(vested[CYBER.DENOM_LIQUID_TOKEN]) .toNumber() : 0; - const eRatio = getERatio(liquidH, balanceHydrogen); - const max = new BigNumber(balanceHydrogen) - .minus(liquidH) + const eRatio = getERatio(frozenH, balanceHydrogen); + + const liquidH = new BigNumber(balanceHydrogen) + .minus(frozenH) .dp(0, BigNumber.ROUND_FLOOR) .toNumber(); @@ -199,30 +186,9 @@ function Mint() { />
-
-
- } - /> - } - /> -
+
+ +
@@ -247,20 +213,15 @@ function Mint() { }} />
-
- -
+ + + {value > 0 && ( -

- You’re freezing {formatNumber(value)}{' '} - for{' '} - {valueDays} days. It will release{' '} - {resourceToken}{' '} - for you. At the end of - the period, {selected} becomes liquid automatically, but you can - use it to boost ranking during the freeze. You can have only{' '} - {SLOTS_MAX} slots for investmint at a time. -

+ )}
@@ -278,7 +239,6 @@ function Mint() { valueDays={valueDays} resourceToken={resourceToken} updateFnc={updateFunc} - addressActive={addressActive} /> ); diff --git a/src/containers/mint/ui.jsx b/src/containers/mint/ui.jsx deleted file mode 100644 index c39a749f4..000000000 --- a/src/containers/mint/ui.jsx +++ /dev/null @@ -1,42 +0,0 @@ -import { Tab, Pane } from '@cybercongress/gravity'; -import { formatNumber } from '../../utils/utils'; -import { Dots } from '../../components'; - -function Btn({ onSelect, checkedSwitch, text, disabledBtn, ...props }) { - return ( - - {text} - - ); -} - -function ItemBalance({ text, amount, currency }) { - return ( - - - {text} - - {amount === null ? ( - - ) : ( - - {formatNumber(amount)} {currency} - - )} - - ); -} - -export { Btn, ItemBalance }; From a6c8bb9e753b06f15da065ac1783a0ffce143c5d Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Sat, 16 Mar 2024 00:21:44 +0300 Subject: [PATCH 04/40] fix(hfr): position relative --- src/containers/mint/Mint.module.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/containers/mint/Mint.module.scss b/src/containers/mint/Mint.module.scss index 73347b56c..6cbf2f652 100644 --- a/src/containers/mint/Mint.module.scss +++ b/src/containers/mint/Mint.module.scss @@ -20,4 +20,5 @@ margin: 64px 8px 0 8px; grid-gap: 16px; padding-bottom: 150px; + position: relative; } \ No newline at end of file From ab35c5378ae7603302b022e6f3715c3e5534534a Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Wed, 20 Mar 2024 14:38:12 +0300 Subject: [PATCH 05/40] refactor(mint): actionBar --- src/components/ledger/stageActionBar.jsx | 10 +- src/containers/mint/actionBar.tsx | 125 ++++++++++------------- src/containers/mint/index.tsx | 8 +- src/hooks/useWaitForTransaction.ts | 2 +- src/services/neuron/neuronApi.ts | 19 ++++ 5 files changed, 82 insertions(+), 82 deletions(-) diff --git a/src/components/ledger/stageActionBar.jsx b/src/components/ledger/stageActionBar.jsx index e8e7c6730..4c17976a0 100644 --- a/src/components/ledger/stageActionBar.jsx +++ b/src/components/ledger/stageActionBar.jsx @@ -161,10 +161,12 @@ export function Confirmed({ txHash, txHeight, cosmos, onClickBtnClose }) { {trimString(txHash, 6, 6)} )}{' '} - - was included in the block
at height{' '} - {formatNumber(parseFloat(txHeight))} -
+ {txHeight && ( + + was included in the block
at height{' '} + {formatNumber(parseFloat(txHeight))} +
+ )}
)} - +
); } diff --git a/src/components/governance/governance.jsx b/src/components/governance/governance.jsx index 17e115d93..b5b4b7108 100644 --- a/src/components/governance/governance.jsx +++ b/src/components/governance/governance.jsx @@ -1,7 +1,9 @@ import { Pane, Text } from '@cybercongress/gravity'; +import { ProposalStatus } from 'cosmjs-types/cosmos/gov/v1beta1/gov'; import { formatNumber } from '../../utils/search/utils'; -import { CYBER, PROPOSAL_STATUS } from '../../utils/config'; +import { CYBER } from '../../utils/config'; import Tooltip from '../tooltip/tooltip'; +import { DENOM } from 'src/constants/config'; const submitted = require('../../image/ionicons_svg_ios-battery-full.svg'); const voting = require('../../image/ionicons_svg_ios-people.svg'); @@ -161,27 +163,27 @@ export function IconStatus({ status, size, text, ...props }) { let statusText = ''; switch (status) { - case PROPOSAL_STATUS.PROPOSAL_STATUS_DEPOSIT_PERIOD: { + case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD: { imgIcon = submitted; statusText = 'deposit period'; break; } - case PROPOSAL_STATUS.PROPOSAL_STATUS_VOTING_PERIOD: { + case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD: { imgIcon = voting; statusText = 'voting period'; break; } - case PROPOSAL_STATUS.PROPOSAL_STATUS_PASSED: { + case ProposalStatus.PROPOSAL_STATUS_PASSED: { imgIcon = passed; statusText = 'passed'; break; } - case PROPOSAL_STATUS.PROPOSAL_STATUS_REJECTED: { + case ProposalStatus.PROPOSAL_STATUS_REJECTED: { imgIcon = rejected; statusText = 'rejected'; break; } - case PROPOSAL_STATUS.PROPOSAL_STATUS_FAILED: { + case ProposalStatus.PROPOSAL_STATUS_FAILED: { imgIcon = failed; statusText = 'failed'; break; @@ -241,7 +243,7 @@ export function Deposit({ totalDeposit, minDeposit }) { className="tooltip-text-deposit" > Total Deposit {formatNumber(totalDeposit)}{' '} - {CYBER.DENOM_CYBER.toUpperCase()} + {DENOM.toUpperCase()} diff --git a/src/components/ledger/stageActionBar.jsx b/src/components/ledger/stageActionBar.jsx index 4c17976a0..2ec6ce0c8 100644 --- a/src/components/ledger/stageActionBar.jsx +++ b/src/components/ledger/stageActionBar.jsx @@ -1,4 +1,3 @@ -import { useState, useEffect, useRef } from 'react'; import LocalizedStrings from 'react-localization'; import { Link } from 'react-router-dom'; import { @@ -9,6 +8,8 @@ import { IconButton, } from '@cybercongress/gravity'; +import { BondStatus } from 'cosmjs-types/cosmos/staking/v1beta1/staking'; +import { useBackend } from 'src/contexts/backend/backend'; import { ContainetLedger } from './container'; import { Dots } from '../ui/Dots'; import Account from '../account/account'; @@ -17,17 +18,13 @@ import { formatNumber, trimString, selectNetworkImg } from '../../utils/utils'; import { i18n } from '../../i18n/en'; -import { CYBER, BOND_STATUS } from '../../utils/config'; import Button from '../btnGrd'; import { InputNumber, Input } from '../Input'; import ActionBarContainer from '../actionBar'; import ButtonIcon from '../buttons/ButtonIcon'; import { Color } from '../LinearGradientContainer/LinearGradientContainer'; import AddFileButton from '../buttons/AddFile/AddFile'; -import { useBackend } from 'src/contexts/backend/backend'; -import useDelegation from 'src/features/staking/delegation/useDelegation'; - -const { DENOM_CYBER } = CYBER; +import { CHAIN_ID, DENOM } from 'src/constants/config'; const param = { slashing: [ @@ -604,7 +601,7 @@ export function TextProposal({ /> - deposit, {CYBER.DENOM_CYBER.toUpperCase()} + deposit, {DENOM.toUpperCase()} - {DENOM_CYBER.toUpperCase()} + {DENOM.toUpperCase()} ); @@ -955,7 +952,7 @@ export function ReDelegate({ placeholder="amount" /> - {DENOM_CYBER.toUpperCase()} restake to: + {DENOM.toUpperCase()} restake to: diff --git a/src/containers/governance/components/card.jsx b/src/containers/governance/components/card.jsx index f46b8b909..27eca8725 100644 --- a/src/containers/governance/components/card.jsx +++ b/src/containers/governance/components/card.jsx @@ -5,8 +5,8 @@ import { Tooltip, ContainerGradientText, } from '../../../components'; -import { PROPOSAL_STATUS } from '../../../utils/config'; import Display from 'src/components/containerGradient/Display/Display'; +import { ProposalStatus } from 'cosmjs-types/cosmos/gov/v1beta1/gov'; const textPropsImg = require('../../../image/reader-outline.svg'); const paramChangePropsImg = require('../../../image/cog-outline.svg'); @@ -166,13 +166,13 @@ function ActiveCard({ - {state === PROPOSAL_STATUS.PROPOSAL_STATUS_DEPOSIT_PERIOD && ( + {state === ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD && ( Deposit End Time: {timeEndDeposit} )} - {state === PROPOSAL_STATUS.PROPOSAL_STATUS_VOTING_PERIOD && ( + {state === ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD && ( Voting End Time: {timeEndVoting} diff --git a/src/containers/governance/governance.tsx b/src/containers/governance/governance.tsx index 642fb818a..4ffc5988e 100644 --- a/src/containers/governance/governance.tsx +++ b/src/containers/governance/governance.tsx @@ -2,14 +2,15 @@ import { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import { Pane } from '@cybercongress/gravity'; import { useQueryClient } from 'src/contexts/queryClient'; +import { useAdviser } from 'src/features/adviser/context'; +import { ProposalStatus } from 'cosmjs-types/cosmos/gov/v1beta1/gov'; +import { DENOM, DENOM_LIQUID } from 'src/constants/config'; import ActionBar from './actionBar'; import { getProposals, getMinDeposit } from '../../utils/governance'; import Columns from './components/columns'; import { AcceptedCard, ActiveCard, RejectedCard } from './components/card'; import { CardStatisics } from '../../components'; -import { CYBER, PROPOSAL_STATUS } from '../../utils/config'; import { formatNumber, coinDecimals } from '../../utils/utils'; -import { useAdviser } from 'src/features/adviser/context'; const dateFormat = require('dateformat'); @@ -23,7 +24,7 @@ function Statistics({ communityPoolCyber, staked }) { gridGap="20px" > @@ -81,9 +82,8 @@ function Governance() { totalCyb[item.denom] = parseFloat(item.amount); }); } - if (totalCyb[CYBER.DENOM_CYBER] && totalCyb[CYBER.DENOM_LIQUID_TOKEN]) { - stakedBoot = - totalCyb[CYBER.DENOM_LIQUID_TOKEN] / totalCyb[CYBER.DENOM_CYBER]; + if (totalCyb[DENOM] && totalCyb[DENOM_LIQUID]) { + stakedBoot = totalCyb[DENOM_LIQUID] / totalCyb[DENOM]; } setStaked(stakedBoot); } @@ -99,7 +99,7 @@ function Governance() { // if (queryClient !== null) { const responseProposals = await getProposals(); // const responseProposals = await queryClient.proposals( - // PROPOSAL_STATUS.PROPOSAL_STATUS_PASSED, + // ProposalStatus.PROPOSAL_STATUS_PASSED, // '', // '' // ); @@ -122,7 +122,7 @@ function Governance() { .reverse() .filter( (item) => - PROPOSAL_STATUS[item.status] < PROPOSAL_STATUS.PROPOSAL_STATUS_PASSED + ProposalStatus[item.status] < ProposalStatus.PROPOSAL_STATUS_PASSED ) .map((item) => ( - PROPOSAL_STATUS[item.status] === PROPOSAL_STATUS.PROPOSAL_STATUS_PASSED + ProposalStatus[item.status] === ProposalStatus.PROPOSAL_STATUS_PASSED ) .map((item) => ( - PROPOSAL_STATUS[item.status] > PROPOSAL_STATUS.PROPOSAL_STATUS_PASSED + ProposalStatus[item.status] > ProposalStatus.PROPOSAL_STATUS_PASSED ) .map((item) => ( { const finalVotes = { @@ -89,8 +89,7 @@ function ProposalsDetail({ defaultAccount }) { proposalsInfo.title = title; proposalsInfo.type = responseProposalsDetail.content['@type']; proposalsInfo.description = description; - proposalsInfo.status = - PROPOSAL_STATUS[responseProposalsDetail.status]; + proposalsInfo.status = ProposalStatus[responseProposalsDetail.status]; if (plan) { proposalsInfo.plan = plan; @@ -292,7 +291,7 @@ function ProposalsDetail({ defaultAccount }) { tally={tally} /> - {proposals.status > PROPOSAL_STATUS.PROPOSAL_STATUS_DEPOSIT_PERIOD && ( + {proposals.status > ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD && ( - {formatNumber(minDeposit)} {CYBER.DENOM_CYBER.toUpperCase()}{' '} - MinDeposit + {formatNumber(minDeposit)} {DENOM.toUpperCase()} MinDeposit diff --git a/src/containers/governance/proposalsIdDetail.jsx b/src/containers/governance/proposalsIdDetail.jsx index 755b797ac..a6427a054 100644 --- a/src/containers/governance/proposalsIdDetail.jsx +++ b/src/containers/governance/proposalsIdDetail.jsx @@ -2,6 +2,7 @@ import { Pane } from '@cybercongress/gravity'; import { IconStatus, Item, ContainerGradientText } from '../../components'; import { formatNumber } from '../../utils/search/utils'; import { CYBER } from '../../utils/config'; +import { DENOM } from 'src/constants/config'; const dateFormat = require('dateformat'); @@ -48,7 +49,7 @@ function ProposalsIdDetail({ )} {proposals.voting_start_time && ( diff --git a/src/containers/home/home.jsx b/src/containers/home/home.jsx index 0a718e2e0..419c0d398 100644 --- a/src/containers/home/home.jsx +++ b/src/containers/home/home.jsx @@ -14,6 +14,7 @@ import { formatCurrency, formatNumber } from '../../utils/utils'; import useGetStatisticsCyber from '../brain/hooks/getStatisticsCyber'; import KnowledgeTab from '../brain/tabs/knowledge'; import { getNumTokens, getStateGift } from '../portal/utils'; +import { DENOM } from 'src/constants/config'; const PREFIXES = [ { @@ -212,7 +213,7 @@ function Home() {
); diff --git a/src/containers/mint/actionBar.tsx b/src/containers/mint/actionBar.tsx index 378cce687..77c61b3c5 100644 --- a/src/containers/mint/actionBar.tsx +++ b/src/containers/mint/actionBar.tsx @@ -14,6 +14,7 @@ import { } from '../../components'; import { CYBER, LEDGER } from '../../utils/config'; import { SelectedState } from './types'; +import { DENOM_LIQUID } from 'src/constants/config'; const { STAGE_INIT, @@ -57,7 +58,7 @@ function ActionBar({ await investmint( address, - coin(amountH, CYBER.DENOM_LIQUID_TOKEN), + coin(amountH, DENOM_LIQUID), resource, BASE_VESTING_TIME * valueDays, signingClient diff --git a/src/containers/mint/index.tsx b/src/containers/mint/index.tsx index d12358616..4bdcc7e95 100644 --- a/src/containers/mint/index.tsx +++ b/src/containers/mint/index.tsx @@ -33,6 +33,7 @@ import RcSlider from './components/Slider/Slider'; import InfoText from './InfoText/InfoText'; import LiquidBalances from './LiquidBalances/LiquidBalances'; import ERatio from './components/ERatio/ERatio'; +import { DENOM_LIQUID } from 'src/constants/config'; const returnColorDot = (marks) => { return { @@ -65,9 +66,9 @@ function Mint() { const { setAdviser } = useAdviser(); const frozenH = - originalVesting[CYBER.DENOM_LIQUID_TOKEN] > 0 - ? new BigNumber(originalVesting[CYBER.DENOM_LIQUID_TOKEN]) - .minus(vested[CYBER.DENOM_LIQUID_TOKEN]) + originalVesting[DENOM_LIQUID] > 0 + ? new BigNumber(originalVesting[DENOM_LIQUID]) + .minus(vested[DENOM_LIQUID]) .toNumber() : 0; @@ -110,7 +111,7 @@ function Mint() { } queryClient - .getBalance(addressActive, CYBER.DENOM_LIQUID_TOKEN) + .getBalance(addressActive, DENOM_LIQUID) .then((response) => { SetBalanceHydrogen(parseFloat(response.amount)); }); diff --git a/src/containers/mint/useGetSlots.tsx b/src/containers/mint/useGetSlots.tsx index 6d46be4c2..5aeaf59e4 100644 --- a/src/containers/mint/useGetSlots.tsx +++ b/src/containers/mint/useGetSlots.tsx @@ -5,11 +5,12 @@ import { authAccounts } from '../../utils/search/utils'; import { convertResources } from '../../utils/utils'; import { CYBER } from '../../utils/config'; import { Slot } from './types'; +import { DENOM_LIQUID } from 'src/constants/config'; const MILLISECONDS_IN_SECOND = 1000; const initStateVested = { - [CYBER.DENOM_LIQUID_TOKEN]: 0, + [DENOM_LIQUID]: 0, millivolt: 0, milliampere: 0, }; @@ -105,7 +106,7 @@ function useGetSlots(addressActive) { setVested(initStateVested); const originalVestingInitAmount = { - [CYBER.DENOM_LIQUID_TOKEN]: 0, + [DENOM_LIQUID]: 0, millivolt: 0, milliampere: 0, }; @@ -118,9 +119,9 @@ function useGetSlots(addressActive) { const { start_time: startTime } = dataAuthAccounts.result.value; const balances = getCalculationBalance(originalVestingAmount); - if (balances[CYBER.DENOM_LIQUID_TOKEN]) { - originalVestingInitAmount[CYBER.DENOM_LIQUID_TOKEN] = - balances[CYBER.DENOM_LIQUID_TOKEN]; + if (balances[DENOM_LIQUID]) { + originalVestingInitAmount[DENOM_LIQUID] = + balances[DENOM_LIQUID]; } if (balances.millivolt) { originalVestingInitAmount.millivolt = balances.millivolt; @@ -225,9 +226,9 @@ function useGetSlots(addressActive) { } }); if (obj.status !== 'Unfreezing') { - if (obj.amount[CYBER.DENOM_LIQUID_TOKEN]) { - vestedAmount[CYBER.DENOM_LIQUID_TOKEN] += - obj.amount[CYBER.DENOM_LIQUID_TOKEN]; + if (obj.amount[DENOM_LIQUID]) { + vestedAmount[DENOM_LIQUID] += + obj.amount[DENOM_LIQUID]; } if (obj.amount.milliampere) { vestedAmount.milliampere += obj.amount.milliampere; diff --git a/src/containers/nebula/index.tsx b/src/containers/nebula/index.tsx index 34f8d6d77..ff058db07 100644 --- a/src/containers/nebula/index.tsx +++ b/src/containers/nebula/index.tsx @@ -17,6 +17,7 @@ import { replaceSlash, getDisplayAmount } from '../../utils/utils'; import { ColItem, RowItem, NebulaImg } from './components'; import { CYBER } from '../../utils/config'; import { useAdviser } from 'src/features/adviser/context'; +import { DENOM_LIQUID } from 'src/constants/config'; function Title({ capData, @@ -168,7 +169,7 @@ function Nebula() { @@ -176,7 +177,7 @@ function Nebula() { diff --git a/src/containers/network/customNetwork.tsx b/src/containers/network/customNetwork.tsx index 659960c62..b57b5b4b0 100644 --- a/src/containers/network/customNetwork.tsx +++ b/src/containers/network/customNetwork.tsx @@ -27,8 +27,8 @@ function ValueItem({ text, value, onChange }) { const initValue = { CHAIN_ID: 'bostrom', - DENOM_CYBER: 'boot', - DENOM_LIQUID_TOKEN: 'hydrogen', + DENOM: 'boot', + DENOM_LIQUID: 'hydrogen', DENOM_CYBER_G: 'GBOOT', CYBER_NODE_URL_API: 'https://rpc.bostrom.cybernode.ai', CYBER_WEBSOCKET_URL: 'wss://rpc.bostrom.cybernode.ai/websocket', @@ -69,7 +69,7 @@ function CustomNetwork() { })); break; - case 'DENOM_CYBER': + case 'DENOM': setCustomConfig((item) => ({ ...item, [key]: value, @@ -116,13 +116,13 @@ function CustomNetwork() { /> onChangeValue(e, 'DENOM_CYBER')} + value={customConfig.DENOM} + onChange={(e) => onChangeValue(e, 'DENOM')} /> onChangeValue(e, 'DENOM_LIQUID_TOKEN')} + value={customConfig.DENOM_LIQUID} + onChange={(e) => onChangeValue(e, 'DENOM_LIQUID')} /> ({ ...item, [key]: value, - BECH32_PREFIX_ACC_ADDR_CYBERVALOPER: `${value}valoper`, + BECH32_PREFIX_VALOPER: `${value}valoper`, })); break; - case 'DENOM_CYBER': + case 'DENOM': setCustomConfig((item) => ({ ...item, [key]: value, - DENOM_CYBER_G: `G${value.toUpperCase()}`, + DENOM_G: `G${value.toUpperCase()}`, })); break; @@ -106,13 +106,13 @@ function DetailsNetwork() { /> onChangeValue(e, 'DENOM_CYBER')} + value={customConfig.DENOM} + onChange={(e) => onChangeValue(e, 'DENOM')} /> onChangeValue(e, 'DENOM_LIQUID_TOKEN')} + value={customConfig.DENOM_LIQUID} + onChange={(e) => onChangeValue(e, 'DENOM_LIQUID')} />
denom
-
{item.DENOM_CYBER}
+
{item.DENOM}
liquid denom
-
{item.DENOM_LIQUID_TOKEN}
+
{item.DENOM_LIQUID}
rpc
diff --git a/src/containers/portal/ActionBarAddAvatar.tsx b/src/containers/portal/ActionBarAddAvatar.tsx index 184d284d1..35b1a3785 100644 --- a/src/containers/portal/ActionBarAddAvatar.tsx +++ b/src/containers/portal/ActionBarAddAvatar.tsx @@ -4,7 +4,6 @@ import { useSigningClient } from 'src/contexts/signerClient'; import { Nullable } from 'src/types'; import { useBackend } from 'src/contexts/backend/backend'; import Soft3MessageFactory from 'src/soft.js/api/msgs'; -import { DEFAULT_GAS_LIMITS } from 'src/utils/config'; import { ActionBarSteps, ActionBarContainer } from './components'; import { Dots, BtnGrd } from '../../components'; import { CONTRACT_ADDRESS_PASSPORT } from './utils'; diff --git a/src/containers/portal/citizenship/index.tsx b/src/containers/portal/citizenship/index.tsx index ab2acf52c..27af0c133 100644 --- a/src/containers/portal/citizenship/index.tsx +++ b/src/containers/portal/citizenship/index.tsx @@ -131,7 +131,7 @@ const calculatePriceNicname = (valueNickname) => { const exponent = 8 - valueNickname.length; const base = new BigNumber(10).pow(exponent); const priceName = new BigNumber(1000000).multipliedBy(base).toNumber(); - funds = coins(priceName, CYBER.DENOM_CYBER); + funds = coins(priceName, DENOM); } return funds; @@ -330,7 +330,7 @@ function GetCitizenship({ defaultAccount }) { if (queryClient) { const getBalance = await queryClient.getBalance( bech32, - CYBER.DENOM_CYBER + DENOM ); const { amount } = getBalance; if (parseFloat(amount) === 0) { diff --git a/src/containers/portal/components/ReleaseStatus/index.tsx b/src/containers/portal/components/ReleaseStatus/index.tsx index dbcb80c3a..6be2b51ab 100644 --- a/src/containers/portal/components/ReleaseStatus/index.tsx +++ b/src/containers/portal/components/ReleaseStatus/index.tsx @@ -64,7 +64,7 @@ function RowItem({ item }: { item: Item }) {
{item.title}
- +
); @@ -81,7 +81,7 @@ function ReleaseStatus({
release status {GIFT_ICON}
- +
); diff --git a/src/containers/portal/gift/ActionBarPortalGift.tsx b/src/containers/portal/gift/ActionBarPortalGift.tsx index 4555bd811..8ef94b46b 100644 --- a/src/containers/portal/gift/ActionBarPortalGift.tsx +++ b/src/containers/portal/gift/ActionBarPortalGift.tsx @@ -4,7 +4,7 @@ /* eslint-disable jsx-a11y/control-has-associated-label */ import { useEffect, useState, useCallback, useMemo } from 'react'; import { useNavigate } from 'react-router-dom'; -import { GasPrice, coins } from '@cosmjs/launchpad'; +import { GasPrice } from '@cosmjs/launchpad'; import { toAscii, toBase64 } from '@cosmjs/encoding'; import { useSigningClient } from 'src/contexts/signerClient'; import { getKeplr } from 'src/utils/keplrUtils'; @@ -13,15 +13,16 @@ import { useDispatch, useSelector } from 'react-redux'; import { Citizenship } from 'src/types/citizenship'; import { RootState } from 'src/redux/store'; import { useBackend } from 'src/contexts/backend/backend'; -import txs from '../../../utils/txs'; +import { PATTERN_CYBER } from 'src/constants/patterns'; +import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import BigNumber from 'bignumber.js'; +import { Nullable } from 'src/types'; import { Dots, ButtonIcon, ActionBar as ActionBarSteps, BtnGrd, } from '../../../components'; -import { CYBER, DEFAULT_GAS_LIMITS } from '../../../utils/config'; -import { PATTERN_CYBER } from 'src/constants/app'; import { trimString, groupMsg } from '../../../utils/utils'; import { CONSTITUTION_HASH, @@ -42,12 +43,9 @@ import { addAddress, deleteAddress, } from '../../../features/passport/passports.redux'; -import mssgsClaim from '../utilsMsgs'; import { ClaimMsg } from './type'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; -import BigNumber from 'bignumber.js'; -import { Nullable } from 'src/types'; import { TxHash } from '../hook/usePingTxs'; +import { CHAIN_ID } from 'src/constants/config'; const gasPrice = GasPrice.fromString('0.001boot'); @@ -357,7 +355,7 @@ function ActionBarPortalGift({ msgs.push(msgObject); }); const { bech32Address, isNanoLedger } = await signer.keplr.getKey( - CYBER.CHAIN_ID + CHAIN_ID ); if (!msgs.length) { diff --git a/src/containers/sigma/components/cardUi/DetailsBalance/index.jsx b/src/containers/sigma/components/cardUi/DetailsBalance/index.jsx index f86b5f420..fe4bd040e 100644 --- a/src/containers/sigma/components/cardUi/DetailsBalance/index.jsx +++ b/src/containers/sigma/components/cardUi/DetailsBalance/index.jsx @@ -4,6 +4,7 @@ import { CYBER } from '../../../../../utils/config'; import { convertAmount } from '../../../../../utils/utils'; import RowItem from './RowItem'; import styles from './styles.module.scss'; +import { DENOM_LIQUID } from 'src/constants/config'; function DetailsBalance({ data }) { const { traseDenom } = useIbcDenom(); @@ -31,7 +32,7 @@ function DetailsBalance({ data }) { key={key} value={value} text={key} - cap={{ amount: cap, denom: CYBER.DENOM_LIQUID_TOKEN }} + cap={{ amount: cap, denom: DENOM_LIQUID }} /> ); })} diff --git a/src/containers/sigma/hooks/useBalanceToken.js b/src/containers/sigma/hooks/useBalanceToken.js index 5273967af..6059a8860 100644 --- a/src/containers/sigma/hooks/useBalanceToken.js +++ b/src/containers/sigma/hooks/useBalanceToken.js @@ -4,7 +4,7 @@ import { useQueryClient } from 'src/contexts/queryClient'; import { CYBER } from '../../../utils/config'; import useGetSlots from '../../mint/useGetSlots'; -const { DENOM_CYBER, DENOM_LIQUID_TOKEN } = CYBER; +const { DENOM, DENOM_LIQUID } = CYBER; const initValueResponseFunc = (denom = '', amount = 0) => { return { denom, amount }; @@ -19,7 +19,7 @@ const initValueTokens = (denom = '', amount = 0) => { }; const initValueToken = { - [DENOM_LIQUID_TOKEN]: { ...initValueTokens(DENOM_LIQUID_TOKEN, 0) }, + [DENOM_LIQUID]: { ...initValueTokens(DENOM_LIQUID, 0) }, milliampere: { ...initValueTokens('milliampere', 0) }, millivolt: { ...initValueTokens('millivolt', 0) }, }; @@ -76,8 +76,8 @@ function useBalanceToken(address, updateAddress) { const getBalance = async () => { setLoading(true); const initValueTokenAmount = { - [DENOM_LIQUID_TOKEN]: { - ...initValueTokens(DENOM_LIQUID_TOKEN, 0), + [DENOM_LIQUID]: { + ...initValueTokens(DENOM_LIQUID, 0), }, milliampere: { ...initValueTokens('milliampere', 0), @@ -94,7 +94,7 @@ function useBalanceToken(address, updateAddress) { if (getAllBalancesPromise.length > 0) { getAllBalancesPromise.forEach((item) => { const { amount, denom } = item; - if (denom !== DENOM_CYBER) { + if (denom !== DENOM) { const elementBalancesToken = amount; if ( diff --git a/src/containers/sigma/hooks/useGetBalanceBostrom.ts b/src/containers/sigma/hooks/useGetBalanceBostrom.ts index 0457a9c84..17a3ff77b 100644 --- a/src/containers/sigma/hooks/useGetBalanceBostrom.ts +++ b/src/containers/sigma/hooks/useGetBalanceBostrom.ts @@ -8,6 +8,7 @@ import useGetBalanceMainToken from './useGetBalanceMainToken'; import useBalanceToken from './useBalanceToken'; import { convertAmount } from '../../../utils/utils'; import { CYBER } from '../../../utils/config'; +import { DENOM_LIQUID } from 'src/constants/config'; const usePrevious = (value: any) => { const ref = useRef(); @@ -63,10 +64,10 @@ function useGetBalanceBostrom(address: Nullable) { [key]: { ...data[key], price: { - denom: CYBER.DENOM_LIQUID_TOKEN, + denom: DENOM_LIQUID, amount: price.toNumber(), }, - cap: { denom: CYBER.DENOM_LIQUID_TOKEN, amount: tempCap }, + cap: { denom: DENOM_LIQUID, amount: tempCap }, }, }; }, {}); @@ -90,7 +91,7 @@ function useGetBalanceBostrom(address: Nullable) { if (!loadingMalin && !loadingToken) { let dataResult = {}; const mainToken = { - [CYBER.DENOM_CYBER]: { ...balanceMainToken }, + [DENOM]: { ...balanceMainToken }, }; const dataResultTemp = { ...mainToken, ...balanceToken }; const tempData = getBalanceMarket(dataResultTemp); diff --git a/src/containers/sigma/hooks/utils.js b/src/containers/sigma/hooks/utils.js index 0c105fd4e..5903a1e87 100644 --- a/src/containers/sigma/hooks/utils.js +++ b/src/containers/sigma/hooks/utils.js @@ -6,10 +6,10 @@ import { getDelegatorDelegations } from 'src/utils/search/utils'; import { CYBER } from '../../../utils/config'; import { fromBech32 } from '../../../utils/utils'; -const { DENOM_CYBER } = CYBER; +const { DENOM } = CYBER; const initValue = { - denom: DENOM_CYBER, + denom: DENOM, amount: '0', }; @@ -32,7 +32,7 @@ const getDelegationsAmount = (data) => { delegationsAmount = delegationsAmount.plus(itemDelegation.balance.amount); }); } - return initValueResponseFunc(DENOM_CYBER, delegationsAmount.toString()); + return initValueResponseFunc(DENOM, delegationsAmount.toString()); }; const getUnbondingAmount = (data) => { @@ -45,7 +45,7 @@ const getUnbondingAmount = (data) => { }); }); } - return initValueResponseFunc(DENOM_CYBER, unbondingAmount.toString()); + return initValueResponseFunc(DENOM, unbondingAmount.toString()); }; const getRewardsAmount = (data) => { @@ -57,7 +57,7 @@ const getRewardsAmount = (data) => { Decimal.fromAtomics(amount, 18).floor().toString() ); } - return initValueResponseFunc(DENOM_CYBER, rewardsAmount.toString()); + return initValueResponseFunc(DENOM, rewardsAmount.toString()); }; const getCommissionAmount = (data) => { @@ -70,7 +70,7 @@ const getCommissionAmount = (data) => { Decimal.fromAtomics(amount, 18).floor().toString() ); } - return initValueResponseFunc(DENOM_CYBER, commissionAmount.toString()); + return initValueResponseFunc(DENOM, commissionAmount.toString()); }; export const useGetBalance = (client, addressBech32) => { @@ -81,7 +81,7 @@ export const useGetBalance = (client, addressBech32) => { async () => { const responsegetBalance = await client.getBalance( addressBech32, - DENOM_CYBER + DENOM ); const responsedelegatorDelegations = await getDelegatorDelegations( @@ -136,7 +136,7 @@ export const useGetBalance = (client, addressBech32) => { return { ...resultBalance, total: { - denom: DENOM_CYBER, + denom: DENOM, amount: total, }, }; diff --git a/src/containers/temple/hooks/getTotalCap.ts b/src/containers/temple/hooks/getTotalCap.ts index d290e11b0..a56357dc7 100644 --- a/src/containers/temple/hooks/getTotalCap.ts +++ b/src/containers/temple/hooks/getTotalCap.ts @@ -90,9 +90,9 @@ function useGetTotalCap() { const ibcDenomAtom = getDenomHash(path, denomInfo.coinMinimalDenom); if ( Object.prototype.hasOwnProperty.call(marketData, ibcDenomAtom) && - Object.prototype.hasOwnProperty.call(marketData, CYBER.DENOM_CYBER) + Object.prototype.hasOwnProperty.call(marketData, DENOM) ) { - const priceBoot = new BigNumber(marketData[CYBER.DENOM_CYBER]); + const priceBoot = new BigNumber(marketData[DENOM]); const priceAtom = new BigNumber(marketData[ibcDenomAtom]); const priceBootForAtom = priceAtom .dividedBy(priceBoot) diff --git a/src/containers/txs/Activites.jsx b/src/containers/txs/Activites.jsx index 2033a5120..0d5a1eea8 100644 --- a/src/containers/txs/Activites.jsx +++ b/src/containers/txs/Activites.jsx @@ -256,7 +256,7 @@ function Activites({ msg }) { /> ); }) - : `0 ${CYBER.DENOM_CYBER.toUpperCase()}` + : `0 ${DENOM.toUpperCase()}` } /> @@ -283,7 +283,7 @@ function Activites({ msg }) { @@ -514,7 +514,7 @@ function Activites({ msg }) { amount.amount )} ${amount.denom.toUpperCase()}`; }) - : `0 ${CYBER.DENOM_CYBER.toUpperCase()}` + : `0 ${DENOM.toUpperCase()}` } /> @@ -603,7 +603,7 @@ function Activites({ msg }) { amount.amount )} ${amount.denom.toUpperCase()}`; }) - : `0 ${CYBER.DENOM_CYBER.toUpperCase()}` + : `0 ${DENOM.toUpperCase()}` } /> @@ -649,7 +649,7 @@ function Activites({ msg }) { amount.amount )} ${amount.denom.toUpperCase()}`; }) - : `0 ${CYBER.DENOM_CYBER.toUpperCase()}` + : `0 ${DENOM.toUpperCase()}` } /> diff --git a/src/containers/validator/delegated.jsx b/src/containers/validator/delegated.jsx index 1dadce4a9..ecab01aa0 100644 --- a/src/containers/validator/delegated.jsx +++ b/src/containers/validator/delegated.jsx @@ -89,13 +89,13 @@ function Delegated({ data, marginBottom }) { title="Delegator Shares" value={`${formatNumber( Math.floor(delegatorShares) - )} ${CYBER.DENOM_CYBER.toUpperCase()}`} + )} ${DENOM.toUpperCase()}`} />
), diff --git a/src/containers/warp/Warp.tsx b/src/containers/warp/Warp.tsx index 31b0b3a42..5df6eb618 100644 --- a/src/containers/warp/Warp.tsx +++ b/src/containers/warp/Warp.tsx @@ -32,9 +32,10 @@ import { calculateCounterPairAmount, } from './utils'; import { useAdviser } from 'src/features/adviser/context'; +import { DENOM_LIQUID } from 'src/constants/config'; -const tokenADefaultValue = CYBER.DENOM_CYBER; -const tokenBDefaultValue = CYBER.DENOM_LIQUID_TOKEN; +const tokenADefaultValue = DENOM; +const tokenBDefaultValue = DENOM_LIQUID; function Warp() { const queryClient = useQueryClient(); diff --git a/src/containers/warp/pool/InfoPool.tsx b/src/containers/warp/pool/InfoPool.tsx index 1cef08fb6..3458d9ded 100644 --- a/src/containers/warp/pool/InfoPool.tsx +++ b/src/containers/warp/pool/InfoPool.tsx @@ -2,6 +2,7 @@ import { Coin } from '@cosmjs/launchpad'; import { ContainerGradientText, FormatNumberTokens } from 'src/components'; import { CYBER } from '../../../utils/config'; import styles from './styles.module.scss'; +import { DENOM_LIQUID } from 'src/constants/config'; type Props = { vol24: undefined | Coin; @@ -17,7 +18,7 @@ function PoolsInfo({ totalCap, myCap, useMyProcent, vol24 }: Props) {
@@ -29,7 +30,7 @@ function PoolsInfo({ totalCap, myCap, useMyProcent, vol24 }: Props) {
@@ -44,7 +45,7 @@ function PoolsInfo({ totalCap, myCap, useMyProcent, vol24 }: Props) {
Volume 24h
diff --git a/src/containers/warp/pool/TitlePoolCard.tsx b/src/containers/warp/pool/TitlePoolCard.tsx index 375e96cca..b26904536 100644 --- a/src/containers/warp/pool/TitlePoolCard.tsx +++ b/src/containers/warp/pool/TitlePoolCard.tsx @@ -2,6 +2,7 @@ import { Pool } from '@cybercongress/cyber-js/build/codec/tendermint/liquidity/v import { DenomArr, FormatNumberTokens } from 'src/components'; import { CYBER } from '../../../utils/config'; import styles from './styles.module.scss'; +import { DENOM_LIQUID } from 'src/constants/config'; type TitlePoolPool = { pool: Pool; @@ -28,7 +29,7 @@ function TitlePool({ pool, totalCap, useInactive }: TitlePoolPool) { {totalCap !== undefined && ( )} diff --git a/src/containers/warp/pool/pollItems.tsx b/src/containers/warp/pool/pollItems.tsx index 685359b48..032283db9 100644 --- a/src/containers/warp/pool/pollItems.tsx +++ b/src/containers/warp/pool/pollItems.tsx @@ -4,7 +4,7 @@ import { Link } from 'react-router-dom'; import { useIbcDenom } from 'src/contexts/ibcDenom'; import { useAppData } from 'src/contexts/appData'; import { DenomArr, FormatNumberTokens } from 'src/components'; -import { CYBER } from '../../../utils/config'; +import { DENOM_LIQUID } from 'src/constants/config'; import { replaceSlash } from '../../../utils/utils'; function PoolItemsList({ assets, token }) { @@ -75,12 +75,12 @@ function PoolItemsList({ assets, token }) { ); diff --git a/src/containers/wasm/contract/DashboardPage.jsx b/src/containers/wasm/contract/DashboardPage.jsx index 231d07d6c..8eb3d6cba 100644 --- a/src/containers/wasm/contract/DashboardPage.jsx +++ b/src/containers/wasm/contract/DashboardPage.jsx @@ -104,7 +104,7 @@ function DashboardPage() { } /> { try { const response = await client.getBalance( contractAddress, - CYBER.DENOM_CYBER + DENOM ); if (response !== null) { setBalance(response); diff --git a/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx b/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx index 8dd76ff8f..4ea273e4c 100644 --- a/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx +++ b/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx @@ -9,7 +9,7 @@ import Soft3MessageFactory from 'src/soft.js/api/msgs'; const gasPrice = GasPrice.fromString('0.001boot'); -// const coinsPlaceholder = [{ denom: CYBER.DENOM_CYBER, amount: '1' }]; +// const coinsPlaceholder = [{ denom: DENOM, amount: '1' }]; function RenderAbiExecute({ contractAddress, schema, updateFnc }) { const queryClient = useQueryClient(); diff --git a/src/features/sense/ui/ActionBar/ActionBar.tsx b/src/features/sense/ui/ActionBar/ActionBar.tsx index be8c76d5e..c885e0469 100644 --- a/src/features/sense/ui/ActionBar/ActionBar.tsx +++ b/src/features/sense/ui/ActionBar/ActionBar.tsx @@ -98,7 +98,7 @@ function ActionBarWrapper({ id, adviser }: Props) { adviser.setAdviserText('Preparing transaction...'); - const formattedAmount = [coin(amount || 1, CYBER.DENOM_CYBER)]; + const formattedAmount = [coin(amount || 1, DENOM)]; const messageCid = await addIfpsMessageOrCid(message, { ipfsApi }); diff --git a/src/hooks/getBalances.ts b/src/hooks/getBalances.ts index 8fc52626e..a02ab41e6 100644 --- a/src/hooks/getBalances.ts +++ b/src/hooks/getBalances.ts @@ -2,14 +2,14 @@ import { useEffect, useState } from 'react'; import { useQueryClient } from 'src/contexts/queryClient'; import { reduceBalances } from '../utils/utils'; import { authAccounts } from '../utils/search/utils'; -import { CYBER } from '../utils/config'; +import { DENOM_LIQUID } from 'src/constants/config'; const MILLISECONDS_IN_SECOND = 1000; const getVestingPeriodsData = (data, startTime) => { let length = parseFloat(startTime); const vestedAmount = { - [CYBER.DENOM_LIQUID_TOKEN]: 0, + [DENOM_LIQUID]: 0, millivolt: 0, milliampere: 0, }; @@ -68,7 +68,7 @@ function useGetBalances(addressActive) { const getAuth = async () => { if (addressActive) { const vested = { - [CYBER.DENOM_LIQUID_TOKEN]: 0, + [DENOM_LIQUID]: 0, millivolt: 0, milliampere: 0, }; diff --git a/src/hooks/useGetMarketData.ts b/src/hooks/useGetMarketData.ts index 4fefcfd94..ff739e2ee 100644 --- a/src/hooks/useGetMarketData.ts +++ b/src/hooks/useGetMarketData.ts @@ -6,10 +6,11 @@ import useGetTotalSupply from './useGetTotalSupply'; import usePoolListInterval from './usePoolListInterval'; import { CYBER } from '../utils/config'; import { reduceBalances, convertAmount } from '../utils/utils'; +import { DENOM_LIQUID } from 'src/constants/config'; const defaultTokenList = { - [CYBER.DENOM_CYBER]: 0, - [CYBER.DENOM_LIQUID_TOKEN]: 0, + [DENOM]: 0, + [DENOM_LIQUID]: 0, milliampere: 0, millivolt: 0, tocyb: 0, @@ -41,10 +42,10 @@ const getPoolPrice = (data, traseDenom) => { const { balances } = element; let price = 0; if ( - coinsPair[0] === CYBER.DENOM_LIQUID_TOKEN || - coinsPair[1] === CYBER.DENOM_LIQUID_TOKEN + coinsPair[0] === DENOM_LIQUID || + coinsPair[1] === DENOM_LIQUID ) { - if (coinsPair[0] === CYBER.DENOM_LIQUID_TOKEN) { + if (coinsPair[0] === DENOM_LIQUID) { price = calculatePrice(coinsPair, balances, traseDenom); } else { price = calculatePrice(coinsPair.reverse(), balances, traseDenom); @@ -137,13 +138,13 @@ function useGetMarketData() { Object.keys(poolsTotal).length > 0 ) { const marketDataObj = {}; - marketDataObj[CYBER.DENOM_LIQUID_TOKEN] = 1; + marketDataObj[DENOM_LIQUID] = 1; Object.keys(dataTotal).forEach((keyI) => { Object.keys(poolsTotal).forEach((keyJ) => { const itemJ = poolsTotal[keyJ]; const { reserveCoinDenoms } = itemJ; if ( - reserveCoinDenoms[0] === CYBER.DENOM_LIQUID_TOKEN && + reserveCoinDenoms[0] === DENOM_LIQUID && reserveCoinDenoms[1] === keyI ) { marketDataObj[keyI] = itemJ.price; diff --git a/src/hooks/useGetTotalSupply.ts b/src/hooks/useGetTotalSupply.ts index f5a906cb5..2aa1ae04e 100644 --- a/src/hooks/useGetTotalSupply.ts +++ b/src/hooks/useGetTotalSupply.ts @@ -11,14 +11,15 @@ import { ObjKeyValue } from 'src/types/data'; import { CyberClient } from '@cybercongress/cyber-js'; import { useQueryClient } from 'src/contexts/queryClient'; import { useIbcDenom } from 'src/contexts/ibcDenom'; +import { DENOM_LIQUID } from 'src/constants/config'; type OptionInterval = { refetchInterval?: number | false; }; const defaultTokenList = { - [CYBER.DENOM_CYBER]: 0, - [CYBER.DENOM_LIQUID_TOKEN]: 0, + [DENOM]: 0, + [DENOM_LIQUID]: 0, milliampere: 0, millivolt: 0, tocyb: 0, diff --git a/src/hooks/useGetWarpPools.ts b/src/hooks/useGetWarpPools.ts index 9cc9620bf..b016cb938 100644 --- a/src/hooks/useGetWarpPools.ts +++ b/src/hooks/useGetWarpPools.ts @@ -3,11 +3,11 @@ import { useQuery } from '@tanstack/react-query'; import axios from 'axios'; import BigNumber from 'bignumber.js'; import { useCallback, useEffect, useState } from 'react'; +import { DENOM_LIQUID } from 'src/constants/config'; import { useAppData } from 'src/contexts/appData'; import { useIbcDenom } from 'src/contexts/ibcDenom'; import { Nullable } from 'src/types'; import { ObjectKey } from 'src/types/data'; -import { CYBER } from 'src/utils/config'; import { getDisplayAmount } from 'src/utils/utils'; export type responseWarpDexTickersItem = { @@ -95,14 +95,14 @@ export default function useWarpDexTickers() { vol24Temp = vol24Temp.plus(vol24Item); listVol24ByPools[item.pool_id] = { - denom: CYBER.DENOM_LIQUID_TOKEN, + denom: DENOM_LIQUID, amount: vol24Item.dp(0, BigNumber.ROUND_FLOOR).toString(10), }; }); setVol24ByPool(listVol24ByPools); setVol24Total({ - denom: CYBER.DENOM_LIQUID_TOKEN, + denom: DENOM_LIQUID, amount: vol24Temp.dp(0, BigNumber.ROUND_FLOOR).toString(10), }); } diff --git a/src/hooks/useHub.ts b/src/hooks/useHub.ts index 19f8c9e7e..7539e65a2 100644 --- a/src/hooks/useHub.ts +++ b/src/hooks/useHub.ts @@ -1,20 +1,24 @@ import { CyberClient } from '@cybercongress/cyber-js'; import { useQuery } from '@tanstack/react-query'; import { useState, useEffect } from 'react'; +import { + HUB_CHANNELS, + HUB_NETWORKS, + HUB_TOKENS, +} from 'src/constants/hubContracts'; import { useQueryClient } from 'src/contexts/queryClient'; import { Option } from 'src/types'; import { Channel, Network, Token } from 'src/types/hub'; -import { CYBER, HUB_CONTRACTS } from 'src/utils/config'; -import networkList, { NetworkCons } from 'src/utils/networkListIbc'; +import { CYBER } from 'src/utils/config'; type ObjectKey = { [key: string]: T; }; const enum TypeFetcher { - NETWORKS = 'NETWORKS', - TOKENS = 'TOKENS', - CHANNELS = 'CHANNELS', + NETWORKS = HUB_NETWORKS, + TOKENS = HUB_TOKENS, + CHANNELS = HUB_CHANNELS, } const QUERY_MSG = { @@ -26,7 +30,7 @@ const fetcher = (client: Option, type: TypeFetcher) => { return undefined; } - return client.queryContractSmart(HUB_CONTRACTS[type], QUERY_MSG); + return client.queryContractSmart(type, QUERY_MSG); }; export function useNetworks() { diff --git a/src/i18n/en.js b/src/i18n/en.js index 9ab5d2c13..ad214cbc9 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -1,6 +1,6 @@ import { CYBER } from '../utils/config'; -const { DENOM_CYBER } = CYBER; +const { DENOM } = CYBER; const i18n = { en: { @@ -27,12 +27,12 @@ const i18n = { }, brain: { knowledge: 'Knowledge graph', - yourTotal: `your total ${DENOM_CYBER.toLocaleUpperCase()}`, + yourTotal: `your total ${DENOM.toLocaleUpperCase()}`, cyberlinks: 'cyberlinks', objects: 'objects', subjects: 'subjects', cybernomics: 'Cybernomics', - supply: `supply of ${DENOM_CYBER.toLocaleUpperCase()}`, + supply: `supply of ${DENOM.toLocaleUpperCase()}`, staked: '% of staked CYB', price: 'price of cyberlink in RC', consensus: 'Consensus', diff --git a/src/pages/Keys/ActionBar/actionBar.tsx b/src/pages/Keys/ActionBar/actionBar.tsx index 0a8be4601..c2cb19003 100644 --- a/src/pages/Keys/ActionBar/actionBar.tsx +++ b/src/pages/Keys/ActionBar/actionBar.tsx @@ -1,19 +1,16 @@ import { useEffect, useState } from 'react'; import { Pane, ActionBar as ActionBarGravity } from '@cybercongress/gravity'; import { useSigningClient } from 'src/contexts/signerClient'; -import ActionBarKeplr from './actionBarKeplr'; -import ActionBarUser from './actionBarUser'; -import ActionBarConnect from './actionBarConnect'; -import waitForWeb3 from 'components/web3/waitForWeb3'; -import { NETWORKSIDS } from 'src/utils/config'; -import imgLedger from 'src/image/ledger.svg'; import imgKeplr from 'src/image/keplr-icon.svg'; import imgRead from 'src/image/duplicate-outline.svg'; import Button from 'src/components/btnGrd'; import { useDispatch, useSelector } from 'react-redux'; import { RootState } from 'src/redux/store'; import { deleteAddress, setDefaultAccount } from 'src/redux/features/pocket'; +import ActionBarConnect from './actionBarConnect'; +import ActionBarUser from './actionBarUser'; +import ActionBarKeplr from './actionBarKeplr'; const STAGE_INIT = 1; const STAGE_CONNECT = 2; @@ -44,7 +41,6 @@ type Props = { selectAccount: any; hoverCard?: string; - accountsETH: any; refreshTweet?: any; updateTweetFunc?: any; updateAddress: () => void; @@ -63,8 +59,6 @@ function ActionBar({ selectCard, selectAccount, hoverCard, - // actionBar web3 - accountsETH, // actionBar tweet refreshTweet, updateTweetFunc, @@ -79,26 +73,12 @@ function ActionBar({ const [stage, setStage] = useState(STAGE_INIT); const [makeActive, setMakeActive] = useState(false); const [connect, setConnect] = useState(false); - const [web3, setWeb3] = useState(null); const dispatch = useDispatch(); const { accounts, defaultAccount } = useSelector( (store: RootState) => store.pocket ); - useEffect(() => { - // - const getWeb3 = async () => { - const web3response = await waitForWeb3(); - web3response.eth.net.getId().then((id) => { - if (id === NETWORKSIDS.main) { - setWeb3(web3response); - } - }); - }; - getWeb3(); - }, []); - useEffect(() => { if (stage === STAGE_INIT) { setMakeActive(false); @@ -245,8 +225,6 @@ function ActionBar({ if (stage === STAGE_CONNECT) { return ( setStage(STAGE_INIT)} diff --git a/src/pages/Keys/ActionBar/actionBarConnect.tsx b/src/pages/Keys/ActionBar/actionBarConnect.tsx index 0bf61071d..661ddbe7a 100644 --- a/src/pages/Keys/ActionBar/actionBarConnect.tsx +++ b/src/pages/Keys/ActionBar/actionBarConnect.tsx @@ -32,7 +32,6 @@ function ActionBarConnect({ updateAddress, updateFuncActionBar, onClickBack, - selectAccount, }) { const { signer } = useSigningClient(); const [stage, setStage] = useState(STAGE_INIT); diff --git a/src/pages/Keys/ActionBar/actionBarKeplr.tsx b/src/pages/Keys/ActionBar/actionBarKeplr.tsx index 60ab3bbee..b63df7b7c 100644 --- a/src/pages/Keys/ActionBar/actionBarKeplr.tsx +++ b/src/pages/Keys/ActionBar/actionBarKeplr.tsx @@ -9,10 +9,11 @@ import { Confirmed, TransactionError, ActionBarSend, -} from 'components'; -import { LEDGER, CYBER, DEFAULT_GAS_LIMITS } from 'src/utils/config'; -import { PATTERN_CYBER } from 'src/constants/app'; +} from 'src/components'; +import { LEDGER } from 'src/utils/config'; +import { PATTERN_CYBER } from 'src/constants/patterns'; import { getTxs } from 'src/utils/search/utils'; +import { DEFAULT_GAS_LIMITS, DENOM } from 'src/constants/config'; const { STAGE_ERROR, STAGE_SUBMITTED, STAGE_CONFIRMING, STAGE_CONFIRMED } = LEDGER; @@ -41,7 +42,7 @@ function ActionBarKeplr({ updateAddress, updateBalance, onClickBack }) { const result = await signingClient.sendTokens( address, recipient, - coins(amount, CYBER.DENOM_CYBER), + coins(amount, DENOM), fee ); console.log('result: ', result); diff --git a/src/pages/Keys/ActionBar/actionBarUser.jsx b/src/pages/Keys/ActionBar/actionBarUser.jsx index eb239e4b0..d6335d05b 100644 --- a/src/pages/Keys/ActionBar/actionBarUser.jsx +++ b/src/pages/Keys/ActionBar/actionBarUser.jsx @@ -23,7 +23,7 @@ function ActionBarUser({ selectAccount, updateAddress, defaultAccounts }) { sendAddres, amount, MEMO, - CYBER.DENOM_CYBER, + DENOM, true, addressFrom ); diff --git a/src/pages/robot/_refactor/account/component/RenderValue.jsx b/src/pages/robot/_refactor/account/component/RenderValue.jsx index ba697729f..cd37ce99c 100644 --- a/src/pages/robot/_refactor/account/component/RenderValue.jsx +++ b/src/pages/robot/_refactor/account/component/RenderValue.jsx @@ -341,7 +341,7 @@ function RenderValue({ value, type, accountUser }) { value={ } /> @@ -485,7 +485,7 @@ function RenderValue({ value, type, accountUser }) { ); }) ) : ( - + ) } /> diff --git a/src/pages/robot/_refactor/account/component/tableTxs.jsx b/src/pages/robot/_refactor/account/component/tableTxs.jsx index 2a9580987..8af0d70cc 100644 --- a/src/pages/robot/_refactor/account/component/tableTxs.jsx +++ b/src/pages/robot/_refactor/account/component/tableTxs.jsx @@ -104,7 +104,7 @@ function TableTxs({ data, type, accountUser, amount }) { // key={i} // content={`${formatNumber( // Math.floor(items.value.amount.amount) - // )} ${CYBER.DENOM_CYBER.toUpperCase()}`} + // )} ${DENOM.toUpperCase()}`} // > ({ ...item, @@ -116,7 +120,7 @@ function useGetBalance(address, updateAddress) { } const dataValidatorAddress = fromBech32( addressActive, - CYBER.BECH32_PREFIX_ACC_ADDR_CYBERVALOPER + BECH32_PREFIX_VALOPER ); const resultGetDistribution = await queryClient.validatorCommission( dataValidatorAddress @@ -150,7 +154,7 @@ function useGetBalance(address, updateAddress) { useEffect(() => { const getBalance = async () => { const initValueTokenAmount = { - [CYBER.DENOM_LIQUID_TOKEN]: { + [DENOM_LIQUID]: { ...initValueTokens, }, milliampere: { @@ -173,7 +177,7 @@ function useGetBalance(address, updateAddress) { Object.keys(balancesToken).forEach((key) => { if ( Object.hasOwnProperty.call(balancesToken, key) && - key !== CYBER.DENOM_CYBER + key !== DENOM ) { const elementBalancesToken = balancesToken[key]; diff --git a/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js b/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js index 65b23e171..a9fe1dfc9 100644 --- a/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js +++ b/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js @@ -3,9 +3,7 @@ import { gql } from '@apollo/client'; import { useInfiniteQuery } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; -import { CYBER } from '../../../../../utils/config'; - -const { CYBER_INDEX_HTTPS } = CYBER; +import { INDEX_URL } from 'src/constants/config'; const messagesByAddress = gql(` query MyQuery($address: _text, $limit: bigint, $offset: bigint) { @@ -31,7 +29,7 @@ function useGetTsxByAddress(address) { useInfiniteQuery( ['messagesByAddressGql', address], async ({ pageParam = 0 }) => { - const res = await request(CYBER_INDEX_HTTPS, messagesByAddress, { + const res = await request(INDEX_URL, messagesByAddress, { address: `{${address}}`, limit, offset: new BigNumber(limit).multipliedBy(pageParam).toString(), diff --git a/src/pages/robot/_refactor/account/tabs/heroes.jsx b/src/pages/robot/_refactor/account/tabs/heroes.jsx index 9bdf3893e..d4d72a8f0 100644 --- a/src/pages/robot/_refactor/account/tabs/heroes.jsx +++ b/src/pages/robot/_refactor/account/tabs/heroes.jsx @@ -5,10 +5,10 @@ import { useEffect } from 'react'; import Display from 'src/components/containerGradient/Display/Display'; import { Account, NumberCurrency } from '../../../../../components'; import { formatNumber, formatCurrency } from '../../../../../utils/utils'; -import { CYBER } from '../../../../../utils/config'; import { useGetHeroes } from '../hooks'; import hS from './heroes.module.scss'; import { useAdviser } from 'src/features/adviser/context'; +import { DENOM } from 'src/constants/config'; const getDaysIn = (time) => { const completionTime = new Date(time); @@ -45,14 +45,8 @@ function Unbonding({ amount, stages, entries }) { overflow="hidden" > {stages > 1 - ? `${formatCurrency( - amount, - CYBER.DENOM_CYBER.toUpperCase() - )} in ${stages} stages` - : `${formatCurrency( - entries[0].balance, - CYBER.DENOM_CYBER.toUpperCase() - )} in + ? `${formatCurrency(amount, DENOM.toUpperCase())} in ${stages} stages` + : `${formatCurrency(entries[0].balance, DENOM.toUpperCase())} in ${getDaysIn(entries[0].completionTime)} days`} {`${formatNumber( parseFloat(items.balance) - )} ${CYBER.DENOM_CYBER.toUpperCase()}`}{' '} + )} ${DENOM.toUpperCase()}`}{' '} in {getDaysIn(items.completionTime)} days ))} diff --git a/src/pages/teleport/bridge/bridge.tsx b/src/pages/teleport/bridge/bridge.tsx index 746bcf1b4..db4515370 100644 --- a/src/pages/teleport/bridge/bridge.tsx +++ b/src/pages/teleport/bridge/bridge.tsx @@ -5,7 +5,6 @@ import { Slider, } from 'src/components'; import Select, { OptionSelect } from 'src/components/Select'; -import { CYBER } from 'src/utils/config'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { useIbcDenom } from 'src/contexts/ibcDenom'; import BigNumber from 'bignumber.js'; @@ -25,6 +24,7 @@ import HistoryContextProvider from '../../../services/ibc-history/historyContext import DataIbcHistory from './components/dataIbcHistory/DataIbcHistory'; import InputNumberDecimalScale from '../components/Inputs/InputNumberDecimalScale/InputNumberDecimalScale'; import { useTeleport } from '../Teleport.context'; +import { CHAIN_ID } from 'src/constants/config'; type Query = { networkFrom: string; @@ -36,7 +36,7 @@ type Query = { export const ibcDenomAtom = 'ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC528433671AAF9B1912D159'; -const isCyberChain = (chainId: string) => chainId === CYBER.CHAIN_ID; +const isCyberChain = (chainId: string) => chainId === CHAIN_ID; function Bridge() { const { traseDenom } = useIbcDenom(); @@ -128,7 +128,7 @@ function Bridge() { const networkOptions = useCallback( () => channels - ? [CYBER.CHAIN_ID, ...Object.keys(channels)].map((key) => ({ + ? [CHAIN_ID, ...Object.keys(channels)].map((key) => ({ value: key, text: ( @@ -48,7 +48,7 @@ export function AmountSend({ }) { const { traseDenom } = useIbcDenom(); const typeTxs = - sourceChainId === CYBER.CHAIN_ID ? TxsType.Withdraw : TxsType.Deposit; + sourceChainId === CHAIN_ID ? TxsType.Withdraw : TxsType.Deposit; const amountDenom = useMemo(() => { if (traseDenom) { const [{ coinDecimals }] = traseDenom(coin.denom); diff --git a/src/pages/teleport/hooks/useGetBalancesIbc.ts b/src/pages/teleport/hooks/useGetBalancesIbc.ts index a3554a1f6..53504c7a5 100644 --- a/src/pages/teleport/hooks/useGetBalancesIbc.ts +++ b/src/pages/teleport/hooks/useGetBalancesIbc.ts @@ -3,9 +3,9 @@ import { useEffect, useState } from 'react'; import { Sha256 } from '@cosmjs/crypto'; import { useIbcDenom } from 'src/contexts/ibcDenom'; import { SigningStargateClient } from '@cosmjs/stargate'; -import { CYBER } from '../../../utils/config'; import networkList from '../../../utils/networkListIbc'; import useSubscribersBlokIbc from './useSubscribersBlokIbc'; +import { CHAIN_ID } from 'src/constants/config'; const sha256 = (data) => { return new Uint8Array(new Sha256().update(data).digest()); @@ -35,7 +35,7 @@ function useGetBalancesIbc(client: SigningStargateClient, denom) { const getBalanceIbc = async () => { if (client && denom) { const responseChainId = client.signer.chainId; - if (responseChainId !== CYBER.CHAIN_ID) { + if (responseChainId !== CHAIN_ID) { let coinMinimalDenom = null; if (denom.includes('ibc') && ibcDataDenom) { coinMinimalDenom = ibcDataDenom[denom].baseDenom; diff --git a/src/pages/teleport/hooks/useGetSendTxsByAddress.tsx b/src/pages/teleport/hooks/useGetSendTxsByAddress.tsx index 147e524ef..31cb61aad 100644 --- a/src/pages/teleport/hooks/useGetSendTxsByAddress.tsx +++ b/src/pages/teleport/hooks/useGetSendTxsByAddress.tsx @@ -7,9 +7,8 @@ import { useEffect, useState } from 'react'; import { AccountValue } from 'src/types/defaultAccount'; import { Nullable, Option } from 'src/types'; import { Log } from '@cosmjs/stargate/build/logs'; -import { CYBER } from '../../../utils/config'; -const { CYBER_INDEX_HTTPS } = CYBER; +import { INDEX_URL } from 'src/constants/config'; const messagesByAddress = gql(` query MyQuery($address: _text, $limit: bigint, $offset: bigint, $type: _text) { @@ -66,7 +65,7 @@ function useGetSendTxsByAddressByType( } = useInfiniteQuery( ['messagesByAddressGql', addressBech32, type], async ({ pageParam = 0 }) => { - const res = await request(CYBER_INDEX_HTTPS, messagesByAddress, { + const res = await request(INDEX_URL, messagesByAddress, { address: `{${addressBech32}}`, limit, offset: new BigNumber(limit).multipliedBy(pageParam).toString(), diff --git a/src/pages/teleport/hooks/useSetupIbcClient.ts b/src/pages/teleport/hooks/useSetupIbcClient.ts index 6f243cd52..ae9c4cc18 100644 --- a/src/pages/teleport/hooks/useSetupIbcClient.ts +++ b/src/pages/teleport/hooks/useSetupIbcClient.ts @@ -4,10 +4,10 @@ import { GasPrice, SigningStargateClient } from '@cosmjs/stargate'; import { useSigningClient } from 'src/contexts/signerClient'; import { getKeplr } from 'src/utils/keplrUtils'; import { Decimal } from '@cosmjs/math'; -import { CYBER } from '../../../utils/config'; import useGetBalancesIbc from './useGetBalancesIbc'; import networks from '../../../utils/networkListIbc'; +import { CHAIN_ID } from 'src/constants/config'; function useSetupIbcClient(denom, network) { const { signingClient } = useSigningClient(); @@ -19,7 +19,7 @@ function useSetupIbcClient(denom, network) { setIbcClient(null); let client = null; - if (network && network !== CYBER.CHAIN_ID) { + if (network && network !== CHAIN_ID) { const keplr = await getKeplr(); const { rpc, prefix, chainId } = networks[network]; await keplr.enable(chainId); diff --git a/src/pages/teleport/mainScreen/components/SendAction/SendAction.tsx b/src/pages/teleport/mainScreen/components/SendAction/SendAction.tsx index 476bc5c6d..c31a682ed 100644 --- a/src/pages/teleport/mainScreen/components/SendAction/SendAction.tsx +++ b/src/pages/teleport/mainScreen/components/SendAction/SendAction.tsx @@ -4,7 +4,7 @@ import { Account } from 'src/components'; import Display from 'src/components/containerGradient/Display/Display'; import { selectCommunityPassports } from 'src/features/passport/passports.redux'; import { useAppSelector } from 'src/redux/hooks'; -import { CYBER } from 'src/utils/config'; +import { DENOM } from 'src/constants/config'; import TitleAction from '../TitleAction/TitleAction'; import styles from './SendAction.module.scss'; import TotalCount from '../TotalCount/TotalCount'; @@ -47,7 +47,7 @@ function SendAction() { pathname: 'send', search: createSearchParams({ recipient: key, - token: CYBER.DENOM_CYBER, + token: DENOM, }).toString(), }} > diff --git a/src/pages/teleport/send/send.tsx b/src/pages/teleport/send/send.tsx index 613fa6764..b09c1439c 100644 --- a/src/pages/teleport/send/send.tsx +++ b/src/pages/teleport/send/send.tsx @@ -8,8 +8,7 @@ import { import { RootState } from 'src/redux/store'; import useSetActiveAddress from 'src/hooks/useSetActiveAddress'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; -import { CYBER } from 'src/utils/config'; -import { PATTERN_CYBER } from 'src/constants/app'; +import { PATTERN_CYBER } from 'src/constants/patterns'; import { useQueryClient } from 'src/contexts/queryClient'; import { getDisplayAmount, @@ -39,8 +38,9 @@ import { } from '../components/Inputs'; import useGetSendTxsByAddressByLcd from '../hooks/useGetSendTxsByAddressByLcd'; import { useTeleport } from '../Teleport.context'; +import { CHAIN_ID, DENOM } from 'src/constants/config'; -const tokenDefaultValue = CYBER.DENOM_CYBER; +const tokenDefaultValue = DENOM; function Send() { const queryClient = useQueryClient(); @@ -247,16 +247,16 @@ function Send() { {formatNumber(Math.floor(item.reward[0].amount))}{' '} - {DENOM.toUpperCase()} + {BASE_DENOM.toUpperCase()} ); @@ -1052,7 +1052,7 @@ export function RewardsDelegators({ Total rewards: {formatNumber(Math.floor(data.total[0].amount))}{' '} - {DENOM.toUpperCase()} + {BASE_DENOM.toUpperCase()} Rewards: diff --git a/src/components/numberCurrency/index.jsx b/src/components/numberCurrency/index.jsx index e9e68ff39..c4da34541 100644 --- a/src/components/numberCurrency/index.jsx +++ b/src/components/numberCurrency/index.jsx @@ -1,12 +1,12 @@ import { Pane } from '@cybercongress/gravity'; import { formatNumber } from '../../utils/utils'; import DenomArr from '../denom'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; function NumberCurrency({ amount, fontSizeDecimal, - currencyNetwork = DENOM, + currencyNetwork = BASE_DENOM, onlyImg, onlyText = true, ...props diff --git a/src/constants/config.ts b/src/constants/config.ts index 696938eff..87705c722 100644 --- a/src/constants/config.ts +++ b/src/constants/config.ts @@ -25,8 +25,8 @@ export const BECH32_PREFIX = export const BECH32_PREFIX_VALOPER = `${BECH32_PREFIX}valoper`; -export const DENOM = - process.env.DENOM || defaultNetworks[DEFAULT_CHAIN_ID].DENOM; +export const BASE_DENOM = + process.env.BASE_DENOM || defaultNetworks[DEFAULT_CHAIN_ID].BASE_DENOM; export const DENOM_LIQUID = process.env.DENOM_LIQUID || defaultNetworks[DEFAULT_CHAIN_ID].DENOM_LIQUID; diff --git a/src/constants/defaultNetworks.ts b/src/constants/defaultNetworks.ts index 2962da6c1..4b71e4efe 100644 --- a/src/constants/defaultNetworks.ts +++ b/src/constants/defaultNetworks.ts @@ -7,7 +7,7 @@ type NetworksList = { const defaultNetworks: NetworksList = { bostrom: { CHAIN_ID: Networks.BOSTROM, - DENOM: 'boot', + BASE_DENOM: 'boot', DENOM_LIQUID: 'hydrogen', API: 'https://rpc.bostrom.cybernode.ai', LCD: 'https://lcd.bostrom.cybernode.ai', @@ -19,7 +19,7 @@ const defaultNetworks: NetworksList = { }, 'space-pussy': { CHAIN_ID: Networks.SPACE_PUSSY, - DENOM: 'pussy', + BASE_DENOM: 'pussy', DENOM_LIQUID: 'liquidpussy', API: 'https://rpc.space-pussy.cybernode.ai/', LCD: 'https://lcd.space-pussy.cybernode.ai', diff --git a/src/containers/Validators/ActionBarContainer.tsx b/src/containers/Validators/ActionBarContainer.tsx index a1956e253..f83c8c221 100644 --- a/src/containers/Validators/ActionBarContainer.tsx +++ b/src/containers/Validators/ActionBarContainer.tsx @@ -8,7 +8,7 @@ import { useSigningClient } from 'src/contexts/signerClient'; import Button from 'src/components/btnGrd'; import { routes } from 'src/routes'; import useDelegation from 'src/features/staking/delegation/useDelegation'; -import { DENOM, MEMO_KEPLR } from 'src/constants/config'; +import { BASE_DENOM, MEMO_KEPLR } from 'src/constants/config'; import { Confirmed, TransactionSubmitted, @@ -223,7 +223,7 @@ function ActionBarContainer({ const response = await signingClient.delegateTokens( addressKeplr, validatorAddres, - coin(amount, DENOM), + coin(amount, BASE_DENOM), fee, MEMO_KEPLR ); @@ -251,7 +251,7 @@ function ActionBarContainer({ const response = await signingClient.undelegateTokens( addressKeplr, validatorAddres, - coin(amount, DENOM), + coin(amount, BASE_DENOM), fee, MEMO_KEPLR ); @@ -279,7 +279,7 @@ function ActionBarContainer({ addressKeplr, validatorAddres, valueSelect, - coin(amount, DENOM), + coin(amount, BASE_DENOM), fee, MEMO_KEPLR ); diff --git a/src/containers/Validators/components/InfoBalance.jsx b/src/containers/Validators/components/InfoBalance.jsx index c476fc238..7056c045f 100644 --- a/src/containers/Validators/components/InfoBalance.jsx +++ b/src/containers/Validators/components/InfoBalance.jsx @@ -2,7 +2,7 @@ import { Link } from 'react-router-dom'; import { Pane } from '@cybercongress/gravity'; import { CardStatisics, Dots, DenomArr } from '../../../components'; import { formatNumber } from '../../../utils/utils'; -import { DENOM_LIQUID, DENOM } from 'src/constants/config'; +import { DENOM_LIQUID, BASE_DENOM } from 'src/constants/config'; function TootipContent() { return ( @@ -30,7 +30,7 @@ function InfoBalance({ balance, loadingBalanceInfo, balanceToken }) { return ( @@ -41,7 +41,7 @@ function InfoBalance({ balance, loadingBalanceInfo, balanceToken }) { /> @@ -77,7 +77,7 @@ function InfoBalance({ balance, loadingBalanceInfo, balanceToken }) { diff --git a/src/containers/Validators/components/table.jsx b/src/containers/Validators/components/table.jsx index 9b46614d3..f8a65cddb 100644 --- a/src/containers/Validators/components/table.jsx +++ b/src/containers/Validators/components/table.jsx @@ -1,7 +1,7 @@ import { TableEv as Table, Icon } from '@cybercongress/gravity'; import { Tooltip } from '../../../components'; import { TextTable } from './ui'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; function TableHeroes({ mobile, showJailed, children }) { return ( @@ -49,7 +49,7 @@ function TableHeroes({ mobile, showJailed, children }) { placement="bottom" tooltip={
- Amount of {DENOM.toUpperCase()} (tokens you + Amount of {BASE_DENOM.toUpperCase()} (tokens you bonded to validator in)
} diff --git a/src/containers/brain/hooks/getStatisticsCyber.js b/src/containers/brain/hooks/getStatisticsCyber.js index fed0e8645..dacb2034b 100644 --- a/src/containers/brain/hooks/getStatisticsCyber.js +++ b/src/containers/brain/hooks/getStatisticsCyber.js @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import BigNumber from 'bignumber.js'; import { useQueryClient } from 'src/contexts/queryClient'; -import { DENOM, DENOM_LIQUID } from 'src/constants/config'; +import { BASE_DENOM, DENOM_LIQUID } from 'src/constants/config'; import { getInlfation } from '../../../utils/search/utils'; import { getProposals } from '../../../utils/governance'; import { coinDecimals } from '../../../utils/utils'; @@ -75,9 +75,9 @@ function useGetStatisticsCyber() { }); } - if (totalCyb[DENOM] && totalCyb[DENOM_LIQUID]) { + if (totalCyb[BASE_DENOM] && totalCyb[DENOM_LIQUID]) { staked = new BigNumber(totalCyb[DENOM_LIQUID]) - .dividedBy(totalCyb[DENOM]) + .dividedBy(totalCyb[BASE_DENOM]) .toString(10); } setKnowledge((item) => ({ diff --git a/src/containers/governance/actionBar.tsx b/src/containers/governance/actionBar.tsx index 45ec515e4..4388a4550 100644 --- a/src/containers/governance/actionBar.tsx +++ b/src/containers/governance/actionBar.tsx @@ -2,7 +2,7 @@ import { Component } from 'react'; import { coins } from '@cosmjs/launchpad'; import withIpfsAndKeplr from 'src/hocs/withIpfsAndKeplr'; import { DefaultAccount } from 'src/types/defaultAccount'; -import { DEFAULT_GAS_LIMITS, DENOM } from 'src/constants/config'; +import { DEFAULT_GAS_LIMITS, BASE_DENOM } from 'src/constants/config'; import { TransactionSubmitted, Confirmed, @@ -81,7 +81,7 @@ class ActionBar extends Component { const [{ address }] = await signer.getAccounts(); try { - const deposit = coins(parseFloat(valueDeposit), DENOM); + const deposit = coins(parseFloat(valueDeposit), BASE_DENOM); if (valueSelect === 'textProposal') { response = await signingClient.submitProposal( address, @@ -98,7 +98,7 @@ class ActionBar extends Component { } if (valueSelect === 'communityPool') { - const amount = coins(10, DENOM); + const amount = coins(10, BASE_DENOM); response = await signingClient.submitProposal( address, { diff --git a/src/containers/governance/actionBarDatail.tsx b/src/containers/governance/actionBarDatail.tsx index 404dd4271..48931d31a 100644 --- a/src/containers/governance/actionBarDatail.tsx +++ b/src/containers/governance/actionBarDatail.tsx @@ -9,7 +9,7 @@ import { VoteOption, ProposalStatus, } from 'cosmjs-types/cosmos/gov/v1beta1/gov'; -import { DEFAULT_GAS_LIMITS, DENOM, MEMO_KEPLR } from 'src/constants/config'; +import { DEFAULT_GAS_LIMITS, BASE_DENOM, MEMO_KEPLR } from 'src/constants/config'; import { TransactionSubmitted, Confirmed, @@ -119,7 +119,7 @@ function ActionBarDetail({ proposals, id, addressActive, update }) { if ( proposals.status === ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD ) { - const amount = coins(parseFloat(valueDeposit), DENOM); + const amount = coins(parseFloat(valueDeposit), BASE_DENOM); response = await signingClient.depositProposal( address, id, @@ -189,7 +189,7 @@ function ActionBarDetail({ proposals, id, addressActive, update }) { allowLeadingZeros /> - {DENOM.toUpperCase()} + {BASE_DENOM.toUpperCase()} @@ -82,8 +82,8 @@ function Governance() { totalCyb[item.denom] = parseFloat(item.amount); }); } - if (totalCyb[DENOM] && totalCyb[DENOM_LIQUID]) { - stakedBoot = totalCyb[DENOM_LIQUID] / totalCyb[DENOM]; + if (totalCyb[BASE_DENOM] && totalCyb[DENOM_LIQUID]) { + stakedBoot = totalCyb[DENOM_LIQUID] / totalCyb[BASE_DENOM]; } setStaked(stakedBoot); } diff --git a/src/containers/governance/proposalsDetailProgressBar.jsx b/src/containers/governance/proposalsDetailProgressBar.jsx index 9dad1ae1f..75974cc20 100644 --- a/src/containers/governance/proposalsDetailProgressBar.jsx +++ b/src/containers/governance/proposalsDetailProgressBar.jsx @@ -1,5 +1,5 @@ import { Pane, Text } from '@cybercongress/gravity'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; import { IconStatus, Votes, @@ -59,7 +59,7 @@ function ProposalsDetailProgressBar({ - {formatNumber(minDeposit)} {DENOM.toUpperCase()} MinDeposit + {formatNumber(minDeposit)} {BASE_DENOM.toUpperCase()} MinDeposit
diff --git a/src/containers/governance/proposalsIdDetail.jsx b/src/containers/governance/proposalsIdDetail.jsx index 192187313..8064d8a4e 100644 --- a/src/containers/governance/proposalsIdDetail.jsx +++ b/src/containers/governance/proposalsIdDetail.jsx @@ -1,7 +1,7 @@ import { Pane } from '@cybercongress/gravity'; import { IconStatus, Item, ContainerGradientText } from '../../components'; import { formatNumber } from '../../utils/search/utils'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; const dateFormat = require('dateformat'); @@ -48,7 +48,7 @@ function ProposalsIdDetail({ )} {proposals.voting_start_time && ( diff --git a/src/containers/home/home.jsx b/src/containers/home/home.jsx index 26c4fca4c..6878cdb24 100644 --- a/src/containers/home/home.jsx +++ b/src/containers/home/home.jsx @@ -13,7 +13,7 @@ import { formatCurrency, formatNumber } from '../../utils/utils'; import useGetStatisticsCyber from '../brain/hooks/getStatisticsCyber'; import KnowledgeTab from '../brain/tabs/knowledge'; import { getNumTokens, getStateGift } from '../portal/utils'; -import { DENOM, LCD } from 'src/constants/config'; +import { BASE_DENOM, LCD } from 'src/constants/config'; const PREFIXES = [ { @@ -212,7 +212,7 @@ function Home() { ({ ...item, [key]: value, @@ -115,8 +115,8 @@ function CustomNetwork() { /> onChangeValue(e, 'DENOM')} + value={customConfig.BASE_DENOM} + onChange={(e) => onChangeValue(e, 'BASE_DENOM')} /> ({ ...item, [key]: value, @@ -106,8 +106,8 @@ function DetailsNetwork() { /> onChangeValue(e, 'DENOM')} + value={customConfig.BASE_DENOM} + onChange={(e) => onChangeValue(e, 'BASE_DENOM')} />
denom
-
{item.DENOM}
+
{item.BASE_DENOM}
liquid denom
diff --git a/src/containers/portal/citizenship/index.tsx b/src/containers/portal/citizenship/index.tsx index b5fcafbaa..80f102178 100644 --- a/src/containers/portal/citizenship/index.tsx +++ b/src/containers/portal/citizenship/index.tsx @@ -130,7 +130,7 @@ const calculatePriceNicname = (valueNickname) => { const exponent = 8 - valueNickname.length; const base = new BigNumber(10).pow(exponent); const priceName = new BigNumber(1000000).multipliedBy(base).toNumber(); - funds = coins(priceName, DENOM); + funds = coins(priceName, BASE_DENOM); } return funds; @@ -327,7 +327,7 @@ function GetCitizenship({ defaultAccount }) { if (usePriceNickname !== null) { const { amountPrice } = usePriceNickname; if (queryClient) { - const getBalance = await queryClient.getBalance(bech32, DENOM); + const getBalance = await queryClient.getBalance(bech32, BASE_DENOM); const { amount } = getBalance; if (parseFloat(amount) === 0) { setRegisterDisabled(false); diff --git a/src/containers/portal/components/ReleaseStatus/index.tsx b/src/containers/portal/components/ReleaseStatus/index.tsx index 552f5a465..98d51fcdf 100644 --- a/src/containers/portal/components/ReleaseStatus/index.tsx +++ b/src/containers/portal/components/ReleaseStatus/index.tsx @@ -5,7 +5,7 @@ import ContainerGradient from '../../../../components/containerGradient/Containe import { GIFT_ICON } from '../../utils'; import { ProgressBar } from '../progressCard'; import styles from './ReleaseStatus.module.scss'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; type DataReleaseStatus = { availableRelease: number; @@ -64,7 +64,7 @@ function RowItem({ item }: { item: Item }) {
{item.title}
- +
); @@ -81,7 +81,7 @@ function ReleaseStatus({
release status {GIFT_ICON}
- +
); diff --git a/src/containers/sigma/hooks/useBalanceToken.js b/src/containers/sigma/hooks/useBalanceToken.js index af1599c8f..b81a80bb8 100644 --- a/src/containers/sigma/hooks/useBalanceToken.js +++ b/src/containers/sigma/hooks/useBalanceToken.js @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import { useQuery } from '@tanstack/react-query'; import { useQueryClient } from 'src/contexts/queryClient'; -import { DENOM, DENOM_LIQUID } from 'src/constants/config'; +import { BASE_DENOM, DENOM_LIQUID } from 'src/constants/config'; import useGetSlots from '../../mint/useGetSlots'; const initValueResponseFunc = (denom = '', amount = 0) => { @@ -92,7 +92,7 @@ function useBalanceToken(address, updateAddress) { if (getAllBalancesPromise.length > 0) { getAllBalancesPromise.forEach((item) => { const { amount, denom } = item; - if (denom !== DENOM) { + if (denom !== BASE_DENOM) { const elementBalancesToken = amount; if ( diff --git a/src/containers/sigma/hooks/useGetBalanceBostrom.ts b/src/containers/sigma/hooks/useGetBalanceBostrom.ts index de3fd5887..664344e3d 100644 --- a/src/containers/sigma/hooks/useGetBalanceBostrom.ts +++ b/src/containers/sigma/hooks/useGetBalanceBostrom.ts @@ -4,7 +4,7 @@ import _ from 'lodash'; import { useIbcDenom } from 'src/contexts/ibcDenom'; import { useAppData } from 'src/contexts/appData'; import { Nullable } from 'src/types'; -import { DENOM, DENOM_LIQUID } from 'src/constants/config'; +import { BASE_DENOM, DENOM_LIQUID } from 'src/constants/config'; import useGetBalanceMainToken from './useGetBalanceMainToken'; import useBalanceToken from './useBalanceToken'; import { convertAmount } from '../../../utils/utils'; @@ -90,7 +90,7 @@ function useGetBalanceBostrom(address: Nullable) { if (!loadingMalin && !loadingToken) { let dataResult = {}; const mainToken = { - [DENOM]: { ...balanceMainToken }, + [BASE_DENOM]: { ...balanceMainToken }, }; const dataResultTemp = { ...mainToken, ...balanceToken }; const tempData = getBalanceMarket(dataResultTemp); diff --git a/src/containers/sigma/hooks/utils.js b/src/containers/sigma/hooks/utils.js index 09305e599..ba17cd30e 100644 --- a/src/containers/sigma/hooks/utils.js +++ b/src/containers/sigma/hooks/utils.js @@ -3,11 +3,11 @@ import { Decimal } from '@cosmjs/math'; import BigNumber from 'bignumber.js'; import { useQuery } from '@tanstack/react-query'; import { getDelegatorDelegations } from 'src/utils/search/utils'; -import { BECH32_PREFIX_VALOPER, DENOM } from 'src/constants/config'; +import { BECH32_PREFIX_VALOPER, BASE_DENOM } from 'src/constants/config'; import { fromBech32 } from '../../../utils/utils'; const initValue = { - denom: DENOM, + denom: BASE_DENOM, amount: '0', }; @@ -30,7 +30,7 @@ const getDelegationsAmount = (data) => { delegationsAmount = delegationsAmount.plus(itemDelegation.balance.amount); }); } - return initValueResponseFunc(DENOM, delegationsAmount.toString()); + return initValueResponseFunc(BASE_DENOM, delegationsAmount.toString()); }; const getUnbondingAmount = (data) => { @@ -43,7 +43,7 @@ const getUnbondingAmount = (data) => { }); }); } - return initValueResponseFunc(DENOM, unbondingAmount.toString()); + return initValueResponseFunc(BASE_DENOM, unbondingAmount.toString()); }; const getRewardsAmount = (data) => { @@ -55,7 +55,7 @@ const getRewardsAmount = (data) => { Decimal.fromAtomics(amount, 18).floor().toString() ); } - return initValueResponseFunc(DENOM, rewardsAmount.toString()); + return initValueResponseFunc(BASE_DENOM, rewardsAmount.toString()); }; const getCommissionAmount = (data) => { @@ -68,7 +68,7 @@ const getCommissionAmount = (data) => { Decimal.fromAtomics(amount, 18).floor().toString() ); } - return initValueResponseFunc(DENOM, commissionAmount.toString()); + return initValueResponseFunc(BASE_DENOM, commissionAmount.toString()); }; export const useGetBalance = (client, addressBech32) => { @@ -79,7 +79,7 @@ export const useGetBalance = (client, addressBech32) => { async () => { const responsegetBalance = await client.getBalance( addressBech32, - DENOM + BASE_DENOM ); const responsedelegatorDelegations = await getDelegatorDelegations( @@ -134,7 +134,7 @@ export const useGetBalance = (client, addressBech32) => { return { ...resultBalance, total: { - denom: DENOM, + denom: BASE_DENOM, amount: total, }, }; diff --git a/src/containers/temple/hooks/getTotalCap.ts b/src/containers/temple/hooks/getTotalCap.ts index a1be63c4b..0cf28b0cc 100644 --- a/src/containers/temple/hooks/getTotalCap.ts +++ b/src/containers/temple/hooks/getTotalCap.ts @@ -7,7 +7,7 @@ import { getDenomHash, getDisplayAmount, } from '../../../utils/utils'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; function useGetTotalCap() { const { marketData, dataTotalSupply } = useAppData(); @@ -90,9 +90,9 @@ function useGetTotalCap() { const ibcDenomAtom = getDenomHash(path, denomInfo.coinMinimalDenom); if ( Object.prototype.hasOwnProperty.call(marketData, ibcDenomAtom) && - Object.prototype.hasOwnProperty.call(marketData, DENOM) + Object.prototype.hasOwnProperty.call(marketData, BASE_DENOM) ) { - const priceBoot = new BigNumber(marketData[DENOM]); + const priceBoot = new BigNumber(marketData[BASE_DENOM]); const priceAtom = new BigNumber(marketData[ibcDenomAtom]); const priceBootForAtom = priceAtom .dividedBy(priceBoot) diff --git a/src/containers/txs/Activites.jsx b/src/containers/txs/Activites.jsx index 58164529d..4b7037f14 100644 --- a/src/containers/txs/Activites.jsx +++ b/src/containers/txs/Activites.jsx @@ -5,7 +5,7 @@ import ReactJson from 'react-json-view'; import { Account, MsgType, DenomArr, AmountDenom, Cid } from 'src/components'; import { formatNumber } from '../../utils/search/utils'; import { timeSince } from '../../utils/utils'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; const S_TO_MS = 1 * 10 ** 3; @@ -256,7 +256,7 @@ function Activites({ msg }) { /> ); }) - : `0 ${DENOM.toUpperCase()}` + : `0 ${BASE_DENOM.toUpperCase()}` } /> @@ -283,7 +283,7 @@ function Activites({ msg }) { @@ -514,7 +514,7 @@ function Activites({ msg }) { amount.amount )} ${amount.denom.toUpperCase()}`; }) - : `0 ${DENOM.toUpperCase()}` + : `0 ${BASE_DENOM.toUpperCase()}` } /> @@ -603,7 +603,7 @@ function Activites({ msg }) { amount.amount )} ${amount.denom.toUpperCase()}`; }) - : `0 ${DENOM.toUpperCase()}` + : `0 ${BASE_DENOM.toUpperCase()}` } /> @@ -649,7 +649,7 @@ function Activites({ msg }) { amount.amount )} ${amount.denom.toUpperCase()}`; }) - : `0 ${DENOM.toUpperCase()}` + : `0 ${BASE_DENOM.toUpperCase()}` } /> diff --git a/src/containers/validator/delegated.jsx b/src/containers/validator/delegated.jsx index d9ad0f0fd..969515669 100644 --- a/src/containers/validator/delegated.jsx +++ b/src/containers/validator/delegated.jsx @@ -1,7 +1,7 @@ import { Pane, Text } from '@cybercongress/gravity'; import { Link } from 'react-router-dom'; import Display from 'src/components/containerGradient/Display/Display'; -import { DENOM, DIVISOR_CYBER_G } from 'src/constants/config'; +import { BASE_DENOM, DIVISOR_CYBER_G } from 'src/constants/config'; import { FormatNumber } from '../../components'; import { formatNumber } from '../../utils/utils'; import KeybaseCheck from './keybaseCheck'; @@ -89,11 +89,11 @@ function Delegated({ data, marginBottom }) { title="Delegator Shares" value={`${formatNumber( Math.floor(delegatorShares) - )} ${DENOM.toUpperCase()}`} + )} ${BASE_DENOM.toUpperCase()}`} /> ) diff --git a/src/containers/warp/Warp.tsx b/src/containers/warp/Warp.tsx index 5446eecbd..bf20bd761 100644 --- a/src/containers/warp/Warp.tsx +++ b/src/containers/warp/Warp.tsx @@ -31,9 +31,9 @@ import { calculateCounterPairAmount, } from './utils'; import { useAdviser } from 'src/features/adviser/context'; -import { DENOM, DENOM_LIQUID } from 'src/constants/config'; +import { BASE_DENOM, DENOM_LIQUID } from 'src/constants/config'; -const tokenADefaultValue = DENOM; +const tokenADefaultValue = BASE_DENOM; const tokenBDefaultValue = DENOM_LIQUID; function Warp() { diff --git a/src/containers/wasm/contract/DashboardPage.jsx b/src/containers/wasm/contract/DashboardPage.jsx index 24da903d5..8ee06b66b 100644 --- a/src/containers/wasm/contract/DashboardPage.jsx +++ b/src/containers/wasm/contract/DashboardPage.jsx @@ -7,7 +7,7 @@ import { formatNumber } from '../../../utils/utils'; import { CardStatisics, Dots } from '../../../components'; import { ContainerCardStatisics, ContainerCol } from '../ui/ui'; import ContractTable from './ContractTable'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; const PAGE_SIZE = 50; @@ -104,7 +104,7 @@ function DashboardPage() { } /> { const getBalance = async (client, contractAddress, setBalance) => { try { - const response = await client.getBalance(contractAddress, DENOM); + const response = await client.getBalance(contractAddress, BASE_DENOM); if (response !== null) { setBalance(response); } diff --git a/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx b/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx index b117033f2..af3c5e5e3 100644 --- a/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx +++ b/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx @@ -5,7 +5,7 @@ import JsonSchemaParse from './JsonSchemaParse'; import Soft3MessageFactory from 'src/soft.js/api/msgs'; import { MEMO_KEPLR } from 'src/constants/config'; -// const coinsPlaceholder = [{ denom: DENOM, amount: '1' }]; +// const coinsPlaceholder = [{ denom: BASE_DENOM, amount: '1' }]; function RenderAbiExecute({ contractAddress, schema, updateFnc }) { const queryClient = useQueryClient(); diff --git a/src/features/sense/ui/ActionBar/ActionBar.tsx b/src/features/sense/ui/ActionBar/ActionBar.tsx index 36c9834f9..cd2538154 100644 --- a/src/features/sense/ui/ActionBar/ActionBar.tsx +++ b/src/features/sense/ui/ActionBar/ActionBar.tsx @@ -18,7 +18,7 @@ import { sendTokensWithMessage, } from 'src/services/neuron/neuronApi'; import { addIfpsMessageOrCid } from 'src/utils/ipfs/helpers'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; type Props = { id: string | undefined; @@ -98,7 +98,7 @@ function ActionBarWrapper({ id, adviser }: Props) { adviser.setAdviserText('Preparing transaction...'); - const formattedAmount = [coin(amount || 1, DENOM)]; + const formattedAmount = [coin(amount || 1, BASE_DENOM)]; const messageCid = await addIfpsMessageOrCid(message, { ipfsApi }); diff --git a/src/hooks/useGetMarketData.ts b/src/hooks/useGetMarketData.ts index bde647983..bfaa3c030 100644 --- a/src/hooks/useGetMarketData.ts +++ b/src/hooks/useGetMarketData.ts @@ -2,13 +2,13 @@ import { useState, useEffect, useCallback } from 'react'; import BigNumber from 'bignumber.js'; import { useQueryClient } from 'src/contexts/queryClient'; import { useIbcDenom } from 'src/contexts/ibcDenom'; -import { DENOM_LIQUID, DENOM } from 'src/constants/config'; +import { DENOM_LIQUID, BASE_DENOM } from 'src/constants/config'; import useGetTotalSupply from './useGetTotalSupply'; import usePoolListInterval from './usePoolListInterval'; import { reduceBalances, convertAmount } from '../utils/utils'; const defaultTokenList = { - [DENOM]: 0, + [BASE_DENOM]: 0, [DENOM_LIQUID]: 0, milliampere: 0, millivolt: 0, diff --git a/src/hooks/useGetTotalSupply.ts b/src/hooks/useGetTotalSupply.ts index 7aa3c749e..91baaef61 100644 --- a/src/hooks/useGetTotalSupply.ts +++ b/src/hooks/useGetTotalSupply.ts @@ -10,14 +10,14 @@ import { ObjKeyValue } from 'src/types/data'; import { CyberClient } from '@cybercongress/cyber-js'; import { useQueryClient } from 'src/contexts/queryClient'; import { useIbcDenom } from 'src/contexts/ibcDenom'; -import { DENOM, DENOM_LIQUID } from 'src/constants/config'; +import { BASE_DENOM, DENOM_LIQUID } from 'src/constants/config'; type OptionInterval = { refetchInterval?: number | false; }; const defaultTokenList = { - [DENOM]: 0, + [BASE_DENOM]: 0, [DENOM_LIQUID]: 0, milliampere: 0, millivolt: 0, diff --git a/src/i18n/en.js b/src/i18n/en.js index 0b50aa406..4c6cc8731 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -1,4 +1,4 @@ -import { DENOM } from "src/constants/config"; +import { BASE_DENOM } from "src/constants/config"; const i18n = { @@ -26,12 +26,12 @@ const i18n = { }, brain: { knowledge: 'Knowledge graph', - yourTotal: `your total ${DENOM.toLocaleUpperCase()}`, + yourTotal: `your total ${BASE_DENOM.toLocaleUpperCase()}`, cyberlinks: 'cyberlinks', objects: 'objects', subjects: 'subjects', cybernomics: 'Cybernomics', - supply: `supply of ${DENOM.toLocaleUpperCase()}`, + supply: `supply of ${BASE_DENOM.toLocaleUpperCase()}`, staked: '% of staked CYB', price: 'price of cyberlink in RC', consensus: 'Consensus', diff --git a/src/pages/Keys/ActionBar/actionBarKeplr.tsx b/src/pages/Keys/ActionBar/actionBarKeplr.tsx index b63df7b7c..94fe9ad1a 100644 --- a/src/pages/Keys/ActionBar/actionBarKeplr.tsx +++ b/src/pages/Keys/ActionBar/actionBarKeplr.tsx @@ -13,7 +13,7 @@ import { import { LEDGER } from 'src/utils/config'; import { PATTERN_CYBER } from 'src/constants/patterns'; import { getTxs } from 'src/utils/search/utils'; -import { DEFAULT_GAS_LIMITS, DENOM } from 'src/constants/config'; +import { DEFAULT_GAS_LIMITS, BASE_DENOM } from 'src/constants/config'; const { STAGE_ERROR, STAGE_SUBMITTED, STAGE_CONFIRMING, STAGE_CONFIRMED } = LEDGER; @@ -42,7 +42,7 @@ function ActionBarKeplr({ updateAddress, updateBalance, onClickBack }) { const result = await signingClient.sendTokens( address, recipient, - coins(amount, DENOM), + coins(amount, BASE_DENOM), fee ); console.log('result: ', result); diff --git a/src/pages/Keys/ActionBar/actionBarUser.jsx b/src/pages/Keys/ActionBar/actionBarUser.jsx index aca2620b7..006ce83b9 100644 --- a/src/pages/Keys/ActionBar/actionBarUser.jsx +++ b/src/pages/Keys/ActionBar/actionBarUser.jsx @@ -22,7 +22,7 @@ function ActionBarUser({ selectAccount, updateAddress, defaultAccounts }) { sendAddres, amount, MEMO, - DENOM, + BASE_DENOM, true, addressFrom ); diff --git a/src/pages/robot/_refactor/account/component/RenderValue.jsx b/src/pages/robot/_refactor/account/component/RenderValue.jsx index 515efc3e3..edf997206 100644 --- a/src/pages/robot/_refactor/account/component/RenderValue.jsx +++ b/src/pages/robot/_refactor/account/component/RenderValue.jsx @@ -340,7 +340,7 @@ function RenderValue({ value, type, accountUser }) { value={ } /> @@ -484,7 +484,7 @@ function RenderValue({ value, type, accountUser }) { ); }) ) : ( - + ) } /> diff --git a/src/pages/robot/_refactor/account/component/tableTxs.jsx b/src/pages/robot/_refactor/account/component/tableTxs.jsx index 8af0d70cc..aa8cc3799 100644 --- a/src/pages/robot/_refactor/account/component/tableTxs.jsx +++ b/src/pages/robot/_refactor/account/component/tableTxs.jsx @@ -104,7 +104,7 @@ function TableTxs({ data, type, accountUser, amount }) { // key={i} // content={`${formatNumber( // Math.floor(items.value.amount.amount) - // )} ${DENOM.toUpperCase()}`} + // )} ${BASE_DENOM.toUpperCase()}`} // > ({ ...item, @@ -177,7 +177,7 @@ function useGetBalance(address, updateAddress) { Object.keys(balancesToken).forEach((key) => { if ( Object.hasOwnProperty.call(balancesToken, key) && - key !== DENOM + key !== BASE_DENOM ) { const elementBalancesToken = balancesToken[key]; diff --git a/src/pages/robot/_refactor/account/tabs/heroes.jsx b/src/pages/robot/_refactor/account/tabs/heroes.jsx index d4d72a8f0..a7cbc4a6d 100644 --- a/src/pages/robot/_refactor/account/tabs/heroes.jsx +++ b/src/pages/robot/_refactor/account/tabs/heroes.jsx @@ -8,7 +8,7 @@ import { formatNumber, formatCurrency } from '../../../../../utils/utils'; import { useGetHeroes } from '../hooks'; import hS from './heroes.module.scss'; import { useAdviser } from 'src/features/adviser/context'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; const getDaysIn = (time) => { const completionTime = new Date(time); @@ -45,8 +45,8 @@ function Unbonding({ amount, stages, entries }) { overflow="hidden" > {stages > 1 - ? `${formatCurrency(amount, DENOM.toUpperCase())} in ${stages} stages` - : `${formatCurrency(entries[0].balance, DENOM.toUpperCase())} in + ? `${formatCurrency(amount, BASE_DENOM.toUpperCase())} in ${stages} stages` + : `${formatCurrency(entries[0].balance, BASE_DENOM.toUpperCase())} in ${getDaysIn(entries[0].completionTime)} days`} {`${formatNumber( parseFloat(items.balance) - )} ${DENOM.toUpperCase()}`}{' '} + )} ${BASE_DENOM.toUpperCase()}`}{' '} in {getDaysIn(items.completionTime)} days ))} diff --git a/src/pages/teleport/mainScreen/components/SendAction/SendAction.tsx b/src/pages/teleport/mainScreen/components/SendAction/SendAction.tsx index c31a682ed..4a9e2ce54 100644 --- a/src/pages/teleport/mainScreen/components/SendAction/SendAction.tsx +++ b/src/pages/teleport/mainScreen/components/SendAction/SendAction.tsx @@ -4,7 +4,7 @@ import { Account } from 'src/components'; import Display from 'src/components/containerGradient/Display/Display'; import { selectCommunityPassports } from 'src/features/passport/passports.redux'; import { useAppSelector } from 'src/redux/hooks'; -import { DENOM } from 'src/constants/config'; +import { BASE_DENOM } from 'src/constants/config'; import TitleAction from '../TitleAction/TitleAction'; import styles from './SendAction.module.scss'; import TotalCount from '../TotalCount/TotalCount'; @@ -47,7 +47,7 @@ function SendAction() { pathname: 'send', search: createSearchParams({ recipient: key, - token: DENOM, + token: BASE_DENOM, }).toString(), }} > diff --git a/src/pages/teleport/send/send.tsx b/src/pages/teleport/send/send.tsx index b09c1439c..ca20fded4 100644 --- a/src/pages/teleport/send/send.tsx +++ b/src/pages/teleport/send/send.tsx @@ -38,9 +38,9 @@ import { } from '../components/Inputs'; import useGetSendTxsByAddressByLcd from '../hooks/useGetSendTxsByAddressByLcd'; import { useTeleport } from '../Teleport.context'; -import { CHAIN_ID, DENOM } from 'src/constants/config'; +import { CHAIN_ID, BASE_DENOM } from 'src/constants/config'; -const tokenDefaultValue = DENOM; +const tokenDefaultValue = BASE_DENOM; function Send() { const queryClient = useQueryClient(); diff --git a/src/pages/teleport/swap/swap.tsx b/src/pages/teleport/swap/swap.tsx index 2e566b903..ad13e74ef 100644 --- a/src/pages/teleport/swap/swap.tsx +++ b/src/pages/teleport/swap/swap.tsx @@ -14,7 +14,7 @@ import { import { useQueryClient } from 'src/contexts/queryClient'; import { createSearchParams, useSearchParams } from 'react-router-dom'; import { useAppSelector } from 'src/redux/hooks'; -import { DENOM, DENOM_LIQUID } from 'src/constants/config'; +import { BASE_DENOM, DENOM_LIQUID } from 'src/constants/config'; import TokenSetterSwap, { TokenSetterId } from './components/TokenSetterSwap'; import { useGetParams, useGetSwapPrice } from '../hooks'; import { sortReserveCoinDenoms, calculatePairAmount } from './utils'; @@ -26,7 +26,7 @@ import DataSwapTxs from './components/dataSwapTxs/DataSwapTxs'; import { useTeleport } from '../Teleport.context'; import Slippage from './components/slippage/Slippage'; -const tokenADefaultValue = DENOM; +const tokenADefaultValue = BASE_DENOM; const tokenBDefaultValue = DENOM_LIQUID; function Swap() { diff --git a/src/soft.js/api/msgs.ts b/src/soft.js/api/msgs.ts index 05e4e8175..71c917088 100644 --- a/src/soft.js/api/msgs.ts +++ b/src/soft.js/api/msgs.ts @@ -6,7 +6,7 @@ import { QueryLiquidityPoolResponse } from '@cybercongress/cyber-js/build/codec/ import BigNumber from 'bignumber.js'; import { QueryValidatorsResponse } from 'cosmjs-types/cosmos/staking/v1beta1/query'; import Long from 'long'; -import { DEFAULT_GAS_LIMITS, DENOM, DENOM_LIQUID } from 'src/constants/config'; +import { DEFAULT_GAS_LIMITS, BASE_DENOM, DENOM_LIQUID } from 'src/constants/config'; import { calculatePairAmount } from 'src/pages/teleport/swap/utils'; import { ObjKeyValue } from 'src/types/data'; import coinDecimalsConfig from 'src/utils/configToken'; @@ -39,7 +39,7 @@ class Soft3MessageFactory { protected readonly queryClient: CyberClient | undefined; static denom() { - return DENOM; + return BASE_DENOM; } static fee(fee: number | string | undefined = DEFAULT_GAS_LIMITS.toString()) { diff --git a/src/types/networks.ts b/src/types/networks.ts index ebcc0b9a1..2820dc199 100644 --- a/src/types/networks.ts +++ b/src/types/networks.ts @@ -9,7 +9,7 @@ export const enum Networks { export type NetworkConfig = { CHAIN_ID: Networks; - DENOM: string; + BASE_DENOM: string; DENOM_LIQUID: string; API: string; LCD: string; diff --git a/src/utils/keplrUtils.ts b/src/utils/keplrUtils.ts index c1d1fbdf5..ac58ee47c 100644 --- a/src/utils/keplrUtils.ts +++ b/src/utils/keplrUtils.ts @@ -1,5 +1,5 @@ import { Keplr } from '@keplr-wallet/types'; -import { API, CHAIN_ID, DENOM, LCD } from 'src/constants/config'; +import { API, CHAIN_ID, BASE_DENOM, LCD } from 'src/constants/config'; export const getKeplr = async (): Promise => { if (window.keplr) { @@ -35,8 +35,8 @@ const configKeplr = (prefix) => { rpc: API, rest: LCD, stakeCurrency: { - coinDenom: DENOM.toUpperCase(), - coinMinimalDenom: DENOM, + coinDenom: BASE_DENOM.toUpperCase(), + coinMinimalDenom: BASE_DENOM, coinDecimals: 0, }, bip44: { @@ -54,8 +54,8 @@ const configKeplr = (prefix) => { }, currencies: [ { - coinDenom: DENOM.toUpperCase(), - coinMinimalDenom: DENOM, + coinDenom: BASE_DENOM.toUpperCase(), + coinMinimalDenom: BASE_DENOM, coinDecimals: 0, }, { @@ -78,9 +78,9 @@ const configKeplr = (prefix) => { feeCurrencies: [ { // Coin denomination to be displayed to the user. - coinDenom: DENOM.toUpperCase(), + coinDenom: BASE_DENOM.toUpperCase(), // Actual denom (i.e. uatom, uscrt) used by the blockchain. - coinMinimalDenom: DENOM, + coinMinimalDenom: BASE_DENOM, // # of decimal points to convert minimal denomination to user-facing denomination. coinDecimals: 0, }, diff --git a/src/utils/networkListIbc.ts b/src/utils/networkListIbc.ts index afce1cbf4..245063dc2 100644 --- a/src/utils/networkListIbc.ts +++ b/src/utils/networkListIbc.ts @@ -19,7 +19,7 @@ const networkList: ObjectKey = { bostrom: { chainId: defaultNetworks.bostrom.CHAIN_ID, rpc: defaultNetworks.bostrom.API, - coinMinimalDenom: defaultNetworks.bostrom.DENOM, + coinMinimalDenom: defaultNetworks.bostrom.BASE_DENOM, }, 'osmosis-1': { chainId: 'osmosis-1', diff --git a/webpack.config.common.js b/webpack.config.common.js index 528d63822..9892fb2de 100644 --- a/webpack.config.common.js +++ b/webpack.config.common.js @@ -108,7 +108,7 @@ const config = { process.env.INDEX_WEBSOCKET ), 'process.env.CYBER_GATEWAY': JSON.stringify(process.env.CYBER_GATEWAY), - 'process.env.DENOM': JSON.stringify(process.env.DENOM), + 'process.env.BASE_DENOM': JSON.stringify(process.env.BASE_DENOM), 'process.env.DENOM_LIQUID': JSON.stringify(process.env.DENOM_LIQUID), 'process.env.BECH32_PREFIX': JSON.stringify(process.env.BECH32_PREFIX), }), From 5f3483f3c326664e92ca61d2b5b9b1b2bf6cabb4 Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 14:22:12 +0530 Subject: [PATCH 14/40] feat(api): add gql codegen --- codegen.ts | 32 + package.json | 10 +- src/generated/graphql.ts | 10384 ++++++++++++++++ ...tTsxByAddress.js => useGetTsxByAddress.ts} | 26 +- .../graphql/queries/messagesByAddress.graphql | 16 + webpack.config.common.js | 5 + yarn.lock | 1861 ++- 7 files changed, 12248 insertions(+), 86 deletions(-) create mode 100644 codegen.ts create mode 100644 src/generated/graphql.ts rename src/pages/robot/_refactor/account/hooks/{useGetTsxByAddress.js => useGetTsxByAddress.ts} (65%) create mode 100644 src/services/graphql/queries/messagesByAddress.graphql diff --git a/codegen.ts b/codegen.ts new file mode 100644 index 000000000..84ddcfd54 --- /dev/null +++ b/codegen.ts @@ -0,0 +1,32 @@ +import { CodegenConfig } from '@graphql-codegen/cli'; + +const schemaUrl = 'https://index.bostrom.cybernode.ai/v1/graphql'; //process.env.NEXT_PUBLIC_GRAPHQL_HOST; + +const config: CodegenConfig = { + overwrite: true, + schema: schemaUrl, + documents: ['src/**/*.graphql'], + config: { + withHooks: true, + namingConvention: { + transformUnderscore: true, + }, + }, + generates: { + 'src/generated/graphql.ts': { + plugins: [ + { + typescript: { + namingConvention: { + transformUnderscore: true, + }, + }, + }, + 'typescript-operations', + 'typescript-react-apollo', + ], + }, + }, +}; + +export default config; diff --git a/package.json b/package.json index 077a9bb23..199bdce1c 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,13 @@ "stylelint:lint": "stylelint \"**/*.*css\"", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", - "test": "jest --transformIgnorePatterns --verbose" + "test": "jest --transformIgnorePatterns --verbose", + "gql": "yarn graphql-codegen --config ./codegen.ts" }, "browserslist": "> 0.5%, last 2 versions, not dead", "license": "ISC", "devDependencies": { - "@babel/core": "7.21.0", + "@babel/core": "^7.24.3", "@babel/eslint-parser": "^7.16.5", "@babel/helper-compilation-targets": "^7.21.4", "@babel/plugin-proposal-class-properties": "7.18.6", @@ -36,6 +37,10 @@ "@babel/preset-typescript": "^7.21.0", "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", + "@graphql-codegen/cli": "^5.0.2", + "@graphql-codegen/typescript": "^4.0.6", + "@graphql-codegen/typescript-operations": "^4.2.0", + "@graphql-codegen/typescript-react-apollo": "^4.3.0", "@keplr-wallet/types": "^0.11.52", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", "@rjsf/core": "^3.2.1", @@ -82,6 +87,7 @@ "eslint-plugin-react": "^7.32.2", "eslint-plugin-typescript": "^0.14.0", "file-loader": "^6.2.0", + "graphql-tag": "^2.12.6", "history": "^4.9.0", "html-webpack-plugin": "^5.5.0", "https-browserify": "^1.0.0", diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts new file mode 100644 index 000000000..9d10ccebc --- /dev/null +++ b/src/generated/graphql.ts @@ -0,0 +1,10384 @@ +import { gql } from '@apollo/client'; +import * as Apollo from '@apollo/client'; +export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +const defaultOptions = {} as const; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + _coin: { input: any; output: any; } + _text: { input: any; output: any; } + bigint: { input: any; output: any; } + coin: { input: any; output: any; } + date: { input: any; output: any; } + float8: { input: any; output: any; } + json: { input: any; output: any; } + jsonb: { input: any; output: any; } + numeric: { input: any; output: any; } + timestamp: { input: any; output: any; } +}; + +/** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ +export type BooleanComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */ +export type IntComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ +export type StringComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + /** does the column match the given case-insensitive pattern */ + _ilike?: InputMaybe; + _in?: InputMaybe>; + /** does the column match the given POSIX regular expression, case insensitive */ + _iregex?: InputMaybe; + _is_null?: InputMaybe; + /** does the column match the given pattern */ + _like?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + /** does the column NOT match the given case-insensitive pattern */ + _nilike?: InputMaybe; + _nin?: InputMaybe>; + /** does the column NOT match the given POSIX regular expression, case insensitive */ + _niregex?: InputMaybe; + /** does the column NOT match the given pattern */ + _nlike?: InputMaybe; + /** does the column NOT match the given POSIX regular expression, case sensitive */ + _nregex?: InputMaybe; + /** does the column NOT match the given SQL regular expression */ + _nsimilar?: InputMaybe; + /** does the column match the given POSIX regular expression, case sensitive */ + _regex?: InputMaybe; + /** does the column match the given SQL regular expression */ + _similar?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "_coin". All fields are combined with logical 'AND'. */ +export type CoinComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. */ +export type TextComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "_transaction" */ +export type Transaction = { + __typename?: '_transaction'; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + index?: Maybe; + involved_accounts_addresses?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + raw_log?: Maybe; + signatures?: Maybe; + signer_infos?: Maybe; + subject1?: Maybe; + subject2?: Maybe; + success?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionFeeArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionLogsArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionMessagesArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionSignerInfosArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionValueArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "_transaction" */ +export type TransactionAggregate = { + __typename?: '_transaction_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "_transaction" */ +export type TransactionAggregateFields = { + __typename?: '_transaction_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "_transaction" */ +export type TransactionAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TransactionAvgFields = { + __typename?: '_transaction_avg_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** Boolean expression to filter rows from the table "_transaction". All fields are combined with a logical 'AND'. */ +export type TransactionBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + raw_log?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + subject1?: InputMaybe; + subject2?: InputMaybe; + success?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TransactionMaxFields = { + __typename?: '_transaction_max_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + index?: Maybe; + memo?: Maybe; + raw_log?: Maybe; + subject1?: Maybe; + subject2?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type TransactionMinFields = { + __typename?: '_transaction_min_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + index?: Maybe; + memo?: Maybe; + raw_log?: Maybe; + subject1?: Maybe; + subject2?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "_transaction". */ +export type TransactionOrderBy = { + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + raw_log?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + subject1?: InputMaybe; + subject2?: InputMaybe; + success?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; +}; + +/** select columns of table "_transaction" */ +export enum TransactionSelectColumn { + /** column name */ + Fee = 'fee', + /** column name */ + GasUsed = 'gas_used', + /** column name */ + GasWanted = 'gas_wanted', + /** column name */ + Hash = 'hash', + /** column name */ + Height = 'height', + /** column name */ + Index = 'index', + /** column name */ + InvolvedAccountsAddresses = 'involved_accounts_addresses', + /** column name */ + Logs = 'logs', + /** column name */ + Memo = 'memo', + /** column name */ + Messages = 'messages', + /** column name */ + RawLog = 'raw_log', + /** column name */ + Signatures = 'signatures', + /** column name */ + SignerInfos = 'signer_infos', + /** column name */ + Subject1 = 'subject1', + /** column name */ + Subject2 = 'subject2', + /** column name */ + Success = 'success', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Type = 'type', + /** column name */ + Value = 'value' +} + +/** aggregate stddev on columns */ +export type TransactionStddevFields = { + __typename?: '_transaction_stddev_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TransactionStddevPopFields = { + __typename?: '_transaction_stddev_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TransactionStddevSampFields = { + __typename?: '_transaction_stddev_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate sum on columns */ +export type TransactionSumFields = { + __typename?: '_transaction_sum_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TransactionVarPopFields = { + __typename?: '_transaction_var_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TransactionVarSampFields = { + __typename?: '_transaction_var_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate variance on columns */ +export type TransactionVarianceFields = { + __typename?: '_transaction_variance_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** columns and relationships of "_uptime_temp" */ +export type UptimeTemp = { + __typename?: '_uptime_temp'; + pre_commits?: Maybe; + validator_address?: Maybe; +}; + +/** aggregated selection of "_uptime_temp" */ +export type UptimeTempAggregate = { + __typename?: '_uptime_temp_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "_uptime_temp" */ +export type UptimeTempAggregateFields = { + __typename?: '_uptime_temp_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "_uptime_temp" */ +export type UptimeTempAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type UptimeTempAvgFields = { + __typename?: '_uptime_temp_avg_fields'; + pre_commits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "_uptime_temp". All fields are combined with a logical 'AND'. */ +export type UptimeTempBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + pre_commits?: InputMaybe; + validator_address?: InputMaybe; +}; + +/** aggregate max on columns */ +export type UptimeTempMaxFields = { + __typename?: '_uptime_temp_max_fields'; + pre_commits?: Maybe; + validator_address?: Maybe; +}; + +/** aggregate min on columns */ +export type UptimeTempMinFields = { + __typename?: '_uptime_temp_min_fields'; + pre_commits?: Maybe; + validator_address?: Maybe; +}; + +/** Ordering options when selecting data from "_uptime_temp". */ +export type UptimeTempOrderBy = { + pre_commits?: InputMaybe; + validator_address?: InputMaybe; +}; + +/** select columns of table "_uptime_temp" */ +export enum UptimeTempSelectColumn { + /** column name */ + PreCommits = 'pre_commits', + /** column name */ + ValidatorAddress = 'validator_address' +} + +/** aggregate stddev on columns */ +export type UptimeTempStddevFields = { + __typename?: '_uptime_temp_stddev_fields'; + pre_commits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type UptimeTempStddevPopFields = { + __typename?: '_uptime_temp_stddev_pop_fields'; + pre_commits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type UptimeTempStddevSampFields = { + __typename?: '_uptime_temp_stddev_samp_fields'; + pre_commits?: Maybe; +}; + +/** aggregate sum on columns */ +export type UptimeTempSumFields = { + __typename?: '_uptime_temp_sum_fields'; + pre_commits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type UptimeTempVarPopFields = { + __typename?: '_uptime_temp_var_pop_fields'; + pre_commits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type UptimeTempVarSampFields = { + __typename?: '_uptime_temp_var_samp_fields'; + pre_commits?: Maybe; +}; + +/** aggregate variance on columns */ +export type UptimeTempVarianceFields = { + __typename?: '_uptime_temp_variance_fields'; + pre_commits?: Maybe; +}; + +/** columns and relationships of "account" */ +export type Account = { + __typename?: 'account'; + /** An object relationship */ + account_balance?: Maybe; + address: Scalars['String']['output']; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + /** An array relationship */ + routes: Array; + /** An array relationship */ + routesBySource: Array; + /** An aggregate relationship */ + routesBySource_aggregate: RoutesAggregate; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; +}; + + +/** columns and relationships of "account" */ +export type AccountCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountRoutesBySourceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountRoutesBySourceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "account" */ +export type AccountAggregate = { + __typename?: 'account_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "account" */ +export type AccountAggregateFields = { + __typename?: 'account_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "account" */ +export type AccountAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** columns and relationships of "account_balance" */ +export type AccountBalance = { + __typename?: 'account_balance'; + /** An object relationship */ + account: Account; + address: Scalars['String']['output']; + coins: Scalars['_coin']['output']; + height: Scalars['bigint']['output']; +}; + +/** aggregated selection of "account_balance" */ +export type AccountBalanceAggregate = { + __typename?: 'account_balance_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "account_balance" */ +export type AccountBalanceAggregateFields = { + __typename?: 'account_balance_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "account_balance" */ +export type AccountBalanceAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type AccountBalanceAvgFields = { + __typename?: 'account_balance_avg_fields'; + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "account_balance". All fields are combined with a logical 'AND'. */ +export type AccountBalanceBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + address?: InputMaybe; + coins?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate max on columns */ +export type AccountBalanceMaxFields = { + __typename?: 'account_balance_max_fields'; + address?: Maybe; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type AccountBalanceMinFields = { + __typename?: 'account_balance_min_fields'; + address?: Maybe; + height?: Maybe; +}; + +/** Ordering options when selecting data from "account_balance". */ +export type AccountBalanceOrderBy = { + account?: InputMaybe; + address?: InputMaybe; + coins?: InputMaybe; + height?: InputMaybe; +}; + +/** select columns of table "account_balance" */ +export enum AccountBalanceSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Coins = 'coins', + /** column name */ + Height = 'height' +} + +/** aggregate stddev on columns */ +export type AccountBalanceStddevFields = { + __typename?: 'account_balance_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type AccountBalanceStddevPopFields = { + __typename?: 'account_balance_stddev_pop_fields'; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type AccountBalanceStddevSampFields = { + __typename?: 'account_balance_stddev_samp_fields'; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type AccountBalanceSumFields = { + __typename?: 'account_balance_sum_fields'; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type AccountBalanceVarPopFields = { + __typename?: 'account_balance_var_pop_fields'; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type AccountBalanceVarSampFields = { + __typename?: 'account_balance_var_samp_fields'; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type AccountBalanceVarianceFields = { + __typename?: 'account_balance_variance_fields'; + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ +export type AccountBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account_balance?: InputMaybe; + address?: InputMaybe; + cyberlinks?: InputMaybe; + investmints?: InputMaybe; + particles?: InputMaybe; + routes?: InputMaybe; + routesBySource?: InputMaybe; +}; + +/** aggregate max on columns */ +export type AccountMaxFields = { + __typename?: 'account_max_fields'; + address?: Maybe; +}; + +/** aggregate min on columns */ +export type AccountMinFields = { + __typename?: 'account_min_fields'; + address?: Maybe; +}; + +/** Ordering options when selecting data from "account". */ +export type AccountOrderBy = { + account_balance?: InputMaybe; + address?: InputMaybe; + cyberlinks_aggregate?: InputMaybe; + investmints_aggregate?: InputMaybe; + particles_aggregate?: InputMaybe; + routesBySource_aggregate?: InputMaybe; + routes_aggregate?: InputMaybe; +}; + +/** select columns of table "account" */ +export enum AccountSelectColumn { + /** column name */ + Address = 'address' +} + +/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ +export type BigintComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "block" */ +export type Block = { + __typename?: 'block'; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + hash: Scalars['String']['output']; + height: Scalars['bigint']['output']; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + num_txs?: Maybe; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + proposer_address?: Maybe; + /** An array relationship */ + routes: Array; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; + timestamp: Scalars['timestamp']['output']; + total_gas?: Maybe; + /** An array relationship */ + transactions: Array; + /** An aggregate relationship */ + transactions_aggregate: TransactionAggregate; + /** An object relationship */ + validator?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockTransactionsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "block" */ +export type BlockAggregate = { + __typename?: 'block_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "block" */ +export type BlockAggregateFields = { + __typename?: 'block_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "block" */ +export type BlockAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "block" */ +export type BlockAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type BlockAvgFields = { + __typename?: 'block_avg_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by avg() on columns of table "block" */ +export type BlockAvgOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ +export type BlockBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlinks?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints?: InputMaybe; + num_txs?: InputMaybe; + particles?: InputMaybe; + proposer_address?: InputMaybe; + routes?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; + transactions?: InputMaybe; + validator?: InputMaybe; +}; + +/** aggregate max on columns */ +export type BlockMaxFields = { + __typename?: 'block_max_fields'; + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; + +/** order by max() on columns of table "block" */ +export type BlockMaxOrderBy = { + hash?: InputMaybe; + height?: InputMaybe; + num_txs?: InputMaybe; + proposer_address?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate min on columns */ +export type BlockMinFields = { + __typename?: 'block_min_fields'; + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; + +/** order by min() on columns of table "block" */ +export type BlockMinOrderBy = { + hash?: InputMaybe; + height?: InputMaybe; + num_txs?: InputMaybe; + proposer_address?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** Ordering options when selecting data from "block". */ +export type BlockOrderBy = { + cyberlinks_aggregate?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints_aggregate?: InputMaybe; + num_txs?: InputMaybe; + particles_aggregate?: InputMaybe; + proposer_address?: InputMaybe; + routes_aggregate?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; + transactions_aggregate?: InputMaybe; + validator?: InputMaybe; +}; + +/** select columns of table "block" */ +export enum BlockSelectColumn { + /** column name */ + Hash = 'hash', + /** column name */ + Height = 'height', + /** column name */ + NumTxs = 'num_txs', + /** column name */ + ProposerAddress = 'proposer_address', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TotalGas = 'total_gas' +} + +/** aggregate stddev on columns */ +export type BlockStddevFields = { + __typename?: 'block_stddev_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev() on columns of table "block" */ +export type BlockStddevOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type BlockStddevPopFields = { + __typename?: 'block_stddev_pop_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_pop() on columns of table "block" */ +export type BlockStddevPopOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type BlockStddevSampFields = { + __typename?: 'block_stddev_samp_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_samp() on columns of table "block" */ +export type BlockStddevSampOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type BlockSumFields = { + __typename?: 'block_sum_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by sum() on columns of table "block" */ +export type BlockSumOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type BlockVarPopFields = { + __typename?: 'block_var_pop_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by var_pop() on columns of table "block" */ +export type BlockVarPopOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type BlockVarSampFields = { + __typename?: 'block_var_samp_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by var_samp() on columns of table "block" */ +export type BlockVarSampOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type BlockVarianceFields = { + __typename?: 'block_variance_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by variance() on columns of table "block" */ +export type BlockVarianceOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "coin". All fields are combined with logical 'AND'. */ +export type CoinComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "contracts" */ +export type Contracts = { + __typename?: 'contracts'; + address: Scalars['String']['output']; + admin: Scalars['String']['output']; + code_id: Scalars['bigint']['output']; + creation_time: Scalars['String']['output']; + creator: Scalars['String']['output']; + fees: Scalars['bigint']['output']; + gas: Scalars['bigint']['output']; + height: Scalars['bigint']['output']; + label: Scalars['String']['output']; + tx: Scalars['bigint']['output']; +}; + +/** aggregated selection of "contracts" */ +export type ContractsAggregate = { + __typename?: 'contracts_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "contracts" */ +export type ContractsAggregateFields = { + __typename?: 'contracts_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "contracts" */ +export type ContractsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type ContractsAvgFields = { + __typename?: 'contracts_avg_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** Boolean expression to filter rows from the table "contracts". All fields are combined with a logical 'AND'. */ +export type ContractsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + admin?: InputMaybe; + code_id?: InputMaybe; + creation_time?: InputMaybe; + creator?: InputMaybe; + fees?: InputMaybe; + gas?: InputMaybe; + height?: InputMaybe; + label?: InputMaybe; + tx?: InputMaybe; +}; + +/** aggregate max on columns */ +export type ContractsMaxFields = { + __typename?: 'contracts_max_fields'; + address?: Maybe; + admin?: Maybe; + code_id?: Maybe; + creation_time?: Maybe; + creator?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + label?: Maybe; + tx?: Maybe; +}; + +/** aggregate min on columns */ +export type ContractsMinFields = { + __typename?: 'contracts_min_fields'; + address?: Maybe; + admin?: Maybe; + code_id?: Maybe; + creation_time?: Maybe; + creator?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + label?: Maybe; + tx?: Maybe; +}; + +/** Ordering options when selecting data from "contracts". */ +export type ContractsOrderBy = { + address?: InputMaybe; + admin?: InputMaybe; + code_id?: InputMaybe; + creation_time?: InputMaybe; + creator?: InputMaybe; + fees?: InputMaybe; + gas?: InputMaybe; + height?: InputMaybe; + label?: InputMaybe; + tx?: InputMaybe; +}; + +/** select columns of table "contracts" */ +export enum ContractsSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Admin = 'admin', + /** column name */ + CodeId = 'code_id', + /** column name */ + CreationTime = 'creation_time', + /** column name */ + Creator = 'creator', + /** column name */ + Fees = 'fees', + /** column name */ + Gas = 'gas', + /** column name */ + Height = 'height', + /** column name */ + Label = 'label', + /** column name */ + Tx = 'tx' +} + +/** aggregate stddev on columns */ +export type ContractsStddevFields = { + __typename?: 'contracts_stddev_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type ContractsStddevPopFields = { + __typename?: 'contracts_stddev_pop_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type ContractsStddevSampFields = { + __typename?: 'contracts_stddev_samp_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate sum on columns */ +export type ContractsSumFields = { + __typename?: 'contracts_sum_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type ContractsVarPopFields = { + __typename?: 'contracts_var_pop_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type ContractsVarSampFields = { + __typename?: 'contracts_var_samp_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate variance on columns */ +export type ContractsVarianceFields = { + __typename?: 'contracts_variance_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** columns and relationships of "cyb_cohort" */ +export type CybCohort = { + __typename?: 'cyb_cohort'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; + week?: Maybe; +}; + +/** aggregated selection of "cyb_cohort" */ +export type CybCohortAggregate = { + __typename?: 'cyb_cohort_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyb_cohort" */ +export type CybCohortAggregateFields = { + __typename?: 'cyb_cohort_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyb_cohort" */ +export type CybCohortAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CybCohortAvgFields = { + __typename?: 'cyb_cohort_avg_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyb_cohort". All fields are combined with a logical 'AND'. */ +export type CybCohortBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neurons_activated?: InputMaybe; + redelegation_percent?: InputMaybe; + swap_percent?: InputMaybe; + undelegation_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CybCohortMaxFields = { + __typename?: 'cyb_cohort_max_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; + week?: Maybe; +}; + +/** aggregate min on columns */ +export type CybCohortMinFields = { + __typename?: 'cyb_cohort_min_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; + week?: Maybe; +}; + +/** Ordering options when selecting data from "cyb_cohort". */ +export type CybCohortOrderBy = { + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neurons_activated?: InputMaybe; + redelegation_percent?: InputMaybe; + swap_percent?: InputMaybe; + undelegation_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** select columns of table "cyb_cohort" */ +export enum CybCohortSelectColumn { + /** column name */ + Cyberlink_10Percent = 'cyberlink_10_percent', + /** column name */ + Cyberlink_100Percent = 'cyberlink_100_percent', + /** column name */ + CyberlinkPercent = 'cyberlink_percent', + /** column name */ + HeroHiredPercent = 'hero_hired_percent', + /** column name */ + InvestmintPercent = 'investmint_percent', + /** column name */ + NeuronsActivated = 'neurons_activated', + /** column name */ + RedelegationPercent = 'redelegation_percent', + /** column name */ + SwapPercent = 'swap_percent', + /** column name */ + UndelegationPercent = 'undelegation_percent', + /** column name */ + Week = 'week' +} + +/** aggregate stddev on columns */ +export type CybCohortStddevFields = { + __typename?: 'cyb_cohort_stddev_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CybCohortStddevPopFields = { + __typename?: 'cyb_cohort_stddev_pop_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CybCohortStddevSampFields = { + __typename?: 'cyb_cohort_stddev_samp_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate sum on columns */ +export type CybCohortSumFields = { + __typename?: 'cyb_cohort_sum_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CybCohortVarPopFields = { + __typename?: 'cyb_cohort_var_pop_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CybCohortVarSampFields = { + __typename?: 'cyb_cohort_var_samp_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate variance on columns */ +export type CybCohortVarianceFields = { + __typename?: 'cyb_cohort_variance_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** columns and relationships of "cyb_new_cohort" */ +export type CybNewCohort = { + __typename?: 'cyb_new_cohort'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; + week?: Maybe; +}; + +/** aggregated selection of "cyb_new_cohort" */ +export type CybNewCohortAggregate = { + __typename?: 'cyb_new_cohort_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyb_new_cohort" */ +export type CybNewCohortAggregateFields = { + __typename?: 'cyb_new_cohort_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyb_new_cohort" */ +export type CybNewCohortAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CybNewCohortAvgFields = { + __typename?: 'cyb_new_cohort_avg_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyb_new_cohort". All fields are combined with a logical 'AND'. */ +export type CybNewCohortBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neuron_activation?: InputMaybe; + swap_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CybNewCohortMaxFields = { + __typename?: 'cyb_new_cohort_max_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; + week?: Maybe; +}; + +/** aggregate min on columns */ +export type CybNewCohortMinFields = { + __typename?: 'cyb_new_cohort_min_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; + week?: Maybe; +}; + +/** Ordering options when selecting data from "cyb_new_cohort". */ +export type CybNewCohortOrderBy = { + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neuron_activation?: InputMaybe; + swap_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** select columns of table "cyb_new_cohort" */ +export enum CybNewCohortSelectColumn { + /** column name */ + Cyberlink_10Percent = 'cyberlink_10_percent', + /** column name */ + Cyberlink_100Percent = 'cyberlink_100_percent', + /** column name */ + CyberlinkPercent = 'cyberlink_percent', + /** column name */ + HeroHiredPercent = 'hero_hired_percent', + /** column name */ + InvestmintPercent = 'investmint_percent', + /** column name */ + NeuronActivation = 'neuron_activation', + /** column name */ + SwapPercent = 'swap_percent', + /** column name */ + Week = 'week' +} + +/** aggregate stddev on columns */ +export type CybNewCohortStddevFields = { + __typename?: 'cyb_new_cohort_stddev_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CybNewCohortStddevPopFields = { + __typename?: 'cyb_new_cohort_stddev_pop_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CybNewCohortStddevSampFields = { + __typename?: 'cyb_new_cohort_stddev_samp_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate sum on columns */ +export type CybNewCohortSumFields = { + __typename?: 'cyb_new_cohort_sum_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CybNewCohortVarPopFields = { + __typename?: 'cyb_new_cohort_var_pop_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CybNewCohortVarSampFields = { + __typename?: 'cyb_new_cohort_var_samp_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate variance on columns */ +export type CybNewCohortVarianceFields = { + __typename?: 'cyb_new_cohort_variance_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** columns and relationships of "cyber_gift" */ +export type CyberGift = { + __typename?: 'cyber_gift'; + address: Scalars['String']['output']; + audience: Scalars['String']['output']; + gift: Scalars['numeric']['output']; + grade: Scalars['Int']['output']; + segment: Scalars['String']['output']; +}; + +/** aggregated selection of "cyber_gift" */ +export type CyberGiftAggregate = { + __typename?: 'cyber_gift_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyber_gift" */ +export type CyberGiftAggregateFields = { + __typename?: 'cyber_gift_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyber_gift" */ +export type CyberGiftAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CyberGiftAvgFields = { + __typename?: 'cyber_gift_avg_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyber_gift". All fields are combined with a logical 'AND'. */ +export type CyberGiftBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + audience?: InputMaybe; + gift?: InputMaybe; + grade?: InputMaybe; + segment?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CyberGiftMaxFields = { + __typename?: 'cyber_gift_max_fields'; + address?: Maybe; + audience?: Maybe; + gift?: Maybe; + grade?: Maybe; + segment?: Maybe; +}; + +/** aggregate min on columns */ +export type CyberGiftMinFields = { + __typename?: 'cyber_gift_min_fields'; + address?: Maybe; + audience?: Maybe; + gift?: Maybe; + grade?: Maybe; + segment?: Maybe; +}; + +/** Ordering options when selecting data from "cyber_gift". */ +export type CyberGiftOrderBy = { + address?: InputMaybe; + audience?: InputMaybe; + gift?: InputMaybe; + grade?: InputMaybe; + segment?: InputMaybe; +}; + +/** columns and relationships of "cyber_gift_proofs" */ +export type CyberGiftProofs = { + __typename?: 'cyber_gift_proofs'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + + +/** columns and relationships of "cyber_gift_proofs" */ +export type CyberGiftProofsDetailsArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "cyber_gift_proofs" */ +export type CyberGiftProofsAggregate = { + __typename?: 'cyber_gift_proofs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyber_gift_proofs" */ +export type CyberGiftProofsAggregateFields = { + __typename?: 'cyber_gift_proofs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyber_gift_proofs" */ +export type CyberGiftProofsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CyberGiftProofsAvgFields = { + __typename?: 'cyber_gift_proofs_avg_fields'; + amount?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyber_gift_proofs". All fields are combined with a logical 'AND'. */ +export type CyberGiftProofsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CyberGiftProofsMaxFields = { + __typename?: 'cyber_gift_proofs_max_fields'; + address?: Maybe; + amount?: Maybe; + proof?: Maybe; +}; + +/** aggregate min on columns */ +export type CyberGiftProofsMinFields = { + __typename?: 'cyber_gift_proofs_min_fields'; + address?: Maybe; + amount?: Maybe; + proof?: Maybe; +}; + +/** Ordering options when selecting data from "cyber_gift_proofs". */ +export type CyberGiftProofsOrderBy = { + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** select columns of table "cyber_gift_proofs" */ +export enum CyberGiftProofsSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Amount = 'amount', + /** column name */ + Details = 'details', + /** column name */ + Proof = 'proof' +} + +/** aggregate stddev on columns */ +export type CyberGiftProofsStddevFields = { + __typename?: 'cyber_gift_proofs_stddev_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CyberGiftProofsStddevPopFields = { + __typename?: 'cyber_gift_proofs_stddev_pop_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CyberGiftProofsStddevSampFields = { + __typename?: 'cyber_gift_proofs_stddev_samp_fields'; + amount?: Maybe; +}; + +/** aggregate sum on columns */ +export type CyberGiftProofsSumFields = { + __typename?: 'cyber_gift_proofs_sum_fields'; + amount?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CyberGiftProofsVarPopFields = { + __typename?: 'cyber_gift_proofs_var_pop_fields'; + amount?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CyberGiftProofsVarSampFields = { + __typename?: 'cyber_gift_proofs_var_samp_fields'; + amount?: Maybe; +}; + +/** aggregate variance on columns */ +export type CyberGiftProofsVarianceFields = { + __typename?: 'cyber_gift_proofs_variance_fields'; + amount?: Maybe; +}; + +/** select columns of table "cyber_gift" */ +export enum CyberGiftSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Audience = 'audience', + /** column name */ + Gift = 'gift', + /** column name */ + Grade = 'grade', + /** column name */ + Segment = 'segment' +} + +/** aggregate stddev on columns */ +export type CyberGiftStddevFields = { + __typename?: 'cyber_gift_stddev_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CyberGiftStddevPopFields = { + __typename?: 'cyber_gift_stddev_pop_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CyberGiftStddevSampFields = { + __typename?: 'cyber_gift_stddev_samp_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate sum on columns */ +export type CyberGiftSumFields = { + __typename?: 'cyber_gift_sum_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CyberGiftVarPopFields = { + __typename?: 'cyber_gift_var_pop_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CyberGiftVarSampFields = { + __typename?: 'cyber_gift_var_samp_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate variance on columns */ +export type CyberGiftVarianceFields = { + __typename?: 'cyber_gift_variance_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** columns and relationships of "cyberlinks" */ +export type Cyberlinks = { + __typename?: 'cyberlinks'; + /** An object relationship */ + account: Account; + /** An object relationship */ + block: Block; + /** An object relationship */ + from?: Maybe; + height: Scalars['bigint']['output']; + id: Scalars['Int']['output']; + neuron: Scalars['String']['output']; + particle_from: Scalars['String']['output']; + particle_to: Scalars['String']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + to?: Maybe; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; +}; + +/** aggregated selection of "cyberlinks" */ +export type CyberlinksAggregate = { + __typename?: 'cyberlinks_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyberlinks" */ +export type CyberlinksAggregateFields = { + __typename?: 'cyberlinks_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyberlinks" */ +export type CyberlinksAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "cyberlinks" */ +export type CyberlinksAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CyberlinksAvgFields = { + __typename?: 'cyberlinks_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "cyberlinks" */ +export type CyberlinksAvgOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "cyberlinks". All fields are combined with a logical 'AND'. */ +export type CyberlinksBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + block?: InputMaybe; + from?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CyberlinksMaxFields = { + __typename?: 'cyberlinks_max_fields'; + height?: Maybe; + id?: Maybe; + neuron?: Maybe; + particle_from?: Maybe; + particle_to?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by max() on columns of table "cyberlinks" */ +export type CyberlinksMaxOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate min on columns */ +export type CyberlinksMinFields = { + __typename?: 'cyberlinks_min_fields'; + height?: Maybe; + id?: Maybe; + neuron?: Maybe; + particle_from?: Maybe; + particle_to?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by min() on columns of table "cyberlinks" */ +export type CyberlinksMinOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "cyberlinks". */ +export type CyberlinksOrderBy = { + account?: InputMaybe; + block?: InputMaybe; + from?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** select columns of table "cyberlinks" */ +export enum CyberlinksSelectColumn { + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Neuron = 'neuron', + /** column name */ + ParticleFrom = 'particle_from', + /** column name */ + ParticleTo = 'particle_to', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** columns and relationships of "cyberlinks_stats" */ +export type CyberlinksStats = { + __typename?: 'cyberlinks_stats'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; + date?: Maybe; +}; + +/** aggregated selection of "cyberlinks_stats" */ +export type CyberlinksStatsAggregate = { + __typename?: 'cyberlinks_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyberlinks_stats" */ +export type CyberlinksStatsAggregateFields = { + __typename?: 'cyberlinks_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyberlinks_stats" */ +export type CyberlinksStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CyberlinksStatsAvgFields = { + __typename?: 'cyberlinks_stats_avg_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyberlinks_stats". All fields are combined with a logical 'AND'. */ +export type CyberlinksStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlinks?: InputMaybe; + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CyberlinksStatsMaxFields = { + __typename?: 'cyberlinks_stats_max_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; + date?: Maybe; +}; + +/** aggregate min on columns */ +export type CyberlinksStatsMinFields = { + __typename?: 'cyberlinks_stats_min_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; + date?: Maybe; +}; + +/** Ordering options when selecting data from "cyberlinks_stats". */ +export type CyberlinksStatsOrderBy = { + cyberlinks?: InputMaybe; + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; +}; + +/** select columns of table "cyberlinks_stats" */ +export enum CyberlinksStatsSelectColumn { + /** column name */ + Cyberlinks = 'cyberlinks', + /** column name */ + CyberlinksPerDay = 'cyberlinks_per_day', + /** column name */ + Date = 'date' +} + +/** aggregate stddev on columns */ +export type CyberlinksStatsStddevFields = { + __typename?: 'cyberlinks_stats_stddev_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CyberlinksStatsStddevPopFields = { + __typename?: 'cyberlinks_stats_stddev_pop_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CyberlinksStatsStddevSampFields = { + __typename?: 'cyberlinks_stats_stddev_samp_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate sum on columns */ +export type CyberlinksStatsSumFields = { + __typename?: 'cyberlinks_stats_sum_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CyberlinksStatsVarPopFields = { + __typename?: 'cyberlinks_stats_var_pop_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CyberlinksStatsVarSampFields = { + __typename?: 'cyberlinks_stats_var_samp_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate variance on columns */ +export type CyberlinksStatsVarianceFields = { + __typename?: 'cyberlinks_stats_variance_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate stddev on columns */ +export type CyberlinksStddevFields = { + __typename?: 'cyberlinks_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "cyberlinks" */ +export type CyberlinksStddevOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type CyberlinksStddevPopFields = { + __typename?: 'cyberlinks_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "cyberlinks" */ +export type CyberlinksStddevPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type CyberlinksStddevSampFields = { + __typename?: 'cyberlinks_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "cyberlinks" */ +export type CyberlinksStddevSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type CyberlinksSumFields = { + __typename?: 'cyberlinks_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "cyberlinks" */ +export type CyberlinksSumOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type CyberlinksVarPopFields = { + __typename?: 'cyberlinks_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "cyberlinks" */ +export type CyberlinksVarPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type CyberlinksVarSampFields = { + __typename?: 'cyberlinks_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "cyberlinks" */ +export type CyberlinksVarSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type CyberlinksVarianceFields = { + __typename?: 'cyberlinks_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "cyberlinks" */ +export type CyberlinksVarianceOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** columns and relationships of "daily_amount_of_active_neurons" */ +export type DailyAmountOfActiveNeurons = { + __typename?: 'daily_amount_of_active_neurons'; + count?: Maybe; + date?: Maybe; +}; + +/** aggregated selection of "daily_amount_of_active_neurons" */ +export type DailyAmountOfActiveNeuronsAggregate = { + __typename?: 'daily_amount_of_active_neurons_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "daily_amount_of_active_neurons" */ +export type DailyAmountOfActiveNeuronsAggregateFields = { + __typename?: 'daily_amount_of_active_neurons_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "daily_amount_of_active_neurons" */ +export type DailyAmountOfActiveNeuronsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type DailyAmountOfActiveNeuronsAvgFields = { + __typename?: 'daily_amount_of_active_neurons_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "daily_amount_of_active_neurons". All fields are combined with a logical 'AND'. */ +export type DailyAmountOfActiveNeuronsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + date?: InputMaybe; +}; + +/** aggregate max on columns */ +export type DailyAmountOfActiveNeuronsMaxFields = { + __typename?: 'daily_amount_of_active_neurons_max_fields'; + count?: Maybe; + date?: Maybe; +}; + +/** aggregate min on columns */ +export type DailyAmountOfActiveNeuronsMinFields = { + __typename?: 'daily_amount_of_active_neurons_min_fields'; + count?: Maybe; + date?: Maybe; +}; + +/** Ordering options when selecting data from "daily_amount_of_active_neurons". */ +export type DailyAmountOfActiveNeuronsOrderBy = { + count?: InputMaybe; + date?: InputMaybe; +}; + +/** select columns of table "daily_amount_of_active_neurons" */ +export enum DailyAmountOfActiveNeuronsSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Date = 'date' +} + +/** aggregate stddev on columns */ +export type DailyAmountOfActiveNeuronsStddevFields = { + __typename?: 'daily_amount_of_active_neurons_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type DailyAmountOfActiveNeuronsStddevPopFields = { + __typename?: 'daily_amount_of_active_neurons_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type DailyAmountOfActiveNeuronsStddevSampFields = { + __typename?: 'daily_amount_of_active_neurons_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type DailyAmountOfActiveNeuronsSumFields = { + __typename?: 'daily_amount_of_active_neurons_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type DailyAmountOfActiveNeuronsVarPopFields = { + __typename?: 'daily_amount_of_active_neurons_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type DailyAmountOfActiveNeuronsVarSampFields = { + __typename?: 'daily_amount_of_active_neurons_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type DailyAmountOfActiveNeuronsVarianceFields = { + __typename?: 'daily_amount_of_active_neurons_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "daily_amount_of_used_gas" */ +export type DailyAmountOfUsedGas = { + __typename?: 'daily_amount_of_used_gas'; + daily_gas?: Maybe; + date?: Maybe; + gas_total?: Maybe; +}; + +/** aggregated selection of "daily_amount_of_used_gas" */ +export type DailyAmountOfUsedGasAggregate = { + __typename?: 'daily_amount_of_used_gas_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "daily_amount_of_used_gas" */ +export type DailyAmountOfUsedGasAggregateFields = { + __typename?: 'daily_amount_of_used_gas_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "daily_amount_of_used_gas" */ +export type DailyAmountOfUsedGasAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type DailyAmountOfUsedGasAvgFields = { + __typename?: 'daily_amount_of_used_gas_avg_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** Boolean expression to filter rows from the table "daily_amount_of_used_gas". All fields are combined with a logical 'AND'. */ +export type DailyAmountOfUsedGasBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + daily_gas?: InputMaybe; + date?: InputMaybe; + gas_total?: InputMaybe; +}; + +/** aggregate max on columns */ +export type DailyAmountOfUsedGasMaxFields = { + __typename?: 'daily_amount_of_used_gas_max_fields'; + daily_gas?: Maybe; + date?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate min on columns */ +export type DailyAmountOfUsedGasMinFields = { + __typename?: 'daily_amount_of_used_gas_min_fields'; + daily_gas?: Maybe; + date?: Maybe; + gas_total?: Maybe; +}; + +/** Ordering options when selecting data from "daily_amount_of_used_gas". */ +export type DailyAmountOfUsedGasOrderBy = { + daily_gas?: InputMaybe; + date?: InputMaybe; + gas_total?: InputMaybe; +}; + +/** select columns of table "daily_amount_of_used_gas" */ +export enum DailyAmountOfUsedGasSelectColumn { + /** column name */ + DailyGas = 'daily_gas', + /** column name */ + Date = 'date', + /** column name */ + GasTotal = 'gas_total' +} + +/** aggregate stddev on columns */ +export type DailyAmountOfUsedGasStddevFields = { + __typename?: 'daily_amount_of_used_gas_stddev_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type DailyAmountOfUsedGasStddevPopFields = { + __typename?: 'daily_amount_of_used_gas_stddev_pop_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type DailyAmountOfUsedGasStddevSampFields = { + __typename?: 'daily_amount_of_used_gas_stddev_samp_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate sum on columns */ +export type DailyAmountOfUsedGasSumFields = { + __typename?: 'daily_amount_of_used_gas_sum_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type DailyAmountOfUsedGasVarPopFields = { + __typename?: 'daily_amount_of_used_gas_var_pop_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type DailyAmountOfUsedGasVarSampFields = { + __typename?: 'daily_amount_of_used_gas_var_samp_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate variance on columns */ +export type DailyAmountOfUsedGasVarianceFields = { + __typename?: 'daily_amount_of_used_gas_variance_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** columns and relationships of "daily_number_of_transactions" */ +export type DailyNumberOfTransactions = { + __typename?: 'daily_number_of_transactions'; + date?: Maybe; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregated selection of "daily_number_of_transactions" */ +export type DailyNumberOfTransactionsAggregate = { + __typename?: 'daily_number_of_transactions_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "daily_number_of_transactions" */ +export type DailyNumberOfTransactionsAggregateFields = { + __typename?: 'daily_number_of_transactions_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "daily_number_of_transactions" */ +export type DailyNumberOfTransactionsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type DailyNumberOfTransactionsAvgFields = { + __typename?: 'daily_number_of_transactions_avg_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** Boolean expression to filter rows from the table "daily_number_of_transactions". All fields are combined with a logical 'AND'. */ +export type DailyNumberOfTransactionsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + txs_per_day?: InputMaybe; + txs_total?: InputMaybe; +}; + +/** aggregate max on columns */ +export type DailyNumberOfTransactionsMaxFields = { + __typename?: 'daily_number_of_transactions_max_fields'; + date?: Maybe; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate min on columns */ +export type DailyNumberOfTransactionsMinFields = { + __typename?: 'daily_number_of_transactions_min_fields'; + date?: Maybe; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** Ordering options when selecting data from "daily_number_of_transactions". */ +export type DailyNumberOfTransactionsOrderBy = { + date?: InputMaybe; + txs_per_day?: InputMaybe; + txs_total?: InputMaybe; +}; + +/** select columns of table "daily_number_of_transactions" */ +export enum DailyNumberOfTransactionsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + TxsPerDay = 'txs_per_day', + /** column name */ + TxsTotal = 'txs_total' +} + +/** aggregate stddev on columns */ +export type DailyNumberOfTransactionsStddevFields = { + __typename?: 'daily_number_of_transactions_stddev_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type DailyNumberOfTransactionsStddevPopFields = { + __typename?: 'daily_number_of_transactions_stddev_pop_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type DailyNumberOfTransactionsStddevSampFields = { + __typename?: 'daily_number_of_transactions_stddev_samp_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate sum on columns */ +export type DailyNumberOfTransactionsSumFields = { + __typename?: 'daily_number_of_transactions_sum_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type DailyNumberOfTransactionsVarPopFields = { + __typename?: 'daily_number_of_transactions_var_pop_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type DailyNumberOfTransactionsVarSampFields = { + __typename?: 'daily_number_of_transactions_var_samp_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate variance on columns */ +export type DailyNumberOfTransactionsVarianceFields = { + __typename?: 'daily_number_of_transactions_variance_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** Boolean expression to compare columns of type "date". All fields are combined with logical 'AND'. */ +export type DateComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "float8". All fields are combined with logical 'AND'. */ +export type Float8ComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "follow_stats" */ +export type FollowStats = { + __typename?: 'follow_stats'; + date?: Maybe; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregated selection of "follow_stats" */ +export type FollowStatsAggregate = { + __typename?: 'follow_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "follow_stats" */ +export type FollowStatsAggregateFields = { + __typename?: 'follow_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "follow_stats" */ +export type FollowStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type FollowStatsAvgFields = { + __typename?: 'follow_stats_avg_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** Boolean expression to filter rows from the table "follow_stats". All fields are combined with a logical 'AND'. */ +export type FollowStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + follow_total?: InputMaybe; + follows_per_day?: InputMaybe; +}; + +/** aggregate max on columns */ +export type FollowStatsMaxFields = { + __typename?: 'follow_stats_max_fields'; + date?: Maybe; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate min on columns */ +export type FollowStatsMinFields = { + __typename?: 'follow_stats_min_fields'; + date?: Maybe; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** Ordering options when selecting data from "follow_stats". */ +export type FollowStatsOrderBy = { + date?: InputMaybe; + follow_total?: InputMaybe; + follows_per_day?: InputMaybe; +}; + +/** select columns of table "follow_stats" */ +export enum FollowStatsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + FollowTotal = 'follow_total', + /** column name */ + FollowsPerDay = 'follows_per_day' +} + +/** aggregate stddev on columns */ +export type FollowStatsStddevFields = { + __typename?: 'follow_stats_stddev_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type FollowStatsStddevPopFields = { + __typename?: 'follow_stats_stddev_pop_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type FollowStatsStddevSampFields = { + __typename?: 'follow_stats_stddev_samp_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate sum on columns */ +export type FollowStatsSumFields = { + __typename?: 'follow_stats_sum_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type FollowStatsVarPopFields = { + __typename?: 'follow_stats_var_pop_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type FollowStatsVarSampFields = { + __typename?: 'follow_stats_var_samp_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate variance on columns */ +export type FollowStatsVarianceFields = { + __typename?: 'follow_stats_variance_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** columns and relationships of "genesis_neurons_activation" */ +export type GenesisNeuronsActivation = { + __typename?: 'genesis_neurons_activation'; + count?: Maybe; + neurons?: Maybe; +}; + +/** aggregated selection of "genesis_neurons_activation" */ +export type GenesisNeuronsActivationAggregate = { + __typename?: 'genesis_neurons_activation_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "genesis_neurons_activation" */ +export type GenesisNeuronsActivationAggregateFields = { + __typename?: 'genesis_neurons_activation_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "genesis_neurons_activation" */ +export type GenesisNeuronsActivationAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type GenesisNeuronsActivationAvgFields = { + __typename?: 'genesis_neurons_activation_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "genesis_neurons_activation". All fields are combined with a logical 'AND'. */ +export type GenesisNeuronsActivationBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + neurons?: InputMaybe; +}; + +/** aggregate max on columns */ +export type GenesisNeuronsActivationMaxFields = { + __typename?: 'genesis_neurons_activation_max_fields'; + count?: Maybe; + neurons?: Maybe; +}; + +/** aggregate min on columns */ +export type GenesisNeuronsActivationMinFields = { + __typename?: 'genesis_neurons_activation_min_fields'; + count?: Maybe; + neurons?: Maybe; +}; + +/** Ordering options when selecting data from "genesis_neurons_activation". */ +export type GenesisNeuronsActivationOrderBy = { + count?: InputMaybe; + neurons?: InputMaybe; +}; + +/** select columns of table "genesis_neurons_activation" */ +export enum GenesisNeuronsActivationSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Neurons = 'neurons' +} + +/** aggregate stddev on columns */ +export type GenesisNeuronsActivationStddevFields = { + __typename?: 'genesis_neurons_activation_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type GenesisNeuronsActivationStddevPopFields = { + __typename?: 'genesis_neurons_activation_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type GenesisNeuronsActivationStddevSampFields = { + __typename?: 'genesis_neurons_activation_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type GenesisNeuronsActivationSumFields = { + __typename?: 'genesis_neurons_activation_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type GenesisNeuronsActivationVarPopFields = { + __typename?: 'genesis_neurons_activation_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type GenesisNeuronsActivationVarSampFields = { + __typename?: 'genesis_neurons_activation_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type GenesisNeuronsActivationVarianceFields = { + __typename?: 'genesis_neurons_activation_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "investmints" */ +export type Investmints = { + __typename?: 'investmints'; + /** An object relationship */ + account: Account; + amount: Scalars['coin']['output']; + /** An object relationship */ + block: Block; + height: Scalars['bigint']['output']; + id: Scalars['Int']['output']; + length: Scalars['bigint']['output']; + neuron: Scalars['String']['output']; + resource: Scalars['String']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; +}; + +/** aggregated selection of "investmints" */ +export type InvestmintsAggregate = { + __typename?: 'investmints_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "investmints" */ +export type InvestmintsAggregateFields = { + __typename?: 'investmints_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "investmints" */ +export type InvestmintsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "investmints" */ +export type InvestmintsAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type InvestmintsAvgFields = { + __typename?: 'investmints_avg_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by avg() on columns of table "investmints" */ +export type InvestmintsAvgOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "investmints". All fields are combined with a logical 'AND'. */ +export type InvestmintsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + amount?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate max on columns */ +export type InvestmintsMaxFields = { + __typename?: 'investmints_max_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; + neuron?: Maybe; + resource?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by max() on columns of table "investmints" */ +export type InvestmintsMaxOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate min on columns */ +export type InvestmintsMinFields = { + __typename?: 'investmints_min_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; + neuron?: Maybe; + resource?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by min() on columns of table "investmints" */ +export type InvestmintsMinOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "investmints". */ +export type InvestmintsOrderBy = { + account?: InputMaybe; + amount?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** select columns of table "investmints" */ +export enum InvestmintsSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Length = 'length', + /** column name */ + Neuron = 'neuron', + /** column name */ + Resource = 'resource', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** aggregate stddev on columns */ +export type InvestmintsStddevFields = { + __typename?: 'investmints_stddev_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by stddev() on columns of table "investmints" */ +export type InvestmintsStddevOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type InvestmintsStddevPopFields = { + __typename?: 'investmints_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by stddev_pop() on columns of table "investmints" */ +export type InvestmintsStddevPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type InvestmintsStddevSampFields = { + __typename?: 'investmints_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by stddev_samp() on columns of table "investmints" */ +export type InvestmintsStddevSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type InvestmintsSumFields = { + __typename?: 'investmints_sum_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by sum() on columns of table "investmints" */ +export type InvestmintsSumOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type InvestmintsVarPopFields = { + __typename?: 'investmints_var_pop_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by var_pop() on columns of table "investmints" */ +export type InvestmintsVarPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type InvestmintsVarSampFields = { + __typename?: 'investmints_var_samp_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by var_samp() on columns of table "investmints" */ +export type InvestmintsVarSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type InvestmintsVarianceFields = { + __typename?: 'investmints_variance_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by variance() on columns of table "investmints" */ +export type InvestmintsVarianceOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "json". All fields are combined with logical 'AND'. */ +export type JsonComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ +export type JsonbComparisonExp = { + /** is the column contained in the given json value */ + _contained_in?: InputMaybe; + /** does the column contain the given json value at the top level */ + _contains?: InputMaybe; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + /** does the string exist as a top-level key in the column */ + _has_key?: InputMaybe; + /** do all of these strings exist as top-level keys in the column */ + _has_keys_all?: InputMaybe>; + /** do any of these strings exist as top-level keys in the column */ + _has_keys_any?: InputMaybe>; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "message" */ +export type Message = { + __typename?: 'message'; + index: Scalars['bigint']['output']; + involved_accounts_addresses?: Maybe; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; + type: Scalars['String']['output']; + value: Scalars['jsonb']['output']; +}; + + +/** columns and relationships of "message" */ +export type MessageValueArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "message" */ +export type MessageAggregate = { + __typename?: 'message_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "message" */ +export type MessageAggregateFields = { + __typename?: 'message_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "message" */ +export type MessageAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "message" */ +export type MessageAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type MessageAvgFields = { + __typename?: 'message_avg_fields'; + index?: Maybe; +}; + +/** order by avg() on columns of table "message" */ +export type MessageAvgOrderBy = { + index?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ +export type MessageBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; +}; + +/** aggregate max on columns */ +export type MessageMaxFields = { + __typename?: 'message_max_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** order by max() on columns of table "message" */ +export type MessageMaxOrderBy = { + index?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate min on columns */ +export type MessageMinFields = { + __typename?: 'message_min_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** order by min() on columns of table "message" */ +export type MessageMinOrderBy = { + index?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; +}; + +/** Ordering options when selecting data from "message". */ +export type MessageOrderBy = { + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; +}; + +/** select columns of table "message" */ +export enum MessageSelectColumn { + /** column name */ + Index = 'index', + /** column name */ + InvolvedAccountsAddresses = 'involved_accounts_addresses', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Type = 'type', + /** column name */ + Value = 'value' +} + +/** aggregate stddev on columns */ +export type MessageStddevFields = { + __typename?: 'message_stddev_fields'; + index?: Maybe; +}; + +/** order by stddev() on columns of table "message" */ +export type MessageStddevOrderBy = { + index?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type MessageStddevPopFields = { + __typename?: 'message_stddev_pop_fields'; + index?: Maybe; +}; + +/** order by stddev_pop() on columns of table "message" */ +export type MessageStddevPopOrderBy = { + index?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type MessageStddevSampFields = { + __typename?: 'message_stddev_samp_fields'; + index?: Maybe; +}; + +/** order by stddev_samp() on columns of table "message" */ +export type MessageStddevSampOrderBy = { + index?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type MessageSumFields = { + __typename?: 'message_sum_fields'; + index?: Maybe; +}; + +/** order by sum() on columns of table "message" */ +export type MessageSumOrderBy = { + index?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type MessageVarPopFields = { + __typename?: 'message_var_pop_fields'; + index?: Maybe; +}; + +/** order by var_pop() on columns of table "message" */ +export type MessageVarPopOrderBy = { + index?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type MessageVarSampFields = { + __typename?: 'message_var_samp_fields'; + index?: Maybe; +}; + +/** order by var_samp() on columns of table "message" */ +export type MessageVarSampOrderBy = { + index?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type MessageVarianceFields = { + __typename?: 'message_variance_fields'; + index?: Maybe; +}; + +/** order by variance() on columns of table "message" */ +export type MessageVarianceOrderBy = { + index?: InputMaybe; +}; + +export type MessagesByAddressArgs = { + addresses?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; + types?: InputMaybe; +}; + +/** columns and relationships of "modules" */ +export type Modules = { + __typename?: 'modules'; + module_name: Scalars['String']['output']; +}; + +/** aggregated selection of "modules" */ +export type ModulesAggregate = { + __typename?: 'modules_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "modules" */ +export type ModulesAggregateFields = { + __typename?: 'modules_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "modules" */ +export type ModulesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ +export type ModulesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + module_name?: InputMaybe; +}; + +/** aggregate max on columns */ +export type ModulesMaxFields = { + __typename?: 'modules_max_fields'; + module_name?: Maybe; +}; + +/** aggregate min on columns */ +export type ModulesMinFields = { + __typename?: 'modules_min_fields'; + module_name?: Maybe; +}; + +/** Ordering options when selecting data from "modules". */ +export type ModulesOrderBy = { + module_name?: InputMaybe; +}; + +/** select columns of table "modules" */ +export enum ModulesSelectColumn { + /** column name */ + ModuleName = 'module_name' +} + +/** columns and relationships of "neuron_activation_source" */ +export type NeuronActivationSource = { + __typename?: 'neuron_activation_source'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; + week?: Maybe; +}; + +/** aggregated selection of "neuron_activation_source" */ +export type NeuronActivationSourceAggregate = { + __typename?: 'neuron_activation_source_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "neuron_activation_source" */ +export type NeuronActivationSourceAggregateFields = { + __typename?: 'neuron_activation_source_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "neuron_activation_source" */ +export type NeuronActivationSourceAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type NeuronActivationSourceAvgFields = { + __typename?: 'neuron_activation_source_avg_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** Boolean expression to filter rows from the table "neuron_activation_source". All fields are combined with a logical 'AND'. */ +export type NeuronActivationSourceBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + genesis_percent?: InputMaybe; + ibc_receive_percent?: InputMaybe; + neuron_activated?: InputMaybe; + recieve_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** aggregate max on columns */ +export type NeuronActivationSourceMaxFields = { + __typename?: 'neuron_activation_source_max_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; + week?: Maybe; +}; + +/** aggregate min on columns */ +export type NeuronActivationSourceMinFields = { + __typename?: 'neuron_activation_source_min_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; + week?: Maybe; +}; + +/** Ordering options when selecting data from "neuron_activation_source". */ +export type NeuronActivationSourceOrderBy = { + genesis_percent?: InputMaybe; + ibc_receive_percent?: InputMaybe; + neuron_activated?: InputMaybe; + recieve_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** select columns of table "neuron_activation_source" */ +export enum NeuronActivationSourceSelectColumn { + /** column name */ + GenesisPercent = 'genesis_percent', + /** column name */ + IbcReceivePercent = 'ibc_receive_percent', + /** column name */ + NeuronActivated = 'neuron_activated', + /** column name */ + RecievePercent = 'recieve_percent', + /** column name */ + Week = 'week' +} + +/** aggregate stddev on columns */ +export type NeuronActivationSourceStddevFields = { + __typename?: 'neuron_activation_source_stddev_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type NeuronActivationSourceStddevPopFields = { + __typename?: 'neuron_activation_source_stddev_pop_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type NeuronActivationSourceStddevSampFields = { + __typename?: 'neuron_activation_source_stddev_samp_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate sum on columns */ +export type NeuronActivationSourceSumFields = { + __typename?: 'neuron_activation_source_sum_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type NeuronActivationSourceVarPopFields = { + __typename?: 'neuron_activation_source_var_pop_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type NeuronActivationSourceVarSampFields = { + __typename?: 'neuron_activation_source_var_samp_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate variance on columns */ +export type NeuronActivationSourceVarianceFields = { + __typename?: 'neuron_activation_source_variance_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** columns and relationships of "number_of_new_neurons" */ +export type NumberOfNewNeurons = { + __typename?: 'number_of_new_neurons'; + date?: Maybe; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregated selection of "number_of_new_neurons" */ +export type NumberOfNewNeuronsAggregate = { + __typename?: 'number_of_new_neurons_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "number_of_new_neurons" */ +export type NumberOfNewNeuronsAggregateFields = { + __typename?: 'number_of_new_neurons_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "number_of_new_neurons" */ +export type NumberOfNewNeuronsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type NumberOfNewNeuronsAvgFields = { + __typename?: 'number_of_new_neurons_avg_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** Boolean expression to filter rows from the table "number_of_new_neurons". All fields are combined with a logical 'AND'. */ +export type NumberOfNewNeuronsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + new_neurons_daily?: InputMaybe; + new_neurons_total?: InputMaybe; +}; + +/** aggregate max on columns */ +export type NumberOfNewNeuronsMaxFields = { + __typename?: 'number_of_new_neurons_max_fields'; + date?: Maybe; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate min on columns */ +export type NumberOfNewNeuronsMinFields = { + __typename?: 'number_of_new_neurons_min_fields'; + date?: Maybe; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** Ordering options when selecting data from "number_of_new_neurons". */ +export type NumberOfNewNeuronsOrderBy = { + date?: InputMaybe; + new_neurons_daily?: InputMaybe; + new_neurons_total?: InputMaybe; +}; + +/** select columns of table "number_of_new_neurons" */ +export enum NumberOfNewNeuronsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + NewNeuronsDaily = 'new_neurons_daily', + /** column name */ + NewNeuronsTotal = 'new_neurons_total' +} + +/** aggregate stddev on columns */ +export type NumberOfNewNeuronsStddevFields = { + __typename?: 'number_of_new_neurons_stddev_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type NumberOfNewNeuronsStddevPopFields = { + __typename?: 'number_of_new_neurons_stddev_pop_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type NumberOfNewNeuronsStddevSampFields = { + __typename?: 'number_of_new_neurons_stddev_samp_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate sum on columns */ +export type NumberOfNewNeuronsSumFields = { + __typename?: 'number_of_new_neurons_sum_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type NumberOfNewNeuronsVarPopFields = { + __typename?: 'number_of_new_neurons_var_pop_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type NumberOfNewNeuronsVarSampFields = { + __typename?: 'number_of_new_neurons_var_samp_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate variance on columns */ +export type NumberOfNewNeuronsVarianceFields = { + __typename?: 'number_of_new_neurons_variance_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ +export type NumericComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "old_precommits" */ +export type OldPrecommits = { + __typename?: 'old_precommits'; + consensus_address: Scalars['String']['output']; + consensus_pubkey: Scalars['String']['output']; + precommits?: Maybe; +}; + +/** aggregated selection of "old_precommits" */ +export type OldPrecommitsAggregate = { + __typename?: 'old_precommits_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "old_precommits" */ +export type OldPrecommitsAggregateFields = { + __typename?: 'old_precommits_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "old_precommits" */ +export type OldPrecommitsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type OldPrecommitsAvgFields = { + __typename?: 'old_precommits_avg_fields'; + precommits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "old_precommits". All fields are combined with a logical 'AND'. */ +export type OldPrecommitsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type OldPrecommitsMaxFields = { + __typename?: 'old_precommits_max_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** aggregate min on columns */ +export type OldPrecommitsMinFields = { + __typename?: 'old_precommits_min_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** Ordering options when selecting data from "old_precommits". */ +export type OldPrecommitsOrderBy = { + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; +}; + +/** select columns of table "old_precommits" */ +export enum OldPrecommitsSelectColumn { + /** column name */ + ConsensusAddress = 'consensus_address', + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + Precommits = 'precommits' +} + +/** aggregate stddev on columns */ +export type OldPrecommitsStddevFields = { + __typename?: 'old_precommits_stddev_fields'; + precommits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type OldPrecommitsStddevPopFields = { + __typename?: 'old_precommits_stddev_pop_fields'; + precommits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type OldPrecommitsStddevSampFields = { + __typename?: 'old_precommits_stddev_samp_fields'; + precommits?: Maybe; +}; + +/** aggregate sum on columns */ +export type OldPrecommitsSumFields = { + __typename?: 'old_precommits_sum_fields'; + precommits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type OldPrecommitsVarPopFields = { + __typename?: 'old_precommits_var_pop_fields'; + precommits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type OldPrecommitsVarSampFields = { + __typename?: 'old_precommits_var_samp_fields'; + precommits?: Maybe; +}; + +/** aggregate variance on columns */ +export type OldPrecommitsVarianceFields = { + __typename?: 'old_precommits_variance_fields'; + precommits?: Maybe; +}; + +/** column ordering options */ +export enum OrderBy { + /** in ascending order, nulls last */ + Asc = 'asc', + /** in ascending order, nulls first */ + AscNullsFirst = 'asc_nulls_first', + /** in ascending order, nulls last */ + AscNullsLast = 'asc_nulls_last', + /** in descending order, nulls first */ + Desc = 'desc', + /** in descending order, nulls first */ + DescNullsFirst = 'desc_nulls_first', + /** in descending order, nulls last */ + DescNullsLast = 'desc_nulls_last' +} + +/** columns and relationships of "particles" */ +export type Particles = { + __typename?: 'particles'; + /** An object relationship */ + account: Account; + /** An object relationship */ + block: Block; + height: Scalars['bigint']['output']; + id: Scalars['Int']['output']; + /** An array relationship */ + in: Array; + /** An aggregate relationship */ + in_aggregate: CyberlinksAggregate; + neuron: Scalars['String']['output']; + /** An array relationship */ + out: Array; + /** An aggregate relationship */ + out_aggregate: CyberlinksAggregate; + particle: Scalars['String']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; +}; + + +/** columns and relationships of "particles" */ +export type ParticlesInArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "particles" */ +export type ParticlesInAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "particles" */ +export type ParticlesOutArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "particles" */ +export type ParticlesOutAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "particles" */ +export type ParticlesAggregate = { + __typename?: 'particles_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "particles" */ +export type ParticlesAggregateFields = { + __typename?: 'particles_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "particles" */ +export type ParticlesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "particles" */ +export type ParticlesAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type ParticlesAvgFields = { + __typename?: 'particles_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "particles" */ +export type ParticlesAvgOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "particles". All fields are combined with a logical 'AND'. */ +export type ParticlesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + in?: InputMaybe; + neuron?: InputMaybe; + out?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate max on columns */ +export type ParticlesMaxFields = { + __typename?: 'particles_max_fields'; + height?: Maybe; + id?: Maybe; + neuron?: Maybe; + particle?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by max() on columns of table "particles" */ +export type ParticlesMaxOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate min on columns */ +export type ParticlesMinFields = { + __typename?: 'particles_min_fields'; + height?: Maybe; + id?: Maybe; + neuron?: Maybe; + particle?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by min() on columns of table "particles" */ +export type ParticlesMinOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "particles". */ +export type ParticlesOrderBy = { + account?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + in_aggregate?: InputMaybe; + neuron?: InputMaybe; + out_aggregate?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** select columns of table "particles" */ +export enum ParticlesSelectColumn { + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Neuron = 'neuron', + /** column name */ + Particle = 'particle', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** aggregate stddev on columns */ +export type ParticlesStddevFields = { + __typename?: 'particles_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "particles" */ +export type ParticlesStddevOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type ParticlesStddevPopFields = { + __typename?: 'particles_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "particles" */ +export type ParticlesStddevPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type ParticlesStddevSampFields = { + __typename?: 'particles_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "particles" */ +export type ParticlesStddevSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type ParticlesSumFields = { + __typename?: 'particles_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "particles" */ +export type ParticlesSumOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type ParticlesVarPopFields = { + __typename?: 'particles_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "particles" */ +export type ParticlesVarPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type ParticlesVarSampFields = { + __typename?: 'particles_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "particles" */ +export type ParticlesVarSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type ParticlesVarianceFields = { + __typename?: 'particles_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "particles" */ +export type ParticlesVarianceOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** columns and relationships of "pre_commit" */ +export type PreCommit = { + __typename?: 'pre_commit'; + height: Scalars['bigint']['output']; + proposer_priority: Scalars['bigint']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + validator: Validator; + validator_address: Scalars['String']['output']; + voting_power: Scalars['bigint']['output']; +}; + +/** aggregated selection of "pre_commit" */ +export type PreCommitAggregate = { + __typename?: 'pre_commit_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pre_commit" */ +export type PreCommitAggregateFields = { + __typename?: 'pre_commit_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pre_commit" */ +export type PreCommitAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "pre_commit" */ +export type PreCommitAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PreCommitAvgFields = { + __typename?: 'pre_commit_avg_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by avg() on columns of table "pre_commit" */ +export type PreCommitAvgOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "pre_commit". All fields are combined with a logical 'AND'. */ +export type PreCommitBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PreCommitMaxFields = { + __typename?: 'pre_commit_max_fields'; + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; +}; + +/** order by max() on columns of table "pre_commit" */ +export type PreCommitMaxOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate min on columns */ +export type PreCommitMinFields = { + __typename?: 'pre_commit_min_fields'; + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; +}; + +/** order by min() on columns of table "pre_commit" */ +export type PreCommitMinOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** Ordering options when selecting data from "pre_commit". */ +export type PreCommitOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** select columns of table "pre_commit" */ +export enum PreCommitSelectColumn { + /** column name */ + Height = 'height', + /** column name */ + ProposerPriority = 'proposer_priority', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + ValidatorAddress = 'validator_address', + /** column name */ + VotingPower = 'voting_power' +} + +/** aggregate stddev on columns */ +export type PreCommitStddevFields = { + __typename?: 'pre_commit_stddev_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev() on columns of table "pre_commit" */ +export type PreCommitStddevOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type PreCommitStddevPopFields = { + __typename?: 'pre_commit_stddev_pop_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev_pop() on columns of table "pre_commit" */ +export type PreCommitStddevPopOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type PreCommitStddevSampFields = { + __typename?: 'pre_commit_stddev_samp_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev_samp() on columns of table "pre_commit" */ +export type PreCommitStddevSampOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type PreCommitSumFields = { + __typename?: 'pre_commit_sum_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by sum() on columns of table "pre_commit" */ +export type PreCommitSumOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type PreCommitVarPopFields = { + __typename?: 'pre_commit_var_pop_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by var_pop() on columns of table "pre_commit" */ +export type PreCommitVarPopOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type PreCommitVarSampFields = { + __typename?: 'pre_commit_var_samp_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by var_samp() on columns of table "pre_commit" */ +export type PreCommitVarSampOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type PreCommitVarianceFields = { + __typename?: 'pre_commit_variance_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by variance() on columns of table "pre_commit" */ +export type PreCommitVarianceOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** columns and relationships of "pre_commits_rewards_view" */ +export type PreCommitsRewardsView = { + __typename?: 'pre_commits_rewards_view'; + consensus_pubkey?: Maybe; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregated selection of "pre_commits_rewards_view" */ +export type PreCommitsRewardsViewAggregate = { + __typename?: 'pre_commits_rewards_view_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pre_commits_rewards_view" */ +export type PreCommitsRewardsViewAggregateFields = { + __typename?: 'pre_commits_rewards_view_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pre_commits_rewards_view" */ +export type PreCommitsRewardsViewAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PreCommitsRewardsViewAvgFields = { + __typename?: 'pre_commits_rewards_view_avg_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pre_commits_rewards_view". All fields are combined with a logical 'AND'. */ +export type PreCommitsRewardsViewBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_pubkey?: InputMaybe; + max_block?: InputMaybe; + pre_commit_rewards?: InputMaybe; + precommits?: InputMaybe; + sum_precommits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PreCommitsRewardsViewMaxFields = { + __typename?: 'pre_commits_rewards_view_max_fields'; + consensus_pubkey?: Maybe; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate min on columns */ +export type PreCommitsRewardsViewMinFields = { + __typename?: 'pre_commits_rewards_view_min_fields'; + consensus_pubkey?: Maybe; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** Ordering options when selecting data from "pre_commits_rewards_view". */ +export type PreCommitsRewardsViewOrderBy = { + consensus_pubkey?: InputMaybe; + max_block?: InputMaybe; + pre_commit_rewards?: InputMaybe; + precommits?: InputMaybe; + sum_precommits?: InputMaybe; +}; + +/** select columns of table "pre_commits_rewards_view" */ +export enum PreCommitsRewardsViewSelectColumn { + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + MaxBlock = 'max_block', + /** column name */ + PreCommitRewards = 'pre_commit_rewards', + /** column name */ + Precommits = 'precommits', + /** column name */ + SumPrecommits = 'sum_precommits' +} + +/** aggregate stddev on columns */ +export type PreCommitsRewardsViewStddevFields = { + __typename?: 'pre_commits_rewards_view_stddev_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PreCommitsRewardsViewStddevPopFields = { + __typename?: 'pre_commits_rewards_view_stddev_pop_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PreCommitsRewardsViewStddevSampFields = { + __typename?: 'pre_commits_rewards_view_stddev_samp_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate sum on columns */ +export type PreCommitsRewardsViewSumFields = { + __typename?: 'pre_commits_rewards_view_sum_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PreCommitsRewardsViewVarPopFields = { + __typename?: 'pre_commits_rewards_view_var_pop_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PreCommitsRewardsViewVarSampFields = { + __typename?: 'pre_commits_rewards_view_var_samp_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate variance on columns */ +export type PreCommitsRewardsViewVarianceFields = { + __typename?: 'pre_commits_rewards_view_variance_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** columns and relationships of "pre_commits_total" */ +export type PreCommitsTotal = { + __typename?: 'pre_commits_total'; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; +}; + +/** aggregated selection of "pre_commits_total" */ +export type PreCommitsTotalAggregate = { + __typename?: 'pre_commits_total_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pre_commits_total" */ +export type PreCommitsTotalAggregateFields = { + __typename?: 'pre_commits_total_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pre_commits_total" */ +export type PreCommitsTotalAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PreCommitsTotalAvgFields = { + __typename?: 'pre_commits_total_avg_fields'; + pre_commits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pre_commits_total". All fields are combined with a logical 'AND'. */ +export type PreCommitsTotalBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PreCommitsTotalMaxFields = { + __typename?: 'pre_commits_total_max_fields'; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; +}; + +/** aggregate min on columns */ +export type PreCommitsTotalMinFields = { + __typename?: 'pre_commits_total_min_fields'; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; +}; + +/** Ordering options when selecting data from "pre_commits_total". */ +export type PreCommitsTotalOrderBy = { + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; +}; + +/** select columns of table "pre_commits_total" */ +export enum PreCommitsTotalSelectColumn { + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + PreCommits = 'pre_commits' +} + +/** aggregate stddev on columns */ +export type PreCommitsTotalStddevFields = { + __typename?: 'pre_commits_total_stddev_fields'; + pre_commits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PreCommitsTotalStddevPopFields = { + __typename?: 'pre_commits_total_stddev_pop_fields'; + pre_commits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PreCommitsTotalStddevSampFields = { + __typename?: 'pre_commits_total_stddev_samp_fields'; + pre_commits?: Maybe; +}; + +/** aggregate sum on columns */ +export type PreCommitsTotalSumFields = { + __typename?: 'pre_commits_total_sum_fields'; + pre_commits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PreCommitsTotalVarPopFields = { + __typename?: 'pre_commits_total_var_pop_fields'; + pre_commits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PreCommitsTotalVarSampFields = { + __typename?: 'pre_commits_total_var_samp_fields'; + pre_commits?: Maybe; +}; + +/** aggregate variance on columns */ +export type PreCommitsTotalVarianceFields = { + __typename?: 'pre_commits_total_variance_fields'; + pre_commits?: Maybe; +}; + +/** columns and relationships of "pre_commits_view" */ +export type PreCommitsView = { + __typename?: 'pre_commits_view'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** aggregated selection of "pre_commits_view" */ +export type PreCommitsViewAggregate = { + __typename?: 'pre_commits_view_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pre_commits_view" */ +export type PreCommitsViewAggregateFields = { + __typename?: 'pre_commits_view_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pre_commits_view" */ +export type PreCommitsViewAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PreCommitsViewAvgFields = { + __typename?: 'pre_commits_view_avg_fields'; + precommits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pre_commits_view". All fields are combined with a logical 'AND'. */ +export type PreCommitsViewBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PreCommitsViewMaxFields = { + __typename?: 'pre_commits_view_max_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** aggregate min on columns */ +export type PreCommitsViewMinFields = { + __typename?: 'pre_commits_view_min_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** Ordering options when selecting data from "pre_commits_view". */ +export type PreCommitsViewOrderBy = { + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; +}; + +/** select columns of table "pre_commits_view" */ +export enum PreCommitsViewSelectColumn { + /** column name */ + ConsensusAddress = 'consensus_address', + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + Precommits = 'precommits' +} + +/** aggregate stddev on columns */ +export type PreCommitsViewStddevFields = { + __typename?: 'pre_commits_view_stddev_fields'; + precommits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PreCommitsViewStddevPopFields = { + __typename?: 'pre_commits_view_stddev_pop_fields'; + precommits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PreCommitsViewStddevSampFields = { + __typename?: 'pre_commits_view_stddev_samp_fields'; + precommits?: Maybe; +}; + +/** aggregate sum on columns */ +export type PreCommitsViewSumFields = { + __typename?: 'pre_commits_view_sum_fields'; + precommits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PreCommitsViewVarPopFields = { + __typename?: 'pre_commits_view_var_pop_fields'; + precommits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PreCommitsViewVarSampFields = { + __typename?: 'pre_commits_view_var_samp_fields'; + precommits?: Maybe; +}; + +/** aggregate variance on columns */ +export type PreCommitsViewVarianceFields = { + __typename?: 'pre_commits_view_variance_fields'; + precommits?: Maybe; +}; + +/** columns and relationships of "pruning" */ +export type Pruning = { + __typename?: 'pruning'; + last_pruned_height: Scalars['bigint']['output']; +}; + +/** aggregated selection of "pruning" */ +export type PruningAggregate = { + __typename?: 'pruning_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pruning" */ +export type PruningAggregateFields = { + __typename?: 'pruning_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pruning" */ +export type PruningAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PruningAvgFields = { + __typename?: 'pruning_avg_fields'; + last_pruned_height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pruning". All fields are combined with a logical 'AND'. */ +export type PruningBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + last_pruned_height?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PruningMaxFields = { + __typename?: 'pruning_max_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate min on columns */ +export type PruningMinFields = { + __typename?: 'pruning_min_fields'; + last_pruned_height?: Maybe; +}; + +/** Ordering options when selecting data from "pruning". */ +export type PruningOrderBy = { + last_pruned_height?: InputMaybe; +}; + +/** select columns of table "pruning" */ +export enum PruningSelectColumn { + /** column name */ + LastPrunedHeight = 'last_pruned_height' +} + +/** aggregate stddev on columns */ +export type PruningStddevFields = { + __typename?: 'pruning_stddev_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PruningStddevPopFields = { + __typename?: 'pruning_stddev_pop_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PruningStddevSampFields = { + __typename?: 'pruning_stddev_samp_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate sum on columns */ +export type PruningSumFields = { + __typename?: 'pruning_sum_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PruningVarPopFields = { + __typename?: 'pruning_var_pop_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PruningVarSampFields = { + __typename?: 'pruning_var_samp_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate variance on columns */ +export type PruningVarianceFields = { + __typename?: 'pruning_variance_fields'; + last_pruned_height?: Maybe; +}; + +/** columns and relationships of "pussy_gift_proofs" */ +export type PussyGiftProofs = { + __typename?: 'pussy_gift_proofs'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + +/** aggregated selection of "pussy_gift_proofs" */ +export type PussyGiftProofsAggregate = { + __typename?: 'pussy_gift_proofs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pussy_gift_proofs" */ +export type PussyGiftProofsAggregateFields = { + __typename?: 'pussy_gift_proofs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pussy_gift_proofs" */ +export type PussyGiftProofsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PussyGiftProofsAvgFields = { + __typename?: 'pussy_gift_proofs_avg_fields'; + amount?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pussy_gift_proofs". All fields are combined with a logical 'AND'. */ +export type PussyGiftProofsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PussyGiftProofsMaxFields = { + __typename?: 'pussy_gift_proofs_max_fields'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + +/** aggregate min on columns */ +export type PussyGiftProofsMinFields = { + __typename?: 'pussy_gift_proofs_min_fields'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + +/** Ordering options when selecting data from "pussy_gift_proofs". */ +export type PussyGiftProofsOrderBy = { + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** select columns of table "pussy_gift_proofs" */ +export enum PussyGiftProofsSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Amount = 'amount', + /** column name */ + Details = 'details', + /** column name */ + Proof = 'proof' +} + +/** aggregate stddev on columns */ +export type PussyGiftProofsStddevFields = { + __typename?: 'pussy_gift_proofs_stddev_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PussyGiftProofsStddevPopFields = { + __typename?: 'pussy_gift_proofs_stddev_pop_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PussyGiftProofsStddevSampFields = { + __typename?: 'pussy_gift_proofs_stddev_samp_fields'; + amount?: Maybe; +}; + +/** aggregate sum on columns */ +export type PussyGiftProofsSumFields = { + __typename?: 'pussy_gift_proofs_sum_fields'; + amount?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PussyGiftProofsVarPopFields = { + __typename?: 'pussy_gift_proofs_var_pop_fields'; + amount?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PussyGiftProofsVarSampFields = { + __typename?: 'pussy_gift_proofs_var_samp_fields'; + amount?: Maybe; +}; + +/** aggregate variance on columns */ +export type PussyGiftProofsVarianceFields = { + __typename?: 'pussy_gift_proofs_variance_fields'; + amount?: Maybe; +}; + +export type QueryRoot = { + __typename?: 'query_root'; + /** fetch data from the table: "_transaction" */ + _transaction: Array; + /** fetch aggregated fields from the table: "_transaction" */ + _transaction_aggregate: TransactionAggregate; + /** fetch data from the table: "_uptime_temp" */ + _uptime_temp: Array; + /** fetch aggregated fields from the table: "_uptime_temp" */ + _uptime_temp_aggregate: UptimeTempAggregate; + /** fetch data from the table: "account" */ + account: Array; + /** fetch aggregated fields from the table: "account" */ + account_aggregate: AccountAggregate; + /** fetch data from the table: "account_balance" */ + account_balance: Array; + /** fetch aggregated fields from the table: "account_balance" */ + account_balance_aggregate: AccountBalanceAggregate; + /** fetch data from the table: "account_balance" using primary key columns */ + account_balance_by_pk?: Maybe; + /** fetch data from the table: "account" using primary key columns */ + account_by_pk?: Maybe; + /** fetch data from the table: "block" */ + block: Array; + /** fetch aggregated fields from the table: "block" */ + block_aggregate: BlockAggregate; + /** fetch data from the table: "block" using primary key columns */ + block_by_pk?: Maybe; + /** fetch data from the table: "contracts" */ + contracts: Array; + /** fetch aggregated fields from the table: "contracts" */ + contracts_aggregate: ContractsAggregate; + /** fetch data from the table: "contracts" using primary key columns */ + contracts_by_pk?: Maybe; + /** fetch data from the table: "cyb_cohort" */ + cyb_cohort: Array; + /** fetch aggregated fields from the table: "cyb_cohort" */ + cyb_cohort_aggregate: CybCohortAggregate; + /** fetch data from the table: "cyb_new_cohort" */ + cyb_new_cohort: Array; + /** fetch aggregated fields from the table: "cyb_new_cohort" */ + cyb_new_cohort_aggregate: CybNewCohortAggregate; + /** fetch data from the table: "cyber_gift" */ + cyber_gift: Array; + /** fetch aggregated fields from the table: "cyber_gift" */ + cyber_gift_aggregate: CyberGiftAggregate; + /** fetch data from the table: "cyber_gift_proofs" */ + cyber_gift_proofs: Array; + /** fetch aggregated fields from the table: "cyber_gift_proofs" */ + cyber_gift_proofs_aggregate: CyberGiftProofsAggregate; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + /** fetch data from the table: "cyberlinks" using primary key columns */ + cyberlinks_by_pk?: Maybe; + /** fetch data from the table: "cyberlinks_stats" */ + cyberlinks_stats: Array; + /** fetch aggregated fields from the table: "cyberlinks_stats" */ + cyberlinks_stats_aggregate: CyberlinksStatsAggregate; + /** fetch data from the table: "daily_amount_of_active_neurons" */ + daily_amount_of_active_neurons: Array; + /** fetch aggregated fields from the table: "daily_amount_of_active_neurons" */ + daily_amount_of_active_neurons_aggregate: DailyAmountOfActiveNeuronsAggregate; + /** fetch data from the table: "daily_amount_of_used_gas" */ + daily_amount_of_used_gas: Array; + /** fetch aggregated fields from the table: "daily_amount_of_used_gas" */ + daily_amount_of_used_gas_aggregate: DailyAmountOfUsedGasAggregate; + /** fetch data from the table: "daily_number_of_transactions" */ + daily_number_of_transactions: Array; + /** fetch aggregated fields from the table: "daily_number_of_transactions" */ + daily_number_of_transactions_aggregate: DailyNumberOfTransactionsAggregate; + /** fetch data from the table: "follow_stats" */ + follow_stats: Array; + /** fetch aggregated fields from the table: "follow_stats" */ + follow_stats_aggregate: FollowStatsAggregate; + /** fetch data from the table: "genesis_neurons_activation" */ + genesis_neurons_activation: Array; + /** fetch aggregated fields from the table: "genesis_neurons_activation" */ + genesis_neurons_activation_aggregate: GenesisNeuronsActivationAggregate; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + /** fetch data from the table: "investmints" using primary key columns */ + investmints_by_pk?: Maybe; + /** fetch data from the table: "message" */ + message: Array; + /** fetch aggregated fields from the table: "message" */ + message_aggregate: MessageAggregate; + /** execute function "messages_by_address" which returns "message" */ + messages_by_address: Array; + /** execute function "messages_by_address" and query aggregates on result of table type "message" */ + messages_by_address_aggregate: MessageAggregate; + /** fetch data from the table: "modules" */ + modules: Array; + /** fetch aggregated fields from the table: "modules" */ + modules_aggregate: ModulesAggregate; + /** fetch data from the table: "modules" using primary key columns */ + modules_by_pk?: Maybe; + /** fetch data from the table: "neuron_activation_source" */ + neuron_activation_source: Array; + /** fetch aggregated fields from the table: "neuron_activation_source" */ + neuron_activation_source_aggregate: NeuronActivationSourceAggregate; + /** fetch data from the table: "number_of_new_neurons" */ + number_of_new_neurons: Array; + /** fetch aggregated fields from the table: "number_of_new_neurons" */ + number_of_new_neurons_aggregate: NumberOfNewNeuronsAggregate; + /** fetch data from the table: "old_precommits" */ + old_precommits: Array; + /** fetch aggregated fields from the table: "old_precommits" */ + old_precommits_aggregate: OldPrecommitsAggregate; + /** fetch data from the table: "old_precommits" using primary key columns */ + old_precommits_by_pk?: Maybe; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + /** fetch data from the table: "particles" using primary key columns */ + particles_by_pk?: Maybe; + /** fetch data from the table: "pre_commit" */ + pre_commit: Array; + /** fetch aggregated fields from the table: "pre_commit" */ + pre_commit_aggregate: PreCommitAggregate; + /** fetch data from the table: "pre_commits_rewards_view" */ + pre_commits_rewards_view: Array; + /** fetch aggregated fields from the table: "pre_commits_rewards_view" */ + pre_commits_rewards_view_aggregate: PreCommitsRewardsViewAggregate; + /** fetch data from the table: "pre_commits_total" */ + pre_commits_total: Array; + /** fetch aggregated fields from the table: "pre_commits_total" */ + pre_commits_total_aggregate: PreCommitsTotalAggregate; + /** fetch data from the table: "pre_commits_view" */ + pre_commits_view: Array; + /** fetch aggregated fields from the table: "pre_commits_view" */ + pre_commits_view_aggregate: PreCommitsViewAggregate; + /** fetch data from the table: "pruning" */ + pruning: Array; + /** fetch aggregated fields from the table: "pruning" */ + pruning_aggregate: PruningAggregate; + /** fetch data from the table: "pussy_gift_proofs" */ + pussy_gift_proofs: Array; + /** fetch aggregated fields from the table: "pussy_gift_proofs" */ + pussy_gift_proofs_aggregate: PussyGiftProofsAggregate; + /** An array relationship */ + routes: Array; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; + /** fetch data from the table: "routes" using primary key columns */ + routes_by_pk?: Maybe; + /** fetch data from the table: "supply" */ + supply: Array; + /** fetch aggregated fields from the table: "supply" */ + supply_aggregate: SupplyAggregate; + /** fetch data from the table: "supply" using primary key columns */ + supply_by_pk?: Maybe; + /** fetch data from the table: "test_gift" */ + test_gift: Array; + /** fetch aggregated fields from the table: "test_gift" */ + test_gift_aggregate: TestGiftAggregate; + /** fetch data from the table: "today_top_txs" */ + today_top_txs: Array; + /** fetch aggregated fields from the table: "today_top_txs" */ + today_top_txs_aggregate: TodayTopTxsAggregate; + /** fetch data from the table: "top_10_of_active_neurons_week" */ + top_10_of_active_neurons_week: Array; + /** fetch aggregated fields from the table: "top_10_of_active_neurons_week" */ + top_10_of_active_neurons_week_aggregate: Top_10OfActiveNeuronsWeekAggregate; + /** fetch data from the table: "top_first_txs" */ + top_first_txs: Array; + /** fetch aggregated fields from the table: "top_first_txs" */ + top_first_txs_aggregate: TopFirstTxsAggregate; + /** fetch data from the table: "top_leaders" */ + top_leaders: Array; + /** fetch data from the table: "top_txs" */ + top_txs: Array; + /** fetch aggregated fields from the table: "top_txs" */ + top_txs_aggregate: TopTxsAggregate; + /** fetch data from the table: "transaction" */ + transaction: Array; + /** fetch aggregated fields from the table: "transaction" */ + transaction_aggregate: TransactionAggregate; + /** fetch data from the table: "transaction" using primary key columns */ + transaction_by_pk?: Maybe; + /** fetch data from the table: "tweets_stats" */ + tweets_stats: Array; + /** fetch aggregated fields from the table: "tweets_stats" */ + tweets_stats_aggregate: TweetsStatsAggregate; + /** fetch data from the table: "txs_ranked" */ + txs_ranked: Array; + /** fetch aggregated fields from the table: "txs_ranked" */ + txs_ranked_aggregate: TxsRankedAggregate; + /** fetch data from the table: "txs_stats" */ + txs_stats: Array; + /** fetch aggregated fields from the table: "txs_stats" */ + txs_stats_aggregate: TxsStatsAggregate; + /** fetch data from the table: "uptime" */ + uptime: Array; + /** fetch aggregated fields from the table: "uptime" */ + uptime_aggregate: UptimeAggregate; + /** fetch data from the table: "validator" */ + validator: Array; + /** fetch aggregated fields from the table: "validator" */ + validator_aggregate: ValidatorAggregate; + /** fetch data from the table: "validator" using primary key columns */ + validator_by_pk?: Maybe; + /** fetch data from the table: "volts_demand" */ + volts_demand: Array; + /** fetch aggregated fields from the table: "volts_demand" */ + volts_demand_aggregate: VoltsDemandAggregate; + /** fetch data from the table: "volts_stats" */ + volts_stats: Array; + /** fetch aggregated fields from the table: "volts_stats" */ + volts_stats_aggregate: VoltsStatsAggregate; +}; + + +export type QueryRootTransactionArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTransactionAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootUptimeTempArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootUptimeTempAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountBalanceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountBalanceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountBalanceByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type QueryRootAccountByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type QueryRootBlockArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootBlockAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootBlockByPkArgs = { + height: Scalars['bigint']['input']; +}; + + +export type QueryRootContractsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootContractsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootContractsByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type QueryRootCybCohortArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCybCohortAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCybNewCohortArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCybNewCohortAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberGiftArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberGiftAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberGiftProofsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberGiftProofsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberlinksByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type QueryRootCyberlinksStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberlinksStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyAmountOfActiveNeuronsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyAmountOfActiveNeuronsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyAmountOfUsedGasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyAmountOfUsedGasAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyNumberOfTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyNumberOfTransactionsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootFollowStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootFollowStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootGenesisNeuronsActivationArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootGenesisNeuronsActivationAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootInvestmintsByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type QueryRootMessageArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootMessageAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootMessagesByAddressArgs = { + args: MessagesByAddressArgs; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootMessagesByAddressAggregateArgs = { + args: MessagesByAddressArgs; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootModulesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootModulesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootModulesByPkArgs = { + module_name: Scalars['String']['input']; +}; + + +export type QueryRootNeuronActivationSourceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNeuronActivationSourceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNumberOfNewNeuronsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNumberOfNewNeuronsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootOldPrecommitsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootOldPrecommitsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootOldPrecommitsByPkArgs = { + consensus_address: Scalars['String']['input']; +}; + + +export type QueryRootParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootParticlesByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type QueryRootPreCommitArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsRewardsViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsRewardsViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsTotalArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsTotalAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPruningArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPruningAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPussyGiftProofsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPussyGiftProofsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootRoutesByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type QueryRootSupplyArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootSupplyAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootSupplyByPkArgs = { + one_row_id: Scalars['Boolean']['input']; +}; + + +export type QueryRootTestGiftArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTestGiftAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTodayTopTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTodayTopTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTop_10OfActiveNeuronsWeekArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTop_10OfActiveNeuronsWeekAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopFirstTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopFirstTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopLeadersArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTransactionArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTransactionAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTransactionByPkArgs = { + hash: Scalars['String']['input']; +}; + + +export type QueryRootTweetsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTweetsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTxsRankedArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTxsRankedAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTxsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTxsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootUptimeArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootUptimeAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootValidatorArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootValidatorAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootValidatorByPkArgs = { + consensus_address: Scalars['String']['input']; +}; + + +export type QueryRootVoltsDemandArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootVoltsDemandAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootVoltsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootVoltsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "routes" */ +export type Routes = { + __typename?: 'routes'; + /** An object relationship */ + account: Account; + /** An object relationship */ + accountBySource: Account; + alias: Scalars['String']['output']; + /** An object relationship */ + block: Block; + destination: Scalars['String']['output']; + height: Scalars['bigint']['output']; + id: Scalars['Int']['output']; + source: Scalars['String']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; + value: Scalars['_coin']['output']; +}; + +/** aggregated selection of "routes" */ +export type RoutesAggregate = { + __typename?: 'routes_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "routes" */ +export type RoutesAggregateFields = { + __typename?: 'routes_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "routes" */ +export type RoutesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "routes" */ +export type RoutesAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type RoutesAvgFields = { + __typename?: 'routes_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "routes" */ +export type RoutesAvgOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "routes". All fields are combined with a logical 'AND'. */ +export type RoutesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + accountBySource?: InputMaybe; + alias?: InputMaybe; + block?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + value?: InputMaybe; +}; + +/** aggregate max on columns */ +export type RoutesMaxFields = { + __typename?: 'routes_max_fields'; + alias?: Maybe; + destination?: Maybe; + height?: Maybe; + id?: Maybe; + source?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by max() on columns of table "routes" */ +export type RoutesMaxOrderBy = { + alias?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate min on columns */ +export type RoutesMinFields = { + __typename?: 'routes_min_fields'; + alias?: Maybe; + destination?: Maybe; + height?: Maybe; + id?: Maybe; + source?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by min() on columns of table "routes" */ +export type RoutesMinOrderBy = { + alias?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "routes". */ +export type RoutesOrderBy = { + account?: InputMaybe; + accountBySource?: InputMaybe; + alias?: InputMaybe; + block?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + value?: InputMaybe; +}; + +/** select columns of table "routes" */ +export enum RoutesSelectColumn { + /** column name */ + Alias = 'alias', + /** column name */ + Destination = 'destination', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Source = 'source', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Value = 'value' +} + +/** aggregate stddev on columns */ +export type RoutesStddevFields = { + __typename?: 'routes_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "routes" */ +export type RoutesStddevOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type RoutesStddevPopFields = { + __typename?: 'routes_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "routes" */ +export type RoutesStddevPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type RoutesStddevSampFields = { + __typename?: 'routes_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "routes" */ +export type RoutesStddevSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type RoutesSumFields = { + __typename?: 'routes_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "routes" */ +export type RoutesSumOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type RoutesVarPopFields = { + __typename?: 'routes_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "routes" */ +export type RoutesVarPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type RoutesVarSampFields = { + __typename?: 'routes_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "routes" */ +export type RoutesVarSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type RoutesVarianceFields = { + __typename?: 'routes_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "routes" */ +export type RoutesVarianceOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +export type SubscriptionRoot = { + __typename?: 'subscription_root'; + /** fetch data from the table: "_transaction" */ + _transaction: Array; + /** fetch aggregated fields from the table: "_transaction" */ + _transaction_aggregate: TransactionAggregate; + /** fetch data from the table: "_uptime_temp" */ + _uptime_temp: Array; + /** fetch aggregated fields from the table: "_uptime_temp" */ + _uptime_temp_aggregate: UptimeTempAggregate; + /** fetch data from the table: "account" */ + account: Array; + /** fetch aggregated fields from the table: "account" */ + account_aggregate: AccountAggregate; + /** fetch data from the table: "account_balance" */ + account_balance: Array; + /** fetch aggregated fields from the table: "account_balance" */ + account_balance_aggregate: AccountBalanceAggregate; + /** fetch data from the table: "account_balance" using primary key columns */ + account_balance_by_pk?: Maybe; + /** fetch data from the table: "account" using primary key columns */ + account_by_pk?: Maybe; + /** fetch data from the table: "block" */ + block: Array; + /** fetch aggregated fields from the table: "block" */ + block_aggregate: BlockAggregate; + /** fetch data from the table: "block" using primary key columns */ + block_by_pk?: Maybe; + /** fetch data from the table: "contracts" */ + contracts: Array; + /** fetch aggregated fields from the table: "contracts" */ + contracts_aggregate: ContractsAggregate; + /** fetch data from the table: "contracts" using primary key columns */ + contracts_by_pk?: Maybe; + /** fetch data from the table: "cyb_cohort" */ + cyb_cohort: Array; + /** fetch aggregated fields from the table: "cyb_cohort" */ + cyb_cohort_aggregate: CybCohortAggregate; + /** fetch data from the table: "cyb_new_cohort" */ + cyb_new_cohort: Array; + /** fetch aggregated fields from the table: "cyb_new_cohort" */ + cyb_new_cohort_aggregate: CybNewCohortAggregate; + /** fetch data from the table: "cyber_gift" */ + cyber_gift: Array; + /** fetch aggregated fields from the table: "cyber_gift" */ + cyber_gift_aggregate: CyberGiftAggregate; + /** fetch data from the table: "cyber_gift_proofs" */ + cyber_gift_proofs: Array; + /** fetch aggregated fields from the table: "cyber_gift_proofs" */ + cyber_gift_proofs_aggregate: CyberGiftProofsAggregate; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + /** fetch data from the table: "cyberlinks" using primary key columns */ + cyberlinks_by_pk?: Maybe; + /** fetch data from the table: "cyberlinks_stats" */ + cyberlinks_stats: Array; + /** fetch aggregated fields from the table: "cyberlinks_stats" */ + cyberlinks_stats_aggregate: CyberlinksStatsAggregate; + /** fetch data from the table: "daily_amount_of_active_neurons" */ + daily_amount_of_active_neurons: Array; + /** fetch aggregated fields from the table: "daily_amount_of_active_neurons" */ + daily_amount_of_active_neurons_aggregate: DailyAmountOfActiveNeuronsAggregate; + /** fetch data from the table: "daily_amount_of_used_gas" */ + daily_amount_of_used_gas: Array; + /** fetch aggregated fields from the table: "daily_amount_of_used_gas" */ + daily_amount_of_used_gas_aggregate: DailyAmountOfUsedGasAggregate; + /** fetch data from the table: "daily_number_of_transactions" */ + daily_number_of_transactions: Array; + /** fetch aggregated fields from the table: "daily_number_of_transactions" */ + daily_number_of_transactions_aggregate: DailyNumberOfTransactionsAggregate; + /** fetch data from the table: "follow_stats" */ + follow_stats: Array; + /** fetch aggregated fields from the table: "follow_stats" */ + follow_stats_aggregate: FollowStatsAggregate; + /** fetch data from the table: "genesis_neurons_activation" */ + genesis_neurons_activation: Array; + /** fetch aggregated fields from the table: "genesis_neurons_activation" */ + genesis_neurons_activation_aggregate: GenesisNeuronsActivationAggregate; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + /** fetch data from the table: "investmints" using primary key columns */ + investmints_by_pk?: Maybe; + /** fetch data from the table: "message" */ + message: Array; + /** fetch aggregated fields from the table: "message" */ + message_aggregate: MessageAggregate; + /** execute function "messages_by_address" which returns "message" */ + messages_by_address: Array; + /** execute function "messages_by_address" and query aggregates on result of table type "message" */ + messages_by_address_aggregate: MessageAggregate; + /** fetch data from the table: "modules" */ + modules: Array; + /** fetch aggregated fields from the table: "modules" */ + modules_aggregate: ModulesAggregate; + /** fetch data from the table: "modules" using primary key columns */ + modules_by_pk?: Maybe; + /** fetch data from the table: "neuron_activation_source" */ + neuron_activation_source: Array; + /** fetch aggregated fields from the table: "neuron_activation_source" */ + neuron_activation_source_aggregate: NeuronActivationSourceAggregate; + /** fetch data from the table: "number_of_new_neurons" */ + number_of_new_neurons: Array; + /** fetch aggregated fields from the table: "number_of_new_neurons" */ + number_of_new_neurons_aggregate: NumberOfNewNeuronsAggregate; + /** fetch data from the table: "old_precommits" */ + old_precommits: Array; + /** fetch aggregated fields from the table: "old_precommits" */ + old_precommits_aggregate: OldPrecommitsAggregate; + /** fetch data from the table: "old_precommits" using primary key columns */ + old_precommits_by_pk?: Maybe; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + /** fetch data from the table: "particles" using primary key columns */ + particles_by_pk?: Maybe; + /** fetch data from the table: "pre_commit" */ + pre_commit: Array; + /** fetch aggregated fields from the table: "pre_commit" */ + pre_commit_aggregate: PreCommitAggregate; + /** fetch data from the table: "pre_commits_rewards_view" */ + pre_commits_rewards_view: Array; + /** fetch aggregated fields from the table: "pre_commits_rewards_view" */ + pre_commits_rewards_view_aggregate: PreCommitsRewardsViewAggregate; + /** fetch data from the table: "pre_commits_total" */ + pre_commits_total: Array; + /** fetch aggregated fields from the table: "pre_commits_total" */ + pre_commits_total_aggregate: PreCommitsTotalAggregate; + /** fetch data from the table: "pre_commits_view" */ + pre_commits_view: Array; + /** fetch aggregated fields from the table: "pre_commits_view" */ + pre_commits_view_aggregate: PreCommitsViewAggregate; + /** fetch data from the table: "pruning" */ + pruning: Array; + /** fetch aggregated fields from the table: "pruning" */ + pruning_aggregate: PruningAggregate; + /** fetch data from the table: "pussy_gift_proofs" */ + pussy_gift_proofs: Array; + /** fetch aggregated fields from the table: "pussy_gift_proofs" */ + pussy_gift_proofs_aggregate: PussyGiftProofsAggregate; + /** An array relationship */ + routes: Array; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; + /** fetch data from the table: "routes" using primary key columns */ + routes_by_pk?: Maybe; + /** fetch data from the table: "supply" */ + supply: Array; + /** fetch aggregated fields from the table: "supply" */ + supply_aggregate: SupplyAggregate; + /** fetch data from the table: "supply" using primary key columns */ + supply_by_pk?: Maybe; + /** fetch data from the table: "test_gift" */ + test_gift: Array; + /** fetch aggregated fields from the table: "test_gift" */ + test_gift_aggregate: TestGiftAggregate; + /** fetch data from the table: "today_top_txs" */ + today_top_txs: Array; + /** fetch aggregated fields from the table: "today_top_txs" */ + today_top_txs_aggregate: TodayTopTxsAggregate; + /** fetch data from the table: "top_10_of_active_neurons_week" */ + top_10_of_active_neurons_week: Array; + /** fetch aggregated fields from the table: "top_10_of_active_neurons_week" */ + top_10_of_active_neurons_week_aggregate: Top_10OfActiveNeuronsWeekAggregate; + /** fetch data from the table: "top_first_txs" */ + top_first_txs: Array; + /** fetch aggregated fields from the table: "top_first_txs" */ + top_first_txs_aggregate: TopFirstTxsAggregate; + /** fetch data from the table: "top_leaders" */ + top_leaders: Array; + /** fetch data from the table: "top_txs" */ + top_txs: Array; + /** fetch aggregated fields from the table: "top_txs" */ + top_txs_aggregate: TopTxsAggregate; + /** fetch data from the table: "transaction" */ + transaction: Array; + /** fetch aggregated fields from the table: "transaction" */ + transaction_aggregate: TransactionAggregate; + /** fetch data from the table: "transaction" using primary key columns */ + transaction_by_pk?: Maybe; + /** fetch data from the table: "tweets_stats" */ + tweets_stats: Array; + /** fetch aggregated fields from the table: "tweets_stats" */ + tweets_stats_aggregate: TweetsStatsAggregate; + /** fetch data from the table: "txs_ranked" */ + txs_ranked: Array; + /** fetch aggregated fields from the table: "txs_ranked" */ + txs_ranked_aggregate: TxsRankedAggregate; + /** fetch data from the table: "txs_stats" */ + txs_stats: Array; + /** fetch aggregated fields from the table: "txs_stats" */ + txs_stats_aggregate: TxsStatsAggregate; + /** fetch data from the table: "uptime" */ + uptime: Array; + /** fetch aggregated fields from the table: "uptime" */ + uptime_aggregate: UptimeAggregate; + /** fetch data from the table: "validator" */ + validator: Array; + /** fetch aggregated fields from the table: "validator" */ + validator_aggregate: ValidatorAggregate; + /** fetch data from the table: "validator" using primary key columns */ + validator_by_pk?: Maybe; + /** fetch data from the table: "volts_demand" */ + volts_demand: Array; + /** fetch aggregated fields from the table: "volts_demand" */ + volts_demand_aggregate: VoltsDemandAggregate; + /** fetch data from the table: "volts_stats" */ + volts_stats: Array; + /** fetch aggregated fields from the table: "volts_stats" */ + volts_stats_aggregate: VoltsStatsAggregate; +}; + + +export type SubscriptionRootTransactionArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTransactionAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUptimeTempArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUptimeTempAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountBalanceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountBalanceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountBalanceByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type SubscriptionRootAccountByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type SubscriptionRootBlockArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootBlockAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootBlockByPkArgs = { + height: Scalars['bigint']['input']; +}; + + +export type SubscriptionRootContractsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootContractsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootContractsByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type SubscriptionRootCybCohortArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCybCohortAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCybNewCohortArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCybNewCohortAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberGiftArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberGiftAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberGiftProofsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberGiftProofsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberlinksByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type SubscriptionRootCyberlinksStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberlinksStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyAmountOfActiveNeuronsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyAmountOfActiveNeuronsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyAmountOfUsedGasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyAmountOfUsedGasAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyNumberOfTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyNumberOfTransactionsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootFollowStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootFollowStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootGenesisNeuronsActivationArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootGenesisNeuronsActivationAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootInvestmintsByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type SubscriptionRootMessageArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootMessageAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootMessagesByAddressArgs = { + args: MessagesByAddressArgs; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootMessagesByAddressAggregateArgs = { + args: MessagesByAddressArgs; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootModulesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootModulesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootModulesByPkArgs = { + module_name: Scalars['String']['input']; +}; + + +export type SubscriptionRootNeuronActivationSourceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNeuronActivationSourceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNumberOfNewNeuronsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNumberOfNewNeuronsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootOldPrecommitsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootOldPrecommitsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootOldPrecommitsByPkArgs = { + consensus_address: Scalars['String']['input']; +}; + + +export type SubscriptionRootParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootParticlesByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type SubscriptionRootPreCommitArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsRewardsViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsRewardsViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsTotalArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsTotalAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPruningArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPruningAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPussyGiftProofsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPussyGiftProofsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootRoutesByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type SubscriptionRootSupplyArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootSupplyAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootSupplyByPkArgs = { + one_row_id: Scalars['Boolean']['input']; +}; + + +export type SubscriptionRootTestGiftArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTestGiftAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTodayTopTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTodayTopTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTop_10OfActiveNeuronsWeekArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTop_10OfActiveNeuronsWeekAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopFirstTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopFirstTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopLeadersArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTransactionArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTransactionAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTransactionByPkArgs = { + hash: Scalars['String']['input']; +}; + + +export type SubscriptionRootTweetsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTweetsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTxsRankedArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTxsRankedAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTxsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTxsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUptimeArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUptimeAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootValidatorArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootValidatorAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootValidatorByPkArgs = { + consensus_address: Scalars['String']['input']; +}; + + +export type SubscriptionRootVoltsDemandArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootVoltsDemandAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootVoltsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootVoltsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "supply" */ +export type Supply = { + __typename?: 'supply'; + coins: Scalars['_coin']['output']; + height: Scalars['bigint']['output']; + one_row_id: Scalars['Boolean']['output']; +}; + +/** aggregated selection of "supply" */ +export type SupplyAggregate = { + __typename?: 'supply_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "supply" */ +export type SupplyAggregateFields = { + __typename?: 'supply_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "supply" */ +export type SupplyAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type SupplyAvgFields = { + __typename?: 'supply_avg_fields'; + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "supply". All fields are combined with a logical 'AND'. */ +export type SupplyBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + coins?: InputMaybe; + height?: InputMaybe; + one_row_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type SupplyMaxFields = { + __typename?: 'supply_max_fields'; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type SupplyMinFields = { + __typename?: 'supply_min_fields'; + height?: Maybe; +}; + +/** Ordering options when selecting data from "supply". */ +export type SupplyOrderBy = { + coins?: InputMaybe; + height?: InputMaybe; + one_row_id?: InputMaybe; +}; + +/** select columns of table "supply" */ +export enum SupplySelectColumn { + /** column name */ + Coins = 'coins', + /** column name */ + Height = 'height', + /** column name */ + OneRowId = 'one_row_id' +} + +/** aggregate stddev on columns */ +export type SupplyStddevFields = { + __typename?: 'supply_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type SupplyStddevPopFields = { + __typename?: 'supply_stddev_pop_fields'; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type SupplyStddevSampFields = { + __typename?: 'supply_stddev_samp_fields'; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type SupplySumFields = { + __typename?: 'supply_sum_fields'; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type SupplyVarPopFields = { + __typename?: 'supply_var_pop_fields'; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type SupplyVarSampFields = { + __typename?: 'supply_var_samp_fields'; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type SupplyVarianceFields = { + __typename?: 'supply_variance_fields'; + height?: Maybe; +}; + +/** columns and relationships of "test_gift" */ +export type TestGift = { + __typename?: 'test_gift'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + + +/** columns and relationships of "test_gift" */ +export type TestGiftDetailsArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "test_gift" */ +export type TestGiftAggregate = { + __typename?: 'test_gift_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "test_gift" */ +export type TestGiftAggregateFields = { + __typename?: 'test_gift_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "test_gift" */ +export type TestGiftAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TestGiftAvgFields = { + __typename?: 'test_gift_avg_fields'; + amount?: Maybe; +}; + +/** Boolean expression to filter rows from the table "test_gift". All fields are combined with a logical 'AND'. */ +export type TestGiftBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TestGiftMaxFields = { + __typename?: 'test_gift_max_fields'; + address?: Maybe; + amount?: Maybe; + proof?: Maybe; +}; + +/** aggregate min on columns */ +export type TestGiftMinFields = { + __typename?: 'test_gift_min_fields'; + address?: Maybe; + amount?: Maybe; + proof?: Maybe; +}; + +/** Ordering options when selecting data from "test_gift". */ +export type TestGiftOrderBy = { + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** select columns of table "test_gift" */ +export enum TestGiftSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Amount = 'amount', + /** column name */ + Details = 'details', + /** column name */ + Proof = 'proof' +} + +/** aggregate stddev on columns */ +export type TestGiftStddevFields = { + __typename?: 'test_gift_stddev_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TestGiftStddevPopFields = { + __typename?: 'test_gift_stddev_pop_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TestGiftStddevSampFields = { + __typename?: 'test_gift_stddev_samp_fields'; + amount?: Maybe; +}; + +/** aggregate sum on columns */ +export type TestGiftSumFields = { + __typename?: 'test_gift_sum_fields'; + amount?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TestGiftVarPopFields = { + __typename?: 'test_gift_var_pop_fields'; + amount?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TestGiftVarSampFields = { + __typename?: 'test_gift_var_samp_fields'; + amount?: Maybe; +}; + +/** aggregate variance on columns */ +export type TestGiftVarianceFields = { + __typename?: 'test_gift_variance_fields'; + amount?: Maybe; +}; + +/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ +export type TimestampComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "today_top_txs" */ +export type TodayTopTxs = { + __typename?: 'today_top_txs'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregated selection of "today_top_txs" */ +export type TodayTopTxsAggregate = { + __typename?: 'today_top_txs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "today_top_txs" */ +export type TodayTopTxsAggregateFields = { + __typename?: 'today_top_txs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "today_top_txs" */ +export type TodayTopTxsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TodayTopTxsAvgFields = { + __typename?: 'today_top_txs_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "today_top_txs". All fields are combined with a logical 'AND'. */ +export type TodayTopTxsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TodayTopTxsMaxFields = { + __typename?: 'today_top_txs_max_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type TodayTopTxsMinFields = { + __typename?: 'today_top_txs_min_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "today_top_txs". */ +export type TodayTopTxsOrderBy = { + count?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "today_top_txs" */ +export enum TodayTopTxsSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Type = 'type' +} + +/** aggregate stddev on columns */ +export type TodayTopTxsStddevFields = { + __typename?: 'today_top_txs_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TodayTopTxsStddevPopFields = { + __typename?: 'today_top_txs_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TodayTopTxsStddevSampFields = { + __typename?: 'today_top_txs_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type TodayTopTxsSumFields = { + __typename?: 'today_top_txs_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TodayTopTxsVarPopFields = { + __typename?: 'today_top_txs_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TodayTopTxsVarSampFields = { + __typename?: 'today_top_txs_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type TodayTopTxsVarianceFields = { + __typename?: 'today_top_txs_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "top_10_of_active_neurons_week" */ +export type Top_10OfActiveNeuronsWeek = { + __typename?: 'top_10_of_active_neurons_week'; + count?: Maybe; + pubkey?: Maybe; +}; + +/** aggregated selection of "top_10_of_active_neurons_week" */ +export type Top_10OfActiveNeuronsWeekAggregate = { + __typename?: 'top_10_of_active_neurons_week_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "top_10_of_active_neurons_week" */ +export type Top_10OfActiveNeuronsWeekAggregateFields = { + __typename?: 'top_10_of_active_neurons_week_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "top_10_of_active_neurons_week" */ +export type Top_10OfActiveNeuronsWeekAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Top_10OfActiveNeuronsWeekAvgFields = { + __typename?: 'top_10_of_active_neurons_week_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "top_10_of_active_neurons_week". All fields are combined with a logical 'AND'. */ +export type Top_10OfActiveNeuronsWeekBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + pubkey?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Top_10OfActiveNeuronsWeekMaxFields = { + __typename?: 'top_10_of_active_neurons_week_max_fields'; + count?: Maybe; + pubkey?: Maybe; +}; + +/** aggregate min on columns */ +export type Top_10OfActiveNeuronsWeekMinFields = { + __typename?: 'top_10_of_active_neurons_week_min_fields'; + count?: Maybe; + pubkey?: Maybe; +}; + +/** Ordering options when selecting data from "top_10_of_active_neurons_week". */ +export type Top_10OfActiveNeuronsWeekOrderBy = { + count?: InputMaybe; + pubkey?: InputMaybe; +}; + +/** select columns of table "top_10_of_active_neurons_week" */ +export enum Top_10OfActiveNeuronsWeekSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Pubkey = 'pubkey' +} + +/** aggregate stddev on columns */ +export type Top_10OfActiveNeuronsWeekStddevFields = { + __typename?: 'top_10_of_active_neurons_week_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Top_10OfActiveNeuronsWeekStddevPopFields = { + __typename?: 'top_10_of_active_neurons_week_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Top_10OfActiveNeuronsWeekStddevSampFields = { + __typename?: 'top_10_of_active_neurons_week_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type Top_10OfActiveNeuronsWeekSumFields = { + __typename?: 'top_10_of_active_neurons_week_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Top_10OfActiveNeuronsWeekVarPopFields = { + __typename?: 'top_10_of_active_neurons_week_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Top_10OfActiveNeuronsWeekVarSampFields = { + __typename?: 'top_10_of_active_neurons_week_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type Top_10OfActiveNeuronsWeekVarianceFields = { + __typename?: 'top_10_of_active_neurons_week_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "top_first_txs" */ +export type TopFirstTxs = { + __typename?: 'top_first_txs'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregated selection of "top_first_txs" */ +export type TopFirstTxsAggregate = { + __typename?: 'top_first_txs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "top_first_txs" */ +export type TopFirstTxsAggregateFields = { + __typename?: 'top_first_txs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "top_first_txs" */ +export type TopFirstTxsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TopFirstTxsAvgFields = { + __typename?: 'top_first_txs_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "top_first_txs". All fields are combined with a logical 'AND'. */ +export type TopFirstTxsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TopFirstTxsMaxFields = { + __typename?: 'top_first_txs_max_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type TopFirstTxsMinFields = { + __typename?: 'top_first_txs_min_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "top_first_txs". */ +export type TopFirstTxsOrderBy = { + count?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "top_first_txs" */ +export enum TopFirstTxsSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Type = 'type' +} + +/** aggregate stddev on columns */ +export type TopFirstTxsStddevFields = { + __typename?: 'top_first_txs_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TopFirstTxsStddevPopFields = { + __typename?: 'top_first_txs_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TopFirstTxsStddevSampFields = { + __typename?: 'top_first_txs_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type TopFirstTxsSumFields = { + __typename?: 'top_first_txs_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TopFirstTxsVarPopFields = { + __typename?: 'top_first_txs_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TopFirstTxsVarSampFields = { + __typename?: 'top_first_txs_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type TopFirstTxsVarianceFields = { + __typename?: 'top_first_txs_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "top_leaders" */ +export type TopLeaders = { + __typename?: 'top_leaders'; + count?: Maybe; + neuron?: Maybe; +}; + +/** Boolean expression to filter rows from the table "top_leaders". All fields are combined with a logical 'AND'. */ +export type TopLeadersBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + neuron?: InputMaybe; +}; + +/** Ordering options when selecting data from "top_leaders". */ +export type TopLeadersOrderBy = { + count?: InputMaybe; + neuron?: InputMaybe; +}; + +/** select columns of table "top_leaders" */ +export enum TopLeadersSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Neuron = 'neuron' +} + +/** columns and relationships of "top_txs" */ +export type TopTxs = { + __typename?: 'top_txs'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregated selection of "top_txs" */ +export type TopTxsAggregate = { + __typename?: 'top_txs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "top_txs" */ +export type TopTxsAggregateFields = { + __typename?: 'top_txs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "top_txs" */ +export type TopTxsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TopTxsAvgFields = { + __typename?: 'top_txs_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "top_txs". All fields are combined with a logical 'AND'. */ +export type TopTxsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TopTxsMaxFields = { + __typename?: 'top_txs_max_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type TopTxsMinFields = { + __typename?: 'top_txs_min_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "top_txs". */ +export type TopTxsOrderBy = { + count?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "top_txs" */ +export enum TopTxsSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Type = 'type' +} + +/** aggregate stddev on columns */ +export type TopTxsStddevFields = { + __typename?: 'top_txs_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TopTxsStddevPopFields = { + __typename?: 'top_txs_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TopTxsStddevSampFields = { + __typename?: 'top_txs_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type TopTxsSumFields = { + __typename?: 'top_txs_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TopTxsVarPopFields = { + __typename?: 'top_txs_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TopTxsVarSampFields = { + __typename?: 'top_txs_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type TopTxsVarianceFields = { + __typename?: 'top_txs_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "transaction" */ +export type Transaction = { + __typename?: 'transaction'; + /** An object relationship */ + block: Block; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + fee: Scalars['jsonb']['output']; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash: Scalars['String']['output']; + height: Scalars['bigint']['output']; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + logs?: Maybe; + memo?: Maybe; + messages: Scalars['jsonb']['output']; + /** An array relationship */ + messagesByTransactionHash: Array; + /** An aggregate relationship */ + messagesByTransactionHash_aggregate: MessageAggregate; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + raw_log?: Maybe; + /** An array relationship */ + routes: Array; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; + signatures: Scalars['_text']['output']; + signer_infos: Scalars['jsonb']['output']; + success: Scalars['Boolean']['output']; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionFeeArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionLogsArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesByTransactionHashArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesByTransactionHashAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionSignerInfosArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "transaction" */ +export type TransactionAggregate = { + __typename?: 'transaction_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "transaction" */ +export type TransactionAggregateFields = { + __typename?: 'transaction_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "transaction" */ +export type TransactionAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "transaction" */ +export type TransactionAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TransactionAvgFields = { + __typename?: 'transaction_avg_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by avg() on columns of table "transaction" */ +export type TransactionAvgOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ +export type TransactionBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + cyberlinks?: InputMaybe; + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + messagesByTransactionHash?: InputMaybe; + particles?: InputMaybe; + raw_log?: InputMaybe; + routes?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + success?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TransactionMaxFields = { + __typename?: 'transaction_max_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + raw_log?: Maybe; +}; + +/** order by max() on columns of table "transaction" */ +export type TransactionMaxOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + memo?: InputMaybe; + raw_log?: InputMaybe; +}; + +/** aggregate min on columns */ +export type TransactionMinFields = { + __typename?: 'transaction_min_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + raw_log?: Maybe; +}; + +/** order by min() on columns of table "transaction" */ +export type TransactionMinOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + memo?: InputMaybe; + raw_log?: InputMaybe; +}; + +/** Ordering options when selecting data from "transaction". */ +export type TransactionOrderBy = { + block?: InputMaybe; + cyberlinks_aggregate?: InputMaybe; + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints_aggregate?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + messagesByTransactionHash_aggregate?: InputMaybe; + particles_aggregate?: InputMaybe; + raw_log?: InputMaybe; + routes_aggregate?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + success?: InputMaybe; +}; + +/** select columns of table "transaction" */ +export enum TransactionSelectColumn { + /** column name */ + Fee = 'fee', + /** column name */ + GasUsed = 'gas_used', + /** column name */ + GasWanted = 'gas_wanted', + /** column name */ + Hash = 'hash', + /** column name */ + Height = 'height', + /** column name */ + Logs = 'logs', + /** column name */ + Memo = 'memo', + /** column name */ + Messages = 'messages', + /** column name */ + RawLog = 'raw_log', + /** column name */ + Signatures = 'signatures', + /** column name */ + SignerInfos = 'signer_infos', + /** column name */ + Success = 'success' +} + +/** aggregate stddev on columns */ +export type TransactionStddevFields = { + __typename?: 'transaction_stddev_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by stddev() on columns of table "transaction" */ +export type TransactionStddevOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type TransactionStddevPopFields = { + __typename?: 'transaction_stddev_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "transaction" */ +export type TransactionStddevPopOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type TransactionStddevSampFields = { + __typename?: 'transaction_stddev_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "transaction" */ +export type TransactionStddevSampOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type TransactionSumFields = { + __typename?: 'transaction_sum_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by sum() on columns of table "transaction" */ +export type TransactionSumOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type TransactionVarPopFields = { + __typename?: 'transaction_var_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "transaction" */ +export type TransactionVarPopOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type TransactionVarSampFields = { + __typename?: 'transaction_var_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "transaction" */ +export type TransactionVarSampOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type TransactionVarianceFields = { + __typename?: 'transaction_variance_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by variance() on columns of table "transaction" */ +export type TransactionVarianceOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** columns and relationships of "tweets_stats" */ +export type TweetsStats = { + __typename?: 'tweets_stats'; + date?: Maybe; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregated selection of "tweets_stats" */ +export type TweetsStatsAggregate = { + __typename?: 'tweets_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "tweets_stats" */ +export type TweetsStatsAggregateFields = { + __typename?: 'tweets_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "tweets_stats" */ +export type TweetsStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TweetsStatsAvgFields = { + __typename?: 'tweets_stats_avg_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** Boolean expression to filter rows from the table "tweets_stats". All fields are combined with a logical 'AND'. */ +export type TweetsStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + tweets?: InputMaybe; + tweets_per_day?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TweetsStatsMaxFields = { + __typename?: 'tweets_stats_max_fields'; + date?: Maybe; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate min on columns */ +export type TweetsStatsMinFields = { + __typename?: 'tweets_stats_min_fields'; + date?: Maybe; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** Ordering options when selecting data from "tweets_stats". */ +export type TweetsStatsOrderBy = { + date?: InputMaybe; + tweets?: InputMaybe; + tweets_per_day?: InputMaybe; +}; + +/** select columns of table "tweets_stats" */ +export enum TweetsStatsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + Tweets = 'tweets', + /** column name */ + TweetsPerDay = 'tweets_per_day' +} + +/** aggregate stddev on columns */ +export type TweetsStatsStddevFields = { + __typename?: 'tweets_stats_stddev_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TweetsStatsStddevPopFields = { + __typename?: 'tweets_stats_stddev_pop_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TweetsStatsStddevSampFields = { + __typename?: 'tweets_stats_stddev_samp_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate sum on columns */ +export type TweetsStatsSumFields = { + __typename?: 'tweets_stats_sum_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TweetsStatsVarPopFields = { + __typename?: 'tweets_stats_var_pop_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TweetsStatsVarSampFields = { + __typename?: 'tweets_stats_var_samp_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate variance on columns */ +export type TweetsStatsVarianceFields = { + __typename?: 'tweets_stats_variance_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** columns and relationships of "txs_ranked" */ +export type TxsRanked = { + __typename?: 'txs_ranked'; + height?: Maybe; + neuron?: Maybe; + rank?: Maybe; + type?: Maybe; + week?: Maybe; +}; + +/** aggregated selection of "txs_ranked" */ +export type TxsRankedAggregate = { + __typename?: 'txs_ranked_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "txs_ranked" */ +export type TxsRankedAggregateFields = { + __typename?: 'txs_ranked_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "txs_ranked" */ +export type TxsRankedAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TxsRankedAvgFields = { + __typename?: 'txs_ranked_avg_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** Boolean expression to filter rows from the table "txs_ranked". All fields are combined with a logical 'AND'. */ +export type TxsRankedBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + height?: InputMaybe; + neuron?: InputMaybe; + rank?: InputMaybe; + type?: InputMaybe; + week?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TxsRankedMaxFields = { + __typename?: 'txs_ranked_max_fields'; + height?: Maybe; + neuron?: Maybe; + rank?: Maybe; + type?: Maybe; + week?: Maybe; +}; + +/** aggregate min on columns */ +export type TxsRankedMinFields = { + __typename?: 'txs_ranked_min_fields'; + height?: Maybe; + neuron?: Maybe; + rank?: Maybe; + type?: Maybe; + week?: Maybe; +}; + +/** Ordering options when selecting data from "txs_ranked". */ +export type TxsRankedOrderBy = { + height?: InputMaybe; + neuron?: InputMaybe; + rank?: InputMaybe; + type?: InputMaybe; + week?: InputMaybe; +}; + +/** select columns of table "txs_ranked" */ +export enum TxsRankedSelectColumn { + /** column name */ + Height = 'height', + /** column name */ + Neuron = 'neuron', + /** column name */ + Rank = 'rank', + /** column name */ + Type = 'type', + /** column name */ + Week = 'week' +} + +/** aggregate stddev on columns */ +export type TxsRankedStddevFields = { + __typename?: 'txs_ranked_stddev_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TxsRankedStddevPopFields = { + __typename?: 'txs_ranked_stddev_pop_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TxsRankedStddevSampFields = { + __typename?: 'txs_ranked_stddev_samp_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate sum on columns */ +export type TxsRankedSumFields = { + __typename?: 'txs_ranked_sum_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TxsRankedVarPopFields = { + __typename?: 'txs_ranked_var_pop_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TxsRankedVarSampFields = { + __typename?: 'txs_ranked_var_samp_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate variance on columns */ +export type TxsRankedVarianceFields = { + __typename?: 'txs_ranked_variance_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** columns and relationships of "txs_stats" */ +export type TxsStats = { + __typename?: 'txs_stats'; + date?: Maybe; + height?: Maybe; + msg_type?: Maybe; + pubkey?: Maybe; + rank?: Maybe; +}; + + +/** columns and relationships of "txs_stats" */ +export type TxsStatsPubkeyArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "txs_stats" */ +export type TxsStatsAggregate = { + __typename?: 'txs_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "txs_stats" */ +export type TxsStatsAggregateFields = { + __typename?: 'txs_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "txs_stats" */ +export type TxsStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TxsStatsAvgFields = { + __typename?: 'txs_stats_avg_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** Boolean expression to filter rows from the table "txs_stats". All fields are combined with a logical 'AND'. */ +export type TxsStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + height?: InputMaybe; + msg_type?: InputMaybe; + pubkey?: InputMaybe; + rank?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TxsStatsMaxFields = { + __typename?: 'txs_stats_max_fields'; + date?: Maybe; + height?: Maybe; + msg_type?: Maybe; + rank?: Maybe; +}; + +/** aggregate min on columns */ +export type TxsStatsMinFields = { + __typename?: 'txs_stats_min_fields'; + date?: Maybe; + height?: Maybe; + msg_type?: Maybe; + rank?: Maybe; +}; + +/** Ordering options when selecting data from "txs_stats". */ +export type TxsStatsOrderBy = { + date?: InputMaybe; + height?: InputMaybe; + msg_type?: InputMaybe; + pubkey?: InputMaybe; + rank?: InputMaybe; +}; + +/** select columns of table "txs_stats" */ +export enum TxsStatsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + Height = 'height', + /** column name */ + MsgType = 'msg_type', + /** column name */ + Pubkey = 'pubkey', + /** column name */ + Rank = 'rank' +} + +/** aggregate stddev on columns */ +export type TxsStatsStddevFields = { + __typename?: 'txs_stats_stddev_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TxsStatsStddevPopFields = { + __typename?: 'txs_stats_stddev_pop_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TxsStatsStddevSampFields = { + __typename?: 'txs_stats_stddev_samp_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate sum on columns */ +export type TxsStatsSumFields = { + __typename?: 'txs_stats_sum_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TxsStatsVarPopFields = { + __typename?: 'txs_stats_var_pop_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TxsStatsVarSampFields = { + __typename?: 'txs_stats_var_samp_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate variance on columns */ +export type TxsStatsVarianceFields = { + __typename?: 'txs_stats_variance_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** columns and relationships of "uptime" */ +export type Uptime = { + __typename?: 'uptime'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregated selection of "uptime" */ +export type UptimeAggregate = { + __typename?: 'uptime_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "uptime" */ +export type UptimeAggregateFields = { + __typename?: 'uptime_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "uptime" */ +export type UptimeAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type UptimeAvgFields = { + __typename?: 'uptime_avg_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** Boolean expression to filter rows from the table "uptime". All fields are combined with a logical 'AND'. */ +export type UptimeBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; + uptime?: InputMaybe; +}; + +/** aggregate max on columns */ +export type UptimeMaxFields = { + __typename?: 'uptime_max_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate min on columns */ +export type UptimeMinFields = { + __typename?: 'uptime_min_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** Ordering options when selecting data from "uptime". */ +export type UptimeOrderBy = { + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; + uptime?: InputMaybe; +}; + +/** select columns of table "uptime" */ +export enum UptimeSelectColumn { + /** column name */ + ConsensusAddress = 'consensus_address', + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + PreCommits = 'pre_commits', + /** column name */ + Uptime = 'uptime' +} + +/** aggregate stddev on columns */ +export type UptimeStddevFields = { + __typename?: 'uptime_stddev_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type UptimeStddevPopFields = { + __typename?: 'uptime_stddev_pop_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type UptimeStddevSampFields = { + __typename?: 'uptime_stddev_samp_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate sum on columns */ +export type UptimeSumFields = { + __typename?: 'uptime_sum_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type UptimeVarPopFields = { + __typename?: 'uptime_var_pop_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type UptimeVarSampFields = { + __typename?: 'uptime_var_samp_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate variance on columns */ +export type UptimeVarianceFields = { + __typename?: 'uptime_variance_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** columns and relationships of "validator" */ +export type Validator = { + __typename?: 'validator'; + /** An array relationship */ + blocks: Array; + /** An aggregate relationship */ + blocks_aggregate: BlockAggregate; + consensus_address: Scalars['String']['output']; + consensus_pubkey: Scalars['String']['output']; + /** An array relationship */ + pre_commits: Array; + /** An aggregate relationship */ + pre_commits_aggregate: PreCommitAggregate; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorBlocksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorBlocksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorPreCommitsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorPreCommitsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "validator" */ +export type ValidatorAggregate = { + __typename?: 'validator_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "validator" */ +export type ValidatorAggregateFields = { + __typename?: 'validator_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "validator" */ +export type ValidatorAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "validator". All fields are combined with a logical 'AND'. */ +export type ValidatorBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + blocks?: InputMaybe; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type ValidatorMaxFields = { + __typename?: 'validator_max_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; +}; + +/** aggregate min on columns */ +export type ValidatorMinFields = { + __typename?: 'validator_min_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; +}; + +/** Ordering options when selecting data from "validator". */ +export type ValidatorOrderBy = { + blocks_aggregate?: InputMaybe; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits_aggregate?: InputMaybe; +}; + +/** select columns of table "validator" */ +export enum ValidatorSelectColumn { + /** column name */ + ConsensusAddress = 'consensus_address', + /** column name */ + ConsensusPubkey = 'consensus_pubkey' +} + +/** columns and relationships of "volts_demand" */ +export type VoltsDemand = { + __typename?: 'volts_demand'; + cyberlinks_per_day?: Maybe; + date?: Maybe; + volts?: Maybe; +}; + +/** aggregated selection of "volts_demand" */ +export type VoltsDemandAggregate = { + __typename?: 'volts_demand_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "volts_demand" */ +export type VoltsDemandAggregateFields = { + __typename?: 'volts_demand_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "volts_demand" */ +export type VoltsDemandAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type VoltsDemandAvgFields = { + __typename?: 'volts_demand_avg_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** Boolean expression to filter rows from the table "volts_demand". All fields are combined with a logical 'AND'. */ +export type VoltsDemandBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; + volts?: InputMaybe; +}; + +/** aggregate max on columns */ +export type VoltsDemandMaxFields = { + __typename?: 'volts_demand_max_fields'; + cyberlinks_per_day?: Maybe; + date?: Maybe; + volts?: Maybe; +}; + +/** aggregate min on columns */ +export type VoltsDemandMinFields = { + __typename?: 'volts_demand_min_fields'; + cyberlinks_per_day?: Maybe; + date?: Maybe; + volts?: Maybe; +}; + +/** Ordering options when selecting data from "volts_demand". */ +export type VoltsDemandOrderBy = { + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; + volts?: InputMaybe; +}; + +/** select columns of table "volts_demand" */ +export enum VoltsDemandSelectColumn { + /** column name */ + CyberlinksPerDay = 'cyberlinks_per_day', + /** column name */ + Date = 'date', + /** column name */ + Volts = 'volts' +} + +/** aggregate stddev on columns */ +export type VoltsDemandStddevFields = { + __typename?: 'volts_demand_stddev_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type VoltsDemandStddevPopFields = { + __typename?: 'volts_demand_stddev_pop_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type VoltsDemandStddevSampFields = { + __typename?: 'volts_demand_stddev_samp_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate sum on columns */ +export type VoltsDemandSumFields = { + __typename?: 'volts_demand_sum_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type VoltsDemandVarPopFields = { + __typename?: 'volts_demand_var_pop_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type VoltsDemandVarSampFields = { + __typename?: 'volts_demand_var_samp_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate variance on columns */ +export type VoltsDemandVarianceFields = { + __typename?: 'volts_demand_variance_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** columns and relationships of "volts_stats" */ +export type VoltsStats = { + __typename?: 'volts_stats'; + date?: Maybe; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregated selection of "volts_stats" */ +export type VoltsStatsAggregate = { + __typename?: 'volts_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "volts_stats" */ +export type VoltsStatsAggregateFields = { + __typename?: 'volts_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "volts_stats" */ +export type VoltsStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type VoltsStatsAvgFields = { + __typename?: 'volts_stats_avg_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** Boolean expression to filter rows from the table "volts_stats". All fields are combined with a logical 'AND'. */ +export type VoltsStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + volts?: InputMaybe; + volts_per_day?: InputMaybe; +}; + +/** aggregate max on columns */ +export type VoltsStatsMaxFields = { + __typename?: 'volts_stats_max_fields'; + date?: Maybe; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate min on columns */ +export type VoltsStatsMinFields = { + __typename?: 'volts_stats_min_fields'; + date?: Maybe; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** Ordering options when selecting data from "volts_stats". */ +export type VoltsStatsOrderBy = { + date?: InputMaybe; + volts?: InputMaybe; + volts_per_day?: InputMaybe; +}; + +/** select columns of table "volts_stats" */ +export enum VoltsStatsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + Volts = 'volts', + /** column name */ + VoltsPerDay = 'volts_per_day' +} + +/** aggregate stddev on columns */ +export type VoltsStatsStddevFields = { + __typename?: 'volts_stats_stddev_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type VoltsStatsStddevPopFields = { + __typename?: 'volts_stats_stddev_pop_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type VoltsStatsStddevSampFields = { + __typename?: 'volts_stats_stddev_samp_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate sum on columns */ +export type VoltsStatsSumFields = { + __typename?: 'volts_stats_sum_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type VoltsStatsVarPopFields = { + __typename?: 'volts_stats_var_pop_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type VoltsStatsVarSampFields = { + __typename?: 'volts_stats_var_samp_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate variance on columns */ +export type VoltsStatsVarianceFields = { + __typename?: 'volts_stats_variance_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +export type MessagesByAddressQueryVariables = Exact<{ + address?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; +}>; + + +export type MessagesByAddressQuery = { __typename?: 'query_root', messages_by_address: Array<{ __typename?: 'message', transaction_hash: string, value: any, type: string, transaction: { __typename?: 'transaction', success: boolean, block: { __typename?: 'block', timestamp: any } } }> }; + + +export const MessagesByAddressDocument = gql` + query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint) { + messages_by_address( + args: {addresses: $address, limit: $limit, offset: $offset, types: "{}"} + order_by: {transaction: {block: {height: desc}}} + ) { + transaction_hash + value + transaction { + success + block { + timestamp + } + } + type + } +} + `; + +/** + * __useMessagesByAddressQuery__ + * + * To run a query within a React component, call `useMessagesByAddressQuery` and pass it any options that fit your needs. + * When your component renders, `useMessagesByAddressQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useMessagesByAddressQuery({ + * variables: { + * address: // value for 'address' + * limit: // value for 'limit' + * offset: // value for 'offset' + * }, + * }); + */ +export function useMessagesByAddressQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(MessagesByAddressDocument, options); + } +export function useMessagesByAddressLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(MessagesByAddressDocument, options); + } +export function useMessagesByAddressSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(MessagesByAddressDocument, options); + } +export type MessagesByAddressQueryHookResult = ReturnType; +export type MessagesByAddressLazyQueryHookResult = ReturnType; +export type MessagesByAddressSuspenseQueryHookResult = ReturnType; +export type MessagesByAddressQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js b/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts similarity index 65% rename from src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js rename to src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts index 3de7acef4..cc02c508e 100644 --- a/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js +++ b/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts @@ -4,6 +4,10 @@ import { gql } from '@apollo/client'; import { useInfiniteQuery } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { INDEX_HTTPS } from 'src/constants/config'; +import { + MessagesByAddressQuery, + MessagesByAddressQueryVariables, +} from 'src/generated/graphql'; const messagesByAddress = gql(` query MyQuery($address: _text, $limit: bigint, $offset: bigint) { @@ -24,24 +28,30 @@ const messagesByAddress = gql(` const limit = '1000'; -function useGetTsxByAddress(address) { +function useGetTsxByAddress(address: string) { const { status, data, error, isFetching, fetchNextPage, hasNextPage } = useInfiniteQuery( ['messagesByAddressGql', address], async ({ pageParam = 0 }) => { - const res = await request(INDEX_HTTPS, messagesByAddress, { - address: `{${address}}`, - limit, - offset: new BigNumber(limit).multipliedBy(pageParam).toString(), - }); - return { data: res.messages_by_address, page: pageParam }; + // Use the generated variable type + const variables: MessagesByAddressQueryVariables = { + address: `{${address}}`, // Ensure this format matches expected input + limit: parseInt(limit, 10), + offset: new BigNumber(limit).multipliedBy(pageParam).toNumber(), + }; + // Directly typing the response improves type safety + const response = await request( + INDEX_HTTPS, + messagesByAddress, + variables + ); + return { data: response.messages_by_address, page: pageParam }; }, { getNextPageParam: (lastPage) => { if (lastPage.data && lastPage.data.length === 0) { return undefined; } - const nextPage = lastPage.page !== undefined ? lastPage.page + 1 : 0; return nextPage; }, diff --git a/src/services/graphql/queries/messagesByAddress.graphql b/src/services/graphql/queries/messagesByAddress.graphql new file mode 100644 index 000000000..68ea14ba8 --- /dev/null +++ b/src/services/graphql/queries/messagesByAddress.graphql @@ -0,0 +1,16 @@ +query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint) { + messages_by_address( + args: { addresses: $address, limit: $limit, offset: $offset, types: "{}" } + order_by: { transaction: { block: { height: desc } } } + ) { + transaction_hash + value + transaction { + success + block { + timestamp + } + } + type + } +} diff --git a/webpack.config.common.js b/webpack.config.common.js index 9892fb2de..deacf5d6a 100644 --- a/webpack.config.common.js +++ b/webpack.config.common.js @@ -196,6 +196,11 @@ const config = { test: /\.cozo$/, use: 'raw-loader', }, + { + test: /\.(graphql|gql)$/, + exclude: /node_modules/, + use: 'graphql-tag/loader', + }, ], }, }; diff --git a/yarn.lock b/yarn.lock index 0aa625e69..fb1e1e023 100644 --- a/yarn.lock +++ b/yarn.lock @@ -126,6 +126,36 @@ tslib "^2.3.0" zen-observable-ts "^1.2.5" +"@ardatan/relay-compiler@12.0.0": + version "12.0.0" + resolved "https://registry.yarnpkg.com/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz#2e4cca43088e807adc63450e8cab037020e91106" + integrity sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q== + dependencies: + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/parser" "^7.14.0" + "@babel/runtime" "^7.0.0" + "@babel/traverse" "^7.14.0" + "@babel/types" "^7.0.0" + babel-preset-fbjs "^3.4.0" + chalk "^4.0.0" + fb-watchman "^2.0.0" + fbjs "^3.0.0" + glob "^7.1.1" + immutable "~3.7.6" + invariant "^2.2.4" + nullthrows "^1.1.1" + relay-runtime "12.0.0" + signedsource "^1.0.0" + yargs "^15.3.1" + +"@ardatan/sync-fetch@^0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@ardatan/sync-fetch/-/sync-fetch-0.0.1.tgz#3385d3feedceb60a896518a1db857ec1e945348f" + integrity sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA== + dependencies: + node-fetch "^2.6.1" + "@assemblyscript/loader@^0.9.4": version "0.9.4" resolved "https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.9.4.tgz#a483c54c1253656bb33babd464e3154a173e1577" @@ -174,6 +204,14 @@ dependencies: "@babel/highlight" "^7.22.5" +"@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.1", "@babel/code-frame@^7.24.2": + version "7.24.2" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.2.tgz#718b4b19841809a58b29b68cde80bc5e1aa6d9ae" + integrity sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ== + dependencies: + "@babel/highlight" "^7.24.2" + picocolors "^1.0.0" + "@babel/compat-data@^7.17.7", "@babel/compat-data@^7.20.1", "@babel/compat-data@^7.20.5": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.21.0.tgz#c241dc454e5b5917e40d37e525e2f4530c399298" @@ -189,26 +227,10 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.9.tgz#71cdb00a1ce3a329ce4cbec3a44f9fef35669730" integrity sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ== -"@babel/core@7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.21.0.tgz#1341aefdcc14ccc7553fcc688dd8986a2daffc13" - integrity sha512-PuxUbxcW6ZYe656yL3EAhpy7qXKq0DmYsrJLpbB8XrsCP9Nm+XCg9XFMb5vIDliPD7+U/+M+QJlH17XOcB7eXA== - dependencies: - "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.21.0" - "@babel/helper-compilation-targets" "^7.20.7" - "@babel/helper-module-transforms" "^7.21.0" - "@babel/helpers" "^7.21.0" - "@babel/parser" "^7.21.0" - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.0" - "@babel/types" "^7.21.0" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.2" - semver "^6.3.0" +"@babel/compat-data@^7.23.5": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.1.tgz#31c1f66435f2a9c329bb5716a6d6186c516c3742" + integrity sha512-Pc65opHDliVpRHuKfzI+gSA4zcgr65O4cl64fFJIWEEh8JoHIHh0Oez1Eo8Arz8zq/JhgKodQaxEwUPRtZylVA== "@babel/core@^7.0.0-0", "@babel/core@^7.1.0", "@babel/core@^7.1.6", "@babel/core@^7.11.6", "@babel/core@^7.12.17", "@babel/core@^7.12.3", "@babel/core@^7.13.16", "@babel/core@^7.7.5": version "7.21.5" @@ -231,6 +253,27 @@ json5 "^2.2.2" semver "^6.3.0" +"@babel/core@^7.14.0", "@babel/core@^7.24.3": + version "7.24.3" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.3.tgz#568864247ea10fbd4eff04dda1e05f9e2ea985c3" + integrity sha512-5FcvN1JHw2sHJChotgx8Ek0lyuh4kCKelgMTTqhYJJtloNvUfpAFMeNQUtdlIaktwrSV9LtCdqwk48wL2wBacQ== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.24.2" + "@babel/generator" "^7.24.1" + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helpers" "^7.24.1" + "@babel/parser" "^7.24.1" + "@babel/template" "^7.24.0" + "@babel/traverse" "^7.24.1" + "@babel/types" "^7.24.0" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + "@babel/core@^7.22.9": version "7.22.9" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.9.tgz#bd96492c68822198f33e8a256061da3cf391f58f" @@ -271,14 +314,14 @@ "@jridgewell/trace-mapping" "^0.3.17" jsesc "^2.5.1" -"@babel/generator@^7.21.0": - version "7.21.3" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.21.3.tgz#232359d0874b392df04045d72ce2fd9bb5045fce" - integrity sha512-QS3iR1GYC/YGUnW7IdggFeN5c1poPUurnGttOV/bZgPGV+izC/D8HnD6DLwod0fsatNyVn1G3EVWMYIF0nHbeA== +"@babel/generator@^7.14.0", "@babel/generator@^7.18.13", "@babel/generator@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.1.tgz#e67e06f68568a4ebf194d1c6014235344f0476d0" + integrity sha512-DfCRfZsBcrPEHUfuBMgbJ1Ut01Y/itOs+hY2nFLgqsqXd52/iSiVq5TITtUasIUgm+IIKdY2/1I7auiQOEeC9A== dependencies: - "@babel/types" "^7.21.3" - "@jridgewell/gen-mapping" "^0.3.2" - "@jridgewell/trace-mapping" "^0.3.17" + "@babel/types" "^7.24.0" + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" "@babel/generator@^7.22.9": @@ -363,6 +406,17 @@ lru-cache "^5.1.1" semver "^6.3.1" +"@babel/helper-compilation-targets@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991" + integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ== + dependencies: + "@babel/compat-data" "^7.23.5" + "@babel/helper-validator-option" "^7.23.5" + browserslist "^4.22.2" + lru-cache "^5.1.1" + semver "^6.3.1" + "@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.21.0.tgz#64f49ecb0020532f19b1d014b03bccaa1ab85fb9" @@ -511,6 +565,13 @@ dependencies: "@babel/types" "^7.22.5" +"@babel/helper-member-expression-to-functions@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz#9263e88cc5e41d39ec18c9a3e0eced59a3e7d366" + integrity sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA== + dependencies: + "@babel/types" "^7.23.0" + "@babel/helper-module-imports@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" @@ -525,6 +586,13 @@ dependencies: "@babel/types" "^7.21.4" +"@babel/helper-module-imports@^7.22.15": + version "7.24.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz#6ac476e6d168c7c23ff3ba3cf4f7841d46ac8128" + integrity sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg== + dependencies: + "@babel/types" "^7.24.0" + "@babel/helper-module-imports@^7.22.5": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz#1a8f4c9f4027d23f520bd76b364d44434a72660c" @@ -532,7 +600,7 @@ dependencies: "@babel/types" "^7.22.5" -"@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.20.11", "@babel/helper-module-transforms@^7.21.0", "@babel/helper-module-transforms@^7.21.2": +"@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.20.11", "@babel/helper-module-transforms@^7.21.2": version "7.21.2" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.21.2.tgz#160caafa4978ac8c00ac66636cb0fa37b024e2d2" integrity sha512-79yj2AR4U/Oqq/WOV7Lx6hUjau1Zfo4cI+JLAVYeMV5XIlbOhmjEk5ulbTc9fMpmlojzZHkUUxAiK+UKn+hNQQ== @@ -571,6 +639,17 @@ "@babel/helper-split-export-declaration" "^7.22.6" "@babel/helper-validator-identifier" "^7.22.5" +"@babel/helper-module-transforms@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz#d7d12c3c5d30af5b3c0fcab2a6d5217773e2d0f1" + integrity sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-simple-access" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/helper-validator-identifier" "^7.22.20" + "@babel/helper-optimise-call-expression@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" @@ -600,6 +679,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295" integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== +"@babel/helper-plugin-utils@^7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz#945681931a52f15ce879fd5b86ce2dae6d3d7f2a" + integrity sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w== + "@babel/helper-remap-async-to-generator@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" @@ -640,6 +724,15 @@ "@babel/helper-member-expression-to-functions" "^7.22.5" "@babel/helper-optimise-call-expression" "^7.22.5" +"@babel/helper-replace-supers@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.1.tgz#7085bd19d4a0b7ed8f405c1ed73ccb70f323abc1" + integrity sha512-QCR1UqC9BzG5vZl8BMicmZ28RuUBnHhAMddD8yHFHDRH9lLTZ9uUPehX8ctVPT8l0TKblJidqcgUUKGVrePleQ== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-member-expression-to-functions" "^7.23.0" + "@babel/helper-optimise-call-expression" "^7.22.5" + "@babel/helper-simple-access@^7.20.2": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9" @@ -704,6 +797,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f" integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw== +"@babel/helper-string-parser@^7.23.4": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz#f99c36d3593db9540705d0739a1f10b5e20c696e" + integrity sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ== + "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": version "7.19.1" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" @@ -729,6 +827,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz#de52000a15a177413c8234fa3a8af4ee8102d0ac" integrity sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw== +"@babel/helper-validator-option@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" + integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== + "@babel/helper-wrap-function@^7.18.9": version "7.20.5" resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz#75e2d84d499a0ab3b31c33bcfe59d6b8a45f62e3" @@ -748,15 +851,6 @@ "@babel/template" "^7.22.5" "@babel/types" "^7.22.5" -"@babel/helpers@^7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.21.0.tgz#9dd184fb5599862037917cdc9eecb84577dc4e7e" - integrity sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA== - dependencies: - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.0" - "@babel/types" "^7.21.0" - "@babel/helpers@^7.21.5": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.21.5.tgz#5bac66e084d7a4d2d9696bdf0175a93f7fb63c08" @@ -775,6 +869,15 @@ "@babel/traverse" "^7.22.6" "@babel/types" "^7.22.5" +"@babel/helpers@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.1.tgz#183e44714b9eba36c3038e442516587b1e0a1a94" + integrity sha512-BpU09QqEe6ZCHuIHFphEFgvNSrubve1FtyMton26ekZ85gRGi6LrTF7zArARp2YvyFxloeiRmtSCq5sjh1WqIg== + dependencies: + "@babel/template" "^7.24.0" + "@babel/traverse" "^7.24.1" + "@babel/types" "^7.24.0" + "@babel/highlight@^7.10.4", "@babel/highlight@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" @@ -802,12 +905,27 @@ chalk "^2.0.0" js-tokens "^4.0.0" +"@babel/highlight@^7.24.2": + version "7.24.2" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.2.tgz#3f539503efc83d3c59080a10e6634306e0370d26" + integrity sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA== + dependencies: + "@babel/helper-validator-identifier" "^7.22.20" + chalk "^2.4.2" + js-tokens "^4.0.0" + picocolors "^1.0.0" + "@babel/parser@^7.1.0", "@babel/parser@^7.1.6", "@babel/parser@^7.13.16", "@babel/parser@^7.14.7", "@babel/parser@^7.21.5": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.5.tgz#821bb520118fd25b982eaf8d37421cf5c64a312b" integrity sha512-J+IxH2IsxV4HbnTrSWgMAQj0UEo61hDA4Ny8h8PCX0MLXiibqHbqIOVneqdocemSBc22VpBKxt4J6FQzy9HarQ== -"@babel/parser@^7.20.7", "@babel/parser@^7.21.0", "@babel/parser@^7.7.0": +"@babel/parser@^7.14.0", "@babel/parser@^7.16.8", "@babel/parser@^7.24.0", "@babel/parser@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.1.tgz#1e416d3627393fab1cb5b0f2f1796a100ae9133a" + integrity sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg== + +"@babel/parser@^7.20.7", "@babel/parser@^7.7.0": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.3.tgz#1d285d67a19162ff9daa358d4cb41d50c06220b3" integrity sha512-lobG0d7aOfQRXh8AyklEAgZGvA4FShxo6xQbUrrT/cNBPUdIDojlokwJsQyCC/eKia7ifqM0yP+2DRZ4WKw2RQ== @@ -864,7 +982,7 @@ "@babel/helper-remap-async-to-generator" "^7.18.9" "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-proposal-class-properties@7.18.6", "@babel/plugin-proposal-class-properties@^7.1.0", "@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.18.6": +"@babel/plugin-proposal-class-properties@7.18.6", "@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.1.0", "@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== @@ -1002,7 +1120,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": +"@babel/plugin-syntax-class-properties@^7.0.0", "@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== @@ -1030,6 +1148,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.24.1.tgz#875c25e3428d7896c87589765fc8b9d32f24bd8d" + integrity sha512-sxi2kLTI5DeW5vDtMUsk4mTPwvlUDbjOnoWayhynCwrw4QXRld4QEYwqzY8JmQXaJUtgUuCIurtSRH5sn4c7mA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-syntax-flow@^7.18.6": version "7.21.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.21.4.tgz#3e37fca4f06d93567c1cd9b75156422e90a67107" @@ -1079,6 +1204,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" +"@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.23.3": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz#3f6ca04b8c841811dbc3c5c5f837934e0d626c10" + integrity sha512-2eCtxZXf+kbkMIsXS4poTvT4Yu5rXiRa+9xGVT56raghjmBTKMpFNc9R4IDiB4emao9eO22Ox7CxuJG7BgExqA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-syntax-jsx@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" @@ -1121,7 +1253,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-object-rest-spread@^7.8.3": +"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== @@ -1171,6 +1303,13 @@ "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" +"@babel/plugin-transform-arrow-functions@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.1.tgz#2bf263617060c9cc45bcdbf492b8cc805082bf27" + integrity sha512-ngT/3NkRhsaep9ck9uj2Xhv9+xB1zShY3tM3g6om4xxCELwCDN4g4Aq5dRn48+0hasAql7s2hdBOysCfNpr4fw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-arrow-functions@^7.18.6": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.20.7.tgz#bea332b0e8b2dab3dafe55a163d8227531ab0551" @@ -1220,6 +1359,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-remap-async-to-generator" "^7.22.5" +"@babel/plugin-transform-block-scoped-functions@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.1.tgz#1c94799e20fcd5c4d4589523bbc57b7692979380" + integrity sha512-TWWC18OShZutrv9C6mye1xwtam+uNi2bnTOCBUd5sZxyHOiWbU6ztSROofIMrK84uweEZC219POICK/sTYwfgg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-block-scoped-functions@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz#9187bf4ba302635b9d70d986ad70f038726216a8" @@ -1234,6 +1380,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-block-scoping@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.1.tgz#27af183d7f6dad890531256c7a45019df768ac1f" + integrity sha512-h71T2QQvDgM2SmT29UYU6ozjMlAt7s7CSs5Hvy8f8cf/GM/Z4a2zMfN+fjVGaieeCrXR3EdQl6C4gQG+OgmbKw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-block-scoping@^7.20.2", "@babel/plugin-transform-block-scoping@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz#e737b91037e5186ee16b76e7ae093358a5634f02" @@ -1265,6 +1418,20 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-class-static-block" "^7.14.5" +"@babel/plugin-transform-classes@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.1.tgz#5bc8fc160ed96378184bc10042af47f50884dcb1" + integrity sha512-ZTIe3W7UejJd3/3R4p7ScyyOoafetUShSf4kCqV0O7F/RiHxVj/wRaRnQlrGwflvcehNA8M42HkAiEDYZu2F1Q== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-replace-supers" "^7.24.1" + "@babel/helper-split-export-declaration" "^7.22.6" + globals "^11.1.0" + "@babel/plugin-transform-classes@^7.20.2", "@babel/plugin-transform-classes@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz#f469d0b07a4c5a7dbb21afad9e27e57b47031665" @@ -1295,6 +1462,14 @@ "@babel/helper-split-export-declaration" "^7.22.6" globals "^11.1.0" +"@babel/plugin-transform-computed-properties@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.1.tgz#bc7e787f8e021eccfb677af5f13c29a9934ed8a7" + integrity sha512-5pJGVIUfJpOS+pAqBQd+QMaTD2vCL/HcePooON6pDpHgRp4gNRmzyHTPIkXntwKsq3ayUFVfJaIKPw2pOkOcTw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/template" "^7.24.0" + "@babel/plugin-transform-computed-properties@^7.18.9": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.20.7.tgz#704cc2fd155d1c996551db8276d55b9d46e4d0aa" @@ -1319,6 +1494,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/template" "^7.22.5" +"@babel/plugin-transform-destructuring@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.1.tgz#b1e8243af4a0206841973786292b8c8dd8447345" + integrity sha512-ow8jciWqNxR3RYbSNVuF4U2Jx130nwnBnhRw6N6h1bOejNkABmcI5X5oz29K4alWX7vf1C+o6gtKXikzRKkVdw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-destructuring@^7.20.2", "@babel/plugin-transform-destructuring@^7.21.3": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz#73b46d0fd11cd6ef57dea8a381b1215f4959d401" @@ -1395,6 +1577,14 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" +"@babel/plugin-transform-flow-strip-types@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.24.1.tgz#fa8d0a146506ea195da1671d38eed459242b2dcc" + integrity sha512-iIYPIWt3dUmUKKE10s3W+jsQ3icFkw0JyRVyY1B7G4yK/nngAOHLVx8xlhA6b/Jzl/Y0nis8gjqhqKtRDQqHWQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-syntax-flow" "^7.24.1" + "@babel/plugin-transform-flow-strip-types@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.21.0.tgz#6aeca0adcb81dc627c8986e770bfaa4d9812aff5" @@ -1411,6 +1601,14 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-flow" "^7.22.5" +"@babel/plugin-transform-for-of@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.1.tgz#67448446b67ab6c091360ce3717e7d3a59e202fd" + integrity sha512-OxBdcnF04bpdQdR3i4giHZNZQn7cm8RQKcSwA17wAAqEELo1ZOwp5FFgeptWUQXFyT9kwHo10aqqauYkRZPCAg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/plugin-transform-for-of@^7.18.8": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.0.tgz#964108c9988de1a60b4be2354a7d7e245f36e86e" @@ -1432,6 +1630,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-function-name@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.1.tgz#8cba6f7730626cc4dfe4ca2fa516215a0592b361" + integrity sha512-BXmDZpPlh7jwicKArQASrj8n22/w6iymRnvHYYd2zO30DbE277JO20/7yXJT3QxDPtiQiOxQBbZH4TpivNXIxA== + dependencies: + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-function-name@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz#cc354f8234e62968946c61a46d6365440fc764e0" @@ -1458,6 +1665,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-json-strings" "^7.8.3" +"@babel/plugin-transform-literals@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.1.tgz#0a1982297af83e6b3c94972686067df588c5c096" + integrity sha512-zn9pwz8U7nCqOYIiBaOxoQOtYmMODXTJnkxG4AtX8fPmnCRYWBOHD0qcpwS9e2VDSp1zNJYpdnFMIKb8jmwu6g== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-literals@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz#72796fdbef80e56fba3c6a699d54f0de557444bc" @@ -1480,6 +1694,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" +"@babel/plugin-transform-member-expression-literals@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.1.tgz#896d23601c92f437af8b01371ad34beb75df4489" + integrity sha512-4ojai0KysTWXzHseJKa1XPNXKRbuUrhkOPY4rEGeR+7ChlJVKxFa3H3Bz+7tWaGKgJAXUWKOGmltN+u9B3+CVg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-member-expression-literals@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz#ac9fdc1a118620ac49b7e7a5d2dc177a1bfee88e" @@ -1510,6 +1731,15 @@ "@babel/helper-module-transforms" "^7.22.5" "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-modules-commonjs@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.1.tgz#e71ba1d0d69e049a22bf90b3867e263823d3f1b9" + integrity sha512-szog8fFTUxBfw0b98gEWPaEqF42ZUD/T3bkynW/wtgx2p/XCP55WEsb+VosKceRSd6njipdZvNogqdtI4Q0chw== + dependencies: + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-simple-access" "^7.22.5" + "@babel/plugin-transform-modules-commonjs@^7.12.13", "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.21.5": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz#d69fb947eed51af91de82e4708f676864e5e47bc" @@ -1630,6 +1860,14 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-transform-parameters" "^7.22.5" +"@babel/plugin-transform-object-super@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.1.tgz#e71d6ab13483cca89ed95a474f542bbfc20a0520" + integrity sha512-oKJqR3TeI5hSLRxudMjFQ9re9fBVUU0GICqM3J1mi8MqlhVr6hC/ZN4ttAyMuQR6EZZIY6h/exe5swqGNNIkWQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-replace-supers" "^7.24.1" + "@babel/plugin-transform-object-super@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c" @@ -1663,6 +1901,13 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" "@babel/plugin-syntax-optional-chaining" "^7.8.3" +"@babel/plugin-transform-parameters@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.1.tgz#983c15d114da190506c75b616ceb0f817afcc510" + integrity sha512-8Jl6V24g+Uw5OGPeWNKrKqXPDw2YDjLc53ojwfMcKwlEoETKU9rU0mHUtcg9JntWI/QYzGAXNWEcVHZ+fR+XXg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-parameters@^7.20.1", "@babel/plugin-transform-parameters@^7.20.7", "@babel/plugin-transform-parameters@^7.21.3": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.21.3.tgz#18fc4e797cf6d6d972cb8c411dbe8a809fa157db" @@ -1695,6 +1940,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" +"@babel/plugin-transform-property-literals@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.1.tgz#d6a9aeab96f03749f4eebeb0b6ea8e90ec958825" + integrity sha512-LetvD7CrHmEx0G442gOomRr66d7q8HzzGGr4PMHGr+5YIm6++Yke+jxj246rpvsbyhJwCLxcTn6zW1P1BSenqA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-property-literals@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz#e22498903a483448e94e032e9bbb9c5ccbfc93a3" @@ -1709,6 +1961,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-react-display-name@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.24.1.tgz#554e3e1a25d181f040cf698b93fd289a03bfdcdb" + integrity sha512-mvoQg2f9p2qlpDQRBC7M3c3XTr0k7cp/0+kFKKO/7Gtu0LSw16eKB+Fabe2bDT/UpsyasTBBkAnbdsLrkD5XMw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-react-display-name@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz#8b1125f919ef36ebdfff061d664e266c666b9415" @@ -1737,6 +1996,17 @@ dependencies: "@babel/plugin-transform-react-jsx" "^7.22.5" +"@babel/plugin-transform-react-jsx@^7.0.0": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.23.4.tgz#393f99185110cea87184ea47bcb4a7b0c2e39312" + integrity sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-jsx" "^7.23.3" + "@babel/types" "^7.23.4" + "@babel/plugin-transform-react-jsx@^7.18.6": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.21.0.tgz#656b42c2fdea0a6d8762075d58ef9d4e3c4ab8a2" @@ -1813,6 +2083,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-shorthand-properties@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.1.tgz#ba9a09144cf55d35ec6b93a32253becad8ee5b55" + integrity sha512-LyjVB1nsJ6gTTUKRjRWx9C1s9hE7dLfP/knKdrfeH9UPtAGjYGgxIbFfx7xyLIEWs7Xe1Gnf8EWiUqfjLhInZA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-shorthand-properties@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9" @@ -1827,6 +2104,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-spread@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.1.tgz#a1acf9152cbf690e4da0ba10790b3ac7d2b2b391" + integrity sha512-KjmcIM+fxgY+KxPVbjelJC6hrH1CgtPmTvdXAfn3/a9CnWGSTY7nH4zm5+cjmWJybdcPSsD0++QssDsjcpe47g== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/plugin-transform-spread@^7.19.0", "@babel/plugin-transform-spread@^7.20.7": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz#c2d83e0b99d3bf83e07b11995ee24bf7ca09401e" @@ -1857,6 +2142,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-template-literals@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.1.tgz#15e2166873a30d8617e3e2ccadb86643d327aab7" + integrity sha512-WRkhROsNzriarqECASCNu/nojeXCDTE/F2HmRgOzi7NGvyfYGq1NEjKBK3ckLfRgGc6/lPAqP0vDOSw3YtG34g== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-template-literals@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz#04ec6f10acdaa81846689d63fae117dd9c243a5e" @@ -2285,6 +2577,13 @@ core-js "^2.5.3" regenerator-runtime "^0.11.1" +"@babel/runtime@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.1.tgz#431f9a794d173b53720e69a6464abc6f0e2a5c57" + integrity sha512-+BIznRzyqBf+2wCTxcKE3wDjfGeCoVE61KSHGpkzqrLi8qxqFwBeUFyId2cxkTmm55fzDGnm0+yCxaxygrLUnQ== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/runtime@^7.0.0-rc.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.1", "@babel/runtime@^7.11.1", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.13", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.4", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673" @@ -2333,7 +2632,16 @@ "@babel/parser" "^7.22.5" "@babel/types" "^7.22.5" -"@babel/traverse@^7.1.6", "@babel/traverse@^7.20.5", "@babel/traverse@^7.20.7", "@babel/traverse@^7.21.0", "@babel/traverse@^7.21.2", "@babel/traverse@^7.21.5", "@babel/traverse@^7.22.6", "@babel/traverse@^7.22.8", "@babel/traverse@^7.7.0": +"@babel/template@^7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.0.tgz#c6a524aa93a4a05d66aaf31654258fae69d87d50" + integrity sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA== + dependencies: + "@babel/code-frame" "^7.23.5" + "@babel/parser" "^7.24.0" + "@babel/types" "^7.24.0" + +"@babel/traverse@^7.1.6", "@babel/traverse@^7.20.5", "@babel/traverse@^7.20.7", "@babel/traverse@^7.21.2", "@babel/traverse@^7.21.5", "@babel/traverse@^7.22.6", "@babel/traverse@^7.22.8", "@babel/traverse@^7.7.0": version "7.23.2" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.2.tgz#329c7a06735e144a506bdb2cad0268b7f46f4ad8" integrity sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw== @@ -2349,6 +2657,22 @@ debug "^4.1.0" globals "^11.1.0" +"@babel/traverse@^7.14.0", "@babel/traverse@^7.16.8", "@babel/traverse@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.1.tgz#d65c36ac9dd17282175d1e4a3c49d5b7988f530c" + integrity sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ== + dependencies: + "@babel/code-frame" "^7.24.1" + "@babel/generator" "^7.24.1" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-hoist-variables" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/parser" "^7.24.1" + "@babel/types" "^7.24.0" + debug "^4.3.1" + globals "^11.1.0" + "@babel/types@^7.0.0", "@babel/types@^7.2.0", "@babel/types@^7.21.4", "@babel/types@^7.21.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.21.5.tgz#18dfbd47c39d3904d5db3d3dc2cc80bedb60e5b6" @@ -2358,7 +2682,16 @@ "@babel/helper-validator-identifier" "^7.19.1" to-fast-properties "^2.0.0" -"@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.2", "@babel/types@^7.21.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": +"@babel/types@^7.16.8", "@babel/types@^7.18.13", "@babel/types@^7.23.4", "@babel/types@^7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.0.tgz#3b951f435a92e7333eba05b7566fd297960ea1bf" + integrity sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w== + dependencies: + "@babel/helper-string-parser" "^7.23.4" + "@babel/helper-validator-identifier" "^7.22.20" + to-fast-properties "^2.0.0" + +"@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.2", "@babel/types@^7.4.4", "@babel/types@^7.7.0": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.21.3.tgz#4865a5357ce40f64e3400b0f3b737dc6d4f64d05" integrity sha512-sBGdETxC+/M4o/zKC0sl6sjWv62WFR/uzxrJ6uYyMLZOUlPnwzw0tKgVHOXxaAd5l2g8pEDM5RZ495GPQI77kg== @@ -4199,7 +4532,522 @@ resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== -"@graphql-typed-document-node/core@^3.1.1": +"@graphql-codegen/add@^5.0.2": + version "5.0.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/add/-/add-5.0.2.tgz#71b3ae0465a4537172dddb84531b6967ca5545f2" + integrity sha512-ouBkSvMFUhda5VoKumo/ZvsZM9P5ZTyDsI8LW18VxSNWOjrTeLXBWHG8Gfaai0HwhflPtCYVABbriEcOmrRShQ== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + tslib "~2.6.0" + +"@graphql-codegen/cli@^5.0.2": + version "5.0.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-5.0.2.tgz#07ff691c16da4c3dcc0e1995d3231530379ab317" + integrity sha512-MBIaFqDiLKuO4ojN6xxG9/xL9wmfD3ZjZ7RsPjwQnSHBCUXnEkdKvX+JVpx87Pq29Ycn8wTJUguXnTZ7Di0Mlw== + dependencies: + "@babel/generator" "^7.18.13" + "@babel/template" "^7.18.10" + "@babel/types" "^7.18.13" + "@graphql-codegen/client-preset" "^4.2.2" + "@graphql-codegen/core" "^4.0.2" + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-tools/apollo-engine-loader" "^8.0.0" + "@graphql-tools/code-file-loader" "^8.0.0" + "@graphql-tools/git-loader" "^8.0.0" + "@graphql-tools/github-loader" "^8.0.0" + "@graphql-tools/graphql-file-loader" "^8.0.0" + "@graphql-tools/json-file-loader" "^8.0.0" + "@graphql-tools/load" "^8.0.0" + "@graphql-tools/prisma-loader" "^8.0.0" + "@graphql-tools/url-loader" "^8.0.0" + "@graphql-tools/utils" "^10.0.0" + "@whatwg-node/fetch" "^0.8.0" + chalk "^4.1.0" + cosmiconfig "^8.1.3" + debounce "^1.2.0" + detect-indent "^6.0.0" + graphql-config "^5.0.2" + inquirer "^8.0.0" + is-glob "^4.0.1" + jiti "^1.17.1" + json-to-pretty-yaml "^1.2.2" + listr2 "^4.0.5" + log-symbols "^4.0.0" + micromatch "^4.0.5" + shell-quote "^1.7.3" + string-env-interpolation "^1.0.1" + ts-log "^2.2.3" + tslib "^2.4.0" + yaml "^2.3.1" + yargs "^17.0.0" + +"@graphql-codegen/client-preset@^4.2.2": + version "4.2.4" + resolved "https://registry.yarnpkg.com/@graphql-codegen/client-preset/-/client-preset-4.2.4.tgz#a20e85b07b77282bb27b2e8e014bed5d491443e7" + integrity sha512-k1c8v2YxJhhITGQGxViG9asLAoop9m7X9duU7Zztqjc98ooxsUzXICfvAWsH3mLAUibXAx4Ax6BPzKsTtQmBPg== + dependencies: + "@babel/helper-plugin-utils" "^7.20.2" + "@babel/template" "^7.20.7" + "@graphql-codegen/add" "^5.0.2" + "@graphql-codegen/gql-tag-operations" "4.0.6" + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/typed-document-node" "^5.0.6" + "@graphql-codegen/typescript" "^4.0.6" + "@graphql-codegen/typescript-operations" "^4.2.0" + "@graphql-codegen/visitor-plugin-common" "^5.1.0" + "@graphql-tools/documents" "^1.0.0" + "@graphql-tools/utils" "^10.0.0" + "@graphql-typed-document-node/core" "3.2.0" + tslib "~2.6.0" + +"@graphql-codegen/core@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/core/-/core-4.0.2.tgz#7e6ec266276f54bbf02f60599d9e518f4a59d85e" + integrity sha512-IZbpkhwVqgizcjNiaVzNAzm/xbWT6YnGgeOLwVjm4KbJn3V2jchVtuzHH09G5/WkkLSk2wgbXNdwjM41JxO6Eg== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-tools/schema" "^10.0.0" + "@graphql-tools/utils" "^10.0.0" + tslib "~2.6.0" + +"@graphql-codegen/gql-tag-operations@4.0.6": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@graphql-codegen/gql-tag-operations/-/gql-tag-operations-4.0.6.tgz#d16ee0306cfdea60217c025a1bc21649452d7da3" + integrity sha512-y6iXEDpDNjwNxJw3WZqX1/Znj0QHW7+y8O+t2V8qvbTT+3kb2lr9ntc8By7vCr6ctw9tXI4XKaJgpTstJDOwFA== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/visitor-plugin-common" "5.1.0" + "@graphql-tools/utils" "^10.0.0" + auto-bind "~4.0.0" + tslib "~2.6.0" + +"@graphql-codegen/plugin-helpers@^2.7.2": + version "2.7.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.7.2.tgz#6544f739d725441c826a8af6a49519f588ff9bed" + integrity sha512-kln2AZ12uii6U59OQXdjLk5nOlh1pHis1R98cDZGFnfaiAbX9V3fxcZ1MMJkB7qFUymTALzyjZoXXdyVmPMfRg== + dependencies: + "@graphql-tools/utils" "^8.8.0" + change-case-all "1.0.14" + common-tags "1.8.2" + import-from "4.0.0" + lodash "~4.17.0" + tslib "~2.4.0" + +"@graphql-codegen/plugin-helpers@^3.0.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz#69a2e91178f478ea6849846ade0a59a844d34389" + integrity sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg== + dependencies: + "@graphql-tools/utils" "^9.0.0" + change-case-all "1.0.15" + common-tags "1.8.2" + import-from "4.0.0" + lodash "~4.17.0" + tslib "~2.4.0" + +"@graphql-codegen/plugin-helpers@^5.0.3": + version "5.0.3" + resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-5.0.3.tgz#7027b9d911d7cb594663590fcf5d63e9cf7ec2ff" + integrity sha512-yZ1rpULIWKBZqCDlvGIJRSyj1B2utkEdGmXZTBT/GVayP4hyRYlkd36AJV/LfEsVD8dnsKL5rLz2VTYmRNlJ5Q== + dependencies: + "@graphql-tools/utils" "^10.0.0" + change-case-all "1.0.15" + common-tags "1.8.2" + import-from "4.0.0" + lodash "~4.17.0" + tslib "~2.6.0" + +"@graphql-codegen/schema-ast@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-4.0.2.tgz#aeaa104e4555cca73a058f0a9350b4b0e290b377" + integrity sha512-5mVAOQQK3Oz7EtMl/l3vOQdc2aYClUzVDHHkMvZlunc+KlGgl81j8TLa+X7ANIllqU4fUEsQU3lJmk4hXP6K7Q== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-tools/utils" "^10.0.0" + tslib "~2.6.0" + +"@graphql-codegen/typed-document-node@^5.0.6": + version "5.0.6" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typed-document-node/-/typed-document-node-5.0.6.tgz#54750f4a7c6e963defeb6c27a9ea280a2a8bc2a3" + integrity sha512-US0J95hOE2/W/h42w4oiY+DFKG7IetEN1mQMgXXeat1w6FAR5PlIz4JrRrEkiVfVetZ1g7K78SOwBD8/IJnDiA== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/visitor-plugin-common" "5.1.0" + auto-bind "~4.0.0" + change-case-all "1.0.15" + tslib "~2.6.0" + +"@graphql-codegen/typescript-operations@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-4.2.0.tgz#0c6bbaf41cb325809b7e9e2b9d85ab01f11d142f" + integrity sha512-lmuwYb03XC7LNRS8oo9M4/vlOrq/wOKmTLBHlltK2YJ1BO/4K/Q9Jdv/jDmJpNydHVR1fmeF4wAfsIp1f9JibA== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/typescript" "^4.0.6" + "@graphql-codegen/visitor-plugin-common" "5.1.0" + auto-bind "~4.0.0" + tslib "~2.6.0" + +"@graphql-codegen/typescript-react-apollo@^4.3.0": + version "4.3.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-react-apollo/-/typescript-react-apollo-4.3.0.tgz#c20b26a3756ed39e84c465c8b0f0212c113f2fee" + integrity sha512-h+IxCGrOTDD60/6ztYDQs81yKDZZq/8aHqM9HHrZ9FiZn145O48VnQNCmGm88I619G9rEET8cCOrtYkCt+ZSzA== + dependencies: + "@graphql-codegen/plugin-helpers" "^3.0.0" + "@graphql-codegen/visitor-plugin-common" "2.13.1" + auto-bind "~4.0.0" + change-case-all "1.0.15" + tslib "~2.6.0" + +"@graphql-codegen/typescript@^4.0.6": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-4.0.6.tgz#2c9b70dc1eafda912de5e31c119c757b1aa5fca1" + integrity sha512-IBG4N+Blv7KAL27bseruIoLTjORFCT3r+QYyMC3g11uY3/9TPpaUyjSdF70yBe5GIQ6dAgDU+ENUC1v7EPi0rw== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/schema-ast" "^4.0.2" + "@graphql-codegen/visitor-plugin-common" "5.1.0" + auto-bind "~4.0.0" + tslib "~2.6.0" + +"@graphql-codegen/visitor-plugin-common@2.13.1": + version "2.13.1" + resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.1.tgz#2228660f6692bcdb96b1f6d91a0661624266b76b" + integrity sha512-mD9ufZhDGhyrSaWQGrU1Q1c5f01TeWtSWy/cDwXYjJcHIj1Y/DG2x0tOflEfCvh5WcnmHNIw4lzDsg1W7iFJEg== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.7.2" + "@graphql-tools/optimize" "^1.3.0" + "@graphql-tools/relay-operation-optimizer" "^6.5.0" + "@graphql-tools/utils" "^8.8.0" + auto-bind "~4.0.0" + change-case-all "1.0.14" + dependency-graph "^0.11.0" + graphql-tag "^2.11.0" + parse-filepath "^1.0.2" + tslib "~2.4.0" + +"@graphql-codegen/visitor-plugin-common@5.1.0", "@graphql-codegen/visitor-plugin-common@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-5.1.0.tgz#4edf7edb53460e71762a5fd8bbf5269bc3d9200b" + integrity sha512-eamQxtA9bjJqI2lU5eYoA1GbdMIRT2X8m8vhWYsVQVWD3qM7sx/IqJU0kx0J3Vd4/CSd36BzL6RKwksibytDIg== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-tools/optimize" "^2.0.0" + "@graphql-tools/relay-operation-optimizer" "^7.0.0" + "@graphql-tools/utils" "^10.0.0" + auto-bind "~4.0.0" + change-case-all "1.0.15" + dependency-graph "^0.11.0" + graphql-tag "^2.11.0" + parse-filepath "^1.0.2" + tslib "~2.6.0" + +"@graphql-tools/apollo-engine-loader@^8.0.0": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.1.tgz#1ec8718af6130ff8039cd653991412472cdd7e55" + integrity sha512-NaPeVjtrfbPXcl+MLQCJLWtqe2/E4bbAqcauEOQ+3sizw1Fc2CNmhHRF8a6W4D0ekvTRRXAMptXYgA2uConbrA== + dependencies: + "@ardatan/sync-fetch" "^0.0.1" + "@graphql-tools/utils" "^10.0.13" + "@whatwg-node/fetch" "^0.9.0" + tslib "^2.4.0" + +"@graphql-tools/batch-execute@^9.0.4": + version "9.0.4" + resolved "https://registry.yarnpkg.com/@graphql-tools/batch-execute/-/batch-execute-9.0.4.tgz#11601409c0c33491971fc82592de12390ec58be2" + integrity sha512-kkebDLXgDrep5Y0gK1RN3DMUlLqNhg60OAz0lTCqrYeja6DshxLtLkj+zV4mVbBA4mQOEoBmw6g1LZs3dA84/w== + dependencies: + "@graphql-tools/utils" "^10.0.13" + dataloader "^2.2.2" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/code-file-loader@^8.0.0": + version "8.1.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/code-file-loader/-/code-file-loader-8.1.1.tgz#517c37d4f8a20b2c6558b10cbe9a6f9bcfe98918" + integrity sha512-q4KN25EPSUztc8rA8YUU3ufh721Yk12xXDbtUA+YstczWS7a1RJlghYMFEfR1HsHSYbF7cUqkbnTKSGM3o52bQ== + dependencies: + "@graphql-tools/graphql-tag-pluck" "8.3.0" + "@graphql-tools/utils" "^10.0.13" + globby "^11.0.3" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/delegate@^10.0.4": + version "10.0.4" + resolved "https://registry.yarnpkg.com/@graphql-tools/delegate/-/delegate-10.0.4.tgz#7c38240f11e42ec2dd45d0a569ca6433ce4cb8dc" + integrity sha512-WswZRbQZMh/ebhc8zSomK9DIh6Pd5KbuiMsyiKkKz37TWTrlCOe+4C/fyrBFez30ksq6oFyCeSKMwfrCbeGo0Q== + dependencies: + "@graphql-tools/batch-execute" "^9.0.4" + "@graphql-tools/executor" "^1.2.1" + "@graphql-tools/schema" "^10.0.3" + "@graphql-tools/utils" "^10.0.13" + dataloader "^2.2.2" + tslib "^2.5.0" + +"@graphql-tools/documents@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/documents/-/documents-1.0.0.tgz#e3ed97197cc22ec830ca227fd7d17e86d8424bdf" + integrity sha512-rHGjX1vg/nZ2DKqRGfDPNC55CWZBMldEVcH+91BThRa6JeT80NqXknffLLEZLRUxyikCfkwMsk6xR3UNMqG0Rg== + dependencies: + lodash.sortby "^4.7.0" + tslib "^2.4.0" + +"@graphql-tools/executor-graphql-ws@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-graphql-ws/-/executor-graphql-ws-1.1.2.tgz#2bf959d2319692460b39400c0fe1515dfbb9f034" + integrity sha512-+9ZK0rychTH1LUv4iZqJ4ESbmULJMTsv3XlFooPUngpxZkk00q6LqHKJRrsLErmQrVaC7cwQCaRBJa0teK17Lg== + dependencies: + "@graphql-tools/utils" "^10.0.13" + "@types/ws" "^8.0.0" + graphql-ws "^5.14.0" + isomorphic-ws "^5.0.0" + tslib "^2.4.0" + ws "^8.13.0" + +"@graphql-tools/executor-http@^1.0.9": + version "1.0.9" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-http/-/executor-http-1.0.9.tgz#87ca8b99a32241eb0cc30a9c500d2672e92d58b7" + integrity sha512-+NXaZd2MWbbrWHqU4EhXcrDbogeiCDmEbrAN+rMn4Nu2okDjn2MTFDbTIab87oEubQCH4Te1wDkWPKrzXup7+Q== + dependencies: + "@graphql-tools/utils" "^10.0.13" + "@repeaterjs/repeater" "^3.0.4" + "@whatwg-node/fetch" "^0.9.0" + extract-files "^11.0.0" + meros "^1.2.1" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/executor-legacy-ws@^1.0.6": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-legacy-ws/-/executor-legacy-ws-1.0.6.tgz#4ed311b731db8fd5c99e66a66361afbf9c2109fc" + integrity sha512-lDSxz9VyyquOrvSuCCnld3256Hmd+QI2lkmkEv7d4mdzkxkK4ddAWW1geQiWrQvWmdsmcnGGlZ7gDGbhEExwqg== + dependencies: + "@graphql-tools/utils" "^10.0.13" + "@types/ws" "^8.0.0" + isomorphic-ws "^5.0.0" + tslib "^2.4.0" + ws "^8.15.0" + +"@graphql-tools/executor@^1.2.1": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor/-/executor-1.2.3.tgz#55426aa13ccb3ec213129ff793b356d881d6e0ff" + integrity sha512-aAS+TGjSq8BJuDq1RV/A/8E53Iu3KvaWpD8DPio0Qe/0YF26tdpK6EcmNSGrrjiZOwVIZ80wclZrFstHzCPm8A== + dependencies: + "@graphql-tools/utils" "^10.1.1" + "@graphql-typed-document-node/core" "3.2.0" + "@repeaterjs/repeater" "^3.0.4" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/git-loader@^8.0.0": + version "8.0.5" + resolved "https://registry.yarnpkg.com/@graphql-tools/git-loader/-/git-loader-8.0.5.tgz#77f9c2a35fdb3a403d33660ed11702720d4b016e" + integrity sha512-P97/1mhruDiA6D5WUmx3n/aeGPLWj2+4dpzDOxFGGU+z9NcI/JdygMkeFpGZNHeJfw+kHfxgPcMPnxHcyhAoVA== + dependencies: + "@graphql-tools/graphql-tag-pluck" "8.3.0" + "@graphql-tools/utils" "^10.0.13" + is-glob "4.0.3" + micromatch "^4.0.4" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/github-loader@^8.0.0": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/github-loader/-/github-loader-8.0.1.tgz#011e1f9495d42a55139a12f576cc6bb04943ecf4" + integrity sha512-W4dFLQJ5GtKGltvh/u1apWRFKBQOsDzFxO9cJkOYZj1VzHCpRF43uLST4VbCfWve+AwBqOuKr7YgkHoxpRMkcg== + dependencies: + "@ardatan/sync-fetch" "^0.0.1" + "@graphql-tools/executor-http" "^1.0.9" + "@graphql-tools/graphql-tag-pluck" "^8.0.0" + "@graphql-tools/utils" "^10.0.13" + "@whatwg-node/fetch" "^0.9.0" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/graphql-file-loader@^8.0.0": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-file-loader/-/graphql-file-loader-8.0.1.tgz#03869b14cb91d0ef539df8195101279bb2df9c9e" + integrity sha512-7gswMqWBabTSmqbaNyWSmRRpStWlcCkBc73E6NZNlh4YNuiyKOwbvSkOUYFOqFMfEL+cFsXgAvr87Vz4XrYSbA== + dependencies: + "@graphql-tools/import" "7.0.1" + "@graphql-tools/utils" "^10.0.13" + globby "^11.0.3" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/graphql-tag-pluck@8.3.0", "@graphql-tools/graphql-tag-pluck@^8.0.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-8.3.0.tgz#11bb8c627253137b39b34fb765cd6ebe506388b9" + integrity sha512-gNqukC+s7iHC7vQZmx1SEJQmLnOguBq+aqE2zV2+o1hxkExvKqyFli1SY/9gmukFIKpKutCIj+8yLOM+jARutw== + dependencies: + "@babel/core" "^7.22.9" + "@babel/parser" "^7.16.8" + "@babel/plugin-syntax-import-assertions" "^7.20.0" + "@babel/traverse" "^7.16.8" + "@babel/types" "^7.16.8" + "@graphql-tools/utils" "^10.0.13" + tslib "^2.4.0" + +"@graphql-tools/import@7.0.1": + version "7.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/import/-/import-7.0.1.tgz#4e0d181c63350b1c926ae91b84a4cbaf03713c2c" + integrity sha512-935uAjAS8UAeXThqHfYVr4HEAp6nHJ2sximZKO1RzUTq5WoALMAhhGARl0+ecm6X+cqNUwIChJbjtaa6P/ML0w== + dependencies: + "@graphql-tools/utils" "^10.0.13" + resolve-from "5.0.0" + tslib "^2.4.0" + +"@graphql-tools/json-file-loader@^8.0.0": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/json-file-loader/-/json-file-loader-8.0.1.tgz#3fcfe869f22d8129a74369da69bf491c0bff7c2d" + integrity sha512-lAy2VqxDAHjVyqeJonCP6TUemrpYdDuKt25a10X6zY2Yn3iFYGnuIDQ64cv3ytyGY6KPyPB+Kp+ZfOkNDG3FQA== + dependencies: + "@graphql-tools/utils" "^10.0.13" + globby "^11.0.3" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/load@^8.0.0": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/load/-/load-8.0.2.tgz#47d9916bf96dea05df27f11b53812f4327d9b6d2" + integrity sha512-S+E/cmyVmJ3CuCNfDuNF2EyovTwdWfQScXv/2gmvJOti2rGD8jTt9GYVzXaxhblLivQR9sBUCNZu/w7j7aXUCA== + dependencies: + "@graphql-tools/schema" "^10.0.3" + "@graphql-tools/utils" "^10.0.13" + p-limit "3.1.0" + tslib "^2.4.0" + +"@graphql-tools/merge@^9.0.0", "@graphql-tools/merge@^9.0.3": + version "9.0.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/merge/-/merge-9.0.3.tgz#4d0b467132e6f788b69fab803d31480b8ce4b61a" + integrity sha512-FeKv9lKLMwqDu0pQjPpF59GY3HReUkWXKsMIuMuJQOKh9BETu7zPEFUELvcw8w+lwZkl4ileJsHXC9+AnsT2Lw== + dependencies: + "@graphql-tools/utils" "^10.0.13" + tslib "^2.4.0" + +"@graphql-tools/optimize@^1.3.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/optimize/-/optimize-1.4.0.tgz#20d6a9efa185ef8fc4af4fd409963e0907c6e112" + integrity sha512-dJs/2XvZp+wgHH8T5J2TqptT9/6uVzIYvA6uFACha+ufvdMBedkfR4b4GbT8jAKLRARiqRTxy3dctnwkTM2tdw== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/optimize@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/optimize/-/optimize-2.0.0.tgz#7a9779d180824511248a50c5a241eff6e7a2d906" + integrity sha512-nhdT+CRGDZ+bk68ic+Jw1OZ99YCDIKYA5AlVAnBHJvMawSx9YQqQAIj4refNc1/LRieGiuWvhbG3jvPVYho0Dg== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/prisma-loader@^8.0.0": + version "8.0.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/prisma-loader/-/prisma-loader-8.0.3.tgz#a41acb41629cf5327834bedd259939024cf774ba" + integrity sha512-oZhxnMr3Jw2WAW1h9FIhF27xWzIB7bXWM8olz4W12oII4NiZl7VRkFw9IT50zME2Bqi9LGh9pkmMWkjvbOpl+Q== + dependencies: + "@graphql-tools/url-loader" "^8.0.2" + "@graphql-tools/utils" "^10.0.13" + "@types/js-yaml" "^4.0.0" + "@types/json-stable-stringify" "^1.0.32" + "@whatwg-node/fetch" "^0.9.0" + chalk "^4.1.0" + debug "^4.3.1" + dotenv "^16.0.0" + graphql-request "^6.0.0" + http-proxy-agent "^7.0.0" + https-proxy-agent "^7.0.0" + jose "^5.0.0" + js-yaml "^4.0.0" + json-stable-stringify "^1.0.1" + lodash "^4.17.20" + scuid "^1.1.0" + tslib "^2.4.0" + yaml-ast-parser "^0.0.43" + +"@graphql-tools/relay-operation-optimizer@^6.5.0": + version "6.5.18" + resolved "https://registry.yarnpkg.com/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.5.18.tgz#a1b74a8e0a5d0c795b8a4d19629b654cf66aa5ab" + integrity sha512-mc5VPyTeV+LwiM+DNvoDQfPqwQYhPV/cl5jOBjTgSniyaq8/86aODfMkrE2OduhQ5E00hqrkuL2Fdrgk0w1QJg== + dependencies: + "@ardatan/relay-compiler" "12.0.0" + "@graphql-tools/utils" "^9.2.1" + tslib "^2.4.0" + +"@graphql-tools/relay-operation-optimizer@^7.0.0": + version "7.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-7.0.1.tgz#8ac33e1d2626b6816d9283769c4a05c062b8065a" + integrity sha512-y0ZrQ/iyqWZlsS/xrJfSir3TbVYJTYmMOu4TaSz6F4FRDTQ3ie43BlKkhf04rC28pnUOS4BO9pDcAo1D30l5+A== + dependencies: + "@ardatan/relay-compiler" "12.0.0" + "@graphql-tools/utils" "^10.0.13" + tslib "^2.4.0" + +"@graphql-tools/schema@^10.0.0", "@graphql-tools/schema@^10.0.3": + version "10.0.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/schema/-/schema-10.0.3.tgz#48c14be84cc617c19c4c929258672b6ab01768de" + integrity sha512-p28Oh9EcOna6i0yLaCFOnkcBDQECVf3SCexT6ktb86QNj9idnkhI+tCxnwZDh58Qvjd2nURdkbevvoZkvxzCog== + dependencies: + "@graphql-tools/merge" "^9.0.3" + "@graphql-tools/utils" "^10.0.13" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/url-loader@^8.0.0", "@graphql-tools/url-loader@^8.0.2": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-8.0.2.tgz#ee8e10a85d82c72662f6bc6bbc7b408510a36ebd" + integrity sha512-1dKp2K8UuFn7DFo1qX5c1cyazQv2h2ICwA9esHblEqCYrgf69Nk8N7SODmsfWg94OEaI74IqMoM12t7eIGwFzQ== + dependencies: + "@ardatan/sync-fetch" "^0.0.1" + "@graphql-tools/delegate" "^10.0.4" + "@graphql-tools/executor-graphql-ws" "^1.1.2" + "@graphql-tools/executor-http" "^1.0.9" + "@graphql-tools/executor-legacy-ws" "^1.0.6" + "@graphql-tools/utils" "^10.0.13" + "@graphql-tools/wrap" "^10.0.2" + "@types/ws" "^8.0.0" + "@whatwg-node/fetch" "^0.9.0" + isomorphic-ws "^5.0.0" + tslib "^2.4.0" + value-or-promise "^1.0.11" + ws "^8.12.0" + +"@graphql-tools/utils@^10.0.0", "@graphql-tools/utils@^10.0.13", "@graphql-tools/utils@^10.1.1": + version "10.1.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-10.1.2.tgz#192de00e7301c0242e7305ab16bbeef76bbcec74" + integrity sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw== + dependencies: + "@graphql-typed-document-node/core" "^3.1.1" + cross-inspect "1.0.0" + dset "^3.1.2" + tslib "^2.4.0" + +"@graphql-tools/utils@^8.8.0": + version "8.13.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-8.13.1.tgz#b247607e400365c2cd87ff54654d4ad25a7ac491" + integrity sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/utils@^9.0.0", "@graphql-tools/utils@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-9.2.1.tgz#1b3df0ef166cfa3eae706e3518b17d5922721c57" + integrity sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A== + dependencies: + "@graphql-typed-document-node/core" "^3.1.1" + tslib "^2.4.0" + +"@graphql-tools/wrap@^10.0.2": + version "10.0.5" + resolved "https://registry.yarnpkg.com/@graphql-tools/wrap/-/wrap-10.0.5.tgz#614b964a158887b4a644f5425b2b9a57b5751f72" + integrity sha512-Cbr5aYjr3HkwdPvetZp1cpDWTGdD1Owgsb3z/ClzhmrboiK86EnQDxDvOJiQkDCPWE9lNBwj8Y4HfxroY0D9DQ== + dependencies: + "@graphql-tools/delegate" "^10.0.4" + "@graphql-tools/schema" "^10.0.3" + "@graphql-tools/utils" "^10.1.1" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-typed-document-node/core@3.2.0", "@graphql-typed-document-node/core@^3.1.1", "@graphql-typed-document-node/core@^3.2.0": version "3.2.0" resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.2.0.tgz#5f3d96ec6b2354ad6d8a28bf216a1d97b5426861" integrity sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ== @@ -4665,6 +5513,15 @@ "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping" "^0.3.9" +"@jridgewell/gen-mapping@^0.3.5": + version "0.3.5" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" + integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== + dependencies: + "@jridgewell/set-array" "^1.2.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.24" + "@jridgewell/resolve-uri@3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" @@ -4680,6 +5537,11 @@ resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== +"@jridgewell/set-array@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== + "@jridgewell/source-map@^0.3.2": version "0.3.2" resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.2.tgz#f45351aaed4527a298512ec72f81040c998580fb" @@ -4722,11 +5584,24 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" +"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": + version "0.3.25" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + "@juggle/resize-observer@^3.3.1": version "3.4.0" resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60" integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA== +"@kamilkisiela/fast-url-parser@^1.1.4": + version "1.1.4" + resolved "https://registry.yarnpkg.com/@kamilkisiela/fast-url-parser/-/fast-url-parser-1.1.4.tgz#9d68877a489107411b953c54ea65d0658b515809" + integrity sha512-gbkePEBupNydxCelHCESvFSFM8XPh1Zs/OAVRW/rKpEqPAl5PbOM90Si8mv9bvnR53uPD2s/FiRxdvSejpRJew== + "@keplr-wallet/types@^0.11.52": version "0.11.59" resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.11.59.tgz#5514dd0c79edb870138f521689894cf71efc7485" @@ -6050,6 +6925,33 @@ mkdirp "^1.0.4" rimraf "^3.0.2" +"@peculiar/asn1-schema@^2.3.8": + version "2.3.8" + resolved "https://registry.yarnpkg.com/@peculiar/asn1-schema/-/asn1-schema-2.3.8.tgz#04b38832a814e25731232dd5be883460a156da3b" + integrity sha512-ULB1XqHKx1WBU/tTFIA+uARuRoBVZ4pNdOA878RDrRbBfBGcSzi5HBkdScC6ZbHn8z7L8gmKCgPC1LHRrP46tA== + dependencies: + asn1js "^3.0.5" + pvtsutils "^1.3.5" + tslib "^2.6.2" + +"@peculiar/json-schema@^1.1.12": + version "1.1.12" + resolved "https://registry.yarnpkg.com/@peculiar/json-schema/-/json-schema-1.1.12.tgz#fe61e85259e3b5ba5ad566cb62ca75b3d3cd5339" + integrity sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w== + dependencies: + tslib "^2.0.0" + +"@peculiar/webcrypto@^1.4.0": + version "1.4.5" + resolved "https://registry.yarnpkg.com/@peculiar/webcrypto/-/webcrypto-1.4.5.tgz#424bed6b0d133b772f5cbffd143d0468a90f40a0" + integrity sha512-oDk93QCDGdxFRM8382Zdminzs44dg3M2+E5Np+JWkpqLDyJC9DviMh8F8mEJkYuUcUOGA5jHO5AJJ10MFWdbZw== + dependencies: + "@peculiar/asn1-schema" "^2.3.8" + "@peculiar/json-schema" "^1.1.12" + pvtsutils "^1.3.5" + tslib "^2.6.2" + webcrypto-core "^1.7.8" + "@pkgjs/parseargs@^0.11.0": version "0.11.0" resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" @@ -6423,6 +7325,11 @@ resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.6.0.tgz#45010e1826f4d81a1b2cfaf874f1aac93998cd28" integrity sha512-N13NRw3T2+6Xi9J//3CGLsK2OqC8NMme3d/YX+nh05K9YHWGcv8DycHJrqGScSP4T75o8IN6nqIMhVFU8ohg8w== +"@repeaterjs/repeater@^3.0.4": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.5.tgz#b77571685410217a548a9c753aa3cdfc215bfc78" + integrity sha512-l3YHBLAol6d/IKnB9LhpD0cEZWAoe3eFKUyTYWmFmCO2Q/WOckxLQAUyMZWwZV2M/m3+4vgRoaolFqaII82/TA== + "@rjsf/core@^3.2.1": version "3.2.1" resolved "https://registry.yarnpkg.com/@rjsf/core/-/core-3.2.1.tgz#8a7b24c9a6f01f0ecb093fdfc777172c12b1b009" @@ -8115,6 +9022,11 @@ expect "^29.0.0" pretty-format "^29.0.0" +"@types/js-yaml@^4.0.0": + version "4.0.9" + resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-4.0.9.tgz#cd82382c4f902fed9691a2ed79ec68c5898af4c2" + integrity sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg== + "@types/jsdom@^20.0.0": version "20.0.1" resolved "https://registry.yarnpkg.com/@types/jsdom/-/jsdom-20.0.1.tgz#07c14bc19bd2f918c1929541cdaacae894744808" @@ -8129,6 +9041,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== +"@types/json-stable-stringify@^1.0.32": + version "1.0.36" + resolved "https://registry.yarnpkg.com/@types/json-stable-stringify/-/json-stable-stringify-1.0.36.tgz#fe6c6001a69ff8160a772da08779448a333c7ddd" + integrity sha512-b7bq23s4fgBB76n34m2b3RBf6M369B0Z9uRR8aHTMd8kZISRkmDEpPD8hhpYvDFzr3bJCPES96cm3Q6qRNDbQw== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -8456,6 +9373,13 @@ tapable "^2.2.0" webpack "^5" +"@types/ws@^8.0.0": + version "8.5.10" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.10.tgz#4acfb517970853fa6574a3a6886791d04a396787" + integrity sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A== + dependencies: + "@types/node" "*" + "@types/ws@^8.2.2", "@types/ws@^8.5.4": version "8.5.6" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.6.tgz#e9ad51f0ab79b9110c50916c9fcbddc36d373065" @@ -8891,6 +9815,57 @@ resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-1.7.0.tgz#e1993689ac42d2b16e9194376cfb6753f6254db1" integrity sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q== +"@whatwg-node/events@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@whatwg-node/events/-/events-0.0.3.tgz#13a65dd4f5893f55280f766e29ae48074927acad" + integrity sha512-IqnKIDWfXBJkvy/k6tzskWTc2NK3LcqHlb+KHGCrjOCH4jfQckRX0NAiIcC/vIqQkzLYw2r2CTSwAxcrtcD6lA== + +"@whatwg-node/events@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@whatwg-node/events/-/events-0.1.1.tgz#0ca718508249419587e130da26d40e29d99b5356" + integrity sha512-AyQEn5hIPV7Ze+xFoXVU3QTHXVbWPrzaOkxtENMPMuNL6VVHrp4hHfDt9nrQpjO7BgvuM95dMtkycX5M/DZR3w== + +"@whatwg-node/fetch@^0.8.0": + version "0.8.8" + resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.8.8.tgz#48c6ad0c6b7951a73e812f09dd22d75e9fa18cae" + integrity sha512-CdcjGC2vdKhc13KKxgsc6/616BQ7ooDIgPeTuAiE8qfCnS0mGzcfCOoZXypQSz73nxI+GWc7ZReIAVhxoE1KCg== + dependencies: + "@peculiar/webcrypto" "^1.4.0" + "@whatwg-node/node-fetch" "^0.3.6" + busboy "^1.6.0" + urlpattern-polyfill "^8.0.0" + web-streams-polyfill "^3.2.1" + +"@whatwg-node/fetch@^0.9.0": + version "0.9.17" + resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.9.17.tgz#10e4ea2392926c8d41ff57e3156857e885317d3f" + integrity sha512-TDYP3CpCrxwxpiNY0UMNf096H5Ihf67BK1iKGegQl5u9SlpEDYrvnV71gWBGJm+Xm31qOy8ATgma9rm8Pe7/5Q== + dependencies: + "@whatwg-node/node-fetch" "^0.5.7" + urlpattern-polyfill "^10.0.0" + +"@whatwg-node/node-fetch@^0.3.6": + version "0.3.6" + resolved "https://registry.yarnpkg.com/@whatwg-node/node-fetch/-/node-fetch-0.3.6.tgz#e28816955f359916e2d830b68a64493124faa6d0" + integrity sha512-w9wKgDO4C95qnXZRwZTfCmLWqyRnooGjcIwG0wADWjw9/HN0p7dtvtgSvItZtUyNteEvgTrd8QojNEqV6DAGTA== + dependencies: + "@whatwg-node/events" "^0.0.3" + busboy "^1.6.0" + fast-querystring "^1.1.1" + fast-url-parser "^1.1.3" + tslib "^2.3.1" + +"@whatwg-node/node-fetch@^0.5.7": + version "0.5.10" + resolved "https://registry.yarnpkg.com/@whatwg-node/node-fetch/-/node-fetch-0.5.10.tgz#85448d0d8c13efe5f8d7bb0957b3276c8c3b6575" + integrity sha512-KIAHepie/T1PRkUfze4t+bPlyvpxlWiXTPtcGlbIZ0vWkBJMdRmCg4ZrJ2y4XaO1eTPo1HlWYUuj1WvoIpumqg== + dependencies: + "@kamilkisiela/fast-url-parser" "^1.1.4" + "@whatwg-node/events" "^0.1.0" + busboy "^1.6.0" + fast-querystring "^1.1.1" + tslib "^2.3.1" + "@wry/caches@^1.0.0": version "1.0.1" resolved "https://registry.yarnpkg.com/@wry/caches/-/caches-1.0.1.tgz#8641fd3b6e09230b86ce8b93558d44cf1ece7e52" @@ -9186,6 +10161,13 @@ agent-base@6: dependencies: debug "4" +agent-base@^7.0.2, agent-base@^7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.0.tgz#536802b76bc0b34aa50195eb2442276d613e3434" + integrity sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg== + dependencies: + debug "^4.3.4" + aggregate-error@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" @@ -9296,7 +10278,7 @@ ansi-escapes@^3.2.0: resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== -ansi-escapes@^4.2.1: +ansi-escapes@^4.2.1, ansi-escapes@^4.3.0: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== @@ -9695,6 +10677,15 @@ asn1@~0.2.3: dependencies: safer-buffer "~2.1.0" +asn1js@^3.0.1, asn1js@^3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/asn1js/-/asn1js-3.0.5.tgz#5ea36820443dbefb51cc7f88a2ebb5b462114f38" + integrity sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ== + dependencies: + pvtsutils "^1.3.2" + pvutils "^1.1.3" + tslib "^2.4.0" + assert-plus@1.0.0, assert-plus@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" @@ -9803,6 +10794,11 @@ atob@^2.1.2: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== +auto-bind@~4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/auto-bind/-/auto-bind-4.0.0.tgz#e3589fc6c2da8f7ca43ba9f84fa52a744fc997fb" + integrity sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ== + automation-events@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/automation-events/-/automation-events-5.0.2.tgz#c792ce2b1e43481019153f37dcb0d18c68642425" @@ -10040,6 +11036,11 @@ babel-plugin-root-import@^6.6.0: dependencies: slash "^3.0.0" +babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: + version "7.0.0-beta.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" + integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== + babel-preset-current-node-syntax@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" @@ -10058,6 +11059,39 @@ babel-preset-current-node-syntax@^1.0.0: "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" +babel-preset-fbjs@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz#38a14e5a7a3b285a3f3a86552d650dca5cf6111c" + integrity sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow== + dependencies: + "@babel/plugin-proposal-class-properties" "^7.0.0" + "@babel/plugin-proposal-object-rest-spread" "^7.0.0" + "@babel/plugin-syntax-class-properties" "^7.0.0" + "@babel/plugin-syntax-flow" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.0.0" + "@babel/plugin-transform-arrow-functions" "^7.0.0" + "@babel/plugin-transform-block-scoped-functions" "^7.0.0" + "@babel/plugin-transform-block-scoping" "^7.0.0" + "@babel/plugin-transform-classes" "^7.0.0" + "@babel/plugin-transform-computed-properties" "^7.0.0" + "@babel/plugin-transform-destructuring" "^7.0.0" + "@babel/plugin-transform-flow-strip-types" "^7.0.0" + "@babel/plugin-transform-for-of" "^7.0.0" + "@babel/plugin-transform-function-name" "^7.0.0" + "@babel/plugin-transform-literals" "^7.0.0" + "@babel/plugin-transform-member-expression-literals" "^7.0.0" + "@babel/plugin-transform-modules-commonjs" "^7.0.0" + "@babel/plugin-transform-object-super" "^7.0.0" + "@babel/plugin-transform-parameters" "^7.0.0" + "@babel/plugin-transform-property-literals" "^7.0.0" + "@babel/plugin-transform-react-display-name" "^7.0.0" + "@babel/plugin-transform-react-jsx" "^7.0.0" + "@babel/plugin-transform-shorthand-properties" "^7.0.0" + "@babel/plugin-transform-spread" "^7.0.0" + "@babel/plugin-transform-template-literals" "^7.0.0" + babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" + babel-preset-jest@^26.6.2: version "26.6.2" resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz#747872b1171df032252426586881d62d31798fee" @@ -10627,6 +11661,16 @@ browserslist@^4.21.9: node-releases "^2.0.12" update-browserslist-db "^1.0.11" +browserslist@^4.22.2: + version "4.23.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab" + integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ== + dependencies: + caniuse-lite "^1.0.30001587" + electron-to-chromium "^1.4.668" + node-releases "^2.0.14" + update-browserslist-db "^1.0.13" + bs-logger@0.x: version "0.2.6" resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" @@ -10728,6 +11772,13 @@ bundle-name@^3.0.0: dependencies: run-applescript "^5.0.0" +busboy@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" + integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== + dependencies: + streamsearch "^1.1.0" + byte-access@^1.0.0, byte-access@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/byte-access/-/byte-access-1.0.1.tgz#84badd99be3671c03f0dd6a039a9c963983724af" @@ -10823,6 +11874,17 @@ call-bind@^1.0.0, call-bind@^1.0.2: function-bind "^1.1.1" get-intrinsic "^1.0.2" +call-bind@^1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" + callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" @@ -10895,6 +11957,11 @@ caniuse-lite@^1.0.30001503: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001517.tgz#90fabae294215c3495807eb24fc809e11dc2f0a8" integrity sha512-Vdhm5S11DaFVLlyiKu4hiUTkpZu+y1KA/rZZqVQfOD5YdDT/eQKlkt7NaE0WGOFgX32diqt9MiP9CAiFeRklaA== +caniuse-lite@^1.0.30001587: + version "1.0.30001600" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001600.tgz#93a3ee17a35aa6a9f0c6ef1b2ab49507d1ab9079" + integrity sha512-+2S9/2JFhYmYaDpZvo0lKkfvuKIglrx68MwOBqMGHhQsNkLjB5xtc/TGoEPs+MxjSyN/72qer2g97nzR641mOQ== + canvas-color-tracker@1: version "1.2.1" resolved "https://registry.yarnpkg.com/canvas-color-tracker/-/canvas-color-tracker-1.2.1.tgz#c552872f8f254bac3e74ea4cc7fed3bb19859bf1" @@ -10909,6 +11976,15 @@ canvas-fit@^1.5.0: dependencies: element-size "^1.1.1" +capital-case@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/capital-case/-/capital-case-1.0.4.tgz#9d130292353c9249f6b00fa5852bee38a717e669" + integrity sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + upper-case-first "^2.0.2" + capture-exit@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" @@ -10998,7 +12074,7 @@ chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: +chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -11011,6 +12087,56 @@ chalk@^5.0.1: resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.2.0.tgz#249623b7d66869c673699fb66d65723e54dfcfb3" integrity sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA== +change-case-all@1.0.14: + version "1.0.14" + resolved "https://registry.yarnpkg.com/change-case-all/-/change-case-all-1.0.14.tgz#bac04da08ad143278d0ac3dda7eccd39280bfba1" + integrity sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA== + dependencies: + change-case "^4.1.2" + is-lower-case "^2.0.2" + is-upper-case "^2.0.2" + lower-case "^2.0.2" + lower-case-first "^2.0.2" + sponge-case "^1.0.1" + swap-case "^2.0.2" + title-case "^3.0.3" + upper-case "^2.0.2" + upper-case-first "^2.0.2" + +change-case-all@1.0.15: + version "1.0.15" + resolved "https://registry.yarnpkg.com/change-case-all/-/change-case-all-1.0.15.tgz#de29393167fc101d646cd76b0ef23e27d09756ad" + integrity sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ== + dependencies: + change-case "^4.1.2" + is-lower-case "^2.0.2" + is-upper-case "^2.0.2" + lower-case "^2.0.2" + lower-case-first "^2.0.2" + sponge-case "^1.0.1" + swap-case "^2.0.2" + title-case "^3.0.3" + upper-case "^2.0.2" + upper-case-first "^2.0.2" + +change-case@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/change-case/-/change-case-4.1.2.tgz#fedfc5f136045e2398c0410ee441f95704641e12" + integrity sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A== + dependencies: + camel-case "^4.1.2" + capital-case "^1.0.4" + constant-case "^3.0.4" + dot-case "^3.0.4" + header-case "^2.0.4" + no-case "^3.0.4" + param-case "^3.0.4" + pascal-case "^3.1.2" + path-case "^3.0.4" + sentence-case "^3.0.4" + snake-case "^3.0.4" + tslib "^2.0.3" + char-regex@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" @@ -11291,11 +12417,24 @@ cli-table3@^0.6.1: optionalDependencies: "@colors/colors" "1.5.0" +cli-truncate@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-2.1.0.tgz#c39e28bf05edcde5be3b98992a22deed5a2b93c7" + integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg== + dependencies: + slice-ansi "^3.0.0" + string-width "^4.2.0" + cli-width@^2.0.0: version "2.2.1" resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== +cli-width@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" + integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== + clipboardy@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/clipboardy/-/clipboardy-3.0.0.tgz#f3876247404d334c9ed01b6f269c11d09a5e3092" @@ -11505,7 +12644,7 @@ colorette@^2.0.10, colorette@^2.0.14: resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798" integrity sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ== -colorette@^2.0.19: +colorette@^2.0.16, colorette@^2.0.19: version "2.0.20" resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== @@ -11577,6 +12716,11 @@ common-path-prefix@^3.0.0: resolved "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-3.0.0.tgz#7d007a7e07c58c4b4d5f433131a19141b29f11e0" integrity sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w== +common-tags@1.8.2: + version "1.8.2" + resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6" + integrity sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA== + commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" @@ -11738,6 +12882,15 @@ const-pinf-float64@^1.0.0: resolved "https://registry.yarnpkg.com/const-pinf-float64/-/const-pinf-float64-1.0.0.tgz#f6efb0d79f9c0986d3e79f2923abf9b70b63d726" integrity sha512-wfs+V4HdSN7C3CWJWR7hVa24yTPn3mDJthwhRIObZBh6UjTjkUMUrCP3UrNGozB/HjTpcScnGXtQUNa+yjsIJQ== +constant-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/constant-case/-/constant-case-3.0.4.tgz#3b84a9aeaf4cf31ec45e6bf5de91bdfb0589faf1" + integrity sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + upper-case "^2.0.2" + constants-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" @@ -11932,9 +13085,19 @@ cosmiconfig@^8.0.0, cosmiconfig@^8.1.3, cosmiconfig@^8.2.0: resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.2.0.tgz#f7d17c56a590856cd1e7cee98734dca272b0d8fd" integrity sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ== dependencies: - import-fresh "^3.2.1" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + parse-json "^5.0.0" + path-type "^4.0.0" + +cosmiconfig@^8.1.0: + version "8.3.6" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.3.6.tgz#060a2b871d66dba6c8538ea1118ba1ac16f5fae3" + integrity sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA== + dependencies: + import-fresh "^3.3.0" js-yaml "^4.1.0" - parse-json "^5.0.0" + parse-json "^5.2.0" path-type "^4.0.0" cosmjs-types@^0.4.0, cosmjs-types@^0.4.1: @@ -12042,6 +13205,13 @@ cross-fetch@^3.1.5: dependencies: node-fetch "2.6.7" +cross-inspect@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/cross-inspect/-/cross-inspect-1.0.0.tgz#5fda1af759a148594d2d58394a9e21364f6849af" + integrity sha512-4PFfn4b5ZN6FMNGSZlyb7wUhuN8wvj8t/VQHZdM4JsDcruGJ8L2kf9zao98QIrBPFCpdk27qst/AGTl7pL3ypQ== + dependencies: + tslib "^2.4.0" + cross-spawn@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41" @@ -12803,6 +13973,11 @@ data-urls@^3.0.2: whatwg-mimetype "^3.0.0" whatwg-url "^11.0.0" +dataloader@^2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-2.2.2.tgz#216dc509b5abe39d43a9b9d97e6e5e473dfbe3e0" + integrity sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g== + datastore-core@^8.0.1: version "8.0.4" resolved "https://registry.yarnpkg.com/datastore-core/-/datastore-core-8.0.4.tgz#a5951c8e530f0ba11ca44f6bb3ce5d7070a3d44e" @@ -12895,7 +14070,7 @@ dateformat@^3.0.3: resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== -debounce@^1.2.1: +debounce@^1.2.0, debounce@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5" integrity sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug== @@ -13131,6 +14306,15 @@ defer-to-connect@^1.0.1: resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== +define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + gopd "^1.0.1" + define-lazy-prop@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" @@ -13251,6 +14435,11 @@ depd@~1.1.2: resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== +dependency-graph@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27" + integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg== + dequal@^2.0.0, dequal@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" @@ -13274,7 +14463,7 @@ detect-browser@^5.3.0: resolved "https://registry.yarnpkg.com/detect-browser/-/detect-browser-5.3.0.tgz#9705ef2bddf46072d0f7265a1fe300e36fe7ceca" integrity sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w== -detect-indent@^6.1.0: +detect-indent@^6.0.0, detect-indent@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6" integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== @@ -13544,6 +14733,11 @@ drbg.js@^1.0.1: create-hash "^1.1.2" create-hmac "^1.1.4" +dset@^3.1.2: + version "3.1.3" + resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.3.tgz#c194147f159841148e8e34ca41f638556d9542d2" + integrity sha512-20TuZZHCEZ2O71q9/+8BwKwZ0QtD9D8ObhrihJPr+vLLYlSuAU3/zL4cSlgbfeoGHTjCSJBa7NGcrF9/Bx/WJQ== + dtype@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/dtype/-/dtype-2.0.0.tgz#cd052323ce061444ecd2e8f5748f69a29be28434" @@ -13628,6 +14822,11 @@ electron-to-chromium@^1.4.431: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.475.tgz#2fee0e2a70cc1538b94f7f90aabcc436e4dcc827" integrity sha512-mTye5u5P98kSJO2n7zYALhpJDmoSQejIGya0iR01GpoRady8eK3bw7YHHnjA1Rfi4ZSLdpuzlAC7Zw+1Zu7Z6A== +electron-to-chromium@^1.4.668: + version "1.4.715" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.715.tgz#bb16bcf2a3537962fccfa746b5c98c5f7404ff46" + integrity sha512-XzWNH4ZSa9BwVUQSDorPWAUQ5WGuYz7zJUNpNif40zFCiCl20t8zgylmreNmn26h5kiyw2lg7RfTmeMBsDklqg== + element-size@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/element-size/-/element-size-1.1.1.tgz#64e5f159d97121631845bcbaecaf279c39b5e34e" @@ -13863,6 +15062,18 @@ es-abstract@^1.19.0, es-abstract@^1.20.4: unbox-primitive "^1.0.2" which-typed-array "^1.1.9" +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + es-get-iterator@^1.1.2: version "1.1.3" resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.3.tgz#3ef87523c5d464d41084b2c3c9c214f1199763d6" @@ -14968,6 +16179,11 @@ extglob@^2.0.4: snapdragon "^0.8.1" to-regex "^3.0.1" +extract-files@^11.0.0: + version "11.0.0" + resolved "https://registry.yarnpkg.com/extract-files/-/extract-files-11.0.0.tgz#b72d428712f787eef1f5193aff8ab5351ca8469a" + integrity sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ== + extract-files@^9.0.0: version "9.0.0" resolved "https://registry.yarnpkg.com/extract-files/-/extract-files-9.0.0.tgz#8a7744f2437f81f5ed3250ed9f1550de902fe54a" @@ -15006,6 +16222,11 @@ falafel@^2.1.0: acorn "^7.1.1" isarray "^2.0.1" +fast-decode-uri-component@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz#46f8b6c22b30ff7a81357d4f59abfae938202543" + integrity sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg== + fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -15054,12 +16275,19 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== +fast-querystring@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/fast-querystring/-/fast-querystring-1.1.2.tgz#a6d24937b4fc6f791b4ee31dcb6f53aeafb89f53" + integrity sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg== + dependencies: + fast-decode-uri-component "^1.0.1" + fast-safe-stringify@2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.4.tgz#4fe828718aa61dbcf9119c3c24e79cc4dea973b2" integrity sha512-mNlGUdKOeGNleyrmgbKYtbnCr9KZkZXU7eM89JRo8vY10f7Ul1Fbj07hUBW3N4fC0xM+fmfFfa2zM7mIizhpNQ== -fast-url-parser@1.1.3: +fast-url-parser@1.1.3, fast-url-parser@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz#f4af3ea9f34d8a271cf58ad2b3759f431f0b318d" integrity sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ== @@ -15652,6 +16880,11 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + function.prototype.name@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" @@ -15711,6 +16944,17 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@ has "^1.0.3" has-symbols "^1.0.3" +get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + get-iterator@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/get-iterator/-/get-iterator-1.0.2.tgz#cd747c02b4c084461fac14f48f6b45a80ed25c82" @@ -16255,7 +17499,7 @@ glob@^10.0.0: minipass "^5.0.0 || ^6.0.2 || ^7.0.0" path-scurry "^1.10.1" -glob@^7.0.3, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: +glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -16317,7 +17561,7 @@ globalthis@^1.0.1, globalthis@^1.0.3: dependencies: define-properties "^1.1.3" -globby@^11.0.1, globby@^11.0.2, globby@^11.1.0: +globby@^11.0.1, globby@^11.0.2, globby@^11.0.3, globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== @@ -16572,6 +17816,23 @@ grapheme-splitter@^1.0.4: resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== +graphql-config@^5.0.2: + version "5.0.3" + resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-5.0.3.tgz#d9aa2954cf47a927f9cb83cdc4e42ae55d0b321e" + integrity sha512-BNGZaoxIBkv9yy6Y7omvsaBUHOzfFcII3UN++tpH8MGOKFPFkCPZuwx09ggANMt8FgyWP1Od8SWPmrUEZca4NQ== + dependencies: + "@graphql-tools/graphql-file-loader" "^8.0.0" + "@graphql-tools/json-file-loader" "^8.0.0" + "@graphql-tools/load" "^8.0.0" + "@graphql-tools/merge" "^9.0.0" + "@graphql-tools/url-loader" "^8.0.0" + "@graphql-tools/utils" "^10.0.0" + cosmiconfig "^8.1.0" + jiti "^1.18.2" + minimatch "^4.2.3" + string-env-interpolation "^1.0.1" + tslib "^2.4.0" + graphql-request@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-5.2.0.tgz#a05fb54a517d91bb2d7aefa17ade4523dc5ebdca" @@ -16582,14 +17843,22 @@ graphql-request@^5.1.0: extract-files "^9.0.0" form-data "^3.0.0" -graphql-tag@^2.12.6, graphql-tag@^2.4.2: +graphql-request@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-6.1.0.tgz#f4eb2107967af3c7a5907eb3131c671eac89be4f" + integrity sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw== + dependencies: + "@graphql-typed-document-node/core" "^3.2.0" + cross-fetch "^3.1.5" + +graphql-tag@^2.11.0, graphql-tag@^2.12.6, graphql-tag@^2.4.2: version "2.12.6" resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.12.6.tgz#d441a569c1d2537ef10ca3d1633b48725329b5f1" integrity sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg== dependencies: tslib "^2.1.0" -graphql-ws@^5.15.0: +graphql-ws@^5.14.0, graphql-ws@^5.15.0: version "5.15.0" resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.15.0.tgz#2db79e1b42468a8363bf5ca6168d076e2f8fdebc" integrity sha512-xWGAtm3fig9TIhSaNsg0FaDZ8Pyn/3re3RFlP4rhQcmjRDIPpk1EhRuNB+YSJtLzttyuToaDiNhwT1OMoGnJnw== @@ -16707,6 +17976,13 @@ has-property-descriptors@^1.0.0: dependencies: get-intrinsic "^1.1.1" +has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== + dependencies: + es-define-property "^1.0.0" + has-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" @@ -16804,6 +18080,13 @@ hashlru@^2.3.0: resolved "https://registry.yarnpkg.com/hashlru/-/hashlru-2.3.0.tgz#5dc15928b3f6961a2056416bb3a4910216fdfb51" integrity sha512-0cMsjjIC8I+D3M44pOQdsy0OHXGLVz6Z0beRuufhKa0KfaD2wGwAev6jILzXsd3/vpnNQJmWyZtIILqM1N+n5A== +hasown@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + hast-util-from-parse5@^7.0.0: version "7.1.2" resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-7.1.2.tgz#aecfef73e3ceafdfa4550716443e4eb7b02e22b0" @@ -16898,6 +18181,14 @@ he@^1.2.0: resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== +header-case@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/header-case/-/header-case-2.0.4.tgz#5a42e63b55177349cf405beb8d775acabb92c063" + integrity sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q== + dependencies: + capital-case "^1.0.4" + tslib "^2.0.3" + helia@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/helia/-/helia-2.0.3.tgz#4bbb3070ddddb93227cfc230544e106180b9a216" @@ -17129,6 +18420,14 @@ http-proxy-agent@^5.0.0: agent-base "6" debug "4" +http-proxy-agent@^7.0.0: + version "7.0.2" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz#9a8b1f246866c028509486585f62b8f2c18c270e" + integrity sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig== + dependencies: + agent-base "^7.1.0" + debug "^4.3.4" + http-proxy-middleware@^2.0.3: version "2.0.6" resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz#e1a4dd6979572c7ab5a4e4b55095d1f32a74963f" @@ -17179,6 +18478,14 @@ https-proxy-agent@^5.0.1: agent-base "6" debug "4" +https-proxy-agent@^7.0.0: + version "7.0.4" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz#8e97b841a029ad8ddc8731f26595bad868cb4168" + integrity sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg== + dependencies: + agent-base "^7.0.2" + debug "4" + human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" @@ -17285,7 +18592,12 @@ immutable@^4.0.0: resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.0.tgz#eb1738f14ffb39fd068b1dbe1296117484dd34be" integrity sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg== -import-fresh@^3.0.0, import-fresh@^3.2.1: +immutable@~3.7.6: + version "3.7.6" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.7.6.tgz#13b4d3cb12befa15482a26fe1b2ebae640071e4b" + integrity sha512-AizQPcaofEtO11RZhPPHBOJRdo/20MKQF9mBLnVkBoyHi1/zXK8fzVdnEpSV9gxqtnh6Qomfp3F0xT5qP/vThw== + +import-fresh@^3.0.0, import-fresh@^3.2.1, import-fresh@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== @@ -17293,6 +18605,11 @@ import-fresh@^3.0.0, import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" +import-from@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/import-from/-/import-from-4.0.0.tgz#2710b8d66817d232e16f4166e319248d3d5492e2" + integrity sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ== + import-lazy@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-4.0.0.tgz#e8eb627483a0a43da3c03f3e35548be5cb0cc153" @@ -17401,6 +18718,27 @@ inquirer@^6.2.2: strip-ansi "^5.1.0" through "^2.3.6" +inquirer@^8.0.0: + version "8.2.6" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.6.tgz#733b74888195d8d400a67ac332011b5fae5ea562" + integrity sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.1" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^5.4.1" + run-async "^2.4.0" + rxjs "^7.5.5" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + wrap-ansi "^6.0.1" + interface-blockstore@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/interface-blockstore/-/interface-blockstore-4.0.1.tgz#0dda1774d72ca7e990dc1921cfc524b3e9d1b9ca" @@ -18007,6 +19345,14 @@ is-absolute-url@^3.0.0: resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-3.0.3.tgz#96c6a22b6a23929b11ea0afb1836c36ad4a5d698" integrity sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q== +is-absolute@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" + integrity sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA== + dependencies: + is-relative "^1.0.0" + is-windows "^1.0.1" + is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" @@ -18245,7 +19591,7 @@ is-generator-function@^1.0.7: dependencies: has-tostringtag "^1.0.0" -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: +is-glob@4.0.3, is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== @@ -18314,6 +19660,13 @@ is-loopback-addr@^2.0.1: resolved "https://registry.yarnpkg.com/is-loopback-addr/-/is-loopback-addr-2.0.1.tgz#0b43534f0b16ff899f1f19f322b59c38bd25fa03" integrity sha512-SEsepLbdWFb13B6U0tt6dYcUM0iK/U7XOC43N70Z4Qb88WpNtp+ospyNI9ddpqncs7Z7brAEsVBTQpaqSNntIw== +is-lower-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-lower-case/-/is-lower-case-2.0.2.tgz#1c0884d3012c841556243483aa5d522f47396d2a" + integrity sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ== + dependencies: + tslib "^2.0.3" + is-map@^2.0.1, is-map@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127" @@ -18460,6 +19813,13 @@ is-regex@^1.1.4: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-relative@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" + integrity sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA== + dependencies: + is-unc-path "^1.0.0" + is-retry-allowed@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz#d778488bd0a4666a3be8a1482b9f2baafedea8b4" @@ -18546,11 +19906,25 @@ is-typedarray@^1.0.0, is-typedarray@~1.0.0: resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== +is-unc-path@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" + integrity sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ== + dependencies: + unc-path-regex "^0.1.2" + is-unicode-supported@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== +is-upper-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-upper-case/-/is-upper-case-2.0.2.tgz#f1105ced1fe4de906a5f39553e7d3803fd804649" + integrity sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ== + dependencies: + tslib "^2.0.3" + is-weakmap@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.1.tgz#5008b59bdc43b698201d18f62b37b2ca243e8cf2" @@ -18586,7 +19960,7 @@ is-window@^1.0.2: resolved "https://registry.yarnpkg.com/is-window/-/is-window-1.0.2.tgz#2c896ca53db97de45d3c33133a65d8c9f563480d" integrity sha512-uj00kdXyZb9t9RcAUAwMZAnkBUwdYGhYlt7djMXhfyhUCzwNba50tIiBKR7q0l7tdoBtFVw/3JmLY6fI3rmZmg== -is-windows@^1.0.2: +is-windows@^1.0.1, is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== @@ -18661,6 +20035,11 @@ isomorphic-ws@^4.0.1: resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc" integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w== +isomorphic-ws@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf" + integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw== + isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" @@ -19788,11 +21167,21 @@ jest@^29.7.0: import-local "^3.0.2" jest-cli "^29.7.0" +jiti@^1.17.1: + version "1.21.0" + resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d" + integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q== + jiti@^1.18.2: version "1.18.2" resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.18.2.tgz#80c3ef3d486ebf2450d9335122b32d121f2a83cd" integrity sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg== +jose@^5.0.0: + version "5.2.3" + resolved "https://registry.yarnpkg.com/jose/-/jose-5.2.3.tgz#071c87f9fe720cff741a403c8080b69bfe13164a" + integrity sha512-KUXdbctm1uHVL8BYhnyHkgp3zDX5KW8ZhAKVFEfUbU2P8Alpzjb+48hHvjOdQIyPshoblhzsuqOwEEAbtHVirA== + js-sdsl@^4.1.4: version "4.4.0" resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.4.0.tgz#8b437dbe642daa95760400b602378ed8ffea8430" @@ -19828,7 +21217,7 @@ js-yaml@^3.13.0, js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" -js-yaml@^4.1.0: +js-yaml@^4.0.0, js-yaml@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== @@ -20012,11 +21401,29 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== +json-stable-stringify@^1.0.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.1.1.tgz#52d4361b47d49168bcc4e564189a42e5a7439454" + integrity sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg== + dependencies: + call-bind "^1.0.5" + isarray "^2.0.5" + jsonify "^0.0.1" + object-keys "^1.1.1" + json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== +json-to-pretty-yaml@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/json-to-pretty-yaml/-/json-to-pretty-yaml-1.2.2.tgz#f4cd0bd0a5e8fe1df25aaf5ba118b099fd992d5b" + integrity sha512-rvm6hunfCcqegwYaG5T4yKJWxc9FXFgBVrcTZ4XfSVRwa5HA/Xs+vB/Eo9treYYHCeNM0nrSUr82V/M31Urc7A== + dependencies: + remedial "^1.0.7" + remove-trailing-spaces "^1.0.6" + json2mq@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/json2mq/-/json2mq-0.2.0.tgz#b637bd3ba9eabe122c83e9720483aeb10d2c904a" @@ -20059,6 +21466,11 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" +jsonify@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.1.tgz#2aa3111dae3d34a0f151c63f3a45d995d9420978" + integrity sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg== + jsonparse@^1.2.0: version "1.3.1" resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" @@ -20493,6 +21905,20 @@ lines-and-columns@^1.1.6: resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== +listr2@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/listr2/-/listr2-4.0.5.tgz#9dcc50221583e8b4c71c43f9c7dfd0ef546b75d5" + integrity sha512-juGHV1doQdpNT3GSTs9IUN43QJb7KHdF9uqg7Vufs/tG9VTzpFphqF4pm/ICdAABGQxsyNn9CiYA3StkI6jpwA== + dependencies: + cli-truncate "^2.1.0" + colorette "^2.0.16" + log-update "^4.0.0" + p-map "^4.0.0" + rfdc "^1.3.0" + rxjs "^7.5.5" + through "^2.3.8" + wrap-ansi "^7.0.0" + lit-element@^3.3.0: version "3.3.2" resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.3.2.tgz#9913bf220b85065f0e5f1bb8878cc44f36b50cfa" @@ -20638,6 +22064,11 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== + lodash.startcase@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.startcase/-/lodash.startcase-4.4.0.tgz#9436e34ed26093ed7ffae1936144350915d9add8" @@ -20658,12 +22089,12 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== -lodash@4.17.21, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4: +lodash@4.17.21, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@~4.17.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -log-symbols@^4.1.0: +log-symbols@^4.0.0, log-symbols@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== @@ -20680,6 +22111,16 @@ log-update@^3.3.0: cli-cursor "^2.1.0" wrap-ansi "^5.0.0" +log-update@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/log-update/-/log-update-4.0.0.tgz#589ecd352471f2a1c0c570287543a64dfd20e0a1" + integrity sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg== + dependencies: + ansi-escapes "^4.3.0" + cli-cursor "^3.1.0" + slice-ansi "^4.0.0" + wrap-ansi "^6.2.0" + logform@^2.2.0, logform@^2.3.2: version "2.5.1" resolved "https://registry.yarnpkg.com/logform/-/logform-2.5.1.tgz#44c77c34becd71b3a42a3970c77929e52c6ed48b" @@ -20722,6 +22163,13 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3 dependencies: js-tokens "^3.0.0 || ^4.0.0" +lower-case-first@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/lower-case-first/-/lower-case-first-2.0.2.tgz#64c2324a2250bf7c37c5901e76a5b5309301160b" + integrity sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg== + dependencies: + tslib "^2.0.3" + lower-case@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28" @@ -20812,7 +22260,7 @@ makeerror@1.0.12: dependencies: tmpl "1.0.5" -map-cache@^0.2.2: +map-cache@^0.2.0, map-cache@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== @@ -21225,6 +22673,11 @@ merge2@^1.3.0, merge2@^1.4.1: resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== +meros@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/meros/-/meros-1.3.0.tgz#c617d2092739d55286bf618129280f362e6242f2" + integrity sha512-2BNGOimxEz5hmjUG2FwoxCt5HN7BXdaWyFqEwxPTrJzVdABtrL4TiHTcsWSFAxPQ/tOnEaQEJh3qWq71QRMY+w== + methods@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" @@ -21635,6 +23088,13 @@ minimatch@3.1.2, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch dependencies: brace-expansion "^1.1.7" +minimatch@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-4.2.3.tgz#b4dcece1d674dee104bb0fb833ebb85a78cbbca6" + integrity sha512-lIUdtK5hdofgCTu3aT0sOaHsYR37viUuIc0rwnnDXImbwFRcumyLMeZaM0t0I/fgxS6s6JMfu0rLD1Wz9pv1ng== + dependencies: + brace-expansion "^1.1.7" + minimatch@^5.0.1, minimatch@^5.1.0: version "5.1.6" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" @@ -22012,6 +23472,11 @@ mute-stream@0.0.7: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ== +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + nan@^2.14.0: version "2.17.0" resolved "https://registry.yarnpkg.com/nan/-/nan-2.17.0.tgz#c0150a2368a182f033e9aa5195ec76ea41a199cb" @@ -22378,6 +23843,11 @@ node-releases@^2.0.12: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== +node-releases@^2.0.14: + version "2.0.14" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" + integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== + node-releases@^2.0.8: version "2.0.10" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f" @@ -22498,6 +23968,11 @@ nth-check@^2.0.1: dependencies: boolbase "^1.0.0" +nullthrows@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" + integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== + number-is-integer@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/number-is-integer/-/number-is-integer-1.0.1.tgz#e59bca172ffed27318e79c7ceb6cb72c095b2152" @@ -22845,6 +24320,13 @@ p-finally@^1.0.0: resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== +p-limit@3.1.0, p-limit@^3.0.2, p-limit@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + p-limit@^2.0.0, p-limit@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" @@ -22852,13 +24334,6 @@ p-limit@^2.0.0, p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-limit@^3.0.2, p-limit@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - p-limit@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-4.0.0.tgz#914af6544ed32bfa54670b061cafcbd04984b644" @@ -23056,6 +24531,15 @@ parse-duration@^1.0.0, parse-duration@^1.0.2: resolved "https://registry.yarnpkg.com/parse-duration/-/parse-duration-1.0.3.tgz#b6681f5edcc2689643b34c09ea63f86f58a35814" integrity sha512-o6NAh12na5VvR6nFejkU0gpQ8jmOY9Y9sTU2ke3L3G/d/3z8jqmbBbeyBGHU73P4JLXfc7tJARygIK3WGIkloA== +parse-filepath@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/parse-filepath/-/parse-filepath-1.0.2.tgz#a632127f53aaf3d15876f5872f3ffac763d6c891" + integrity sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q== + dependencies: + is-absolute "^1.0.0" + map-cache "^0.2.0" + path-root "^0.1.1" + parse-headers@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/parse-headers/-/parse-headers-2.0.5.tgz#069793f9356a54008571eb7f9761153e6c770da9" @@ -23128,6 +24612,14 @@ path-browserify@^1.0.1: resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== +path-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/path-case/-/path-case-3.0.4.tgz#9168645334eb942658375c56f80b4c0cb5f82c6f" + integrity sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg== + dependencies: + dot-case "^3.0.4" + tslib "^2.0.3" + path-exists@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" @@ -23168,6 +24660,18 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== +path-root-regex@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/path-root-regex/-/path-root-regex-0.1.2.tgz#bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d" + integrity sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ== + +path-root@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/path-root/-/path-root-0.1.1.tgz#9a4a6814cac1c0cd73360a95f32083c8ea4745b7" + integrity sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg== + dependencies: + path-root-regex "^0.1.0" + path-scurry@^1.10.1: version "1.10.1" resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.10.1.tgz#9ba6bf5aa8500fe9fd67df4f0d9483b2b0bfc698" @@ -24484,6 +25988,18 @@ pure-rand@^6.0.0: resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.0.2.tgz#a9c2ddcae9b68d736a8163036f088a2781c8b306" integrity sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ== +pvtsutils@^1.3.2, pvtsutils@^1.3.5: + version "1.3.5" + resolved "https://registry.yarnpkg.com/pvtsutils/-/pvtsutils-1.3.5.tgz#b8705b437b7b134cd7fd858f025a23456f1ce910" + integrity sha512-ARvb14YB9Nm2Xi6nBq1ZX6dAM0FsJnuk+31aUp4TrcZEdKUlSqOqsxJHUPJDNE3qiIp+iUPEIeR6Je/tgV7zsA== + dependencies: + tslib "^2.6.1" + +pvutils@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/pvutils/-/pvutils-1.1.3.tgz#f35fc1d27e7cd3dfbd39c0826d173e806a03f5a3" + integrity sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ== + pxls@^2.0.0: version "2.3.2" resolved "https://registry.yarnpkg.com/pxls/-/pxls-2.3.2.tgz#79100d2cc95089fc6e00053a9d93c1ddddb2c7b4" @@ -25673,6 +27189,15 @@ relateurl@^0.2.7: resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog== +relay-runtime@12.0.0: + version "12.0.0" + resolved "https://registry.yarnpkg.com/relay-runtime/-/relay-runtime-12.0.0.tgz#1e039282bdb5e0c1b9a7dc7f6b9a09d4f4ff8237" + integrity sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug== + dependencies: + "@babel/runtime" "^7.0.0" + fbjs "^3.0.0" + invariant "^2.2.4" + remark-breaks@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/remark-breaks/-/remark-breaks-3.0.3.tgz#660e6c995e954e5abdd95bf77df6f1402cb911ef" @@ -25731,6 +27256,11 @@ remark-slug@^6.0.0: mdast-util-to-string "^1.0.0" unist-util-visit "^2.0.0" +remedial@^1.0.7: + version "1.0.8" + resolved "https://registry.yarnpkg.com/remedial/-/remedial-1.0.8.tgz#a5e4fd52a0e4956adbaf62da63a5a46a78c578a0" + integrity sha512-/62tYiOe6DzS5BqVsNpH/nkGlX45C/Sp6V+NtiN6JQNS1Viay7cWkazmRkrQrdFj2eshDe96SIQNIoMxqhzBOg== + remove-accents@0.4.2: version "0.4.2" resolved "https://registry.yarnpkg.com/remove-accents/-/remove-accents-0.4.2.tgz#0a43d3aaae1e80db919e07ae254b285d9e1c7bb5" @@ -25741,6 +27271,11 @@ remove-trailing-separator@^1.0.1: resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw== +remove-trailing-spaces@^1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/remove-trailing-spaces/-/remove-trailing-spaces-1.0.8.tgz#4354d22f3236374702f58ee373168f6d6887ada7" + integrity sha512-O3vsMYfWighyFbTd8hk8VaSj9UAGENxAtX+//ugIst2RMk5e03h6RoIS+0ylsFxY1gvmPuAY/PO4It+gPEeySA== + renderkid@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-3.0.0.tgz#5fd823e4d6951d37358ecc9a58b1f06836b6268a" @@ -25956,6 +27491,11 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== +rfdc@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.1.tgz#2b6d4df52dffe8bb346992a10ea9451f24373a8f" + integrity sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg== + right-now@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/right-now/-/right-now-1.0.0.tgz#6e89609deebd7dcdaf8daecc9aea39cf585a0918" @@ -26092,7 +27632,7 @@ run-applescript@^5.0.0: dependencies: execa "^5.0.0" -run-async@^2.2.0: +run-async@^2.2.0, run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== @@ -26123,7 +27663,7 @@ rxjs@6, rxjs@^6.4.0, rxjs@^6.5.3: dependencies: tslib "^1.9.0" -rxjs@^7.8.0: +rxjs@^7.5.5, rxjs@^7.8.0: version "7.8.1" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== @@ -26301,6 +27841,11 @@ scryptsy@^2.1.0: resolved "https://registry.yarnpkg.com/scryptsy/-/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" integrity sha512-1CdSqHQowJBnMAFyPEBRfqag/YP9OF394FV+4YREIJX4ljD7OxvQRDayyoyyCk+senRjSkP6VnUNQmVQqB6g7w== +scuid@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/scuid/-/scuid-1.1.0.tgz#d3f9f920956e737a60f72d0e4ad280bf324d5dab" + integrity sha512-MuCAyrGZcTLfQoH2XoBlQ8C6bzwN88XT/0slOGz0pn8+gIP85BOAfYa44ZXQUTOwRwPU0QvgU+V+OSajl/59Xg== + secp256k1@^3.7.1: version "3.8.0" resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.8.0.tgz#28f59f4b01dbee9575f56a47034b7d2e3b3b352d" @@ -26394,6 +27939,15 @@ send@0.18.0: range-parser "~1.2.1" statuses "2.0.1" +sentence-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/sentence-case/-/sentence-case-3.0.4.tgz#3645a7b8c117c787fde8702056225bb62a45131f" + integrity sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + upper-case-first "^2.0.2" + serialize-javascript@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-5.0.1.tgz#7886ec848049a462467a97d3d918ebb2aaf934f4" @@ -26494,6 +28048,18 @@ set-delayed-interval@^1.0.0: resolved "https://registry.yarnpkg.com/set-delayed-interval/-/set-delayed-interval-1.0.0.tgz#1f7c065780a365f10250f8a80e2be10175ea0388" integrity sha512-29fhAwuZlLcuBnW/EwxvLcg2D3ELX+VBDNhnavs3YYkab72qmrcSeQNVdzl8EcPPahGQXhBM6MKdPLCQGMDakw== +set-function-length@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + gopd "^1.0.1" + has-property-descriptors "^1.0.2" + set-value@^2.0.0, set-value@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" @@ -26604,6 +28170,11 @@ signed-varint@^2.0.1: dependencies: varint "~5.0.0" +signedsource@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/signedsource/-/signedsource-1.0.0.tgz#1ddace4981798f93bd833973803d80d52e93ad6a" + integrity sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww== + signum@^0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/signum/-/signum-0.0.0.tgz#ab551b1003351070a704783f1a09c5e7691f9cf6" @@ -26747,6 +28318,15 @@ slice-ansi@^2.1.0: astral-regex "^1.0.0" is-fullwidth-code-point "^2.0.0" +slice-ansi@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-3.0.0.tgz#31ddc10930a1b7e0b67b08c96c2f49b77a789787" + integrity sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + slice-ansi@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" @@ -26761,6 +28341,14 @@ slick-carousel@^1.8.1: resolved "https://registry.yarnpkg.com/slick-carousel/-/slick-carousel-1.8.1.tgz#a4bfb29014887bb66ce528b90bd0cda262cc8f8d" integrity sha512-XB9Ftrf2EEKfzoQXt3Nitrt/IPbT+f1fgqBdoxO3W/+JYvtEOW6EgxnWfr9GH6nmULv7Y2tPmEX3koxThVmebA== +snake-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/snake-case/-/snake-case-3.0.4.tgz#4f2bbd568e9935abdfd593f34c691dadb49c452c" + integrity sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg== + dependencies: + dot-case "^3.0.4" + tslib "^2.0.3" + snapdragon-node@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" @@ -26973,6 +28561,13 @@ split2@^3.0.0: dependencies: readable-stream "^3.0.0" +sponge-case@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/sponge-case/-/sponge-case-1.0.1.tgz#260833b86453883d974f84854cdb63aecc5aef4c" + integrity sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA== + dependencies: + tslib "^2.0.3" + sprintf-js@1.1.2, sprintf-js@^1.0.3: version "1.1.2" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.2.tgz#da1765262bf8c0f571749f2ad6c26300207ae673" @@ -27120,6 +28715,11 @@ stream-to-it@^0.2.2, stream-to-it@^0.2.4: dependencies: get-iterator "^1.0.2" +streamsearch@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" + integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== + strict-uri-encode@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" @@ -27135,6 +28735,11 @@ string-convert@^0.2.0: resolved "https://registry.yarnpkg.com/string-convert/-/string-convert-0.2.1.tgz#6982cc3049fbb4cd85f8b24568b9d9bf39eeff97" integrity sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A== +string-env-interpolation@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/string-env-interpolation/-/string-env-interpolation-1.0.1.tgz#ad4397ae4ac53fe6c91d1402ad6f6a52862c7152" + integrity sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg== + string-length@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" @@ -27654,6 +29259,13 @@ svgo@^2.7.0: picocolors "^1.0.0" stable "^0.1.8" +swap-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/swap-case/-/swap-case-2.0.2.tgz#671aedb3c9c137e2985ef51c51f9e98445bf70d9" + integrity sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw== + dependencies: + tslib "^2.0.3" + swarm-js@0.1.39: version "0.1.39" resolved "https://registry.yarnpkg.com/swarm-js/-/swarm-js-0.1.39.tgz#79becb07f291d4b2a178c50fee7aa6e10342c0e8" @@ -28067,6 +29679,13 @@ tinyqueue@^2.0.3: resolved "https://registry.yarnpkg.com/tinyqueue/-/tinyqueue-2.0.3.tgz#64d8492ebf39e7801d7bd34062e29b45b2035f08" integrity sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA== +title-case@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/title-case/-/title-case-3.0.3.tgz#bc689b46f02e411f1d1e1d081f7c3deca0489982" + integrity sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA== + dependencies: + tslib "^2.0.3" + titleize@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/titleize/-/titleize-3.0.0.tgz#71c12eb7fdd2558aa8a44b0be83b8a76694acd53" @@ -28336,6 +29955,11 @@ ts-jest@^29.1.1: semver "^7.5.3" yargs-parser "^21.0.1" +ts-log@^2.2.3: + version "2.2.5" + resolved "https://registry.yarnpkg.com/ts-log/-/ts-log-2.2.5.tgz#aef3252f1143d11047e2cb6f7cfaac7408d96623" + integrity sha512-PGcnJoTBnVGy6yYNFxWVNkdcAuAMstvutN9MgDJIV6L0oG8fB+ZNNy1T+wJzah8RPGor1mZuPQkVfXNDpy9eHA== + ts-migrate-plugins@^0.1.35: version "0.1.35" resolved "https://registry.yarnpkg.com/ts-migrate-plugins/-/ts-migrate-plugins-0.1.35.tgz#96579e07ba8ffa31ff85dfbdd0220482e641f654" @@ -28393,7 +30017,7 @@ tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0, tslib@^2.5 resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== -tslib@^2.3.0: +tslib@^2.3.0, tslib@^2.3.1, tslib@^2.6.1, tslib@^2.6.2, tslib@~2.6.0: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== @@ -28403,6 +30027,11 @@ tslib@~2.3.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== +tslib@~2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" + integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== + tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" @@ -28657,6 +30286,11 @@ unbzip2-stream@^1.0.9: buffer "^5.2.1" through "^2.3.8" +unc-path-regex@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" + integrity sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg== + underscore@1.9.1: version "1.9.1" resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961" @@ -28838,6 +30472,13 @@ universalify@^2.0.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== +unixify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unixify/-/unixify-1.0.0.tgz#3a641c8c2ffbce4da683a5c70f03a462940c2090" + integrity sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg== + dependencies: + normalize-path "^2.1.1" + unpipe@1.0.0, unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -28903,6 +30544,14 @@ update-browserslist-db@^1.0.11: escalade "^3.1.1" picocolors "^1.0.0" +update-browserslist-db@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4" + integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + update-check@1.5.4: version "1.5.4" resolved "https://registry.yarnpkg.com/update-check/-/update-check-1.5.4.tgz#5b508e259558f1ad7dbc8b4b0457d4c9d28c8743" @@ -28916,6 +30565,20 @@ update-diff@^1.1.0: resolved "https://registry.yarnpkg.com/update-diff/-/update-diff-1.1.0.tgz#f510182d81ee819fb82c3a6b22b62bbdeda7808f" integrity sha512-rCiBPiHxZwT4+sBhEbChzpO5hYHjm91kScWgdHf4Qeafs6Ba7MBl+d9GlGv72bcTZQO0sLmtQS1pHSWoCLtN/A== +upper-case-first@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/upper-case-first/-/upper-case-first-2.0.2.tgz#992c3273f882abd19d1e02894cc147117f844324" + integrity sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg== + dependencies: + tslib "^2.0.3" + +upper-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-2.0.2.tgz#d89810823faab1df1549b7d97a76f8662bae6f7a" + integrity sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg== + dependencies: + tslib "^2.0.3" + uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -28968,6 +30631,16 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" +urlpattern-polyfill@^10.0.0: + version "10.0.0" + resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz#f0a03a97bfb03cdf33553e5e79a2aadd22cac8ec" + integrity sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg== + +urlpattern-polyfill@^8.0.0: + version "8.0.2" + resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz#99f096e35eff8bf4b5a2aa7d58a1523d6ebc7ce5" + integrity sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ== + use-callback-ref@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/use-callback-ref/-/use-callback-ref-1.3.0.tgz#772199899b9c9a50526fedc4993fc7fa1f7e32d5" @@ -29238,6 +30911,11 @@ value-equal@^1.0.1: resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c" integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw== +value-or-promise@^1.0.11, value-or-promise@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/value-or-promise/-/value-or-promise-1.0.12.tgz#0e5abfeec70148c78460a849f6b003ea7986f15c" + integrity sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q== + varint-decoder@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/varint-decoder/-/varint-decoder-1.0.0.tgz#289dab7887ee58d0c7be3a3353abeab4ca60aa77" @@ -29399,6 +31077,11 @@ web-namespaces@^2.0.0: resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-2.0.1.tgz#1010ff7c650eccb2592cebeeaf9a1b253fd40692" integrity sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ== +web-streams-polyfill@^3.2.1: + version "3.3.3" + resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz#2073b91a2fdb1fbfbd401e7de0ac9f8214cecb4b" + integrity sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw== + web3-bzz@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-bzz/-/web3-bzz-1.2.4.tgz#a4adb7a8cba3d260de649bdb1f14ed359bfb3821" @@ -29651,6 +31334,17 @@ web3@1.2.4: web3-shh "1.2.4" web3-utils "1.2.4" +webcrypto-core@^1.7.8: + version "1.7.8" + resolved "https://registry.yarnpkg.com/webcrypto-core/-/webcrypto-core-1.7.8.tgz#056918036e846c72cfebbb04052e283f57f1114a" + integrity sha512-eBR98r9nQXTqXt/yDRtInszPMjTaSAMJAFDg2AHsgrnczawT1asx9YNBX6k5p+MekbPF4+s/UJJrr88zsTqkSg== + dependencies: + "@peculiar/asn1-schema" "^2.3.8" + "@peculiar/json-schema" "^1.1.12" + asn1js "^3.0.1" + pvtsutils "^1.3.5" + tslib "^2.6.2" + webgl-context@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/webgl-context/-/webgl-context-2.2.0.tgz#8f37d7257cf6df1cd0a49e6a7b1b721b94cc86a0" @@ -30094,7 +31788,7 @@ wrap-ansi@^5.0.0: string-width "^3.0.0" strip-ansi "^5.0.0" -wrap-ansi@^6.2.0: +wrap-ansi@^6.0.1, wrap-ansi@^6.2.0: version "6.2.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== @@ -30190,6 +31884,11 @@ ws@^8.11.0, ws@^8.12.1, ws@^8.13.0, ws@^8.2.3, ws@^8.4.0: resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0" integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== +ws@^8.12.0, ws@^8.15.0: + version "8.16.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.16.0.tgz#d1cd774f36fbc07165066a60e40323eab6446fd4" + integrity sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ== + ws@~8.11.0: version "8.11.0" resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143" @@ -30331,11 +32030,21 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== +yaml-ast-parser@^0.0.43: + version "0.0.43" + resolved "https://registry.yarnpkg.com/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz#e8a23e6fb4c38076ab92995c5dca33f3d3d7c9bb" + integrity sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A== + yaml@^1.10.0, yaml@^1.10.2: version "1.10.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== +yaml@^2.3.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.4.1.tgz#2e57e0b5e995292c25c75d2658f0664765210eed" + integrity sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg== + yargs-parser@^18.1.2: version "18.1.3" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" @@ -30354,7 +32063,7 @@ yargs-parser@^21.0.1, yargs-parser@^21.1.1: resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== -yargs@^15.0.2, yargs@^15.1.0: +yargs@^15.0.2, yargs@^15.1.0, yargs@^15.3.1: version "15.4.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== @@ -30384,7 +32093,7 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yargs@^17.3.1: +yargs@^17.0.0, yargs@^17.3.1: version "17.7.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== From c74a4d29c4d603ecaa4c60b3e90df9b242867084 Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 14:32:31 +0530 Subject: [PATCH 15/40] feat(api): rm gql dependency --- .../account/hooks/useGetTsxByAddress.ts | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts b/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts index cc02c508e..6b9d2a524 100644 --- a/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts +++ b/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts @@ -1,31 +1,13 @@ import { request } from 'graphql-request'; -import { gql } from '@apollo/client'; - import { useInfiniteQuery } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { INDEX_HTTPS } from 'src/constants/config'; import { MessagesByAddressQuery, MessagesByAddressQueryVariables, + MessagesByAddressDocument, } from 'src/generated/graphql'; -const messagesByAddress = gql(` - query MyQuery($address: _text, $limit: bigint, $offset: bigint) { - messages_by_address(args: {addresses: $address, limit: $limit, offset: $offset, types: "{}"}, - order_by: {transaction: {block: {height: desc}}}) { - transaction_hash - value - transaction { - success - block { - timestamp - } - } - type - } -} -`); - const limit = '1000'; function useGetTsxByAddress(address: string) { @@ -42,7 +24,7 @@ function useGetTsxByAddress(address: string) { // Directly typing the response improves type safety const response = await request( INDEX_HTTPS, - messagesByAddress, + MessagesByAddressDocument, variables ); return { data: response.messages_by_address, page: pageParam }; From c3bf31dce77f66f0e3c7fd84738058c2588c1dec Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 14:22:12 +0530 Subject: [PATCH 16/40] feat(api): add gql codegen feat(api): rm gql dependency --- codegen.ts | 32 + package.json | 10 +- src/generated/graphql.ts | 10384 ++++++++++++++++ ...tTsxByAddress.js => useGetTsxByAddress.ts} | 46 +- .../graphql/queries/messagesByAddress.graphql | 16 + webpack.config.common.js | 5 + yarn.lock | 1861 ++- 7 files changed, 12249 insertions(+), 105 deletions(-) create mode 100644 codegen.ts create mode 100644 src/generated/graphql.ts rename src/pages/robot/_refactor/account/hooks/{useGetTsxByAddress.js => useGetTsxByAddress.ts} (54%) create mode 100644 src/services/graphql/queries/messagesByAddress.graphql diff --git a/codegen.ts b/codegen.ts new file mode 100644 index 000000000..84ddcfd54 --- /dev/null +++ b/codegen.ts @@ -0,0 +1,32 @@ +import { CodegenConfig } from '@graphql-codegen/cli'; + +const schemaUrl = 'https://index.bostrom.cybernode.ai/v1/graphql'; //process.env.NEXT_PUBLIC_GRAPHQL_HOST; + +const config: CodegenConfig = { + overwrite: true, + schema: schemaUrl, + documents: ['src/**/*.graphql'], + config: { + withHooks: true, + namingConvention: { + transformUnderscore: true, + }, + }, + generates: { + 'src/generated/graphql.ts': { + plugins: [ + { + typescript: { + namingConvention: { + transformUnderscore: true, + }, + }, + }, + 'typescript-operations', + 'typescript-react-apollo', + ], + }, + }, +}; + +export default config; diff --git a/package.json b/package.json index 077a9bb23..199bdce1c 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,13 @@ "stylelint:lint": "stylelint \"**/*.*css\"", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", - "test": "jest --transformIgnorePatterns --verbose" + "test": "jest --transformIgnorePatterns --verbose", + "gql": "yarn graphql-codegen --config ./codegen.ts" }, "browserslist": "> 0.5%, last 2 versions, not dead", "license": "ISC", "devDependencies": { - "@babel/core": "7.21.0", + "@babel/core": "^7.24.3", "@babel/eslint-parser": "^7.16.5", "@babel/helper-compilation-targets": "^7.21.4", "@babel/plugin-proposal-class-properties": "7.18.6", @@ -36,6 +37,10 @@ "@babel/preset-typescript": "^7.21.0", "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", + "@graphql-codegen/cli": "^5.0.2", + "@graphql-codegen/typescript": "^4.0.6", + "@graphql-codegen/typescript-operations": "^4.2.0", + "@graphql-codegen/typescript-react-apollo": "^4.3.0", "@keplr-wallet/types": "^0.11.52", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", "@rjsf/core": "^3.2.1", @@ -82,6 +87,7 @@ "eslint-plugin-react": "^7.32.2", "eslint-plugin-typescript": "^0.14.0", "file-loader": "^6.2.0", + "graphql-tag": "^2.12.6", "history": "^4.9.0", "html-webpack-plugin": "^5.5.0", "https-browserify": "^1.0.0", diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts new file mode 100644 index 000000000..9d10ccebc --- /dev/null +++ b/src/generated/graphql.ts @@ -0,0 +1,10384 @@ +import { gql } from '@apollo/client'; +import * as Apollo from '@apollo/client'; +export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +const defaultOptions = {} as const; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + _coin: { input: any; output: any; } + _text: { input: any; output: any; } + bigint: { input: any; output: any; } + coin: { input: any; output: any; } + date: { input: any; output: any; } + float8: { input: any; output: any; } + json: { input: any; output: any; } + jsonb: { input: any; output: any; } + numeric: { input: any; output: any; } + timestamp: { input: any; output: any; } +}; + +/** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ +export type BooleanComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */ +export type IntComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ +export type StringComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + /** does the column match the given case-insensitive pattern */ + _ilike?: InputMaybe; + _in?: InputMaybe>; + /** does the column match the given POSIX regular expression, case insensitive */ + _iregex?: InputMaybe; + _is_null?: InputMaybe; + /** does the column match the given pattern */ + _like?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + /** does the column NOT match the given case-insensitive pattern */ + _nilike?: InputMaybe; + _nin?: InputMaybe>; + /** does the column NOT match the given POSIX regular expression, case insensitive */ + _niregex?: InputMaybe; + /** does the column NOT match the given pattern */ + _nlike?: InputMaybe; + /** does the column NOT match the given POSIX regular expression, case sensitive */ + _nregex?: InputMaybe; + /** does the column NOT match the given SQL regular expression */ + _nsimilar?: InputMaybe; + /** does the column match the given POSIX regular expression, case sensitive */ + _regex?: InputMaybe; + /** does the column match the given SQL regular expression */ + _similar?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "_coin". All fields are combined with logical 'AND'. */ +export type CoinComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. */ +export type TextComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "_transaction" */ +export type Transaction = { + __typename?: '_transaction'; + fee?: Maybe; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + index?: Maybe; + involved_accounts_addresses?: Maybe; + logs?: Maybe; + memo?: Maybe; + messages?: Maybe; + raw_log?: Maybe; + signatures?: Maybe; + signer_infos?: Maybe; + subject1?: Maybe; + subject2?: Maybe; + success?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; + value?: Maybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionFeeArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionLogsArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionMessagesArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionSignerInfosArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "_transaction" */ +export type TransactionValueArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "_transaction" */ +export type TransactionAggregate = { + __typename?: '_transaction_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "_transaction" */ +export type TransactionAggregateFields = { + __typename?: '_transaction_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "_transaction" */ +export type TransactionAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TransactionAvgFields = { + __typename?: '_transaction_avg_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** Boolean expression to filter rows from the table "_transaction". All fields are combined with a logical 'AND'. */ +export type TransactionBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + raw_log?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + subject1?: InputMaybe; + subject2?: InputMaybe; + success?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TransactionMaxFields = { + __typename?: '_transaction_max_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + index?: Maybe; + memo?: Maybe; + raw_log?: Maybe; + subject1?: Maybe; + subject2?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type TransactionMinFields = { + __typename?: '_transaction_min_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + index?: Maybe; + memo?: Maybe; + raw_log?: Maybe; + subject1?: Maybe; + subject2?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "_transaction". */ +export type TransactionOrderBy = { + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + raw_log?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + subject1?: InputMaybe; + subject2?: InputMaybe; + success?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; +}; + +/** select columns of table "_transaction" */ +export enum TransactionSelectColumn { + /** column name */ + Fee = 'fee', + /** column name */ + GasUsed = 'gas_used', + /** column name */ + GasWanted = 'gas_wanted', + /** column name */ + Hash = 'hash', + /** column name */ + Height = 'height', + /** column name */ + Index = 'index', + /** column name */ + InvolvedAccountsAddresses = 'involved_accounts_addresses', + /** column name */ + Logs = 'logs', + /** column name */ + Memo = 'memo', + /** column name */ + Messages = 'messages', + /** column name */ + RawLog = 'raw_log', + /** column name */ + Signatures = 'signatures', + /** column name */ + SignerInfos = 'signer_infos', + /** column name */ + Subject1 = 'subject1', + /** column name */ + Subject2 = 'subject2', + /** column name */ + Success = 'success', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Type = 'type', + /** column name */ + Value = 'value' +} + +/** aggregate stddev on columns */ +export type TransactionStddevFields = { + __typename?: '_transaction_stddev_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TransactionStddevPopFields = { + __typename?: '_transaction_stddev_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TransactionStddevSampFields = { + __typename?: '_transaction_stddev_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate sum on columns */ +export type TransactionSumFields = { + __typename?: '_transaction_sum_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TransactionVarPopFields = { + __typename?: '_transaction_var_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TransactionVarSampFields = { + __typename?: '_transaction_var_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** aggregate variance on columns */ +export type TransactionVarianceFields = { + __typename?: '_transaction_variance_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; + index?: Maybe; +}; + +/** columns and relationships of "_uptime_temp" */ +export type UptimeTemp = { + __typename?: '_uptime_temp'; + pre_commits?: Maybe; + validator_address?: Maybe; +}; + +/** aggregated selection of "_uptime_temp" */ +export type UptimeTempAggregate = { + __typename?: '_uptime_temp_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "_uptime_temp" */ +export type UptimeTempAggregateFields = { + __typename?: '_uptime_temp_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "_uptime_temp" */ +export type UptimeTempAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type UptimeTempAvgFields = { + __typename?: '_uptime_temp_avg_fields'; + pre_commits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "_uptime_temp". All fields are combined with a logical 'AND'. */ +export type UptimeTempBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + pre_commits?: InputMaybe; + validator_address?: InputMaybe; +}; + +/** aggregate max on columns */ +export type UptimeTempMaxFields = { + __typename?: '_uptime_temp_max_fields'; + pre_commits?: Maybe; + validator_address?: Maybe; +}; + +/** aggregate min on columns */ +export type UptimeTempMinFields = { + __typename?: '_uptime_temp_min_fields'; + pre_commits?: Maybe; + validator_address?: Maybe; +}; + +/** Ordering options when selecting data from "_uptime_temp". */ +export type UptimeTempOrderBy = { + pre_commits?: InputMaybe; + validator_address?: InputMaybe; +}; + +/** select columns of table "_uptime_temp" */ +export enum UptimeTempSelectColumn { + /** column name */ + PreCommits = 'pre_commits', + /** column name */ + ValidatorAddress = 'validator_address' +} + +/** aggregate stddev on columns */ +export type UptimeTempStddevFields = { + __typename?: '_uptime_temp_stddev_fields'; + pre_commits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type UptimeTempStddevPopFields = { + __typename?: '_uptime_temp_stddev_pop_fields'; + pre_commits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type UptimeTempStddevSampFields = { + __typename?: '_uptime_temp_stddev_samp_fields'; + pre_commits?: Maybe; +}; + +/** aggregate sum on columns */ +export type UptimeTempSumFields = { + __typename?: '_uptime_temp_sum_fields'; + pre_commits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type UptimeTempVarPopFields = { + __typename?: '_uptime_temp_var_pop_fields'; + pre_commits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type UptimeTempVarSampFields = { + __typename?: '_uptime_temp_var_samp_fields'; + pre_commits?: Maybe; +}; + +/** aggregate variance on columns */ +export type UptimeTempVarianceFields = { + __typename?: '_uptime_temp_variance_fields'; + pre_commits?: Maybe; +}; + +/** columns and relationships of "account" */ +export type Account = { + __typename?: 'account'; + /** An object relationship */ + account_balance?: Maybe; + address: Scalars['String']['output']; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + /** An array relationship */ + routes: Array; + /** An array relationship */ + routesBySource: Array; + /** An aggregate relationship */ + routesBySource_aggregate: RoutesAggregate; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; +}; + + +/** columns and relationships of "account" */ +export type AccountCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountRoutesBySourceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountRoutesBySourceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "account" */ +export type AccountRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "account" */ +export type AccountAggregate = { + __typename?: 'account_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "account" */ +export type AccountAggregateFields = { + __typename?: 'account_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "account" */ +export type AccountAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** columns and relationships of "account_balance" */ +export type AccountBalance = { + __typename?: 'account_balance'; + /** An object relationship */ + account: Account; + address: Scalars['String']['output']; + coins: Scalars['_coin']['output']; + height: Scalars['bigint']['output']; +}; + +/** aggregated selection of "account_balance" */ +export type AccountBalanceAggregate = { + __typename?: 'account_balance_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "account_balance" */ +export type AccountBalanceAggregateFields = { + __typename?: 'account_balance_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "account_balance" */ +export type AccountBalanceAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type AccountBalanceAvgFields = { + __typename?: 'account_balance_avg_fields'; + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "account_balance". All fields are combined with a logical 'AND'. */ +export type AccountBalanceBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + address?: InputMaybe; + coins?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate max on columns */ +export type AccountBalanceMaxFields = { + __typename?: 'account_balance_max_fields'; + address?: Maybe; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type AccountBalanceMinFields = { + __typename?: 'account_balance_min_fields'; + address?: Maybe; + height?: Maybe; +}; + +/** Ordering options when selecting data from "account_balance". */ +export type AccountBalanceOrderBy = { + account?: InputMaybe; + address?: InputMaybe; + coins?: InputMaybe; + height?: InputMaybe; +}; + +/** select columns of table "account_balance" */ +export enum AccountBalanceSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Coins = 'coins', + /** column name */ + Height = 'height' +} + +/** aggregate stddev on columns */ +export type AccountBalanceStddevFields = { + __typename?: 'account_balance_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type AccountBalanceStddevPopFields = { + __typename?: 'account_balance_stddev_pop_fields'; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type AccountBalanceStddevSampFields = { + __typename?: 'account_balance_stddev_samp_fields'; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type AccountBalanceSumFields = { + __typename?: 'account_balance_sum_fields'; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type AccountBalanceVarPopFields = { + __typename?: 'account_balance_var_pop_fields'; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type AccountBalanceVarSampFields = { + __typename?: 'account_balance_var_samp_fields'; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type AccountBalanceVarianceFields = { + __typename?: 'account_balance_variance_fields'; + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ +export type AccountBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account_balance?: InputMaybe; + address?: InputMaybe; + cyberlinks?: InputMaybe; + investmints?: InputMaybe; + particles?: InputMaybe; + routes?: InputMaybe; + routesBySource?: InputMaybe; +}; + +/** aggregate max on columns */ +export type AccountMaxFields = { + __typename?: 'account_max_fields'; + address?: Maybe; +}; + +/** aggregate min on columns */ +export type AccountMinFields = { + __typename?: 'account_min_fields'; + address?: Maybe; +}; + +/** Ordering options when selecting data from "account". */ +export type AccountOrderBy = { + account_balance?: InputMaybe; + address?: InputMaybe; + cyberlinks_aggregate?: InputMaybe; + investmints_aggregate?: InputMaybe; + particles_aggregate?: InputMaybe; + routesBySource_aggregate?: InputMaybe; + routes_aggregate?: InputMaybe; +}; + +/** select columns of table "account" */ +export enum AccountSelectColumn { + /** column name */ + Address = 'address' +} + +/** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ +export type BigintComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "block" */ +export type Block = { + __typename?: 'block'; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + hash: Scalars['String']['output']; + height: Scalars['bigint']['output']; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + num_txs?: Maybe; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + proposer_address?: Maybe; + /** An array relationship */ + routes: Array; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; + timestamp: Scalars['timestamp']['output']; + total_gas?: Maybe; + /** An array relationship */ + transactions: Array; + /** An aggregate relationship */ + transactions_aggregate: TransactionAggregate; + /** An object relationship */ + validator?: Maybe; +}; + + +/** columns and relationships of "block" */ +export type BlockCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "block" */ +export type BlockTransactionsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "block" */ +export type BlockAggregate = { + __typename?: 'block_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "block" */ +export type BlockAggregateFields = { + __typename?: 'block_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "block" */ +export type BlockAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "block" */ +export type BlockAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type BlockAvgFields = { + __typename?: 'block_avg_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by avg() on columns of table "block" */ +export type BlockAvgOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ +export type BlockBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlinks?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints?: InputMaybe; + num_txs?: InputMaybe; + particles?: InputMaybe; + proposer_address?: InputMaybe; + routes?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; + transactions?: InputMaybe; + validator?: InputMaybe; +}; + +/** aggregate max on columns */ +export type BlockMaxFields = { + __typename?: 'block_max_fields'; + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; + +/** order by max() on columns of table "block" */ +export type BlockMaxOrderBy = { + hash?: InputMaybe; + height?: InputMaybe; + num_txs?: InputMaybe; + proposer_address?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate min on columns */ +export type BlockMinFields = { + __typename?: 'block_min_fields'; + hash?: Maybe; + height?: Maybe; + num_txs?: Maybe; + proposer_address?: Maybe; + timestamp?: Maybe; + total_gas?: Maybe; +}; + +/** order by min() on columns of table "block" */ +export type BlockMinOrderBy = { + hash?: InputMaybe; + height?: InputMaybe; + num_txs?: InputMaybe; + proposer_address?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** Ordering options when selecting data from "block". */ +export type BlockOrderBy = { + cyberlinks_aggregate?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints_aggregate?: InputMaybe; + num_txs?: InputMaybe; + particles_aggregate?: InputMaybe; + proposer_address?: InputMaybe; + routes_aggregate?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; + transactions_aggregate?: InputMaybe; + validator?: InputMaybe; +}; + +/** select columns of table "block" */ +export enum BlockSelectColumn { + /** column name */ + Hash = 'hash', + /** column name */ + Height = 'height', + /** column name */ + NumTxs = 'num_txs', + /** column name */ + ProposerAddress = 'proposer_address', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TotalGas = 'total_gas' +} + +/** aggregate stddev on columns */ +export type BlockStddevFields = { + __typename?: 'block_stddev_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev() on columns of table "block" */ +export type BlockStddevOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type BlockStddevPopFields = { + __typename?: 'block_stddev_pop_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_pop() on columns of table "block" */ +export type BlockStddevPopOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type BlockStddevSampFields = { + __typename?: 'block_stddev_samp_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by stddev_samp() on columns of table "block" */ +export type BlockStddevSampOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type BlockSumFields = { + __typename?: 'block_sum_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by sum() on columns of table "block" */ +export type BlockSumOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type BlockVarPopFields = { + __typename?: 'block_var_pop_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by var_pop() on columns of table "block" */ +export type BlockVarPopOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type BlockVarSampFields = { + __typename?: 'block_var_samp_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by var_samp() on columns of table "block" */ +export type BlockVarSampOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type BlockVarianceFields = { + __typename?: 'block_variance_fields'; + height?: Maybe; + num_txs?: Maybe; + total_gas?: Maybe; +}; + +/** order by variance() on columns of table "block" */ +export type BlockVarianceOrderBy = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "coin". All fields are combined with logical 'AND'. */ +export type CoinComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "contracts" */ +export type Contracts = { + __typename?: 'contracts'; + address: Scalars['String']['output']; + admin: Scalars['String']['output']; + code_id: Scalars['bigint']['output']; + creation_time: Scalars['String']['output']; + creator: Scalars['String']['output']; + fees: Scalars['bigint']['output']; + gas: Scalars['bigint']['output']; + height: Scalars['bigint']['output']; + label: Scalars['String']['output']; + tx: Scalars['bigint']['output']; +}; + +/** aggregated selection of "contracts" */ +export type ContractsAggregate = { + __typename?: 'contracts_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "contracts" */ +export type ContractsAggregateFields = { + __typename?: 'contracts_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "contracts" */ +export type ContractsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type ContractsAvgFields = { + __typename?: 'contracts_avg_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** Boolean expression to filter rows from the table "contracts". All fields are combined with a logical 'AND'. */ +export type ContractsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + admin?: InputMaybe; + code_id?: InputMaybe; + creation_time?: InputMaybe; + creator?: InputMaybe; + fees?: InputMaybe; + gas?: InputMaybe; + height?: InputMaybe; + label?: InputMaybe; + tx?: InputMaybe; +}; + +/** aggregate max on columns */ +export type ContractsMaxFields = { + __typename?: 'contracts_max_fields'; + address?: Maybe; + admin?: Maybe; + code_id?: Maybe; + creation_time?: Maybe; + creator?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + label?: Maybe; + tx?: Maybe; +}; + +/** aggregate min on columns */ +export type ContractsMinFields = { + __typename?: 'contracts_min_fields'; + address?: Maybe; + admin?: Maybe; + code_id?: Maybe; + creation_time?: Maybe; + creator?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + label?: Maybe; + tx?: Maybe; +}; + +/** Ordering options when selecting data from "contracts". */ +export type ContractsOrderBy = { + address?: InputMaybe; + admin?: InputMaybe; + code_id?: InputMaybe; + creation_time?: InputMaybe; + creator?: InputMaybe; + fees?: InputMaybe; + gas?: InputMaybe; + height?: InputMaybe; + label?: InputMaybe; + tx?: InputMaybe; +}; + +/** select columns of table "contracts" */ +export enum ContractsSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Admin = 'admin', + /** column name */ + CodeId = 'code_id', + /** column name */ + CreationTime = 'creation_time', + /** column name */ + Creator = 'creator', + /** column name */ + Fees = 'fees', + /** column name */ + Gas = 'gas', + /** column name */ + Height = 'height', + /** column name */ + Label = 'label', + /** column name */ + Tx = 'tx' +} + +/** aggregate stddev on columns */ +export type ContractsStddevFields = { + __typename?: 'contracts_stddev_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type ContractsStddevPopFields = { + __typename?: 'contracts_stddev_pop_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type ContractsStddevSampFields = { + __typename?: 'contracts_stddev_samp_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate sum on columns */ +export type ContractsSumFields = { + __typename?: 'contracts_sum_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type ContractsVarPopFields = { + __typename?: 'contracts_var_pop_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type ContractsVarSampFields = { + __typename?: 'contracts_var_samp_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** aggregate variance on columns */ +export type ContractsVarianceFields = { + __typename?: 'contracts_variance_fields'; + code_id?: Maybe; + fees?: Maybe; + gas?: Maybe; + height?: Maybe; + tx?: Maybe; +}; + +/** columns and relationships of "cyb_cohort" */ +export type CybCohort = { + __typename?: 'cyb_cohort'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; + week?: Maybe; +}; + +/** aggregated selection of "cyb_cohort" */ +export type CybCohortAggregate = { + __typename?: 'cyb_cohort_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyb_cohort" */ +export type CybCohortAggregateFields = { + __typename?: 'cyb_cohort_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyb_cohort" */ +export type CybCohortAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CybCohortAvgFields = { + __typename?: 'cyb_cohort_avg_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyb_cohort". All fields are combined with a logical 'AND'. */ +export type CybCohortBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neurons_activated?: InputMaybe; + redelegation_percent?: InputMaybe; + swap_percent?: InputMaybe; + undelegation_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CybCohortMaxFields = { + __typename?: 'cyb_cohort_max_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; + week?: Maybe; +}; + +/** aggregate min on columns */ +export type CybCohortMinFields = { + __typename?: 'cyb_cohort_min_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; + week?: Maybe; +}; + +/** Ordering options when selecting data from "cyb_cohort". */ +export type CybCohortOrderBy = { + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neurons_activated?: InputMaybe; + redelegation_percent?: InputMaybe; + swap_percent?: InputMaybe; + undelegation_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** select columns of table "cyb_cohort" */ +export enum CybCohortSelectColumn { + /** column name */ + Cyberlink_10Percent = 'cyberlink_10_percent', + /** column name */ + Cyberlink_100Percent = 'cyberlink_100_percent', + /** column name */ + CyberlinkPercent = 'cyberlink_percent', + /** column name */ + HeroHiredPercent = 'hero_hired_percent', + /** column name */ + InvestmintPercent = 'investmint_percent', + /** column name */ + NeuronsActivated = 'neurons_activated', + /** column name */ + RedelegationPercent = 'redelegation_percent', + /** column name */ + SwapPercent = 'swap_percent', + /** column name */ + UndelegationPercent = 'undelegation_percent', + /** column name */ + Week = 'week' +} + +/** aggregate stddev on columns */ +export type CybCohortStddevFields = { + __typename?: 'cyb_cohort_stddev_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CybCohortStddevPopFields = { + __typename?: 'cyb_cohort_stddev_pop_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CybCohortStddevSampFields = { + __typename?: 'cyb_cohort_stddev_samp_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate sum on columns */ +export type CybCohortSumFields = { + __typename?: 'cyb_cohort_sum_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CybCohortVarPopFields = { + __typename?: 'cyb_cohort_var_pop_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CybCohortVarSampFields = { + __typename?: 'cyb_cohort_var_samp_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** aggregate variance on columns */ +export type CybCohortVarianceFields = { + __typename?: 'cyb_cohort_variance_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neurons_activated?: Maybe; + redelegation_percent?: Maybe; + swap_percent?: Maybe; + undelegation_percent?: Maybe; +}; + +/** columns and relationships of "cyb_new_cohort" */ +export type CybNewCohort = { + __typename?: 'cyb_new_cohort'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; + week?: Maybe; +}; + +/** aggregated selection of "cyb_new_cohort" */ +export type CybNewCohortAggregate = { + __typename?: 'cyb_new_cohort_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyb_new_cohort" */ +export type CybNewCohortAggregateFields = { + __typename?: 'cyb_new_cohort_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyb_new_cohort" */ +export type CybNewCohortAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CybNewCohortAvgFields = { + __typename?: 'cyb_new_cohort_avg_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyb_new_cohort". All fields are combined with a logical 'AND'. */ +export type CybNewCohortBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neuron_activation?: InputMaybe; + swap_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CybNewCohortMaxFields = { + __typename?: 'cyb_new_cohort_max_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; + week?: Maybe; +}; + +/** aggregate min on columns */ +export type CybNewCohortMinFields = { + __typename?: 'cyb_new_cohort_min_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; + week?: Maybe; +}; + +/** Ordering options when selecting data from "cyb_new_cohort". */ +export type CybNewCohortOrderBy = { + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neuron_activation?: InputMaybe; + swap_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** select columns of table "cyb_new_cohort" */ +export enum CybNewCohortSelectColumn { + /** column name */ + Cyberlink_10Percent = 'cyberlink_10_percent', + /** column name */ + Cyberlink_100Percent = 'cyberlink_100_percent', + /** column name */ + CyberlinkPercent = 'cyberlink_percent', + /** column name */ + HeroHiredPercent = 'hero_hired_percent', + /** column name */ + InvestmintPercent = 'investmint_percent', + /** column name */ + NeuronActivation = 'neuron_activation', + /** column name */ + SwapPercent = 'swap_percent', + /** column name */ + Week = 'week' +} + +/** aggregate stddev on columns */ +export type CybNewCohortStddevFields = { + __typename?: 'cyb_new_cohort_stddev_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CybNewCohortStddevPopFields = { + __typename?: 'cyb_new_cohort_stddev_pop_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CybNewCohortStddevSampFields = { + __typename?: 'cyb_new_cohort_stddev_samp_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate sum on columns */ +export type CybNewCohortSumFields = { + __typename?: 'cyb_new_cohort_sum_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CybNewCohortVarPopFields = { + __typename?: 'cyb_new_cohort_var_pop_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CybNewCohortVarSampFields = { + __typename?: 'cyb_new_cohort_var_samp_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** aggregate variance on columns */ +export type CybNewCohortVarianceFields = { + __typename?: 'cyb_new_cohort_variance_fields'; + cyberlink_10_percent?: Maybe; + cyberlink_100_percent?: Maybe; + cyberlink_percent?: Maybe; + hero_hired_percent?: Maybe; + investmint_percent?: Maybe; + neuron_activation?: Maybe; + swap_percent?: Maybe; +}; + +/** columns and relationships of "cyber_gift" */ +export type CyberGift = { + __typename?: 'cyber_gift'; + address: Scalars['String']['output']; + audience: Scalars['String']['output']; + gift: Scalars['numeric']['output']; + grade: Scalars['Int']['output']; + segment: Scalars['String']['output']; +}; + +/** aggregated selection of "cyber_gift" */ +export type CyberGiftAggregate = { + __typename?: 'cyber_gift_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyber_gift" */ +export type CyberGiftAggregateFields = { + __typename?: 'cyber_gift_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyber_gift" */ +export type CyberGiftAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CyberGiftAvgFields = { + __typename?: 'cyber_gift_avg_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyber_gift". All fields are combined with a logical 'AND'. */ +export type CyberGiftBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + audience?: InputMaybe; + gift?: InputMaybe; + grade?: InputMaybe; + segment?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CyberGiftMaxFields = { + __typename?: 'cyber_gift_max_fields'; + address?: Maybe; + audience?: Maybe; + gift?: Maybe; + grade?: Maybe; + segment?: Maybe; +}; + +/** aggregate min on columns */ +export type CyberGiftMinFields = { + __typename?: 'cyber_gift_min_fields'; + address?: Maybe; + audience?: Maybe; + gift?: Maybe; + grade?: Maybe; + segment?: Maybe; +}; + +/** Ordering options when selecting data from "cyber_gift". */ +export type CyberGiftOrderBy = { + address?: InputMaybe; + audience?: InputMaybe; + gift?: InputMaybe; + grade?: InputMaybe; + segment?: InputMaybe; +}; + +/** columns and relationships of "cyber_gift_proofs" */ +export type CyberGiftProofs = { + __typename?: 'cyber_gift_proofs'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + + +/** columns and relationships of "cyber_gift_proofs" */ +export type CyberGiftProofsDetailsArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "cyber_gift_proofs" */ +export type CyberGiftProofsAggregate = { + __typename?: 'cyber_gift_proofs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyber_gift_proofs" */ +export type CyberGiftProofsAggregateFields = { + __typename?: 'cyber_gift_proofs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyber_gift_proofs" */ +export type CyberGiftProofsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CyberGiftProofsAvgFields = { + __typename?: 'cyber_gift_proofs_avg_fields'; + amount?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyber_gift_proofs". All fields are combined with a logical 'AND'. */ +export type CyberGiftProofsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CyberGiftProofsMaxFields = { + __typename?: 'cyber_gift_proofs_max_fields'; + address?: Maybe; + amount?: Maybe; + proof?: Maybe; +}; + +/** aggregate min on columns */ +export type CyberGiftProofsMinFields = { + __typename?: 'cyber_gift_proofs_min_fields'; + address?: Maybe; + amount?: Maybe; + proof?: Maybe; +}; + +/** Ordering options when selecting data from "cyber_gift_proofs". */ +export type CyberGiftProofsOrderBy = { + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** select columns of table "cyber_gift_proofs" */ +export enum CyberGiftProofsSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Amount = 'amount', + /** column name */ + Details = 'details', + /** column name */ + Proof = 'proof' +} + +/** aggregate stddev on columns */ +export type CyberGiftProofsStddevFields = { + __typename?: 'cyber_gift_proofs_stddev_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CyberGiftProofsStddevPopFields = { + __typename?: 'cyber_gift_proofs_stddev_pop_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CyberGiftProofsStddevSampFields = { + __typename?: 'cyber_gift_proofs_stddev_samp_fields'; + amount?: Maybe; +}; + +/** aggregate sum on columns */ +export type CyberGiftProofsSumFields = { + __typename?: 'cyber_gift_proofs_sum_fields'; + amount?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CyberGiftProofsVarPopFields = { + __typename?: 'cyber_gift_proofs_var_pop_fields'; + amount?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CyberGiftProofsVarSampFields = { + __typename?: 'cyber_gift_proofs_var_samp_fields'; + amount?: Maybe; +}; + +/** aggregate variance on columns */ +export type CyberGiftProofsVarianceFields = { + __typename?: 'cyber_gift_proofs_variance_fields'; + amount?: Maybe; +}; + +/** select columns of table "cyber_gift" */ +export enum CyberGiftSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Audience = 'audience', + /** column name */ + Gift = 'gift', + /** column name */ + Grade = 'grade', + /** column name */ + Segment = 'segment' +} + +/** aggregate stddev on columns */ +export type CyberGiftStddevFields = { + __typename?: 'cyber_gift_stddev_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CyberGiftStddevPopFields = { + __typename?: 'cyber_gift_stddev_pop_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CyberGiftStddevSampFields = { + __typename?: 'cyber_gift_stddev_samp_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate sum on columns */ +export type CyberGiftSumFields = { + __typename?: 'cyber_gift_sum_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CyberGiftVarPopFields = { + __typename?: 'cyber_gift_var_pop_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CyberGiftVarSampFields = { + __typename?: 'cyber_gift_var_samp_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** aggregate variance on columns */ +export type CyberGiftVarianceFields = { + __typename?: 'cyber_gift_variance_fields'; + gift?: Maybe; + grade?: Maybe; +}; + +/** columns and relationships of "cyberlinks" */ +export type Cyberlinks = { + __typename?: 'cyberlinks'; + /** An object relationship */ + account: Account; + /** An object relationship */ + block: Block; + /** An object relationship */ + from?: Maybe; + height: Scalars['bigint']['output']; + id: Scalars['Int']['output']; + neuron: Scalars['String']['output']; + particle_from: Scalars['String']['output']; + particle_to: Scalars['String']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + to?: Maybe; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; +}; + +/** aggregated selection of "cyberlinks" */ +export type CyberlinksAggregate = { + __typename?: 'cyberlinks_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyberlinks" */ +export type CyberlinksAggregateFields = { + __typename?: 'cyberlinks_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyberlinks" */ +export type CyberlinksAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "cyberlinks" */ +export type CyberlinksAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CyberlinksAvgFields = { + __typename?: 'cyberlinks_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "cyberlinks" */ +export type CyberlinksAvgOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "cyberlinks". All fields are combined with a logical 'AND'. */ +export type CyberlinksBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + block?: InputMaybe; + from?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CyberlinksMaxFields = { + __typename?: 'cyberlinks_max_fields'; + height?: Maybe; + id?: Maybe; + neuron?: Maybe; + particle_from?: Maybe; + particle_to?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by max() on columns of table "cyberlinks" */ +export type CyberlinksMaxOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate min on columns */ +export type CyberlinksMinFields = { + __typename?: 'cyberlinks_min_fields'; + height?: Maybe; + id?: Maybe; + neuron?: Maybe; + particle_from?: Maybe; + particle_to?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by min() on columns of table "cyberlinks" */ +export type CyberlinksMinOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "cyberlinks". */ +export type CyberlinksOrderBy = { + account?: InputMaybe; + block?: InputMaybe; + from?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** select columns of table "cyberlinks" */ +export enum CyberlinksSelectColumn { + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Neuron = 'neuron', + /** column name */ + ParticleFrom = 'particle_from', + /** column name */ + ParticleTo = 'particle_to', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** columns and relationships of "cyberlinks_stats" */ +export type CyberlinksStats = { + __typename?: 'cyberlinks_stats'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; + date?: Maybe; +}; + +/** aggregated selection of "cyberlinks_stats" */ +export type CyberlinksStatsAggregate = { + __typename?: 'cyberlinks_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "cyberlinks_stats" */ +export type CyberlinksStatsAggregateFields = { + __typename?: 'cyberlinks_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "cyberlinks_stats" */ +export type CyberlinksStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type CyberlinksStatsAvgFields = { + __typename?: 'cyberlinks_stats_avg_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** Boolean expression to filter rows from the table "cyberlinks_stats". All fields are combined with a logical 'AND'. */ +export type CyberlinksStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlinks?: InputMaybe; + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; +}; + +/** aggregate max on columns */ +export type CyberlinksStatsMaxFields = { + __typename?: 'cyberlinks_stats_max_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; + date?: Maybe; +}; + +/** aggregate min on columns */ +export type CyberlinksStatsMinFields = { + __typename?: 'cyberlinks_stats_min_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; + date?: Maybe; +}; + +/** Ordering options when selecting data from "cyberlinks_stats". */ +export type CyberlinksStatsOrderBy = { + cyberlinks?: InputMaybe; + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; +}; + +/** select columns of table "cyberlinks_stats" */ +export enum CyberlinksStatsSelectColumn { + /** column name */ + Cyberlinks = 'cyberlinks', + /** column name */ + CyberlinksPerDay = 'cyberlinks_per_day', + /** column name */ + Date = 'date' +} + +/** aggregate stddev on columns */ +export type CyberlinksStatsStddevFields = { + __typename?: 'cyberlinks_stats_stddev_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type CyberlinksStatsStddevPopFields = { + __typename?: 'cyberlinks_stats_stddev_pop_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type CyberlinksStatsStddevSampFields = { + __typename?: 'cyberlinks_stats_stddev_samp_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate sum on columns */ +export type CyberlinksStatsSumFields = { + __typename?: 'cyberlinks_stats_sum_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type CyberlinksStatsVarPopFields = { + __typename?: 'cyberlinks_stats_var_pop_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type CyberlinksStatsVarSampFields = { + __typename?: 'cyberlinks_stats_var_samp_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate variance on columns */ +export type CyberlinksStatsVarianceFields = { + __typename?: 'cyberlinks_stats_variance_fields'; + cyberlinks?: Maybe; + cyberlinks_per_day?: Maybe; +}; + +/** aggregate stddev on columns */ +export type CyberlinksStddevFields = { + __typename?: 'cyberlinks_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "cyberlinks" */ +export type CyberlinksStddevOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type CyberlinksStddevPopFields = { + __typename?: 'cyberlinks_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "cyberlinks" */ +export type CyberlinksStddevPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type CyberlinksStddevSampFields = { + __typename?: 'cyberlinks_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "cyberlinks" */ +export type CyberlinksStddevSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type CyberlinksSumFields = { + __typename?: 'cyberlinks_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "cyberlinks" */ +export type CyberlinksSumOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type CyberlinksVarPopFields = { + __typename?: 'cyberlinks_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "cyberlinks" */ +export type CyberlinksVarPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type CyberlinksVarSampFields = { + __typename?: 'cyberlinks_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "cyberlinks" */ +export type CyberlinksVarSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type CyberlinksVarianceFields = { + __typename?: 'cyberlinks_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "cyberlinks" */ +export type CyberlinksVarianceOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** columns and relationships of "daily_amount_of_active_neurons" */ +export type DailyAmountOfActiveNeurons = { + __typename?: 'daily_amount_of_active_neurons'; + count?: Maybe; + date?: Maybe; +}; + +/** aggregated selection of "daily_amount_of_active_neurons" */ +export type DailyAmountOfActiveNeuronsAggregate = { + __typename?: 'daily_amount_of_active_neurons_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "daily_amount_of_active_neurons" */ +export type DailyAmountOfActiveNeuronsAggregateFields = { + __typename?: 'daily_amount_of_active_neurons_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "daily_amount_of_active_neurons" */ +export type DailyAmountOfActiveNeuronsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type DailyAmountOfActiveNeuronsAvgFields = { + __typename?: 'daily_amount_of_active_neurons_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "daily_amount_of_active_neurons". All fields are combined with a logical 'AND'. */ +export type DailyAmountOfActiveNeuronsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + date?: InputMaybe; +}; + +/** aggregate max on columns */ +export type DailyAmountOfActiveNeuronsMaxFields = { + __typename?: 'daily_amount_of_active_neurons_max_fields'; + count?: Maybe; + date?: Maybe; +}; + +/** aggregate min on columns */ +export type DailyAmountOfActiveNeuronsMinFields = { + __typename?: 'daily_amount_of_active_neurons_min_fields'; + count?: Maybe; + date?: Maybe; +}; + +/** Ordering options when selecting data from "daily_amount_of_active_neurons". */ +export type DailyAmountOfActiveNeuronsOrderBy = { + count?: InputMaybe; + date?: InputMaybe; +}; + +/** select columns of table "daily_amount_of_active_neurons" */ +export enum DailyAmountOfActiveNeuronsSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Date = 'date' +} + +/** aggregate stddev on columns */ +export type DailyAmountOfActiveNeuronsStddevFields = { + __typename?: 'daily_amount_of_active_neurons_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type DailyAmountOfActiveNeuronsStddevPopFields = { + __typename?: 'daily_amount_of_active_neurons_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type DailyAmountOfActiveNeuronsStddevSampFields = { + __typename?: 'daily_amount_of_active_neurons_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type DailyAmountOfActiveNeuronsSumFields = { + __typename?: 'daily_amount_of_active_neurons_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type DailyAmountOfActiveNeuronsVarPopFields = { + __typename?: 'daily_amount_of_active_neurons_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type DailyAmountOfActiveNeuronsVarSampFields = { + __typename?: 'daily_amount_of_active_neurons_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type DailyAmountOfActiveNeuronsVarianceFields = { + __typename?: 'daily_amount_of_active_neurons_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "daily_amount_of_used_gas" */ +export type DailyAmountOfUsedGas = { + __typename?: 'daily_amount_of_used_gas'; + daily_gas?: Maybe; + date?: Maybe; + gas_total?: Maybe; +}; + +/** aggregated selection of "daily_amount_of_used_gas" */ +export type DailyAmountOfUsedGasAggregate = { + __typename?: 'daily_amount_of_used_gas_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "daily_amount_of_used_gas" */ +export type DailyAmountOfUsedGasAggregateFields = { + __typename?: 'daily_amount_of_used_gas_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "daily_amount_of_used_gas" */ +export type DailyAmountOfUsedGasAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type DailyAmountOfUsedGasAvgFields = { + __typename?: 'daily_amount_of_used_gas_avg_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** Boolean expression to filter rows from the table "daily_amount_of_used_gas". All fields are combined with a logical 'AND'. */ +export type DailyAmountOfUsedGasBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + daily_gas?: InputMaybe; + date?: InputMaybe; + gas_total?: InputMaybe; +}; + +/** aggregate max on columns */ +export type DailyAmountOfUsedGasMaxFields = { + __typename?: 'daily_amount_of_used_gas_max_fields'; + daily_gas?: Maybe; + date?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate min on columns */ +export type DailyAmountOfUsedGasMinFields = { + __typename?: 'daily_amount_of_used_gas_min_fields'; + daily_gas?: Maybe; + date?: Maybe; + gas_total?: Maybe; +}; + +/** Ordering options when selecting data from "daily_amount_of_used_gas". */ +export type DailyAmountOfUsedGasOrderBy = { + daily_gas?: InputMaybe; + date?: InputMaybe; + gas_total?: InputMaybe; +}; + +/** select columns of table "daily_amount_of_used_gas" */ +export enum DailyAmountOfUsedGasSelectColumn { + /** column name */ + DailyGas = 'daily_gas', + /** column name */ + Date = 'date', + /** column name */ + GasTotal = 'gas_total' +} + +/** aggregate stddev on columns */ +export type DailyAmountOfUsedGasStddevFields = { + __typename?: 'daily_amount_of_used_gas_stddev_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type DailyAmountOfUsedGasStddevPopFields = { + __typename?: 'daily_amount_of_used_gas_stddev_pop_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type DailyAmountOfUsedGasStddevSampFields = { + __typename?: 'daily_amount_of_used_gas_stddev_samp_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate sum on columns */ +export type DailyAmountOfUsedGasSumFields = { + __typename?: 'daily_amount_of_used_gas_sum_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type DailyAmountOfUsedGasVarPopFields = { + __typename?: 'daily_amount_of_used_gas_var_pop_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type DailyAmountOfUsedGasVarSampFields = { + __typename?: 'daily_amount_of_used_gas_var_samp_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** aggregate variance on columns */ +export type DailyAmountOfUsedGasVarianceFields = { + __typename?: 'daily_amount_of_used_gas_variance_fields'; + daily_gas?: Maybe; + gas_total?: Maybe; +}; + +/** columns and relationships of "daily_number_of_transactions" */ +export type DailyNumberOfTransactions = { + __typename?: 'daily_number_of_transactions'; + date?: Maybe; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregated selection of "daily_number_of_transactions" */ +export type DailyNumberOfTransactionsAggregate = { + __typename?: 'daily_number_of_transactions_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "daily_number_of_transactions" */ +export type DailyNumberOfTransactionsAggregateFields = { + __typename?: 'daily_number_of_transactions_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "daily_number_of_transactions" */ +export type DailyNumberOfTransactionsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type DailyNumberOfTransactionsAvgFields = { + __typename?: 'daily_number_of_transactions_avg_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** Boolean expression to filter rows from the table "daily_number_of_transactions". All fields are combined with a logical 'AND'. */ +export type DailyNumberOfTransactionsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + txs_per_day?: InputMaybe; + txs_total?: InputMaybe; +}; + +/** aggregate max on columns */ +export type DailyNumberOfTransactionsMaxFields = { + __typename?: 'daily_number_of_transactions_max_fields'; + date?: Maybe; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate min on columns */ +export type DailyNumberOfTransactionsMinFields = { + __typename?: 'daily_number_of_transactions_min_fields'; + date?: Maybe; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** Ordering options when selecting data from "daily_number_of_transactions". */ +export type DailyNumberOfTransactionsOrderBy = { + date?: InputMaybe; + txs_per_day?: InputMaybe; + txs_total?: InputMaybe; +}; + +/** select columns of table "daily_number_of_transactions" */ +export enum DailyNumberOfTransactionsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + TxsPerDay = 'txs_per_day', + /** column name */ + TxsTotal = 'txs_total' +} + +/** aggregate stddev on columns */ +export type DailyNumberOfTransactionsStddevFields = { + __typename?: 'daily_number_of_transactions_stddev_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type DailyNumberOfTransactionsStddevPopFields = { + __typename?: 'daily_number_of_transactions_stddev_pop_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type DailyNumberOfTransactionsStddevSampFields = { + __typename?: 'daily_number_of_transactions_stddev_samp_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate sum on columns */ +export type DailyNumberOfTransactionsSumFields = { + __typename?: 'daily_number_of_transactions_sum_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type DailyNumberOfTransactionsVarPopFields = { + __typename?: 'daily_number_of_transactions_var_pop_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type DailyNumberOfTransactionsVarSampFields = { + __typename?: 'daily_number_of_transactions_var_samp_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** aggregate variance on columns */ +export type DailyNumberOfTransactionsVarianceFields = { + __typename?: 'daily_number_of_transactions_variance_fields'; + txs_per_day?: Maybe; + txs_total?: Maybe; +}; + +/** Boolean expression to compare columns of type "date". All fields are combined with logical 'AND'. */ +export type DateComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "float8". All fields are combined with logical 'AND'. */ +export type Float8ComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "follow_stats" */ +export type FollowStats = { + __typename?: 'follow_stats'; + date?: Maybe; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregated selection of "follow_stats" */ +export type FollowStatsAggregate = { + __typename?: 'follow_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "follow_stats" */ +export type FollowStatsAggregateFields = { + __typename?: 'follow_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "follow_stats" */ +export type FollowStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type FollowStatsAvgFields = { + __typename?: 'follow_stats_avg_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** Boolean expression to filter rows from the table "follow_stats". All fields are combined with a logical 'AND'. */ +export type FollowStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + follow_total?: InputMaybe; + follows_per_day?: InputMaybe; +}; + +/** aggregate max on columns */ +export type FollowStatsMaxFields = { + __typename?: 'follow_stats_max_fields'; + date?: Maybe; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate min on columns */ +export type FollowStatsMinFields = { + __typename?: 'follow_stats_min_fields'; + date?: Maybe; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** Ordering options when selecting data from "follow_stats". */ +export type FollowStatsOrderBy = { + date?: InputMaybe; + follow_total?: InputMaybe; + follows_per_day?: InputMaybe; +}; + +/** select columns of table "follow_stats" */ +export enum FollowStatsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + FollowTotal = 'follow_total', + /** column name */ + FollowsPerDay = 'follows_per_day' +} + +/** aggregate stddev on columns */ +export type FollowStatsStddevFields = { + __typename?: 'follow_stats_stddev_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type FollowStatsStddevPopFields = { + __typename?: 'follow_stats_stddev_pop_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type FollowStatsStddevSampFields = { + __typename?: 'follow_stats_stddev_samp_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate sum on columns */ +export type FollowStatsSumFields = { + __typename?: 'follow_stats_sum_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type FollowStatsVarPopFields = { + __typename?: 'follow_stats_var_pop_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type FollowStatsVarSampFields = { + __typename?: 'follow_stats_var_samp_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** aggregate variance on columns */ +export type FollowStatsVarianceFields = { + __typename?: 'follow_stats_variance_fields'; + follow_total?: Maybe; + follows_per_day?: Maybe; +}; + +/** columns and relationships of "genesis_neurons_activation" */ +export type GenesisNeuronsActivation = { + __typename?: 'genesis_neurons_activation'; + count?: Maybe; + neurons?: Maybe; +}; + +/** aggregated selection of "genesis_neurons_activation" */ +export type GenesisNeuronsActivationAggregate = { + __typename?: 'genesis_neurons_activation_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "genesis_neurons_activation" */ +export type GenesisNeuronsActivationAggregateFields = { + __typename?: 'genesis_neurons_activation_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "genesis_neurons_activation" */ +export type GenesisNeuronsActivationAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type GenesisNeuronsActivationAvgFields = { + __typename?: 'genesis_neurons_activation_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "genesis_neurons_activation". All fields are combined with a logical 'AND'. */ +export type GenesisNeuronsActivationBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + neurons?: InputMaybe; +}; + +/** aggregate max on columns */ +export type GenesisNeuronsActivationMaxFields = { + __typename?: 'genesis_neurons_activation_max_fields'; + count?: Maybe; + neurons?: Maybe; +}; + +/** aggregate min on columns */ +export type GenesisNeuronsActivationMinFields = { + __typename?: 'genesis_neurons_activation_min_fields'; + count?: Maybe; + neurons?: Maybe; +}; + +/** Ordering options when selecting data from "genesis_neurons_activation". */ +export type GenesisNeuronsActivationOrderBy = { + count?: InputMaybe; + neurons?: InputMaybe; +}; + +/** select columns of table "genesis_neurons_activation" */ +export enum GenesisNeuronsActivationSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Neurons = 'neurons' +} + +/** aggregate stddev on columns */ +export type GenesisNeuronsActivationStddevFields = { + __typename?: 'genesis_neurons_activation_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type GenesisNeuronsActivationStddevPopFields = { + __typename?: 'genesis_neurons_activation_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type GenesisNeuronsActivationStddevSampFields = { + __typename?: 'genesis_neurons_activation_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type GenesisNeuronsActivationSumFields = { + __typename?: 'genesis_neurons_activation_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type GenesisNeuronsActivationVarPopFields = { + __typename?: 'genesis_neurons_activation_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type GenesisNeuronsActivationVarSampFields = { + __typename?: 'genesis_neurons_activation_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type GenesisNeuronsActivationVarianceFields = { + __typename?: 'genesis_neurons_activation_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "investmints" */ +export type Investmints = { + __typename?: 'investmints'; + /** An object relationship */ + account: Account; + amount: Scalars['coin']['output']; + /** An object relationship */ + block: Block; + height: Scalars['bigint']['output']; + id: Scalars['Int']['output']; + length: Scalars['bigint']['output']; + neuron: Scalars['String']['output']; + resource: Scalars['String']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; +}; + +/** aggregated selection of "investmints" */ +export type InvestmintsAggregate = { + __typename?: 'investmints_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "investmints" */ +export type InvestmintsAggregateFields = { + __typename?: 'investmints_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "investmints" */ +export type InvestmintsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "investmints" */ +export type InvestmintsAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type InvestmintsAvgFields = { + __typename?: 'investmints_avg_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by avg() on columns of table "investmints" */ +export type InvestmintsAvgOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "investmints". All fields are combined with a logical 'AND'. */ +export type InvestmintsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + amount?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate max on columns */ +export type InvestmintsMaxFields = { + __typename?: 'investmints_max_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; + neuron?: Maybe; + resource?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by max() on columns of table "investmints" */ +export type InvestmintsMaxOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate min on columns */ +export type InvestmintsMinFields = { + __typename?: 'investmints_min_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; + neuron?: Maybe; + resource?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by min() on columns of table "investmints" */ +export type InvestmintsMinOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "investmints". */ +export type InvestmintsOrderBy = { + account?: InputMaybe; + amount?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** select columns of table "investmints" */ +export enum InvestmintsSelectColumn { + /** column name */ + Amount = 'amount', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Length = 'length', + /** column name */ + Neuron = 'neuron', + /** column name */ + Resource = 'resource', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** aggregate stddev on columns */ +export type InvestmintsStddevFields = { + __typename?: 'investmints_stddev_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by stddev() on columns of table "investmints" */ +export type InvestmintsStddevOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type InvestmintsStddevPopFields = { + __typename?: 'investmints_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by stddev_pop() on columns of table "investmints" */ +export type InvestmintsStddevPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type InvestmintsStddevSampFields = { + __typename?: 'investmints_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by stddev_samp() on columns of table "investmints" */ +export type InvestmintsStddevSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type InvestmintsSumFields = { + __typename?: 'investmints_sum_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by sum() on columns of table "investmints" */ +export type InvestmintsSumOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type InvestmintsVarPopFields = { + __typename?: 'investmints_var_pop_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by var_pop() on columns of table "investmints" */ +export type InvestmintsVarPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type InvestmintsVarSampFields = { + __typename?: 'investmints_var_samp_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by var_samp() on columns of table "investmints" */ +export type InvestmintsVarSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type InvestmintsVarianceFields = { + __typename?: 'investmints_variance_fields'; + height?: Maybe; + id?: Maybe; + length?: Maybe; +}; + +/** order by variance() on columns of table "investmints" */ +export type InvestmintsVarianceOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; +}; + +/** Boolean expression to compare columns of type "json". All fields are combined with logical 'AND'. */ +export type JsonComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ +export type JsonbComparisonExp = { + /** is the column contained in the given json value */ + _contained_in?: InputMaybe; + /** does the column contain the given json value at the top level */ + _contains?: InputMaybe; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + /** does the string exist as a top-level key in the column */ + _has_key?: InputMaybe; + /** do all of these strings exist as top-level keys in the column */ + _has_keys_all?: InputMaybe>; + /** do any of these strings exist as top-level keys in the column */ + _has_keys_any?: InputMaybe>; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "message" */ +export type Message = { + __typename?: 'message'; + index: Scalars['bigint']['output']; + involved_accounts_addresses?: Maybe; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; + type: Scalars['String']['output']; + value: Scalars['jsonb']['output']; +}; + + +/** columns and relationships of "message" */ +export type MessageValueArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "message" */ +export type MessageAggregate = { + __typename?: 'message_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "message" */ +export type MessageAggregateFields = { + __typename?: 'message_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "message" */ +export type MessageAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "message" */ +export type MessageAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type MessageAvgFields = { + __typename?: 'message_avg_fields'; + index?: Maybe; +}; + +/** order by avg() on columns of table "message" */ +export type MessageAvgOrderBy = { + index?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ +export type MessageBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; +}; + +/** aggregate max on columns */ +export type MessageMaxFields = { + __typename?: 'message_max_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** order by max() on columns of table "message" */ +export type MessageMaxOrderBy = { + index?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate min on columns */ +export type MessageMinFields = { + __typename?: 'message_min_fields'; + index?: Maybe; + transaction_hash?: Maybe; + type?: Maybe; +}; + +/** order by min() on columns of table "message" */ +export type MessageMinOrderBy = { + index?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; +}; + +/** Ordering options when selecting data from "message". */ +export type MessageOrderBy = { + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; +}; + +/** select columns of table "message" */ +export enum MessageSelectColumn { + /** column name */ + Index = 'index', + /** column name */ + InvolvedAccountsAddresses = 'involved_accounts_addresses', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Type = 'type', + /** column name */ + Value = 'value' +} + +/** aggregate stddev on columns */ +export type MessageStddevFields = { + __typename?: 'message_stddev_fields'; + index?: Maybe; +}; + +/** order by stddev() on columns of table "message" */ +export type MessageStddevOrderBy = { + index?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type MessageStddevPopFields = { + __typename?: 'message_stddev_pop_fields'; + index?: Maybe; +}; + +/** order by stddev_pop() on columns of table "message" */ +export type MessageStddevPopOrderBy = { + index?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type MessageStddevSampFields = { + __typename?: 'message_stddev_samp_fields'; + index?: Maybe; +}; + +/** order by stddev_samp() on columns of table "message" */ +export type MessageStddevSampOrderBy = { + index?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type MessageSumFields = { + __typename?: 'message_sum_fields'; + index?: Maybe; +}; + +/** order by sum() on columns of table "message" */ +export type MessageSumOrderBy = { + index?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type MessageVarPopFields = { + __typename?: 'message_var_pop_fields'; + index?: Maybe; +}; + +/** order by var_pop() on columns of table "message" */ +export type MessageVarPopOrderBy = { + index?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type MessageVarSampFields = { + __typename?: 'message_var_samp_fields'; + index?: Maybe; +}; + +/** order by var_samp() on columns of table "message" */ +export type MessageVarSampOrderBy = { + index?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type MessageVarianceFields = { + __typename?: 'message_variance_fields'; + index?: Maybe; +}; + +/** order by variance() on columns of table "message" */ +export type MessageVarianceOrderBy = { + index?: InputMaybe; +}; + +export type MessagesByAddressArgs = { + addresses?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; + types?: InputMaybe; +}; + +/** columns and relationships of "modules" */ +export type Modules = { + __typename?: 'modules'; + module_name: Scalars['String']['output']; +}; + +/** aggregated selection of "modules" */ +export type ModulesAggregate = { + __typename?: 'modules_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "modules" */ +export type ModulesAggregateFields = { + __typename?: 'modules_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "modules" */ +export type ModulesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ +export type ModulesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + module_name?: InputMaybe; +}; + +/** aggregate max on columns */ +export type ModulesMaxFields = { + __typename?: 'modules_max_fields'; + module_name?: Maybe; +}; + +/** aggregate min on columns */ +export type ModulesMinFields = { + __typename?: 'modules_min_fields'; + module_name?: Maybe; +}; + +/** Ordering options when selecting data from "modules". */ +export type ModulesOrderBy = { + module_name?: InputMaybe; +}; + +/** select columns of table "modules" */ +export enum ModulesSelectColumn { + /** column name */ + ModuleName = 'module_name' +} + +/** columns and relationships of "neuron_activation_source" */ +export type NeuronActivationSource = { + __typename?: 'neuron_activation_source'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; + week?: Maybe; +}; + +/** aggregated selection of "neuron_activation_source" */ +export type NeuronActivationSourceAggregate = { + __typename?: 'neuron_activation_source_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "neuron_activation_source" */ +export type NeuronActivationSourceAggregateFields = { + __typename?: 'neuron_activation_source_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "neuron_activation_source" */ +export type NeuronActivationSourceAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type NeuronActivationSourceAvgFields = { + __typename?: 'neuron_activation_source_avg_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** Boolean expression to filter rows from the table "neuron_activation_source". All fields are combined with a logical 'AND'. */ +export type NeuronActivationSourceBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + genesis_percent?: InputMaybe; + ibc_receive_percent?: InputMaybe; + neuron_activated?: InputMaybe; + recieve_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** aggregate max on columns */ +export type NeuronActivationSourceMaxFields = { + __typename?: 'neuron_activation_source_max_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; + week?: Maybe; +}; + +/** aggregate min on columns */ +export type NeuronActivationSourceMinFields = { + __typename?: 'neuron_activation_source_min_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; + week?: Maybe; +}; + +/** Ordering options when selecting data from "neuron_activation_source". */ +export type NeuronActivationSourceOrderBy = { + genesis_percent?: InputMaybe; + ibc_receive_percent?: InputMaybe; + neuron_activated?: InputMaybe; + recieve_percent?: InputMaybe; + week?: InputMaybe; +}; + +/** select columns of table "neuron_activation_source" */ +export enum NeuronActivationSourceSelectColumn { + /** column name */ + GenesisPercent = 'genesis_percent', + /** column name */ + IbcReceivePercent = 'ibc_receive_percent', + /** column name */ + NeuronActivated = 'neuron_activated', + /** column name */ + RecievePercent = 'recieve_percent', + /** column name */ + Week = 'week' +} + +/** aggregate stddev on columns */ +export type NeuronActivationSourceStddevFields = { + __typename?: 'neuron_activation_source_stddev_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type NeuronActivationSourceStddevPopFields = { + __typename?: 'neuron_activation_source_stddev_pop_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type NeuronActivationSourceStddevSampFields = { + __typename?: 'neuron_activation_source_stddev_samp_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate sum on columns */ +export type NeuronActivationSourceSumFields = { + __typename?: 'neuron_activation_source_sum_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type NeuronActivationSourceVarPopFields = { + __typename?: 'neuron_activation_source_var_pop_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type NeuronActivationSourceVarSampFields = { + __typename?: 'neuron_activation_source_var_samp_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** aggregate variance on columns */ +export type NeuronActivationSourceVarianceFields = { + __typename?: 'neuron_activation_source_variance_fields'; + genesis_percent?: Maybe; + ibc_receive_percent?: Maybe; + neuron_activated?: Maybe; + recieve_percent?: Maybe; +}; + +/** columns and relationships of "number_of_new_neurons" */ +export type NumberOfNewNeurons = { + __typename?: 'number_of_new_neurons'; + date?: Maybe; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregated selection of "number_of_new_neurons" */ +export type NumberOfNewNeuronsAggregate = { + __typename?: 'number_of_new_neurons_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "number_of_new_neurons" */ +export type NumberOfNewNeuronsAggregateFields = { + __typename?: 'number_of_new_neurons_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "number_of_new_neurons" */ +export type NumberOfNewNeuronsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type NumberOfNewNeuronsAvgFields = { + __typename?: 'number_of_new_neurons_avg_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** Boolean expression to filter rows from the table "number_of_new_neurons". All fields are combined with a logical 'AND'. */ +export type NumberOfNewNeuronsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + new_neurons_daily?: InputMaybe; + new_neurons_total?: InputMaybe; +}; + +/** aggregate max on columns */ +export type NumberOfNewNeuronsMaxFields = { + __typename?: 'number_of_new_neurons_max_fields'; + date?: Maybe; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate min on columns */ +export type NumberOfNewNeuronsMinFields = { + __typename?: 'number_of_new_neurons_min_fields'; + date?: Maybe; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** Ordering options when selecting data from "number_of_new_neurons". */ +export type NumberOfNewNeuronsOrderBy = { + date?: InputMaybe; + new_neurons_daily?: InputMaybe; + new_neurons_total?: InputMaybe; +}; + +/** select columns of table "number_of_new_neurons" */ +export enum NumberOfNewNeuronsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + NewNeuronsDaily = 'new_neurons_daily', + /** column name */ + NewNeuronsTotal = 'new_neurons_total' +} + +/** aggregate stddev on columns */ +export type NumberOfNewNeuronsStddevFields = { + __typename?: 'number_of_new_neurons_stddev_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type NumberOfNewNeuronsStddevPopFields = { + __typename?: 'number_of_new_neurons_stddev_pop_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type NumberOfNewNeuronsStddevSampFields = { + __typename?: 'number_of_new_neurons_stddev_samp_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate sum on columns */ +export type NumberOfNewNeuronsSumFields = { + __typename?: 'number_of_new_neurons_sum_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type NumberOfNewNeuronsVarPopFields = { + __typename?: 'number_of_new_neurons_var_pop_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type NumberOfNewNeuronsVarSampFields = { + __typename?: 'number_of_new_neurons_var_samp_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** aggregate variance on columns */ +export type NumberOfNewNeuronsVarianceFields = { + __typename?: 'number_of_new_neurons_variance_fields'; + new_neurons_daily?: Maybe; + new_neurons_total?: Maybe; +}; + +/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ +export type NumericComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "old_precommits" */ +export type OldPrecommits = { + __typename?: 'old_precommits'; + consensus_address: Scalars['String']['output']; + consensus_pubkey: Scalars['String']['output']; + precommits?: Maybe; +}; + +/** aggregated selection of "old_precommits" */ +export type OldPrecommitsAggregate = { + __typename?: 'old_precommits_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "old_precommits" */ +export type OldPrecommitsAggregateFields = { + __typename?: 'old_precommits_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "old_precommits" */ +export type OldPrecommitsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type OldPrecommitsAvgFields = { + __typename?: 'old_precommits_avg_fields'; + precommits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "old_precommits". All fields are combined with a logical 'AND'. */ +export type OldPrecommitsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type OldPrecommitsMaxFields = { + __typename?: 'old_precommits_max_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** aggregate min on columns */ +export type OldPrecommitsMinFields = { + __typename?: 'old_precommits_min_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** Ordering options when selecting data from "old_precommits". */ +export type OldPrecommitsOrderBy = { + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; +}; + +/** select columns of table "old_precommits" */ +export enum OldPrecommitsSelectColumn { + /** column name */ + ConsensusAddress = 'consensus_address', + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + Precommits = 'precommits' +} + +/** aggregate stddev on columns */ +export type OldPrecommitsStddevFields = { + __typename?: 'old_precommits_stddev_fields'; + precommits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type OldPrecommitsStddevPopFields = { + __typename?: 'old_precommits_stddev_pop_fields'; + precommits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type OldPrecommitsStddevSampFields = { + __typename?: 'old_precommits_stddev_samp_fields'; + precommits?: Maybe; +}; + +/** aggregate sum on columns */ +export type OldPrecommitsSumFields = { + __typename?: 'old_precommits_sum_fields'; + precommits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type OldPrecommitsVarPopFields = { + __typename?: 'old_precommits_var_pop_fields'; + precommits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type OldPrecommitsVarSampFields = { + __typename?: 'old_precommits_var_samp_fields'; + precommits?: Maybe; +}; + +/** aggregate variance on columns */ +export type OldPrecommitsVarianceFields = { + __typename?: 'old_precommits_variance_fields'; + precommits?: Maybe; +}; + +/** column ordering options */ +export enum OrderBy { + /** in ascending order, nulls last */ + Asc = 'asc', + /** in ascending order, nulls first */ + AscNullsFirst = 'asc_nulls_first', + /** in ascending order, nulls last */ + AscNullsLast = 'asc_nulls_last', + /** in descending order, nulls first */ + Desc = 'desc', + /** in descending order, nulls first */ + DescNullsFirst = 'desc_nulls_first', + /** in descending order, nulls last */ + DescNullsLast = 'desc_nulls_last' +} + +/** columns and relationships of "particles" */ +export type Particles = { + __typename?: 'particles'; + /** An object relationship */ + account: Account; + /** An object relationship */ + block: Block; + height: Scalars['bigint']['output']; + id: Scalars['Int']['output']; + /** An array relationship */ + in: Array; + /** An aggregate relationship */ + in_aggregate: CyberlinksAggregate; + neuron: Scalars['String']['output']; + /** An array relationship */ + out: Array; + /** An aggregate relationship */ + out_aggregate: CyberlinksAggregate; + particle: Scalars['String']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; +}; + + +/** columns and relationships of "particles" */ +export type ParticlesInArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "particles" */ +export type ParticlesInAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "particles" */ +export type ParticlesOutArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "particles" */ +export type ParticlesOutAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "particles" */ +export type ParticlesAggregate = { + __typename?: 'particles_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "particles" */ +export type ParticlesAggregateFields = { + __typename?: 'particles_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "particles" */ +export type ParticlesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "particles" */ +export type ParticlesAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type ParticlesAvgFields = { + __typename?: 'particles_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "particles" */ +export type ParticlesAvgOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "particles". All fields are combined with a logical 'AND'. */ +export type ParticlesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + in?: InputMaybe; + neuron?: InputMaybe; + out?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate max on columns */ +export type ParticlesMaxFields = { + __typename?: 'particles_max_fields'; + height?: Maybe; + id?: Maybe; + neuron?: Maybe; + particle?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by max() on columns of table "particles" */ +export type ParticlesMaxOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate min on columns */ +export type ParticlesMinFields = { + __typename?: 'particles_min_fields'; + height?: Maybe; + id?: Maybe; + neuron?: Maybe; + particle?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by min() on columns of table "particles" */ +export type ParticlesMinOrderBy = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "particles". */ +export type ParticlesOrderBy = { + account?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + in_aggregate?: InputMaybe; + neuron?: InputMaybe; + out_aggregate?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** select columns of table "particles" */ +export enum ParticlesSelectColumn { + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Neuron = 'neuron', + /** column name */ + Particle = 'particle', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransactionHash = 'transaction_hash' +} + +/** aggregate stddev on columns */ +export type ParticlesStddevFields = { + __typename?: 'particles_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "particles" */ +export type ParticlesStddevOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type ParticlesStddevPopFields = { + __typename?: 'particles_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "particles" */ +export type ParticlesStddevPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type ParticlesStddevSampFields = { + __typename?: 'particles_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "particles" */ +export type ParticlesStddevSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type ParticlesSumFields = { + __typename?: 'particles_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "particles" */ +export type ParticlesSumOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type ParticlesVarPopFields = { + __typename?: 'particles_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "particles" */ +export type ParticlesVarPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type ParticlesVarSampFields = { + __typename?: 'particles_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "particles" */ +export type ParticlesVarSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type ParticlesVarianceFields = { + __typename?: 'particles_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "particles" */ +export type ParticlesVarianceOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** columns and relationships of "pre_commit" */ +export type PreCommit = { + __typename?: 'pre_commit'; + height: Scalars['bigint']['output']; + proposer_priority: Scalars['bigint']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + validator: Validator; + validator_address: Scalars['String']['output']; + voting_power: Scalars['bigint']['output']; +}; + +/** aggregated selection of "pre_commit" */ +export type PreCommitAggregate = { + __typename?: 'pre_commit_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pre_commit" */ +export type PreCommitAggregateFields = { + __typename?: 'pre_commit_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pre_commit" */ +export type PreCommitAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "pre_commit" */ +export type PreCommitAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PreCommitAvgFields = { + __typename?: 'pre_commit_avg_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by avg() on columns of table "pre_commit" */ +export type PreCommitAvgOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "pre_commit". All fields are combined with a logical 'AND'. */ +export type PreCommitBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PreCommitMaxFields = { + __typename?: 'pre_commit_max_fields'; + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; +}; + +/** order by max() on columns of table "pre_commit" */ +export type PreCommitMaxOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate min on columns */ +export type PreCommitMinFields = { + __typename?: 'pre_commit_min_fields'; + height?: Maybe; + proposer_priority?: Maybe; + timestamp?: Maybe; + validator_address?: Maybe; + voting_power?: Maybe; +}; + +/** order by min() on columns of table "pre_commit" */ +export type PreCommitMinOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** Ordering options when selecting data from "pre_commit". */ +export type PreCommitOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** select columns of table "pre_commit" */ +export enum PreCommitSelectColumn { + /** column name */ + Height = 'height', + /** column name */ + ProposerPriority = 'proposer_priority', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + ValidatorAddress = 'validator_address', + /** column name */ + VotingPower = 'voting_power' +} + +/** aggregate stddev on columns */ +export type PreCommitStddevFields = { + __typename?: 'pre_commit_stddev_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev() on columns of table "pre_commit" */ +export type PreCommitStddevOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type PreCommitStddevPopFields = { + __typename?: 'pre_commit_stddev_pop_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev_pop() on columns of table "pre_commit" */ +export type PreCommitStddevPopOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type PreCommitStddevSampFields = { + __typename?: 'pre_commit_stddev_samp_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by stddev_samp() on columns of table "pre_commit" */ +export type PreCommitStddevSampOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type PreCommitSumFields = { + __typename?: 'pre_commit_sum_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by sum() on columns of table "pre_commit" */ +export type PreCommitSumOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type PreCommitVarPopFields = { + __typename?: 'pre_commit_var_pop_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by var_pop() on columns of table "pre_commit" */ +export type PreCommitVarPopOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type PreCommitVarSampFields = { + __typename?: 'pre_commit_var_samp_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by var_samp() on columns of table "pre_commit" */ +export type PreCommitVarSampOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type PreCommitVarianceFields = { + __typename?: 'pre_commit_variance_fields'; + height?: Maybe; + proposer_priority?: Maybe; + voting_power?: Maybe; +}; + +/** order by variance() on columns of table "pre_commit" */ +export type PreCommitVarianceOrderBy = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; +}; + +/** columns and relationships of "pre_commits_rewards_view" */ +export type PreCommitsRewardsView = { + __typename?: 'pre_commits_rewards_view'; + consensus_pubkey?: Maybe; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregated selection of "pre_commits_rewards_view" */ +export type PreCommitsRewardsViewAggregate = { + __typename?: 'pre_commits_rewards_view_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pre_commits_rewards_view" */ +export type PreCommitsRewardsViewAggregateFields = { + __typename?: 'pre_commits_rewards_view_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pre_commits_rewards_view" */ +export type PreCommitsRewardsViewAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PreCommitsRewardsViewAvgFields = { + __typename?: 'pre_commits_rewards_view_avg_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pre_commits_rewards_view". All fields are combined with a logical 'AND'. */ +export type PreCommitsRewardsViewBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_pubkey?: InputMaybe; + max_block?: InputMaybe; + pre_commit_rewards?: InputMaybe; + precommits?: InputMaybe; + sum_precommits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PreCommitsRewardsViewMaxFields = { + __typename?: 'pre_commits_rewards_view_max_fields'; + consensus_pubkey?: Maybe; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate min on columns */ +export type PreCommitsRewardsViewMinFields = { + __typename?: 'pre_commits_rewards_view_min_fields'; + consensus_pubkey?: Maybe; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** Ordering options when selecting data from "pre_commits_rewards_view". */ +export type PreCommitsRewardsViewOrderBy = { + consensus_pubkey?: InputMaybe; + max_block?: InputMaybe; + pre_commit_rewards?: InputMaybe; + precommits?: InputMaybe; + sum_precommits?: InputMaybe; +}; + +/** select columns of table "pre_commits_rewards_view" */ +export enum PreCommitsRewardsViewSelectColumn { + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + MaxBlock = 'max_block', + /** column name */ + PreCommitRewards = 'pre_commit_rewards', + /** column name */ + Precommits = 'precommits', + /** column name */ + SumPrecommits = 'sum_precommits' +} + +/** aggregate stddev on columns */ +export type PreCommitsRewardsViewStddevFields = { + __typename?: 'pre_commits_rewards_view_stddev_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PreCommitsRewardsViewStddevPopFields = { + __typename?: 'pre_commits_rewards_view_stddev_pop_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PreCommitsRewardsViewStddevSampFields = { + __typename?: 'pre_commits_rewards_view_stddev_samp_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate sum on columns */ +export type PreCommitsRewardsViewSumFields = { + __typename?: 'pre_commits_rewards_view_sum_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PreCommitsRewardsViewVarPopFields = { + __typename?: 'pre_commits_rewards_view_var_pop_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PreCommitsRewardsViewVarSampFields = { + __typename?: 'pre_commits_rewards_view_var_samp_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** aggregate variance on columns */ +export type PreCommitsRewardsViewVarianceFields = { + __typename?: 'pre_commits_rewards_view_variance_fields'; + max_block?: Maybe; + pre_commit_rewards?: Maybe; + precommits?: Maybe; + sum_precommits?: Maybe; +}; + +/** columns and relationships of "pre_commits_total" */ +export type PreCommitsTotal = { + __typename?: 'pre_commits_total'; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; +}; + +/** aggregated selection of "pre_commits_total" */ +export type PreCommitsTotalAggregate = { + __typename?: 'pre_commits_total_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pre_commits_total" */ +export type PreCommitsTotalAggregateFields = { + __typename?: 'pre_commits_total_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pre_commits_total" */ +export type PreCommitsTotalAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PreCommitsTotalAvgFields = { + __typename?: 'pre_commits_total_avg_fields'; + pre_commits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pre_commits_total". All fields are combined with a logical 'AND'. */ +export type PreCommitsTotalBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PreCommitsTotalMaxFields = { + __typename?: 'pre_commits_total_max_fields'; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; +}; + +/** aggregate min on columns */ +export type PreCommitsTotalMinFields = { + __typename?: 'pre_commits_total_min_fields'; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; +}; + +/** Ordering options when selecting data from "pre_commits_total". */ +export type PreCommitsTotalOrderBy = { + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; +}; + +/** select columns of table "pre_commits_total" */ +export enum PreCommitsTotalSelectColumn { + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + PreCommits = 'pre_commits' +} + +/** aggregate stddev on columns */ +export type PreCommitsTotalStddevFields = { + __typename?: 'pre_commits_total_stddev_fields'; + pre_commits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PreCommitsTotalStddevPopFields = { + __typename?: 'pre_commits_total_stddev_pop_fields'; + pre_commits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PreCommitsTotalStddevSampFields = { + __typename?: 'pre_commits_total_stddev_samp_fields'; + pre_commits?: Maybe; +}; + +/** aggregate sum on columns */ +export type PreCommitsTotalSumFields = { + __typename?: 'pre_commits_total_sum_fields'; + pre_commits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PreCommitsTotalVarPopFields = { + __typename?: 'pre_commits_total_var_pop_fields'; + pre_commits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PreCommitsTotalVarSampFields = { + __typename?: 'pre_commits_total_var_samp_fields'; + pre_commits?: Maybe; +}; + +/** aggregate variance on columns */ +export type PreCommitsTotalVarianceFields = { + __typename?: 'pre_commits_total_variance_fields'; + pre_commits?: Maybe; +}; + +/** columns and relationships of "pre_commits_view" */ +export type PreCommitsView = { + __typename?: 'pre_commits_view'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** aggregated selection of "pre_commits_view" */ +export type PreCommitsViewAggregate = { + __typename?: 'pre_commits_view_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pre_commits_view" */ +export type PreCommitsViewAggregateFields = { + __typename?: 'pre_commits_view_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pre_commits_view" */ +export type PreCommitsViewAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PreCommitsViewAvgFields = { + __typename?: 'pre_commits_view_avg_fields'; + precommits?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pre_commits_view". All fields are combined with a logical 'AND'. */ +export type PreCommitsViewBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PreCommitsViewMaxFields = { + __typename?: 'pre_commits_view_max_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** aggregate min on columns */ +export type PreCommitsViewMinFields = { + __typename?: 'pre_commits_view_min_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + precommits?: Maybe; +}; + +/** Ordering options when selecting data from "pre_commits_view". */ +export type PreCommitsViewOrderBy = { + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; +}; + +/** select columns of table "pre_commits_view" */ +export enum PreCommitsViewSelectColumn { + /** column name */ + ConsensusAddress = 'consensus_address', + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + Precommits = 'precommits' +} + +/** aggregate stddev on columns */ +export type PreCommitsViewStddevFields = { + __typename?: 'pre_commits_view_stddev_fields'; + precommits?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PreCommitsViewStddevPopFields = { + __typename?: 'pre_commits_view_stddev_pop_fields'; + precommits?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PreCommitsViewStddevSampFields = { + __typename?: 'pre_commits_view_stddev_samp_fields'; + precommits?: Maybe; +}; + +/** aggregate sum on columns */ +export type PreCommitsViewSumFields = { + __typename?: 'pre_commits_view_sum_fields'; + precommits?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PreCommitsViewVarPopFields = { + __typename?: 'pre_commits_view_var_pop_fields'; + precommits?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PreCommitsViewVarSampFields = { + __typename?: 'pre_commits_view_var_samp_fields'; + precommits?: Maybe; +}; + +/** aggregate variance on columns */ +export type PreCommitsViewVarianceFields = { + __typename?: 'pre_commits_view_variance_fields'; + precommits?: Maybe; +}; + +/** columns and relationships of "pruning" */ +export type Pruning = { + __typename?: 'pruning'; + last_pruned_height: Scalars['bigint']['output']; +}; + +/** aggregated selection of "pruning" */ +export type PruningAggregate = { + __typename?: 'pruning_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pruning" */ +export type PruningAggregateFields = { + __typename?: 'pruning_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pruning" */ +export type PruningAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PruningAvgFields = { + __typename?: 'pruning_avg_fields'; + last_pruned_height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pruning". All fields are combined with a logical 'AND'. */ +export type PruningBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + last_pruned_height?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PruningMaxFields = { + __typename?: 'pruning_max_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate min on columns */ +export type PruningMinFields = { + __typename?: 'pruning_min_fields'; + last_pruned_height?: Maybe; +}; + +/** Ordering options when selecting data from "pruning". */ +export type PruningOrderBy = { + last_pruned_height?: InputMaybe; +}; + +/** select columns of table "pruning" */ +export enum PruningSelectColumn { + /** column name */ + LastPrunedHeight = 'last_pruned_height' +} + +/** aggregate stddev on columns */ +export type PruningStddevFields = { + __typename?: 'pruning_stddev_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PruningStddevPopFields = { + __typename?: 'pruning_stddev_pop_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PruningStddevSampFields = { + __typename?: 'pruning_stddev_samp_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate sum on columns */ +export type PruningSumFields = { + __typename?: 'pruning_sum_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PruningVarPopFields = { + __typename?: 'pruning_var_pop_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PruningVarSampFields = { + __typename?: 'pruning_var_samp_fields'; + last_pruned_height?: Maybe; +}; + +/** aggregate variance on columns */ +export type PruningVarianceFields = { + __typename?: 'pruning_variance_fields'; + last_pruned_height?: Maybe; +}; + +/** columns and relationships of "pussy_gift_proofs" */ +export type PussyGiftProofs = { + __typename?: 'pussy_gift_proofs'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + +/** aggregated selection of "pussy_gift_proofs" */ +export type PussyGiftProofsAggregate = { + __typename?: 'pussy_gift_proofs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "pussy_gift_proofs" */ +export type PussyGiftProofsAggregateFields = { + __typename?: 'pussy_gift_proofs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "pussy_gift_proofs" */ +export type PussyGiftProofsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type PussyGiftProofsAvgFields = { + __typename?: 'pussy_gift_proofs_avg_fields'; + amount?: Maybe; +}; + +/** Boolean expression to filter rows from the table "pussy_gift_proofs". All fields are combined with a logical 'AND'. */ +export type PussyGiftProofsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** aggregate max on columns */ +export type PussyGiftProofsMaxFields = { + __typename?: 'pussy_gift_proofs_max_fields'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + +/** aggregate min on columns */ +export type PussyGiftProofsMinFields = { + __typename?: 'pussy_gift_proofs_min_fields'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + +/** Ordering options when selecting data from "pussy_gift_proofs". */ +export type PussyGiftProofsOrderBy = { + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** select columns of table "pussy_gift_proofs" */ +export enum PussyGiftProofsSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Amount = 'amount', + /** column name */ + Details = 'details', + /** column name */ + Proof = 'proof' +} + +/** aggregate stddev on columns */ +export type PussyGiftProofsStddevFields = { + __typename?: 'pussy_gift_proofs_stddev_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type PussyGiftProofsStddevPopFields = { + __typename?: 'pussy_gift_proofs_stddev_pop_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type PussyGiftProofsStddevSampFields = { + __typename?: 'pussy_gift_proofs_stddev_samp_fields'; + amount?: Maybe; +}; + +/** aggregate sum on columns */ +export type PussyGiftProofsSumFields = { + __typename?: 'pussy_gift_proofs_sum_fields'; + amount?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type PussyGiftProofsVarPopFields = { + __typename?: 'pussy_gift_proofs_var_pop_fields'; + amount?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type PussyGiftProofsVarSampFields = { + __typename?: 'pussy_gift_proofs_var_samp_fields'; + amount?: Maybe; +}; + +/** aggregate variance on columns */ +export type PussyGiftProofsVarianceFields = { + __typename?: 'pussy_gift_proofs_variance_fields'; + amount?: Maybe; +}; + +export type QueryRoot = { + __typename?: 'query_root'; + /** fetch data from the table: "_transaction" */ + _transaction: Array; + /** fetch aggregated fields from the table: "_transaction" */ + _transaction_aggregate: TransactionAggregate; + /** fetch data from the table: "_uptime_temp" */ + _uptime_temp: Array; + /** fetch aggregated fields from the table: "_uptime_temp" */ + _uptime_temp_aggregate: UptimeTempAggregate; + /** fetch data from the table: "account" */ + account: Array; + /** fetch aggregated fields from the table: "account" */ + account_aggregate: AccountAggregate; + /** fetch data from the table: "account_balance" */ + account_balance: Array; + /** fetch aggregated fields from the table: "account_balance" */ + account_balance_aggregate: AccountBalanceAggregate; + /** fetch data from the table: "account_balance" using primary key columns */ + account_balance_by_pk?: Maybe; + /** fetch data from the table: "account" using primary key columns */ + account_by_pk?: Maybe; + /** fetch data from the table: "block" */ + block: Array; + /** fetch aggregated fields from the table: "block" */ + block_aggregate: BlockAggregate; + /** fetch data from the table: "block" using primary key columns */ + block_by_pk?: Maybe; + /** fetch data from the table: "contracts" */ + contracts: Array; + /** fetch aggregated fields from the table: "contracts" */ + contracts_aggregate: ContractsAggregate; + /** fetch data from the table: "contracts" using primary key columns */ + contracts_by_pk?: Maybe; + /** fetch data from the table: "cyb_cohort" */ + cyb_cohort: Array; + /** fetch aggregated fields from the table: "cyb_cohort" */ + cyb_cohort_aggregate: CybCohortAggregate; + /** fetch data from the table: "cyb_new_cohort" */ + cyb_new_cohort: Array; + /** fetch aggregated fields from the table: "cyb_new_cohort" */ + cyb_new_cohort_aggregate: CybNewCohortAggregate; + /** fetch data from the table: "cyber_gift" */ + cyber_gift: Array; + /** fetch aggregated fields from the table: "cyber_gift" */ + cyber_gift_aggregate: CyberGiftAggregate; + /** fetch data from the table: "cyber_gift_proofs" */ + cyber_gift_proofs: Array; + /** fetch aggregated fields from the table: "cyber_gift_proofs" */ + cyber_gift_proofs_aggregate: CyberGiftProofsAggregate; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + /** fetch data from the table: "cyberlinks" using primary key columns */ + cyberlinks_by_pk?: Maybe; + /** fetch data from the table: "cyberlinks_stats" */ + cyberlinks_stats: Array; + /** fetch aggregated fields from the table: "cyberlinks_stats" */ + cyberlinks_stats_aggregate: CyberlinksStatsAggregate; + /** fetch data from the table: "daily_amount_of_active_neurons" */ + daily_amount_of_active_neurons: Array; + /** fetch aggregated fields from the table: "daily_amount_of_active_neurons" */ + daily_amount_of_active_neurons_aggregate: DailyAmountOfActiveNeuronsAggregate; + /** fetch data from the table: "daily_amount_of_used_gas" */ + daily_amount_of_used_gas: Array; + /** fetch aggregated fields from the table: "daily_amount_of_used_gas" */ + daily_amount_of_used_gas_aggregate: DailyAmountOfUsedGasAggregate; + /** fetch data from the table: "daily_number_of_transactions" */ + daily_number_of_transactions: Array; + /** fetch aggregated fields from the table: "daily_number_of_transactions" */ + daily_number_of_transactions_aggregate: DailyNumberOfTransactionsAggregate; + /** fetch data from the table: "follow_stats" */ + follow_stats: Array; + /** fetch aggregated fields from the table: "follow_stats" */ + follow_stats_aggregate: FollowStatsAggregate; + /** fetch data from the table: "genesis_neurons_activation" */ + genesis_neurons_activation: Array; + /** fetch aggregated fields from the table: "genesis_neurons_activation" */ + genesis_neurons_activation_aggregate: GenesisNeuronsActivationAggregate; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + /** fetch data from the table: "investmints" using primary key columns */ + investmints_by_pk?: Maybe; + /** fetch data from the table: "message" */ + message: Array; + /** fetch aggregated fields from the table: "message" */ + message_aggregate: MessageAggregate; + /** execute function "messages_by_address" which returns "message" */ + messages_by_address: Array; + /** execute function "messages_by_address" and query aggregates on result of table type "message" */ + messages_by_address_aggregate: MessageAggregate; + /** fetch data from the table: "modules" */ + modules: Array; + /** fetch aggregated fields from the table: "modules" */ + modules_aggregate: ModulesAggregate; + /** fetch data from the table: "modules" using primary key columns */ + modules_by_pk?: Maybe; + /** fetch data from the table: "neuron_activation_source" */ + neuron_activation_source: Array; + /** fetch aggregated fields from the table: "neuron_activation_source" */ + neuron_activation_source_aggregate: NeuronActivationSourceAggregate; + /** fetch data from the table: "number_of_new_neurons" */ + number_of_new_neurons: Array; + /** fetch aggregated fields from the table: "number_of_new_neurons" */ + number_of_new_neurons_aggregate: NumberOfNewNeuronsAggregate; + /** fetch data from the table: "old_precommits" */ + old_precommits: Array; + /** fetch aggregated fields from the table: "old_precommits" */ + old_precommits_aggregate: OldPrecommitsAggregate; + /** fetch data from the table: "old_precommits" using primary key columns */ + old_precommits_by_pk?: Maybe; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + /** fetch data from the table: "particles" using primary key columns */ + particles_by_pk?: Maybe; + /** fetch data from the table: "pre_commit" */ + pre_commit: Array; + /** fetch aggregated fields from the table: "pre_commit" */ + pre_commit_aggregate: PreCommitAggregate; + /** fetch data from the table: "pre_commits_rewards_view" */ + pre_commits_rewards_view: Array; + /** fetch aggregated fields from the table: "pre_commits_rewards_view" */ + pre_commits_rewards_view_aggregate: PreCommitsRewardsViewAggregate; + /** fetch data from the table: "pre_commits_total" */ + pre_commits_total: Array; + /** fetch aggregated fields from the table: "pre_commits_total" */ + pre_commits_total_aggregate: PreCommitsTotalAggregate; + /** fetch data from the table: "pre_commits_view" */ + pre_commits_view: Array; + /** fetch aggregated fields from the table: "pre_commits_view" */ + pre_commits_view_aggregate: PreCommitsViewAggregate; + /** fetch data from the table: "pruning" */ + pruning: Array; + /** fetch aggregated fields from the table: "pruning" */ + pruning_aggregate: PruningAggregate; + /** fetch data from the table: "pussy_gift_proofs" */ + pussy_gift_proofs: Array; + /** fetch aggregated fields from the table: "pussy_gift_proofs" */ + pussy_gift_proofs_aggregate: PussyGiftProofsAggregate; + /** An array relationship */ + routes: Array; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; + /** fetch data from the table: "routes" using primary key columns */ + routes_by_pk?: Maybe; + /** fetch data from the table: "supply" */ + supply: Array; + /** fetch aggregated fields from the table: "supply" */ + supply_aggregate: SupplyAggregate; + /** fetch data from the table: "supply" using primary key columns */ + supply_by_pk?: Maybe; + /** fetch data from the table: "test_gift" */ + test_gift: Array; + /** fetch aggregated fields from the table: "test_gift" */ + test_gift_aggregate: TestGiftAggregate; + /** fetch data from the table: "today_top_txs" */ + today_top_txs: Array; + /** fetch aggregated fields from the table: "today_top_txs" */ + today_top_txs_aggregate: TodayTopTxsAggregate; + /** fetch data from the table: "top_10_of_active_neurons_week" */ + top_10_of_active_neurons_week: Array; + /** fetch aggregated fields from the table: "top_10_of_active_neurons_week" */ + top_10_of_active_neurons_week_aggregate: Top_10OfActiveNeuronsWeekAggregate; + /** fetch data from the table: "top_first_txs" */ + top_first_txs: Array; + /** fetch aggregated fields from the table: "top_first_txs" */ + top_first_txs_aggregate: TopFirstTxsAggregate; + /** fetch data from the table: "top_leaders" */ + top_leaders: Array; + /** fetch data from the table: "top_txs" */ + top_txs: Array; + /** fetch aggregated fields from the table: "top_txs" */ + top_txs_aggregate: TopTxsAggregate; + /** fetch data from the table: "transaction" */ + transaction: Array; + /** fetch aggregated fields from the table: "transaction" */ + transaction_aggregate: TransactionAggregate; + /** fetch data from the table: "transaction" using primary key columns */ + transaction_by_pk?: Maybe; + /** fetch data from the table: "tweets_stats" */ + tweets_stats: Array; + /** fetch aggregated fields from the table: "tweets_stats" */ + tweets_stats_aggregate: TweetsStatsAggregate; + /** fetch data from the table: "txs_ranked" */ + txs_ranked: Array; + /** fetch aggregated fields from the table: "txs_ranked" */ + txs_ranked_aggregate: TxsRankedAggregate; + /** fetch data from the table: "txs_stats" */ + txs_stats: Array; + /** fetch aggregated fields from the table: "txs_stats" */ + txs_stats_aggregate: TxsStatsAggregate; + /** fetch data from the table: "uptime" */ + uptime: Array; + /** fetch aggregated fields from the table: "uptime" */ + uptime_aggregate: UptimeAggregate; + /** fetch data from the table: "validator" */ + validator: Array; + /** fetch aggregated fields from the table: "validator" */ + validator_aggregate: ValidatorAggregate; + /** fetch data from the table: "validator" using primary key columns */ + validator_by_pk?: Maybe; + /** fetch data from the table: "volts_demand" */ + volts_demand: Array; + /** fetch aggregated fields from the table: "volts_demand" */ + volts_demand_aggregate: VoltsDemandAggregate; + /** fetch data from the table: "volts_stats" */ + volts_stats: Array; + /** fetch aggregated fields from the table: "volts_stats" */ + volts_stats_aggregate: VoltsStatsAggregate; +}; + + +export type QueryRootTransactionArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTransactionAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootUptimeTempArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootUptimeTempAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountBalanceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountBalanceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootAccountBalanceByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type QueryRootAccountByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type QueryRootBlockArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootBlockAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootBlockByPkArgs = { + height: Scalars['bigint']['input']; +}; + + +export type QueryRootContractsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootContractsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootContractsByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type QueryRootCybCohortArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCybCohortAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCybNewCohortArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCybNewCohortAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberGiftArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberGiftAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberGiftProofsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberGiftProofsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberlinksByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type QueryRootCyberlinksStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootCyberlinksStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyAmountOfActiveNeuronsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyAmountOfActiveNeuronsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyAmountOfUsedGasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyAmountOfUsedGasAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyNumberOfTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootDailyNumberOfTransactionsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootFollowStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootFollowStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootGenesisNeuronsActivationArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootGenesisNeuronsActivationAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootInvestmintsByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type QueryRootMessageArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootMessageAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootMessagesByAddressArgs = { + args: MessagesByAddressArgs; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootMessagesByAddressAggregateArgs = { + args: MessagesByAddressArgs; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootModulesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootModulesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootModulesByPkArgs = { + module_name: Scalars['String']['input']; +}; + + +export type QueryRootNeuronActivationSourceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNeuronActivationSourceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNumberOfNewNeuronsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootNumberOfNewNeuronsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootOldPrecommitsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootOldPrecommitsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootOldPrecommitsByPkArgs = { + consensus_address: Scalars['String']['input']; +}; + + +export type QueryRootParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootParticlesByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type QueryRootPreCommitArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsRewardsViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsRewardsViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsTotalArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsTotalAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPreCommitsViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPruningArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPruningAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPussyGiftProofsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootPussyGiftProofsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootRoutesByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type QueryRootSupplyArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootSupplyAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootSupplyByPkArgs = { + one_row_id: Scalars['Boolean']['input']; +}; + + +export type QueryRootTestGiftArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTestGiftAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTodayTopTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTodayTopTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTop_10OfActiveNeuronsWeekArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTop_10OfActiveNeuronsWeekAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopFirstTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopFirstTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopLeadersArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTopTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTransactionArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTransactionAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTransactionByPkArgs = { + hash: Scalars['String']['input']; +}; + + +export type QueryRootTweetsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTweetsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTxsRankedArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTxsRankedAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTxsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootTxsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootUptimeArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootUptimeAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootValidatorArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootValidatorAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootValidatorByPkArgs = { + consensus_address: Scalars['String']['input']; +}; + + +export type QueryRootVoltsDemandArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootVoltsDemandAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootVoltsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type QueryRootVoltsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "routes" */ +export type Routes = { + __typename?: 'routes'; + /** An object relationship */ + account: Account; + /** An object relationship */ + accountBySource: Account; + alias: Scalars['String']['output']; + /** An object relationship */ + block: Block; + destination: Scalars['String']['output']; + height: Scalars['bigint']['output']; + id: Scalars['Int']['output']; + source: Scalars['String']['output']; + timestamp: Scalars['timestamp']['output']; + /** An object relationship */ + transaction: Transaction; + transaction_hash: Scalars['String']['output']; + value: Scalars['_coin']['output']; +}; + +/** aggregated selection of "routes" */ +export type RoutesAggregate = { + __typename?: 'routes_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "routes" */ +export type RoutesAggregateFields = { + __typename?: 'routes_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "routes" */ +export type RoutesAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "routes" */ +export type RoutesAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type RoutesAvgFields = { + __typename?: 'routes_avg_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by avg() on columns of table "routes" */ +export type RoutesAvgOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "routes". All fields are combined with a logical 'AND'. */ +export type RoutesBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + accountBySource?: InputMaybe; + alias?: InputMaybe; + block?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + value?: InputMaybe; +}; + +/** aggregate max on columns */ +export type RoutesMaxFields = { + __typename?: 'routes_max_fields'; + alias?: Maybe; + destination?: Maybe; + height?: Maybe; + id?: Maybe; + source?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by max() on columns of table "routes" */ +export type RoutesMaxOrderBy = { + alias?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** aggregate min on columns */ +export type RoutesMinFields = { + __typename?: 'routes_min_fields'; + alias?: Maybe; + destination?: Maybe; + height?: Maybe; + id?: Maybe; + source?: Maybe; + timestamp?: Maybe; + transaction_hash?: Maybe; +}; + +/** order by min() on columns of table "routes" */ +export type RoutesMinOrderBy = { + alias?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; +}; + +/** Ordering options when selecting data from "routes". */ +export type RoutesOrderBy = { + account?: InputMaybe; + accountBySource?: InputMaybe; + alias?: InputMaybe; + block?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + value?: InputMaybe; +}; + +/** select columns of table "routes" */ +export enum RoutesSelectColumn { + /** column name */ + Alias = 'alias', + /** column name */ + Destination = 'destination', + /** column name */ + Height = 'height', + /** column name */ + Id = 'id', + /** column name */ + Source = 'source', + /** column name */ + Timestamp = 'timestamp', + /** column name */ + TransactionHash = 'transaction_hash', + /** column name */ + Value = 'value' +} + +/** aggregate stddev on columns */ +export type RoutesStddevFields = { + __typename?: 'routes_stddev_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev() on columns of table "routes" */ +export type RoutesStddevOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type RoutesStddevPopFields = { + __typename?: 'routes_stddev_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_pop() on columns of table "routes" */ +export type RoutesStddevPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type RoutesStddevSampFields = { + __typename?: 'routes_stddev_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by stddev_samp() on columns of table "routes" */ +export type RoutesStddevSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type RoutesSumFields = { + __typename?: 'routes_sum_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by sum() on columns of table "routes" */ +export type RoutesSumOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type RoutesVarPopFields = { + __typename?: 'routes_var_pop_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_pop() on columns of table "routes" */ +export type RoutesVarPopOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type RoutesVarSampFields = { + __typename?: 'routes_var_samp_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by var_samp() on columns of table "routes" */ +export type RoutesVarSampOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type RoutesVarianceFields = { + __typename?: 'routes_variance_fields'; + height?: Maybe; + id?: Maybe; +}; + +/** order by variance() on columns of table "routes" */ +export type RoutesVarianceOrderBy = { + height?: InputMaybe; + id?: InputMaybe; +}; + +export type SubscriptionRoot = { + __typename?: 'subscription_root'; + /** fetch data from the table: "_transaction" */ + _transaction: Array; + /** fetch aggregated fields from the table: "_transaction" */ + _transaction_aggregate: TransactionAggregate; + /** fetch data from the table: "_uptime_temp" */ + _uptime_temp: Array; + /** fetch aggregated fields from the table: "_uptime_temp" */ + _uptime_temp_aggregate: UptimeTempAggregate; + /** fetch data from the table: "account" */ + account: Array; + /** fetch aggregated fields from the table: "account" */ + account_aggregate: AccountAggregate; + /** fetch data from the table: "account_balance" */ + account_balance: Array; + /** fetch aggregated fields from the table: "account_balance" */ + account_balance_aggregate: AccountBalanceAggregate; + /** fetch data from the table: "account_balance" using primary key columns */ + account_balance_by_pk?: Maybe; + /** fetch data from the table: "account" using primary key columns */ + account_by_pk?: Maybe; + /** fetch data from the table: "block" */ + block: Array; + /** fetch aggregated fields from the table: "block" */ + block_aggregate: BlockAggregate; + /** fetch data from the table: "block" using primary key columns */ + block_by_pk?: Maybe; + /** fetch data from the table: "contracts" */ + contracts: Array; + /** fetch aggregated fields from the table: "contracts" */ + contracts_aggregate: ContractsAggregate; + /** fetch data from the table: "contracts" using primary key columns */ + contracts_by_pk?: Maybe; + /** fetch data from the table: "cyb_cohort" */ + cyb_cohort: Array; + /** fetch aggregated fields from the table: "cyb_cohort" */ + cyb_cohort_aggregate: CybCohortAggregate; + /** fetch data from the table: "cyb_new_cohort" */ + cyb_new_cohort: Array; + /** fetch aggregated fields from the table: "cyb_new_cohort" */ + cyb_new_cohort_aggregate: CybNewCohortAggregate; + /** fetch data from the table: "cyber_gift" */ + cyber_gift: Array; + /** fetch aggregated fields from the table: "cyber_gift" */ + cyber_gift_aggregate: CyberGiftAggregate; + /** fetch data from the table: "cyber_gift_proofs" */ + cyber_gift_proofs: Array; + /** fetch aggregated fields from the table: "cyber_gift_proofs" */ + cyber_gift_proofs_aggregate: CyberGiftProofsAggregate; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + /** fetch data from the table: "cyberlinks" using primary key columns */ + cyberlinks_by_pk?: Maybe; + /** fetch data from the table: "cyberlinks_stats" */ + cyberlinks_stats: Array; + /** fetch aggregated fields from the table: "cyberlinks_stats" */ + cyberlinks_stats_aggregate: CyberlinksStatsAggregate; + /** fetch data from the table: "daily_amount_of_active_neurons" */ + daily_amount_of_active_neurons: Array; + /** fetch aggregated fields from the table: "daily_amount_of_active_neurons" */ + daily_amount_of_active_neurons_aggregate: DailyAmountOfActiveNeuronsAggregate; + /** fetch data from the table: "daily_amount_of_used_gas" */ + daily_amount_of_used_gas: Array; + /** fetch aggregated fields from the table: "daily_amount_of_used_gas" */ + daily_amount_of_used_gas_aggregate: DailyAmountOfUsedGasAggregate; + /** fetch data from the table: "daily_number_of_transactions" */ + daily_number_of_transactions: Array; + /** fetch aggregated fields from the table: "daily_number_of_transactions" */ + daily_number_of_transactions_aggregate: DailyNumberOfTransactionsAggregate; + /** fetch data from the table: "follow_stats" */ + follow_stats: Array; + /** fetch aggregated fields from the table: "follow_stats" */ + follow_stats_aggregate: FollowStatsAggregate; + /** fetch data from the table: "genesis_neurons_activation" */ + genesis_neurons_activation: Array; + /** fetch aggregated fields from the table: "genesis_neurons_activation" */ + genesis_neurons_activation_aggregate: GenesisNeuronsActivationAggregate; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + /** fetch data from the table: "investmints" using primary key columns */ + investmints_by_pk?: Maybe; + /** fetch data from the table: "message" */ + message: Array; + /** fetch aggregated fields from the table: "message" */ + message_aggregate: MessageAggregate; + /** execute function "messages_by_address" which returns "message" */ + messages_by_address: Array; + /** execute function "messages_by_address" and query aggregates on result of table type "message" */ + messages_by_address_aggregate: MessageAggregate; + /** fetch data from the table: "modules" */ + modules: Array; + /** fetch aggregated fields from the table: "modules" */ + modules_aggregate: ModulesAggregate; + /** fetch data from the table: "modules" using primary key columns */ + modules_by_pk?: Maybe; + /** fetch data from the table: "neuron_activation_source" */ + neuron_activation_source: Array; + /** fetch aggregated fields from the table: "neuron_activation_source" */ + neuron_activation_source_aggregate: NeuronActivationSourceAggregate; + /** fetch data from the table: "number_of_new_neurons" */ + number_of_new_neurons: Array; + /** fetch aggregated fields from the table: "number_of_new_neurons" */ + number_of_new_neurons_aggregate: NumberOfNewNeuronsAggregate; + /** fetch data from the table: "old_precommits" */ + old_precommits: Array; + /** fetch aggregated fields from the table: "old_precommits" */ + old_precommits_aggregate: OldPrecommitsAggregate; + /** fetch data from the table: "old_precommits" using primary key columns */ + old_precommits_by_pk?: Maybe; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + /** fetch data from the table: "particles" using primary key columns */ + particles_by_pk?: Maybe; + /** fetch data from the table: "pre_commit" */ + pre_commit: Array; + /** fetch aggregated fields from the table: "pre_commit" */ + pre_commit_aggregate: PreCommitAggregate; + /** fetch data from the table: "pre_commits_rewards_view" */ + pre_commits_rewards_view: Array; + /** fetch aggregated fields from the table: "pre_commits_rewards_view" */ + pre_commits_rewards_view_aggregate: PreCommitsRewardsViewAggregate; + /** fetch data from the table: "pre_commits_total" */ + pre_commits_total: Array; + /** fetch aggregated fields from the table: "pre_commits_total" */ + pre_commits_total_aggregate: PreCommitsTotalAggregate; + /** fetch data from the table: "pre_commits_view" */ + pre_commits_view: Array; + /** fetch aggregated fields from the table: "pre_commits_view" */ + pre_commits_view_aggregate: PreCommitsViewAggregate; + /** fetch data from the table: "pruning" */ + pruning: Array; + /** fetch aggregated fields from the table: "pruning" */ + pruning_aggregate: PruningAggregate; + /** fetch data from the table: "pussy_gift_proofs" */ + pussy_gift_proofs: Array; + /** fetch aggregated fields from the table: "pussy_gift_proofs" */ + pussy_gift_proofs_aggregate: PussyGiftProofsAggregate; + /** An array relationship */ + routes: Array; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; + /** fetch data from the table: "routes" using primary key columns */ + routes_by_pk?: Maybe; + /** fetch data from the table: "supply" */ + supply: Array; + /** fetch aggregated fields from the table: "supply" */ + supply_aggregate: SupplyAggregate; + /** fetch data from the table: "supply" using primary key columns */ + supply_by_pk?: Maybe; + /** fetch data from the table: "test_gift" */ + test_gift: Array; + /** fetch aggregated fields from the table: "test_gift" */ + test_gift_aggregate: TestGiftAggregate; + /** fetch data from the table: "today_top_txs" */ + today_top_txs: Array; + /** fetch aggregated fields from the table: "today_top_txs" */ + today_top_txs_aggregate: TodayTopTxsAggregate; + /** fetch data from the table: "top_10_of_active_neurons_week" */ + top_10_of_active_neurons_week: Array; + /** fetch aggregated fields from the table: "top_10_of_active_neurons_week" */ + top_10_of_active_neurons_week_aggregate: Top_10OfActiveNeuronsWeekAggregate; + /** fetch data from the table: "top_first_txs" */ + top_first_txs: Array; + /** fetch aggregated fields from the table: "top_first_txs" */ + top_first_txs_aggregate: TopFirstTxsAggregate; + /** fetch data from the table: "top_leaders" */ + top_leaders: Array; + /** fetch data from the table: "top_txs" */ + top_txs: Array; + /** fetch aggregated fields from the table: "top_txs" */ + top_txs_aggregate: TopTxsAggregate; + /** fetch data from the table: "transaction" */ + transaction: Array; + /** fetch aggregated fields from the table: "transaction" */ + transaction_aggregate: TransactionAggregate; + /** fetch data from the table: "transaction" using primary key columns */ + transaction_by_pk?: Maybe; + /** fetch data from the table: "tweets_stats" */ + tweets_stats: Array; + /** fetch aggregated fields from the table: "tweets_stats" */ + tweets_stats_aggregate: TweetsStatsAggregate; + /** fetch data from the table: "txs_ranked" */ + txs_ranked: Array; + /** fetch aggregated fields from the table: "txs_ranked" */ + txs_ranked_aggregate: TxsRankedAggregate; + /** fetch data from the table: "txs_stats" */ + txs_stats: Array; + /** fetch aggregated fields from the table: "txs_stats" */ + txs_stats_aggregate: TxsStatsAggregate; + /** fetch data from the table: "uptime" */ + uptime: Array; + /** fetch aggregated fields from the table: "uptime" */ + uptime_aggregate: UptimeAggregate; + /** fetch data from the table: "validator" */ + validator: Array; + /** fetch aggregated fields from the table: "validator" */ + validator_aggregate: ValidatorAggregate; + /** fetch data from the table: "validator" using primary key columns */ + validator_by_pk?: Maybe; + /** fetch data from the table: "volts_demand" */ + volts_demand: Array; + /** fetch aggregated fields from the table: "volts_demand" */ + volts_demand_aggregate: VoltsDemandAggregate; + /** fetch data from the table: "volts_stats" */ + volts_stats: Array; + /** fetch aggregated fields from the table: "volts_stats" */ + volts_stats_aggregate: VoltsStatsAggregate; +}; + + +export type SubscriptionRootTransactionArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTransactionAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUptimeTempArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUptimeTempAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountBalanceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountBalanceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootAccountBalanceByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type SubscriptionRootAccountByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type SubscriptionRootBlockArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootBlockAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootBlockByPkArgs = { + height: Scalars['bigint']['input']; +}; + + +export type SubscriptionRootContractsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootContractsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootContractsByPkArgs = { + address: Scalars['String']['input']; +}; + + +export type SubscriptionRootCybCohortArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCybCohortAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCybNewCohortArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCybNewCohortAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberGiftArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberGiftAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberGiftProofsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberGiftProofsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberlinksByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type SubscriptionRootCyberlinksStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootCyberlinksStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyAmountOfActiveNeuronsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyAmountOfActiveNeuronsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyAmountOfUsedGasArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyAmountOfUsedGasAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyNumberOfTransactionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootDailyNumberOfTransactionsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootFollowStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootFollowStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootGenesisNeuronsActivationArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootGenesisNeuronsActivationAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootInvestmintsByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type SubscriptionRootMessageArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootMessageAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootMessagesByAddressArgs = { + args: MessagesByAddressArgs; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootMessagesByAddressAggregateArgs = { + args: MessagesByAddressArgs; + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootModulesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootModulesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootModulesByPkArgs = { + module_name: Scalars['String']['input']; +}; + + +export type SubscriptionRootNeuronActivationSourceArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNeuronActivationSourceAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNumberOfNewNeuronsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootNumberOfNewNeuronsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootOldPrecommitsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootOldPrecommitsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootOldPrecommitsByPkArgs = { + consensus_address: Scalars['String']['input']; +}; + + +export type SubscriptionRootParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootParticlesByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type SubscriptionRootPreCommitArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsRewardsViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsRewardsViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsTotalArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsTotalAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsViewArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPreCommitsViewAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPruningArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPruningAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPussyGiftProofsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootPussyGiftProofsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootRoutesByPkArgs = { + id: Scalars['Int']['input']; +}; + + +export type SubscriptionRootSupplyArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootSupplyAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootSupplyByPkArgs = { + one_row_id: Scalars['Boolean']['input']; +}; + + +export type SubscriptionRootTestGiftArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTestGiftAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTodayTopTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTodayTopTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTop_10OfActiveNeuronsWeekArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTop_10OfActiveNeuronsWeekAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopFirstTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopFirstTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopLeadersArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopTxsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTopTxsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTransactionArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTransactionAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTransactionByPkArgs = { + hash: Scalars['String']['input']; +}; + + +export type SubscriptionRootTweetsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTweetsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTxsRankedArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTxsRankedAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTxsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootTxsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUptimeArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootUptimeAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootValidatorArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootValidatorAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootValidatorByPkArgs = { + consensus_address: Scalars['String']['input']; +}; + + +export type SubscriptionRootVoltsDemandArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootVoltsDemandAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootVoltsStatsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type SubscriptionRootVoltsStatsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** columns and relationships of "supply" */ +export type Supply = { + __typename?: 'supply'; + coins: Scalars['_coin']['output']; + height: Scalars['bigint']['output']; + one_row_id: Scalars['Boolean']['output']; +}; + +/** aggregated selection of "supply" */ +export type SupplyAggregate = { + __typename?: 'supply_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "supply" */ +export type SupplyAggregateFields = { + __typename?: 'supply_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "supply" */ +export type SupplyAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type SupplyAvgFields = { + __typename?: 'supply_avg_fields'; + height?: Maybe; +}; + +/** Boolean expression to filter rows from the table "supply". All fields are combined with a logical 'AND'. */ +export type SupplyBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + coins?: InputMaybe; + height?: InputMaybe; + one_row_id?: InputMaybe; +}; + +/** aggregate max on columns */ +export type SupplyMaxFields = { + __typename?: 'supply_max_fields'; + height?: Maybe; +}; + +/** aggregate min on columns */ +export type SupplyMinFields = { + __typename?: 'supply_min_fields'; + height?: Maybe; +}; + +/** Ordering options when selecting data from "supply". */ +export type SupplyOrderBy = { + coins?: InputMaybe; + height?: InputMaybe; + one_row_id?: InputMaybe; +}; + +/** select columns of table "supply" */ +export enum SupplySelectColumn { + /** column name */ + Coins = 'coins', + /** column name */ + Height = 'height', + /** column name */ + OneRowId = 'one_row_id' +} + +/** aggregate stddev on columns */ +export type SupplyStddevFields = { + __typename?: 'supply_stddev_fields'; + height?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type SupplyStddevPopFields = { + __typename?: 'supply_stddev_pop_fields'; + height?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type SupplyStddevSampFields = { + __typename?: 'supply_stddev_samp_fields'; + height?: Maybe; +}; + +/** aggregate sum on columns */ +export type SupplySumFields = { + __typename?: 'supply_sum_fields'; + height?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type SupplyVarPopFields = { + __typename?: 'supply_var_pop_fields'; + height?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type SupplyVarSampFields = { + __typename?: 'supply_var_samp_fields'; + height?: Maybe; +}; + +/** aggregate variance on columns */ +export type SupplyVarianceFields = { + __typename?: 'supply_variance_fields'; + height?: Maybe; +}; + +/** columns and relationships of "test_gift" */ +export type TestGift = { + __typename?: 'test_gift'; + address?: Maybe; + amount?: Maybe; + details?: Maybe; + proof?: Maybe; +}; + + +/** columns and relationships of "test_gift" */ +export type TestGiftDetailsArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "test_gift" */ +export type TestGiftAggregate = { + __typename?: 'test_gift_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "test_gift" */ +export type TestGiftAggregateFields = { + __typename?: 'test_gift_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "test_gift" */ +export type TestGiftAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TestGiftAvgFields = { + __typename?: 'test_gift_avg_fields'; + amount?: Maybe; +}; + +/** Boolean expression to filter rows from the table "test_gift". All fields are combined with a logical 'AND'. */ +export type TestGiftBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TestGiftMaxFields = { + __typename?: 'test_gift_max_fields'; + address?: Maybe; + amount?: Maybe; + proof?: Maybe; +}; + +/** aggregate min on columns */ +export type TestGiftMinFields = { + __typename?: 'test_gift_min_fields'; + address?: Maybe; + amount?: Maybe; + proof?: Maybe; +}; + +/** Ordering options when selecting data from "test_gift". */ +export type TestGiftOrderBy = { + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; +}; + +/** select columns of table "test_gift" */ +export enum TestGiftSelectColumn { + /** column name */ + Address = 'address', + /** column name */ + Amount = 'amount', + /** column name */ + Details = 'details', + /** column name */ + Proof = 'proof' +} + +/** aggregate stddev on columns */ +export type TestGiftStddevFields = { + __typename?: 'test_gift_stddev_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TestGiftStddevPopFields = { + __typename?: 'test_gift_stddev_pop_fields'; + amount?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TestGiftStddevSampFields = { + __typename?: 'test_gift_stddev_samp_fields'; + amount?: Maybe; +}; + +/** aggregate sum on columns */ +export type TestGiftSumFields = { + __typename?: 'test_gift_sum_fields'; + amount?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TestGiftVarPopFields = { + __typename?: 'test_gift_var_pop_fields'; + amount?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TestGiftVarSampFields = { + __typename?: 'test_gift_var_samp_fields'; + amount?: Maybe; +}; + +/** aggregate variance on columns */ +export type TestGiftVarianceFields = { + __typename?: 'test_gift_variance_fields'; + amount?: Maybe; +}; + +/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ +export type TimestampComparisonExp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** columns and relationships of "today_top_txs" */ +export type TodayTopTxs = { + __typename?: 'today_top_txs'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregated selection of "today_top_txs" */ +export type TodayTopTxsAggregate = { + __typename?: 'today_top_txs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "today_top_txs" */ +export type TodayTopTxsAggregateFields = { + __typename?: 'today_top_txs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "today_top_txs" */ +export type TodayTopTxsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TodayTopTxsAvgFields = { + __typename?: 'today_top_txs_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "today_top_txs". All fields are combined with a logical 'AND'. */ +export type TodayTopTxsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TodayTopTxsMaxFields = { + __typename?: 'today_top_txs_max_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type TodayTopTxsMinFields = { + __typename?: 'today_top_txs_min_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "today_top_txs". */ +export type TodayTopTxsOrderBy = { + count?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "today_top_txs" */ +export enum TodayTopTxsSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Type = 'type' +} + +/** aggregate stddev on columns */ +export type TodayTopTxsStddevFields = { + __typename?: 'today_top_txs_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TodayTopTxsStddevPopFields = { + __typename?: 'today_top_txs_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TodayTopTxsStddevSampFields = { + __typename?: 'today_top_txs_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type TodayTopTxsSumFields = { + __typename?: 'today_top_txs_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TodayTopTxsVarPopFields = { + __typename?: 'today_top_txs_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TodayTopTxsVarSampFields = { + __typename?: 'today_top_txs_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type TodayTopTxsVarianceFields = { + __typename?: 'today_top_txs_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "top_10_of_active_neurons_week" */ +export type Top_10OfActiveNeuronsWeek = { + __typename?: 'top_10_of_active_neurons_week'; + count?: Maybe; + pubkey?: Maybe; +}; + +/** aggregated selection of "top_10_of_active_neurons_week" */ +export type Top_10OfActiveNeuronsWeekAggregate = { + __typename?: 'top_10_of_active_neurons_week_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "top_10_of_active_neurons_week" */ +export type Top_10OfActiveNeuronsWeekAggregateFields = { + __typename?: 'top_10_of_active_neurons_week_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "top_10_of_active_neurons_week" */ +export type Top_10OfActiveNeuronsWeekAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Top_10OfActiveNeuronsWeekAvgFields = { + __typename?: 'top_10_of_active_neurons_week_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "top_10_of_active_neurons_week". All fields are combined with a logical 'AND'. */ +export type Top_10OfActiveNeuronsWeekBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + pubkey?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Top_10OfActiveNeuronsWeekMaxFields = { + __typename?: 'top_10_of_active_neurons_week_max_fields'; + count?: Maybe; + pubkey?: Maybe; +}; + +/** aggregate min on columns */ +export type Top_10OfActiveNeuronsWeekMinFields = { + __typename?: 'top_10_of_active_neurons_week_min_fields'; + count?: Maybe; + pubkey?: Maybe; +}; + +/** Ordering options when selecting data from "top_10_of_active_neurons_week". */ +export type Top_10OfActiveNeuronsWeekOrderBy = { + count?: InputMaybe; + pubkey?: InputMaybe; +}; + +/** select columns of table "top_10_of_active_neurons_week" */ +export enum Top_10OfActiveNeuronsWeekSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Pubkey = 'pubkey' +} + +/** aggregate stddev on columns */ +export type Top_10OfActiveNeuronsWeekStddevFields = { + __typename?: 'top_10_of_active_neurons_week_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Top_10OfActiveNeuronsWeekStddevPopFields = { + __typename?: 'top_10_of_active_neurons_week_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Top_10OfActiveNeuronsWeekStddevSampFields = { + __typename?: 'top_10_of_active_neurons_week_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type Top_10OfActiveNeuronsWeekSumFields = { + __typename?: 'top_10_of_active_neurons_week_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Top_10OfActiveNeuronsWeekVarPopFields = { + __typename?: 'top_10_of_active_neurons_week_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Top_10OfActiveNeuronsWeekVarSampFields = { + __typename?: 'top_10_of_active_neurons_week_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type Top_10OfActiveNeuronsWeekVarianceFields = { + __typename?: 'top_10_of_active_neurons_week_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "top_first_txs" */ +export type TopFirstTxs = { + __typename?: 'top_first_txs'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregated selection of "top_first_txs" */ +export type TopFirstTxsAggregate = { + __typename?: 'top_first_txs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "top_first_txs" */ +export type TopFirstTxsAggregateFields = { + __typename?: 'top_first_txs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "top_first_txs" */ +export type TopFirstTxsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TopFirstTxsAvgFields = { + __typename?: 'top_first_txs_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "top_first_txs". All fields are combined with a logical 'AND'. */ +export type TopFirstTxsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TopFirstTxsMaxFields = { + __typename?: 'top_first_txs_max_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type TopFirstTxsMinFields = { + __typename?: 'top_first_txs_min_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "top_first_txs". */ +export type TopFirstTxsOrderBy = { + count?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "top_first_txs" */ +export enum TopFirstTxsSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Type = 'type' +} + +/** aggregate stddev on columns */ +export type TopFirstTxsStddevFields = { + __typename?: 'top_first_txs_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TopFirstTxsStddevPopFields = { + __typename?: 'top_first_txs_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TopFirstTxsStddevSampFields = { + __typename?: 'top_first_txs_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type TopFirstTxsSumFields = { + __typename?: 'top_first_txs_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TopFirstTxsVarPopFields = { + __typename?: 'top_first_txs_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TopFirstTxsVarSampFields = { + __typename?: 'top_first_txs_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type TopFirstTxsVarianceFields = { + __typename?: 'top_first_txs_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "top_leaders" */ +export type TopLeaders = { + __typename?: 'top_leaders'; + count?: Maybe; + neuron?: Maybe; +}; + +/** Boolean expression to filter rows from the table "top_leaders". All fields are combined with a logical 'AND'. */ +export type TopLeadersBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + neuron?: InputMaybe; +}; + +/** Ordering options when selecting data from "top_leaders". */ +export type TopLeadersOrderBy = { + count?: InputMaybe; + neuron?: InputMaybe; +}; + +/** select columns of table "top_leaders" */ +export enum TopLeadersSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Neuron = 'neuron' +} + +/** columns and relationships of "top_txs" */ +export type TopTxs = { + __typename?: 'top_txs'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregated selection of "top_txs" */ +export type TopTxsAggregate = { + __typename?: 'top_txs_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "top_txs" */ +export type TopTxsAggregateFields = { + __typename?: 'top_txs_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "top_txs" */ +export type TopTxsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TopTxsAvgFields = { + __typename?: 'top_txs_avg_fields'; + count?: Maybe; +}; + +/** Boolean expression to filter rows from the table "top_txs". All fields are combined with a logical 'AND'. */ +export type TopTxsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + type?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TopTxsMaxFields = { + __typename?: 'top_txs_max_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** aggregate min on columns */ +export type TopTxsMinFields = { + __typename?: 'top_txs_min_fields'; + count?: Maybe; + type?: Maybe; +}; + +/** Ordering options when selecting data from "top_txs". */ +export type TopTxsOrderBy = { + count?: InputMaybe; + type?: InputMaybe; +}; + +/** select columns of table "top_txs" */ +export enum TopTxsSelectColumn { + /** column name */ + Count = 'count', + /** column name */ + Type = 'type' +} + +/** aggregate stddev on columns */ +export type TopTxsStddevFields = { + __typename?: 'top_txs_stddev_fields'; + count?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TopTxsStddevPopFields = { + __typename?: 'top_txs_stddev_pop_fields'; + count?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TopTxsStddevSampFields = { + __typename?: 'top_txs_stddev_samp_fields'; + count?: Maybe; +}; + +/** aggregate sum on columns */ +export type TopTxsSumFields = { + __typename?: 'top_txs_sum_fields'; + count?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TopTxsVarPopFields = { + __typename?: 'top_txs_var_pop_fields'; + count?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TopTxsVarSampFields = { + __typename?: 'top_txs_var_samp_fields'; + count?: Maybe; +}; + +/** aggregate variance on columns */ +export type TopTxsVarianceFields = { + __typename?: 'top_txs_variance_fields'; + count?: Maybe; +}; + +/** columns and relationships of "transaction" */ +export type Transaction = { + __typename?: 'transaction'; + /** An object relationship */ + block: Block; + /** fetch data from the table: "cyberlinks" */ + cyberlinks: Array; + /** An aggregate relationship */ + cyberlinks_aggregate: CyberlinksAggregate; + fee: Scalars['jsonb']['output']; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash: Scalars['String']['output']; + height: Scalars['bigint']['output']; + /** An array relationship */ + investmints: Array; + /** An aggregate relationship */ + investmints_aggregate: InvestmintsAggregate; + logs?: Maybe; + memo?: Maybe; + messages: Scalars['jsonb']['output']; + /** An array relationship */ + messagesByTransactionHash: Array; + /** An aggregate relationship */ + messagesByTransactionHash_aggregate: MessageAggregate; + /** An array relationship */ + particles: Array; + /** An aggregate relationship */ + particles_aggregate: ParticlesAggregate; + raw_log?: Maybe; + /** An array relationship */ + routes: Array; + /** An aggregate relationship */ + routes_aggregate: RoutesAggregate; + signatures: Scalars['_text']['output']; + signer_infos: Scalars['jsonb']['output']; + success: Scalars['Boolean']['output']; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionCyberlinksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionCyberlinksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionFeeArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionInvestmintsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionInvestmintsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionLogsArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesArgs = { + path?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesByTransactionHashArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionMessagesByTransactionHashAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionParticlesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionParticlesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionRoutesArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionRoutesAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "transaction" */ +export type TransactionSignerInfosArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "transaction" */ +export type TransactionAggregate = { + __typename?: 'transaction_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "transaction" */ +export type TransactionAggregateFields = { + __typename?: 'transaction_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "transaction" */ +export type TransactionAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** order by aggregate values of table "transaction" */ +export type TransactionAggregateOrderBy = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TransactionAvgFields = { + __typename?: 'transaction_avg_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by avg() on columns of table "transaction" */ +export type TransactionAvgOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ +export type TransactionBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + cyberlinks?: InputMaybe; + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + messagesByTransactionHash?: InputMaybe; + particles?: InputMaybe; + raw_log?: InputMaybe; + routes?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + success?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TransactionMaxFields = { + __typename?: 'transaction_max_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + raw_log?: Maybe; +}; + +/** order by max() on columns of table "transaction" */ +export type TransactionMaxOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + memo?: InputMaybe; + raw_log?: InputMaybe; +}; + +/** aggregate min on columns */ +export type TransactionMinFields = { + __typename?: 'transaction_min_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + hash?: Maybe; + height?: Maybe; + memo?: Maybe; + raw_log?: Maybe; +}; + +/** order by min() on columns of table "transaction" */ +export type TransactionMinOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + memo?: InputMaybe; + raw_log?: InputMaybe; +}; + +/** Ordering options when selecting data from "transaction". */ +export type TransactionOrderBy = { + block?: InputMaybe; + cyberlinks_aggregate?: InputMaybe; + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints_aggregate?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + messagesByTransactionHash_aggregate?: InputMaybe; + particles_aggregate?: InputMaybe; + raw_log?: InputMaybe; + routes_aggregate?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + success?: InputMaybe; +}; + +/** select columns of table "transaction" */ +export enum TransactionSelectColumn { + /** column name */ + Fee = 'fee', + /** column name */ + GasUsed = 'gas_used', + /** column name */ + GasWanted = 'gas_wanted', + /** column name */ + Hash = 'hash', + /** column name */ + Height = 'height', + /** column name */ + Logs = 'logs', + /** column name */ + Memo = 'memo', + /** column name */ + Messages = 'messages', + /** column name */ + RawLog = 'raw_log', + /** column name */ + Signatures = 'signatures', + /** column name */ + SignerInfos = 'signer_infos', + /** column name */ + Success = 'success' +} + +/** aggregate stddev on columns */ +export type TransactionStddevFields = { + __typename?: 'transaction_stddev_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by stddev() on columns of table "transaction" */ +export type TransactionStddevOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type TransactionStddevPopFields = { + __typename?: 'transaction_stddev_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by stddev_pop() on columns of table "transaction" */ +export type TransactionStddevPopOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type TransactionStddevSampFields = { + __typename?: 'transaction_stddev_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by stddev_samp() on columns of table "transaction" */ +export type TransactionStddevSampOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type TransactionSumFields = { + __typename?: 'transaction_sum_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by sum() on columns of table "transaction" */ +export type TransactionSumOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate var_pop on columns */ +export type TransactionVarPopFields = { + __typename?: 'transaction_var_pop_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by var_pop() on columns of table "transaction" */ +export type TransactionVarPopOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type TransactionVarSampFields = { + __typename?: 'transaction_var_samp_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by var_samp() on columns of table "transaction" */ +export type TransactionVarSampOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type TransactionVarianceFields = { + __typename?: 'transaction_variance_fields'; + gas_used?: Maybe; + gas_wanted?: Maybe; + height?: Maybe; +}; + +/** order by variance() on columns of table "transaction" */ +export type TransactionVarianceOrderBy = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; +}; + +/** columns and relationships of "tweets_stats" */ +export type TweetsStats = { + __typename?: 'tweets_stats'; + date?: Maybe; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregated selection of "tweets_stats" */ +export type TweetsStatsAggregate = { + __typename?: 'tweets_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "tweets_stats" */ +export type TweetsStatsAggregateFields = { + __typename?: 'tweets_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "tweets_stats" */ +export type TweetsStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TweetsStatsAvgFields = { + __typename?: 'tweets_stats_avg_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** Boolean expression to filter rows from the table "tweets_stats". All fields are combined with a logical 'AND'. */ +export type TweetsStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + tweets?: InputMaybe; + tweets_per_day?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TweetsStatsMaxFields = { + __typename?: 'tweets_stats_max_fields'; + date?: Maybe; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate min on columns */ +export type TweetsStatsMinFields = { + __typename?: 'tweets_stats_min_fields'; + date?: Maybe; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** Ordering options when selecting data from "tweets_stats". */ +export type TweetsStatsOrderBy = { + date?: InputMaybe; + tweets?: InputMaybe; + tweets_per_day?: InputMaybe; +}; + +/** select columns of table "tweets_stats" */ +export enum TweetsStatsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + Tweets = 'tweets', + /** column name */ + TweetsPerDay = 'tweets_per_day' +} + +/** aggregate stddev on columns */ +export type TweetsStatsStddevFields = { + __typename?: 'tweets_stats_stddev_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TweetsStatsStddevPopFields = { + __typename?: 'tweets_stats_stddev_pop_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TweetsStatsStddevSampFields = { + __typename?: 'tweets_stats_stddev_samp_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate sum on columns */ +export type TweetsStatsSumFields = { + __typename?: 'tweets_stats_sum_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TweetsStatsVarPopFields = { + __typename?: 'tweets_stats_var_pop_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TweetsStatsVarSampFields = { + __typename?: 'tweets_stats_var_samp_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** aggregate variance on columns */ +export type TweetsStatsVarianceFields = { + __typename?: 'tweets_stats_variance_fields'; + tweets?: Maybe; + tweets_per_day?: Maybe; +}; + +/** columns and relationships of "txs_ranked" */ +export type TxsRanked = { + __typename?: 'txs_ranked'; + height?: Maybe; + neuron?: Maybe; + rank?: Maybe; + type?: Maybe; + week?: Maybe; +}; + +/** aggregated selection of "txs_ranked" */ +export type TxsRankedAggregate = { + __typename?: 'txs_ranked_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "txs_ranked" */ +export type TxsRankedAggregateFields = { + __typename?: 'txs_ranked_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "txs_ranked" */ +export type TxsRankedAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TxsRankedAvgFields = { + __typename?: 'txs_ranked_avg_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** Boolean expression to filter rows from the table "txs_ranked". All fields are combined with a logical 'AND'. */ +export type TxsRankedBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + height?: InputMaybe; + neuron?: InputMaybe; + rank?: InputMaybe; + type?: InputMaybe; + week?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TxsRankedMaxFields = { + __typename?: 'txs_ranked_max_fields'; + height?: Maybe; + neuron?: Maybe; + rank?: Maybe; + type?: Maybe; + week?: Maybe; +}; + +/** aggregate min on columns */ +export type TxsRankedMinFields = { + __typename?: 'txs_ranked_min_fields'; + height?: Maybe; + neuron?: Maybe; + rank?: Maybe; + type?: Maybe; + week?: Maybe; +}; + +/** Ordering options when selecting data from "txs_ranked". */ +export type TxsRankedOrderBy = { + height?: InputMaybe; + neuron?: InputMaybe; + rank?: InputMaybe; + type?: InputMaybe; + week?: InputMaybe; +}; + +/** select columns of table "txs_ranked" */ +export enum TxsRankedSelectColumn { + /** column name */ + Height = 'height', + /** column name */ + Neuron = 'neuron', + /** column name */ + Rank = 'rank', + /** column name */ + Type = 'type', + /** column name */ + Week = 'week' +} + +/** aggregate stddev on columns */ +export type TxsRankedStddevFields = { + __typename?: 'txs_ranked_stddev_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TxsRankedStddevPopFields = { + __typename?: 'txs_ranked_stddev_pop_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TxsRankedStddevSampFields = { + __typename?: 'txs_ranked_stddev_samp_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate sum on columns */ +export type TxsRankedSumFields = { + __typename?: 'txs_ranked_sum_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TxsRankedVarPopFields = { + __typename?: 'txs_ranked_var_pop_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TxsRankedVarSampFields = { + __typename?: 'txs_ranked_var_samp_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate variance on columns */ +export type TxsRankedVarianceFields = { + __typename?: 'txs_ranked_variance_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** columns and relationships of "txs_stats" */ +export type TxsStats = { + __typename?: 'txs_stats'; + date?: Maybe; + height?: Maybe; + msg_type?: Maybe; + pubkey?: Maybe; + rank?: Maybe; +}; + + +/** columns and relationships of "txs_stats" */ +export type TxsStatsPubkeyArgs = { + path?: InputMaybe; +}; + +/** aggregated selection of "txs_stats" */ +export type TxsStatsAggregate = { + __typename?: 'txs_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "txs_stats" */ +export type TxsStatsAggregateFields = { + __typename?: 'txs_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "txs_stats" */ +export type TxsStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type TxsStatsAvgFields = { + __typename?: 'txs_stats_avg_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** Boolean expression to filter rows from the table "txs_stats". All fields are combined with a logical 'AND'. */ +export type TxsStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + height?: InputMaybe; + msg_type?: InputMaybe; + pubkey?: InputMaybe; + rank?: InputMaybe; +}; + +/** aggregate max on columns */ +export type TxsStatsMaxFields = { + __typename?: 'txs_stats_max_fields'; + date?: Maybe; + height?: Maybe; + msg_type?: Maybe; + rank?: Maybe; +}; + +/** aggregate min on columns */ +export type TxsStatsMinFields = { + __typename?: 'txs_stats_min_fields'; + date?: Maybe; + height?: Maybe; + msg_type?: Maybe; + rank?: Maybe; +}; + +/** Ordering options when selecting data from "txs_stats". */ +export type TxsStatsOrderBy = { + date?: InputMaybe; + height?: InputMaybe; + msg_type?: InputMaybe; + pubkey?: InputMaybe; + rank?: InputMaybe; +}; + +/** select columns of table "txs_stats" */ +export enum TxsStatsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + Height = 'height', + /** column name */ + MsgType = 'msg_type', + /** column name */ + Pubkey = 'pubkey', + /** column name */ + Rank = 'rank' +} + +/** aggregate stddev on columns */ +export type TxsStatsStddevFields = { + __typename?: 'txs_stats_stddev_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type TxsStatsStddevPopFields = { + __typename?: 'txs_stats_stddev_pop_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type TxsStatsStddevSampFields = { + __typename?: 'txs_stats_stddev_samp_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate sum on columns */ +export type TxsStatsSumFields = { + __typename?: 'txs_stats_sum_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type TxsStatsVarPopFields = { + __typename?: 'txs_stats_var_pop_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type TxsStatsVarSampFields = { + __typename?: 'txs_stats_var_samp_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** aggregate variance on columns */ +export type TxsStatsVarianceFields = { + __typename?: 'txs_stats_variance_fields'; + height?: Maybe; + rank?: Maybe; +}; + +/** columns and relationships of "uptime" */ +export type Uptime = { + __typename?: 'uptime'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregated selection of "uptime" */ +export type UptimeAggregate = { + __typename?: 'uptime_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "uptime" */ +export type UptimeAggregateFields = { + __typename?: 'uptime_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "uptime" */ +export type UptimeAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type UptimeAvgFields = { + __typename?: 'uptime_avg_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** Boolean expression to filter rows from the table "uptime". All fields are combined with a logical 'AND'. */ +export type UptimeBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; + uptime?: InputMaybe; +}; + +/** aggregate max on columns */ +export type UptimeMaxFields = { + __typename?: 'uptime_max_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate min on columns */ +export type UptimeMinFields = { + __typename?: 'uptime_min_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** Ordering options when selecting data from "uptime". */ +export type UptimeOrderBy = { + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; + uptime?: InputMaybe; +}; + +/** select columns of table "uptime" */ +export enum UptimeSelectColumn { + /** column name */ + ConsensusAddress = 'consensus_address', + /** column name */ + ConsensusPubkey = 'consensus_pubkey', + /** column name */ + PreCommits = 'pre_commits', + /** column name */ + Uptime = 'uptime' +} + +/** aggregate stddev on columns */ +export type UptimeStddevFields = { + __typename?: 'uptime_stddev_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type UptimeStddevPopFields = { + __typename?: 'uptime_stddev_pop_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type UptimeStddevSampFields = { + __typename?: 'uptime_stddev_samp_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate sum on columns */ +export type UptimeSumFields = { + __typename?: 'uptime_sum_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type UptimeVarPopFields = { + __typename?: 'uptime_var_pop_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type UptimeVarSampFields = { + __typename?: 'uptime_var_samp_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** aggregate variance on columns */ +export type UptimeVarianceFields = { + __typename?: 'uptime_variance_fields'; + pre_commits?: Maybe; + uptime?: Maybe; +}; + +/** columns and relationships of "validator" */ +export type Validator = { + __typename?: 'validator'; + /** An array relationship */ + blocks: Array; + /** An aggregate relationship */ + blocks_aggregate: BlockAggregate; + consensus_address: Scalars['String']['output']; + consensus_pubkey: Scalars['String']['output']; + /** An array relationship */ + pre_commits: Array; + /** An aggregate relationship */ + pre_commits_aggregate: PreCommitAggregate; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorBlocksArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorBlocksAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorPreCommitsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** columns and relationships of "validator" */ +export type ValidatorPreCommitsAggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + +/** aggregated selection of "validator" */ +export type ValidatorAggregate = { + __typename?: 'validator_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "validator" */ +export type ValidatorAggregateFields = { + __typename?: 'validator_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "validator" */ +export type ValidatorAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "validator". All fields are combined with a logical 'AND'. */ +export type ValidatorBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + blocks?: InputMaybe; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; +}; + +/** aggregate max on columns */ +export type ValidatorMaxFields = { + __typename?: 'validator_max_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; +}; + +/** aggregate min on columns */ +export type ValidatorMinFields = { + __typename?: 'validator_min_fields'; + consensus_address?: Maybe; + consensus_pubkey?: Maybe; +}; + +/** Ordering options when selecting data from "validator". */ +export type ValidatorOrderBy = { + blocks_aggregate?: InputMaybe; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits_aggregate?: InputMaybe; +}; + +/** select columns of table "validator" */ +export enum ValidatorSelectColumn { + /** column name */ + ConsensusAddress = 'consensus_address', + /** column name */ + ConsensusPubkey = 'consensus_pubkey' +} + +/** columns and relationships of "volts_demand" */ +export type VoltsDemand = { + __typename?: 'volts_demand'; + cyberlinks_per_day?: Maybe; + date?: Maybe; + volts?: Maybe; +}; + +/** aggregated selection of "volts_demand" */ +export type VoltsDemandAggregate = { + __typename?: 'volts_demand_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "volts_demand" */ +export type VoltsDemandAggregateFields = { + __typename?: 'volts_demand_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "volts_demand" */ +export type VoltsDemandAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type VoltsDemandAvgFields = { + __typename?: 'volts_demand_avg_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** Boolean expression to filter rows from the table "volts_demand". All fields are combined with a logical 'AND'. */ +export type VoltsDemandBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; + volts?: InputMaybe; +}; + +/** aggregate max on columns */ +export type VoltsDemandMaxFields = { + __typename?: 'volts_demand_max_fields'; + cyberlinks_per_day?: Maybe; + date?: Maybe; + volts?: Maybe; +}; + +/** aggregate min on columns */ +export type VoltsDemandMinFields = { + __typename?: 'volts_demand_min_fields'; + cyberlinks_per_day?: Maybe; + date?: Maybe; + volts?: Maybe; +}; + +/** Ordering options when selecting data from "volts_demand". */ +export type VoltsDemandOrderBy = { + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; + volts?: InputMaybe; +}; + +/** select columns of table "volts_demand" */ +export enum VoltsDemandSelectColumn { + /** column name */ + CyberlinksPerDay = 'cyberlinks_per_day', + /** column name */ + Date = 'date', + /** column name */ + Volts = 'volts' +} + +/** aggregate stddev on columns */ +export type VoltsDemandStddevFields = { + __typename?: 'volts_demand_stddev_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type VoltsDemandStddevPopFields = { + __typename?: 'volts_demand_stddev_pop_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type VoltsDemandStddevSampFields = { + __typename?: 'volts_demand_stddev_samp_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate sum on columns */ +export type VoltsDemandSumFields = { + __typename?: 'volts_demand_sum_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type VoltsDemandVarPopFields = { + __typename?: 'volts_demand_var_pop_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type VoltsDemandVarSampFields = { + __typename?: 'volts_demand_var_samp_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** aggregate variance on columns */ +export type VoltsDemandVarianceFields = { + __typename?: 'volts_demand_variance_fields'; + cyberlinks_per_day?: Maybe; + volts?: Maybe; +}; + +/** columns and relationships of "volts_stats" */ +export type VoltsStats = { + __typename?: 'volts_stats'; + date?: Maybe; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregated selection of "volts_stats" */ +export type VoltsStatsAggregate = { + __typename?: 'volts_stats_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "volts_stats" */ +export type VoltsStatsAggregateFields = { + __typename?: 'volts_stats_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "volts_stats" */ +export type VoltsStatsAggregateFieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type VoltsStatsAvgFields = { + __typename?: 'volts_stats_avg_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** Boolean expression to filter rows from the table "volts_stats". All fields are combined with a logical 'AND'. */ +export type VoltsStatsBoolExp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + volts?: InputMaybe; + volts_per_day?: InputMaybe; +}; + +/** aggregate max on columns */ +export type VoltsStatsMaxFields = { + __typename?: 'volts_stats_max_fields'; + date?: Maybe; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate min on columns */ +export type VoltsStatsMinFields = { + __typename?: 'volts_stats_min_fields'; + date?: Maybe; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** Ordering options when selecting data from "volts_stats". */ +export type VoltsStatsOrderBy = { + date?: InputMaybe; + volts?: InputMaybe; + volts_per_day?: InputMaybe; +}; + +/** select columns of table "volts_stats" */ +export enum VoltsStatsSelectColumn { + /** column name */ + Date = 'date', + /** column name */ + Volts = 'volts', + /** column name */ + VoltsPerDay = 'volts_per_day' +} + +/** aggregate stddev on columns */ +export type VoltsStatsStddevFields = { + __typename?: 'volts_stats_stddev_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type VoltsStatsStddevPopFields = { + __typename?: 'volts_stats_stddev_pop_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type VoltsStatsStddevSampFields = { + __typename?: 'volts_stats_stddev_samp_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate sum on columns */ +export type VoltsStatsSumFields = { + __typename?: 'volts_stats_sum_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type VoltsStatsVarPopFields = { + __typename?: 'volts_stats_var_pop_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type VoltsStatsVarSampFields = { + __typename?: 'volts_stats_var_samp_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +/** aggregate variance on columns */ +export type VoltsStatsVarianceFields = { + __typename?: 'volts_stats_variance_fields'; + volts?: Maybe; + volts_per_day?: Maybe; +}; + +export type MessagesByAddressQueryVariables = Exact<{ + address?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; +}>; + + +export type MessagesByAddressQuery = { __typename?: 'query_root', messages_by_address: Array<{ __typename?: 'message', transaction_hash: string, value: any, type: string, transaction: { __typename?: 'transaction', success: boolean, block: { __typename?: 'block', timestamp: any } } }> }; + + +export const MessagesByAddressDocument = gql` + query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint) { + messages_by_address( + args: {addresses: $address, limit: $limit, offset: $offset, types: "{}"} + order_by: {transaction: {block: {height: desc}}} + ) { + transaction_hash + value + transaction { + success + block { + timestamp + } + } + type + } +} + `; + +/** + * __useMessagesByAddressQuery__ + * + * To run a query within a React component, call `useMessagesByAddressQuery` and pass it any options that fit your needs. + * When your component renders, `useMessagesByAddressQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useMessagesByAddressQuery({ + * variables: { + * address: // value for 'address' + * limit: // value for 'limit' + * offset: // value for 'offset' + * }, + * }); + */ +export function useMessagesByAddressQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(MessagesByAddressDocument, options); + } +export function useMessagesByAddressLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(MessagesByAddressDocument, options); + } +export function useMessagesByAddressSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(MessagesByAddressDocument, options); + } +export type MessagesByAddressQueryHookResult = ReturnType; +export type MessagesByAddressLazyQueryHookResult = ReturnType; +export type MessagesByAddressSuspenseQueryHookResult = ReturnType; +export type MessagesByAddressQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js b/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts similarity index 54% rename from src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js rename to src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts index 3de7acef4..6b9d2a524 100644 --- a/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.js +++ b/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts @@ -1,47 +1,39 @@ import { request } from 'graphql-request'; -import { gql } from '@apollo/client'; - import { useInfiniteQuery } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { INDEX_HTTPS } from 'src/constants/config'; - -const messagesByAddress = gql(` - query MyQuery($address: _text, $limit: bigint, $offset: bigint) { - messages_by_address(args: {addresses: $address, limit: $limit, offset: $offset, types: "{}"}, - order_by: {transaction: {block: {height: desc}}}) { - transaction_hash - value - transaction { - success - block { - timestamp - } - } - type - } -} -`); +import { + MessagesByAddressQuery, + MessagesByAddressQueryVariables, + MessagesByAddressDocument, +} from 'src/generated/graphql'; const limit = '1000'; -function useGetTsxByAddress(address) { +function useGetTsxByAddress(address: string) { const { status, data, error, isFetching, fetchNextPage, hasNextPage } = useInfiniteQuery( ['messagesByAddressGql', address], async ({ pageParam = 0 }) => { - const res = await request(INDEX_HTTPS, messagesByAddress, { - address: `{${address}}`, - limit, - offset: new BigNumber(limit).multipliedBy(pageParam).toString(), - }); - return { data: res.messages_by_address, page: pageParam }; + // Use the generated variable type + const variables: MessagesByAddressQueryVariables = { + address: `{${address}}`, // Ensure this format matches expected input + limit: parseInt(limit, 10), + offset: new BigNumber(limit).multipliedBy(pageParam).toNumber(), + }; + // Directly typing the response improves type safety + const response = await request( + INDEX_HTTPS, + MessagesByAddressDocument, + variables + ); + return { data: response.messages_by_address, page: pageParam }; }, { getNextPageParam: (lastPage) => { if (lastPage.data && lastPage.data.length === 0) { return undefined; } - const nextPage = lastPage.page !== undefined ? lastPage.page + 1 : 0; return nextPage; }, diff --git a/src/services/graphql/queries/messagesByAddress.graphql b/src/services/graphql/queries/messagesByAddress.graphql new file mode 100644 index 000000000..68ea14ba8 --- /dev/null +++ b/src/services/graphql/queries/messagesByAddress.graphql @@ -0,0 +1,16 @@ +query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint) { + messages_by_address( + args: { addresses: $address, limit: $limit, offset: $offset, types: "{}" } + order_by: { transaction: { block: { height: desc } } } + ) { + transaction_hash + value + transaction { + success + block { + timestamp + } + } + type + } +} diff --git a/webpack.config.common.js b/webpack.config.common.js index 9892fb2de..deacf5d6a 100644 --- a/webpack.config.common.js +++ b/webpack.config.common.js @@ -196,6 +196,11 @@ const config = { test: /\.cozo$/, use: 'raw-loader', }, + { + test: /\.(graphql|gql)$/, + exclude: /node_modules/, + use: 'graphql-tag/loader', + }, ], }, }; diff --git a/yarn.lock b/yarn.lock index 0aa625e69..fb1e1e023 100644 --- a/yarn.lock +++ b/yarn.lock @@ -126,6 +126,36 @@ tslib "^2.3.0" zen-observable-ts "^1.2.5" +"@ardatan/relay-compiler@12.0.0": + version "12.0.0" + resolved "https://registry.yarnpkg.com/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz#2e4cca43088e807adc63450e8cab037020e91106" + integrity sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q== + dependencies: + "@babel/core" "^7.14.0" + "@babel/generator" "^7.14.0" + "@babel/parser" "^7.14.0" + "@babel/runtime" "^7.0.0" + "@babel/traverse" "^7.14.0" + "@babel/types" "^7.0.0" + babel-preset-fbjs "^3.4.0" + chalk "^4.0.0" + fb-watchman "^2.0.0" + fbjs "^3.0.0" + glob "^7.1.1" + immutable "~3.7.6" + invariant "^2.2.4" + nullthrows "^1.1.1" + relay-runtime "12.0.0" + signedsource "^1.0.0" + yargs "^15.3.1" + +"@ardatan/sync-fetch@^0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@ardatan/sync-fetch/-/sync-fetch-0.0.1.tgz#3385d3feedceb60a896518a1db857ec1e945348f" + integrity sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA== + dependencies: + node-fetch "^2.6.1" + "@assemblyscript/loader@^0.9.4": version "0.9.4" resolved "https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.9.4.tgz#a483c54c1253656bb33babd464e3154a173e1577" @@ -174,6 +204,14 @@ dependencies: "@babel/highlight" "^7.22.5" +"@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.1", "@babel/code-frame@^7.24.2": + version "7.24.2" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.2.tgz#718b4b19841809a58b29b68cde80bc5e1aa6d9ae" + integrity sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ== + dependencies: + "@babel/highlight" "^7.24.2" + picocolors "^1.0.0" + "@babel/compat-data@^7.17.7", "@babel/compat-data@^7.20.1", "@babel/compat-data@^7.20.5": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.21.0.tgz#c241dc454e5b5917e40d37e525e2f4530c399298" @@ -189,26 +227,10 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.9.tgz#71cdb00a1ce3a329ce4cbec3a44f9fef35669730" integrity sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ== -"@babel/core@7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.21.0.tgz#1341aefdcc14ccc7553fcc688dd8986a2daffc13" - integrity sha512-PuxUbxcW6ZYe656yL3EAhpy7qXKq0DmYsrJLpbB8XrsCP9Nm+XCg9XFMb5vIDliPD7+U/+M+QJlH17XOcB7eXA== - dependencies: - "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.21.0" - "@babel/helper-compilation-targets" "^7.20.7" - "@babel/helper-module-transforms" "^7.21.0" - "@babel/helpers" "^7.21.0" - "@babel/parser" "^7.21.0" - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.0" - "@babel/types" "^7.21.0" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.2" - semver "^6.3.0" +"@babel/compat-data@^7.23.5": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.1.tgz#31c1f66435f2a9c329bb5716a6d6186c516c3742" + integrity sha512-Pc65opHDliVpRHuKfzI+gSA4zcgr65O4cl64fFJIWEEh8JoHIHh0Oez1Eo8Arz8zq/JhgKodQaxEwUPRtZylVA== "@babel/core@^7.0.0-0", "@babel/core@^7.1.0", "@babel/core@^7.1.6", "@babel/core@^7.11.6", "@babel/core@^7.12.17", "@babel/core@^7.12.3", "@babel/core@^7.13.16", "@babel/core@^7.7.5": version "7.21.5" @@ -231,6 +253,27 @@ json5 "^2.2.2" semver "^6.3.0" +"@babel/core@^7.14.0", "@babel/core@^7.24.3": + version "7.24.3" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.3.tgz#568864247ea10fbd4eff04dda1e05f9e2ea985c3" + integrity sha512-5FcvN1JHw2sHJChotgx8Ek0lyuh4kCKelgMTTqhYJJtloNvUfpAFMeNQUtdlIaktwrSV9LtCdqwk48wL2wBacQ== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.24.2" + "@babel/generator" "^7.24.1" + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helpers" "^7.24.1" + "@babel/parser" "^7.24.1" + "@babel/template" "^7.24.0" + "@babel/traverse" "^7.24.1" + "@babel/types" "^7.24.0" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + "@babel/core@^7.22.9": version "7.22.9" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.9.tgz#bd96492c68822198f33e8a256061da3cf391f58f" @@ -271,14 +314,14 @@ "@jridgewell/trace-mapping" "^0.3.17" jsesc "^2.5.1" -"@babel/generator@^7.21.0": - version "7.21.3" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.21.3.tgz#232359d0874b392df04045d72ce2fd9bb5045fce" - integrity sha512-QS3iR1GYC/YGUnW7IdggFeN5c1poPUurnGttOV/bZgPGV+izC/D8HnD6DLwod0fsatNyVn1G3EVWMYIF0nHbeA== +"@babel/generator@^7.14.0", "@babel/generator@^7.18.13", "@babel/generator@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.1.tgz#e67e06f68568a4ebf194d1c6014235344f0476d0" + integrity sha512-DfCRfZsBcrPEHUfuBMgbJ1Ut01Y/itOs+hY2nFLgqsqXd52/iSiVq5TITtUasIUgm+IIKdY2/1I7auiQOEeC9A== dependencies: - "@babel/types" "^7.21.3" - "@jridgewell/gen-mapping" "^0.3.2" - "@jridgewell/trace-mapping" "^0.3.17" + "@babel/types" "^7.24.0" + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" "@babel/generator@^7.22.9": @@ -363,6 +406,17 @@ lru-cache "^5.1.1" semver "^6.3.1" +"@babel/helper-compilation-targets@^7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991" + integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ== + dependencies: + "@babel/compat-data" "^7.23.5" + "@babel/helper-validator-option" "^7.23.5" + browserslist "^4.22.2" + lru-cache "^5.1.1" + semver "^6.3.1" + "@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.21.0.tgz#64f49ecb0020532f19b1d014b03bccaa1ab85fb9" @@ -511,6 +565,13 @@ dependencies: "@babel/types" "^7.22.5" +"@babel/helper-member-expression-to-functions@^7.23.0": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz#9263e88cc5e41d39ec18c9a3e0eced59a3e7d366" + integrity sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA== + dependencies: + "@babel/types" "^7.23.0" + "@babel/helper-module-imports@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" @@ -525,6 +586,13 @@ dependencies: "@babel/types" "^7.21.4" +"@babel/helper-module-imports@^7.22.15": + version "7.24.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz#6ac476e6d168c7c23ff3ba3cf4f7841d46ac8128" + integrity sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg== + dependencies: + "@babel/types" "^7.24.0" + "@babel/helper-module-imports@^7.22.5": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz#1a8f4c9f4027d23f520bd76b364d44434a72660c" @@ -532,7 +600,7 @@ dependencies: "@babel/types" "^7.22.5" -"@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.20.11", "@babel/helper-module-transforms@^7.21.0", "@babel/helper-module-transforms@^7.21.2": +"@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.20.11", "@babel/helper-module-transforms@^7.21.2": version "7.21.2" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.21.2.tgz#160caafa4978ac8c00ac66636cb0fa37b024e2d2" integrity sha512-79yj2AR4U/Oqq/WOV7Lx6hUjau1Zfo4cI+JLAVYeMV5XIlbOhmjEk5ulbTc9fMpmlojzZHkUUxAiK+UKn+hNQQ== @@ -571,6 +639,17 @@ "@babel/helper-split-export-declaration" "^7.22.6" "@babel/helper-validator-identifier" "^7.22.5" +"@babel/helper-module-transforms@^7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz#d7d12c3c5d30af5b3c0fcab2a6d5217773e2d0f1" + integrity sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-simple-access" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/helper-validator-identifier" "^7.22.20" + "@babel/helper-optimise-call-expression@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" @@ -600,6 +679,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295" integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== +"@babel/helper-plugin-utils@^7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz#945681931a52f15ce879fd5b86ce2dae6d3d7f2a" + integrity sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w== + "@babel/helper-remap-async-to-generator@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" @@ -640,6 +724,15 @@ "@babel/helper-member-expression-to-functions" "^7.22.5" "@babel/helper-optimise-call-expression" "^7.22.5" +"@babel/helper-replace-supers@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.1.tgz#7085bd19d4a0b7ed8f405c1ed73ccb70f323abc1" + integrity sha512-QCR1UqC9BzG5vZl8BMicmZ28RuUBnHhAMddD8yHFHDRH9lLTZ9uUPehX8ctVPT8l0TKblJidqcgUUKGVrePleQ== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-member-expression-to-functions" "^7.23.0" + "@babel/helper-optimise-call-expression" "^7.22.5" + "@babel/helper-simple-access@^7.20.2": version "7.20.2" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9" @@ -704,6 +797,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f" integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw== +"@babel/helper-string-parser@^7.23.4": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz#f99c36d3593db9540705d0739a1f10b5e20c696e" + integrity sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ== + "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": version "7.19.1" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" @@ -729,6 +827,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz#de52000a15a177413c8234fa3a8af4ee8102d0ac" integrity sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw== +"@babel/helper-validator-option@^7.23.5": + version "7.23.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" + integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== + "@babel/helper-wrap-function@^7.18.9": version "7.20.5" resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz#75e2d84d499a0ab3b31c33bcfe59d6b8a45f62e3" @@ -748,15 +851,6 @@ "@babel/template" "^7.22.5" "@babel/types" "^7.22.5" -"@babel/helpers@^7.21.0": - version "7.21.0" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.21.0.tgz#9dd184fb5599862037917cdc9eecb84577dc4e7e" - integrity sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA== - dependencies: - "@babel/template" "^7.20.7" - "@babel/traverse" "^7.21.0" - "@babel/types" "^7.21.0" - "@babel/helpers@^7.21.5": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.21.5.tgz#5bac66e084d7a4d2d9696bdf0175a93f7fb63c08" @@ -775,6 +869,15 @@ "@babel/traverse" "^7.22.6" "@babel/types" "^7.22.5" +"@babel/helpers@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.1.tgz#183e44714b9eba36c3038e442516587b1e0a1a94" + integrity sha512-BpU09QqEe6ZCHuIHFphEFgvNSrubve1FtyMton26ekZ85gRGi6LrTF7zArARp2YvyFxloeiRmtSCq5sjh1WqIg== + dependencies: + "@babel/template" "^7.24.0" + "@babel/traverse" "^7.24.1" + "@babel/types" "^7.24.0" + "@babel/highlight@^7.10.4", "@babel/highlight@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" @@ -802,12 +905,27 @@ chalk "^2.0.0" js-tokens "^4.0.0" +"@babel/highlight@^7.24.2": + version "7.24.2" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.2.tgz#3f539503efc83d3c59080a10e6634306e0370d26" + integrity sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA== + dependencies: + "@babel/helper-validator-identifier" "^7.22.20" + chalk "^2.4.2" + js-tokens "^4.0.0" + picocolors "^1.0.0" + "@babel/parser@^7.1.0", "@babel/parser@^7.1.6", "@babel/parser@^7.13.16", "@babel/parser@^7.14.7", "@babel/parser@^7.21.5": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.5.tgz#821bb520118fd25b982eaf8d37421cf5c64a312b" integrity sha512-J+IxH2IsxV4HbnTrSWgMAQj0UEo61hDA4Ny8h8PCX0MLXiibqHbqIOVneqdocemSBc22VpBKxt4J6FQzy9HarQ== -"@babel/parser@^7.20.7", "@babel/parser@^7.21.0", "@babel/parser@^7.7.0": +"@babel/parser@^7.14.0", "@babel/parser@^7.16.8", "@babel/parser@^7.24.0", "@babel/parser@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.1.tgz#1e416d3627393fab1cb5b0f2f1796a100ae9133a" + integrity sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg== + +"@babel/parser@^7.20.7", "@babel/parser@^7.7.0": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.3.tgz#1d285d67a19162ff9daa358d4cb41d50c06220b3" integrity sha512-lobG0d7aOfQRXh8AyklEAgZGvA4FShxo6xQbUrrT/cNBPUdIDojlokwJsQyCC/eKia7ifqM0yP+2DRZ4WKw2RQ== @@ -864,7 +982,7 @@ "@babel/helper-remap-async-to-generator" "^7.18.9" "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-proposal-class-properties@7.18.6", "@babel/plugin-proposal-class-properties@^7.1.0", "@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.18.6": +"@babel/plugin-proposal-class-properties@7.18.6", "@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.1.0", "@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== @@ -1002,7 +1120,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": +"@babel/plugin-syntax-class-properties@^7.0.0", "@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== @@ -1030,6 +1148,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.24.1.tgz#875c25e3428d7896c87589765fc8b9d32f24bd8d" + integrity sha512-sxi2kLTI5DeW5vDtMUsk4mTPwvlUDbjOnoWayhynCwrw4QXRld4QEYwqzY8JmQXaJUtgUuCIurtSRH5sn4c7mA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-syntax-flow@^7.18.6": version "7.21.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.21.4.tgz#3e37fca4f06d93567c1cd9b75156422e90a67107" @@ -1079,6 +1204,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" +"@babel/plugin-syntax-jsx@^7.0.0", "@babel/plugin-syntax-jsx@^7.23.3": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz#3f6ca04b8c841811dbc3c5c5f837934e0d626c10" + integrity sha512-2eCtxZXf+kbkMIsXS4poTvT4Yu5rXiRa+9xGVT56raghjmBTKMpFNc9R4IDiB4emao9eO22Ox7CxuJG7BgExqA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-syntax-jsx@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" @@ -1121,7 +1253,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.10.4" -"@babel/plugin-syntax-object-rest-spread@^7.8.3": +"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== @@ -1171,6 +1303,13 @@ "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" +"@babel/plugin-transform-arrow-functions@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.1.tgz#2bf263617060c9cc45bcdbf492b8cc805082bf27" + integrity sha512-ngT/3NkRhsaep9ck9uj2Xhv9+xB1zShY3tM3g6om4xxCELwCDN4g4Aq5dRn48+0hasAql7s2hdBOysCfNpr4fw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-arrow-functions@^7.18.6": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.20.7.tgz#bea332b0e8b2dab3dafe55a163d8227531ab0551" @@ -1220,6 +1359,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/helper-remap-async-to-generator" "^7.22.5" +"@babel/plugin-transform-block-scoped-functions@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.1.tgz#1c94799e20fcd5c4d4589523bbc57b7692979380" + integrity sha512-TWWC18OShZutrv9C6mye1xwtam+uNi2bnTOCBUd5sZxyHOiWbU6ztSROofIMrK84uweEZC219POICK/sTYwfgg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-block-scoped-functions@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz#9187bf4ba302635b9d70d986ad70f038726216a8" @@ -1234,6 +1380,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-block-scoping@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.1.tgz#27af183d7f6dad890531256c7a45019df768ac1f" + integrity sha512-h71T2QQvDgM2SmT29UYU6ozjMlAt7s7CSs5Hvy8f8cf/GM/Z4a2zMfN+fjVGaieeCrXR3EdQl6C4gQG+OgmbKw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-block-scoping@^7.20.2", "@babel/plugin-transform-block-scoping@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz#e737b91037e5186ee16b76e7ae093358a5634f02" @@ -1265,6 +1418,20 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-class-static-block" "^7.14.5" +"@babel/plugin-transform-classes@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.1.tgz#5bc8fc160ed96378184bc10042af47f50884dcb1" + integrity sha512-ZTIe3W7UejJd3/3R4p7ScyyOoafetUShSf4kCqV0O7F/RiHxVj/wRaRnQlrGwflvcehNA8M42HkAiEDYZu2F1Q== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-replace-supers" "^7.24.1" + "@babel/helper-split-export-declaration" "^7.22.6" + globals "^11.1.0" + "@babel/plugin-transform-classes@^7.20.2", "@babel/plugin-transform-classes@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz#f469d0b07a4c5a7dbb21afad9e27e57b47031665" @@ -1295,6 +1462,14 @@ "@babel/helper-split-export-declaration" "^7.22.6" globals "^11.1.0" +"@babel/plugin-transform-computed-properties@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.1.tgz#bc7e787f8e021eccfb677af5f13c29a9934ed8a7" + integrity sha512-5pJGVIUfJpOS+pAqBQd+QMaTD2vCL/HcePooON6pDpHgRp4gNRmzyHTPIkXntwKsq3ayUFVfJaIKPw2pOkOcTw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/template" "^7.24.0" + "@babel/plugin-transform-computed-properties@^7.18.9": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.20.7.tgz#704cc2fd155d1c996551db8276d55b9d46e4d0aa" @@ -1319,6 +1494,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/template" "^7.22.5" +"@babel/plugin-transform-destructuring@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.1.tgz#b1e8243af4a0206841973786292b8c8dd8447345" + integrity sha512-ow8jciWqNxR3RYbSNVuF4U2Jx130nwnBnhRw6N6h1bOejNkABmcI5X5oz29K4alWX7vf1C+o6gtKXikzRKkVdw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-destructuring@^7.20.2", "@babel/plugin-transform-destructuring@^7.21.3": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz#73b46d0fd11cd6ef57dea8a381b1215f4959d401" @@ -1395,6 +1577,14 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" +"@babel/plugin-transform-flow-strip-types@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.24.1.tgz#fa8d0a146506ea195da1671d38eed459242b2dcc" + integrity sha512-iIYPIWt3dUmUKKE10s3W+jsQ3icFkw0JyRVyY1B7G4yK/nngAOHLVx8xlhA6b/Jzl/Y0nis8gjqhqKtRDQqHWQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-syntax-flow" "^7.24.1" + "@babel/plugin-transform-flow-strip-types@^7.21.0": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.21.0.tgz#6aeca0adcb81dc627c8986e770bfaa4d9812aff5" @@ -1411,6 +1601,14 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-flow" "^7.22.5" +"@babel/plugin-transform-for-of@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.1.tgz#67448446b67ab6c091360ce3717e7d3a59e202fd" + integrity sha512-OxBdcnF04bpdQdR3i4giHZNZQn7cm8RQKcSwA17wAAqEELo1ZOwp5FFgeptWUQXFyT9kwHo10aqqauYkRZPCAg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/plugin-transform-for-of@^7.18.8": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.0.tgz#964108c9988de1a60b4be2354a7d7e245f36e86e" @@ -1432,6 +1630,15 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-function-name@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.1.tgz#8cba6f7730626cc4dfe4ca2fa516215a0592b361" + integrity sha512-BXmDZpPlh7jwicKArQASrj8n22/w6iymRnvHYYd2zO30DbE277JO20/7yXJT3QxDPtiQiOxQBbZH4TpivNXIxA== + dependencies: + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-function-name@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz#cc354f8234e62968946c61a46d6365440fc764e0" @@ -1458,6 +1665,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-json-strings" "^7.8.3" +"@babel/plugin-transform-literals@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.1.tgz#0a1982297af83e6b3c94972686067df588c5c096" + integrity sha512-zn9pwz8U7nCqOYIiBaOxoQOtYmMODXTJnkxG4AtX8fPmnCRYWBOHD0qcpwS9e2VDSp1zNJYpdnFMIKb8jmwu6g== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-literals@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz#72796fdbef80e56fba3c6a699d54f0de557444bc" @@ -1480,6 +1694,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" +"@babel/plugin-transform-member-expression-literals@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.1.tgz#896d23601c92f437af8b01371ad34beb75df4489" + integrity sha512-4ojai0KysTWXzHseJKa1XPNXKRbuUrhkOPY4rEGeR+7ChlJVKxFa3H3Bz+7tWaGKgJAXUWKOGmltN+u9B3+CVg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-member-expression-literals@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz#ac9fdc1a118620ac49b7e7a5d2dc177a1bfee88e" @@ -1510,6 +1731,15 @@ "@babel/helper-module-transforms" "^7.22.5" "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-modules-commonjs@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.1.tgz#e71ba1d0d69e049a22bf90b3867e263823d3f1b9" + integrity sha512-szog8fFTUxBfw0b98gEWPaEqF42ZUD/T3bkynW/wtgx2p/XCP55WEsb+VosKceRSd6njipdZvNogqdtI4Q0chw== + dependencies: + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-simple-access" "^7.22.5" + "@babel/plugin-transform-modules-commonjs@^7.12.13", "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.21.5": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz#d69fb947eed51af91de82e4708f676864e5e47bc" @@ -1630,6 +1860,14 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-transform-parameters" "^7.22.5" +"@babel/plugin-transform-object-super@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.1.tgz#e71d6ab13483cca89ed95a474f542bbfc20a0520" + integrity sha512-oKJqR3TeI5hSLRxudMjFQ9re9fBVUU0GICqM3J1mi8MqlhVr6hC/ZN4ttAyMuQR6EZZIY6h/exe5swqGNNIkWQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-replace-supers" "^7.24.1" + "@babel/plugin-transform-object-super@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c" @@ -1663,6 +1901,13 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" "@babel/plugin-syntax-optional-chaining" "^7.8.3" +"@babel/plugin-transform-parameters@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.1.tgz#983c15d114da190506c75b616ceb0f817afcc510" + integrity sha512-8Jl6V24g+Uw5OGPeWNKrKqXPDw2YDjLc53ojwfMcKwlEoETKU9rU0mHUtcg9JntWI/QYzGAXNWEcVHZ+fR+XXg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-parameters@^7.20.1", "@babel/plugin-transform-parameters@^7.20.7", "@babel/plugin-transform-parameters@^7.21.3": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.21.3.tgz#18fc4e797cf6d6d972cb8c411dbe8a809fa157db" @@ -1695,6 +1940,13 @@ "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" +"@babel/plugin-transform-property-literals@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.1.tgz#d6a9aeab96f03749f4eebeb0b6ea8e90ec958825" + integrity sha512-LetvD7CrHmEx0G442gOomRr66d7q8HzzGGr4PMHGr+5YIm6++Yke+jxj246rpvsbyhJwCLxcTn6zW1P1BSenqA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-property-literals@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz#e22498903a483448e94e032e9bbb9c5ccbfc93a3" @@ -1709,6 +1961,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-react-display-name@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.24.1.tgz#554e3e1a25d181f040cf698b93fd289a03bfdcdb" + integrity sha512-mvoQg2f9p2qlpDQRBC7M3c3XTr0k7cp/0+kFKKO/7Gtu0LSw16eKB+Fabe2bDT/UpsyasTBBkAnbdsLrkD5XMw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-react-display-name@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz#8b1125f919ef36ebdfff061d664e266c666b9415" @@ -1737,6 +1996,17 @@ dependencies: "@babel/plugin-transform-react-jsx" "^7.22.5" +"@babel/plugin-transform-react-jsx@^7.0.0": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.23.4.tgz#393f99185110cea87184ea47bcb4a7b0c2e39312" + integrity sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/plugin-syntax-jsx" "^7.23.3" + "@babel/types" "^7.23.4" + "@babel/plugin-transform-react-jsx@^7.18.6": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.21.0.tgz#656b42c2fdea0a6d8762075d58ef9d4e3c4ab8a2" @@ -1813,6 +2083,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-shorthand-properties@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.1.tgz#ba9a09144cf55d35ec6b93a32253becad8ee5b55" + integrity sha512-LyjVB1nsJ6gTTUKRjRWx9C1s9hE7dLfP/knKdrfeH9UPtAGjYGgxIbFfx7xyLIEWs7Xe1Gnf8EWiUqfjLhInZA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-shorthand-properties@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9" @@ -1827,6 +2104,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-spread@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.1.tgz#a1acf9152cbf690e4da0ba10790b3ac7d2b2b391" + integrity sha512-KjmcIM+fxgY+KxPVbjelJC6hrH1CgtPmTvdXAfn3/a9CnWGSTY7nH4zm5+cjmWJybdcPSsD0++QssDsjcpe47g== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/plugin-transform-spread@^7.19.0", "@babel/plugin-transform-spread@^7.20.7": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz#c2d83e0b99d3bf83e07b11995ee24bf7ca09401e" @@ -1857,6 +2142,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.22.5" +"@babel/plugin-transform-template-literals@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.1.tgz#15e2166873a30d8617e3e2ccadb86643d327aab7" + integrity sha512-WRkhROsNzriarqECASCNu/nojeXCDTE/F2HmRgOzi7NGvyfYGq1NEjKBK3ckLfRgGc6/lPAqP0vDOSw3YtG34g== + dependencies: + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/plugin-transform-template-literals@^7.18.9": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz#04ec6f10acdaa81846689d63fae117dd9c243a5e" @@ -2285,6 +2577,13 @@ core-js "^2.5.3" regenerator-runtime "^0.11.1" +"@babel/runtime@^7.0.0": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.1.tgz#431f9a794d173b53720e69a6464abc6f0e2a5c57" + integrity sha512-+BIznRzyqBf+2wCTxcKE3wDjfGeCoVE61KSHGpkzqrLi8qxqFwBeUFyId2cxkTmm55fzDGnm0+yCxaxygrLUnQ== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/runtime@^7.0.0-rc.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.1", "@babel/runtime@^7.11.1", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.13", "@babel/runtime@^7.17.8", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.13", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.4", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": version "7.21.0" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673" @@ -2333,7 +2632,16 @@ "@babel/parser" "^7.22.5" "@babel/types" "^7.22.5" -"@babel/traverse@^7.1.6", "@babel/traverse@^7.20.5", "@babel/traverse@^7.20.7", "@babel/traverse@^7.21.0", "@babel/traverse@^7.21.2", "@babel/traverse@^7.21.5", "@babel/traverse@^7.22.6", "@babel/traverse@^7.22.8", "@babel/traverse@^7.7.0": +"@babel/template@^7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.0.tgz#c6a524aa93a4a05d66aaf31654258fae69d87d50" + integrity sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA== + dependencies: + "@babel/code-frame" "^7.23.5" + "@babel/parser" "^7.24.0" + "@babel/types" "^7.24.0" + +"@babel/traverse@^7.1.6", "@babel/traverse@^7.20.5", "@babel/traverse@^7.20.7", "@babel/traverse@^7.21.2", "@babel/traverse@^7.21.5", "@babel/traverse@^7.22.6", "@babel/traverse@^7.22.8", "@babel/traverse@^7.7.0": version "7.23.2" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.2.tgz#329c7a06735e144a506bdb2cad0268b7f46f4ad8" integrity sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw== @@ -2349,6 +2657,22 @@ debug "^4.1.0" globals "^11.1.0" +"@babel/traverse@^7.14.0", "@babel/traverse@^7.16.8", "@babel/traverse@^7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.1.tgz#d65c36ac9dd17282175d1e4a3c49d5b7988f530c" + integrity sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ== + dependencies: + "@babel/code-frame" "^7.24.1" + "@babel/generator" "^7.24.1" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-hoist-variables" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/parser" "^7.24.1" + "@babel/types" "^7.24.0" + debug "^4.3.1" + globals "^11.1.0" + "@babel/types@^7.0.0", "@babel/types@^7.2.0", "@babel/types@^7.21.4", "@babel/types@^7.21.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3": version "7.21.5" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.21.5.tgz#18dfbd47c39d3904d5db3d3dc2cc80bedb60e5b6" @@ -2358,7 +2682,16 @@ "@babel/helper-validator-identifier" "^7.19.1" to-fast-properties "^2.0.0" -"@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.2", "@babel/types@^7.21.3", "@babel/types@^7.4.4", "@babel/types@^7.7.0": +"@babel/types@^7.16.8", "@babel/types@^7.18.13", "@babel/types@^7.23.4", "@babel/types@^7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.0.tgz#3b951f435a92e7333eba05b7566fd297960ea1bf" + integrity sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w== + dependencies: + "@babel/helper-string-parser" "^7.23.4" + "@babel/helper-validator-identifier" "^7.22.20" + to-fast-properties "^2.0.0" + +"@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.5", "@babel/types@^7.20.7", "@babel/types@^7.21.0", "@babel/types@^7.21.2", "@babel/types@^7.4.4", "@babel/types@^7.7.0": version "7.21.3" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.21.3.tgz#4865a5357ce40f64e3400b0f3b737dc6d4f64d05" integrity sha512-sBGdETxC+/M4o/zKC0sl6sjWv62WFR/uzxrJ6uYyMLZOUlPnwzw0tKgVHOXxaAd5l2g8pEDM5RZ495GPQI77kg== @@ -4199,7 +4532,522 @@ resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== -"@graphql-typed-document-node/core@^3.1.1": +"@graphql-codegen/add@^5.0.2": + version "5.0.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/add/-/add-5.0.2.tgz#71b3ae0465a4537172dddb84531b6967ca5545f2" + integrity sha512-ouBkSvMFUhda5VoKumo/ZvsZM9P5ZTyDsI8LW18VxSNWOjrTeLXBWHG8Gfaai0HwhflPtCYVABbriEcOmrRShQ== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + tslib "~2.6.0" + +"@graphql-codegen/cli@^5.0.2": + version "5.0.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-5.0.2.tgz#07ff691c16da4c3dcc0e1995d3231530379ab317" + integrity sha512-MBIaFqDiLKuO4ojN6xxG9/xL9wmfD3ZjZ7RsPjwQnSHBCUXnEkdKvX+JVpx87Pq29Ycn8wTJUguXnTZ7Di0Mlw== + dependencies: + "@babel/generator" "^7.18.13" + "@babel/template" "^7.18.10" + "@babel/types" "^7.18.13" + "@graphql-codegen/client-preset" "^4.2.2" + "@graphql-codegen/core" "^4.0.2" + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-tools/apollo-engine-loader" "^8.0.0" + "@graphql-tools/code-file-loader" "^8.0.0" + "@graphql-tools/git-loader" "^8.0.0" + "@graphql-tools/github-loader" "^8.0.0" + "@graphql-tools/graphql-file-loader" "^8.0.0" + "@graphql-tools/json-file-loader" "^8.0.0" + "@graphql-tools/load" "^8.0.0" + "@graphql-tools/prisma-loader" "^8.0.0" + "@graphql-tools/url-loader" "^8.0.0" + "@graphql-tools/utils" "^10.0.0" + "@whatwg-node/fetch" "^0.8.0" + chalk "^4.1.0" + cosmiconfig "^8.1.3" + debounce "^1.2.0" + detect-indent "^6.0.0" + graphql-config "^5.0.2" + inquirer "^8.0.0" + is-glob "^4.0.1" + jiti "^1.17.1" + json-to-pretty-yaml "^1.2.2" + listr2 "^4.0.5" + log-symbols "^4.0.0" + micromatch "^4.0.5" + shell-quote "^1.7.3" + string-env-interpolation "^1.0.1" + ts-log "^2.2.3" + tslib "^2.4.0" + yaml "^2.3.1" + yargs "^17.0.0" + +"@graphql-codegen/client-preset@^4.2.2": + version "4.2.4" + resolved "https://registry.yarnpkg.com/@graphql-codegen/client-preset/-/client-preset-4.2.4.tgz#a20e85b07b77282bb27b2e8e014bed5d491443e7" + integrity sha512-k1c8v2YxJhhITGQGxViG9asLAoop9m7X9duU7Zztqjc98ooxsUzXICfvAWsH3mLAUibXAx4Ax6BPzKsTtQmBPg== + dependencies: + "@babel/helper-plugin-utils" "^7.20.2" + "@babel/template" "^7.20.7" + "@graphql-codegen/add" "^5.0.2" + "@graphql-codegen/gql-tag-operations" "4.0.6" + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/typed-document-node" "^5.0.6" + "@graphql-codegen/typescript" "^4.0.6" + "@graphql-codegen/typescript-operations" "^4.2.0" + "@graphql-codegen/visitor-plugin-common" "^5.1.0" + "@graphql-tools/documents" "^1.0.0" + "@graphql-tools/utils" "^10.0.0" + "@graphql-typed-document-node/core" "3.2.0" + tslib "~2.6.0" + +"@graphql-codegen/core@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/core/-/core-4.0.2.tgz#7e6ec266276f54bbf02f60599d9e518f4a59d85e" + integrity sha512-IZbpkhwVqgizcjNiaVzNAzm/xbWT6YnGgeOLwVjm4KbJn3V2jchVtuzHH09G5/WkkLSk2wgbXNdwjM41JxO6Eg== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-tools/schema" "^10.0.0" + "@graphql-tools/utils" "^10.0.0" + tslib "~2.6.0" + +"@graphql-codegen/gql-tag-operations@4.0.6": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@graphql-codegen/gql-tag-operations/-/gql-tag-operations-4.0.6.tgz#d16ee0306cfdea60217c025a1bc21649452d7da3" + integrity sha512-y6iXEDpDNjwNxJw3WZqX1/Znj0QHW7+y8O+t2V8qvbTT+3kb2lr9ntc8By7vCr6ctw9tXI4XKaJgpTstJDOwFA== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/visitor-plugin-common" "5.1.0" + "@graphql-tools/utils" "^10.0.0" + auto-bind "~4.0.0" + tslib "~2.6.0" + +"@graphql-codegen/plugin-helpers@^2.7.2": + version "2.7.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.7.2.tgz#6544f739d725441c826a8af6a49519f588ff9bed" + integrity sha512-kln2AZ12uii6U59OQXdjLk5nOlh1pHis1R98cDZGFnfaiAbX9V3fxcZ1MMJkB7qFUymTALzyjZoXXdyVmPMfRg== + dependencies: + "@graphql-tools/utils" "^8.8.0" + change-case-all "1.0.14" + common-tags "1.8.2" + import-from "4.0.0" + lodash "~4.17.0" + tslib "~2.4.0" + +"@graphql-codegen/plugin-helpers@^3.0.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz#69a2e91178f478ea6849846ade0a59a844d34389" + integrity sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg== + dependencies: + "@graphql-tools/utils" "^9.0.0" + change-case-all "1.0.15" + common-tags "1.8.2" + import-from "4.0.0" + lodash "~4.17.0" + tslib "~2.4.0" + +"@graphql-codegen/plugin-helpers@^5.0.3": + version "5.0.3" + resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-5.0.3.tgz#7027b9d911d7cb594663590fcf5d63e9cf7ec2ff" + integrity sha512-yZ1rpULIWKBZqCDlvGIJRSyj1B2utkEdGmXZTBT/GVayP4hyRYlkd36AJV/LfEsVD8dnsKL5rLz2VTYmRNlJ5Q== + dependencies: + "@graphql-tools/utils" "^10.0.0" + change-case-all "1.0.15" + common-tags "1.8.2" + import-from "4.0.0" + lodash "~4.17.0" + tslib "~2.6.0" + +"@graphql-codegen/schema-ast@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-4.0.2.tgz#aeaa104e4555cca73a058f0a9350b4b0e290b377" + integrity sha512-5mVAOQQK3Oz7EtMl/l3vOQdc2aYClUzVDHHkMvZlunc+KlGgl81j8TLa+X7ANIllqU4fUEsQU3lJmk4hXP6K7Q== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-tools/utils" "^10.0.0" + tslib "~2.6.0" + +"@graphql-codegen/typed-document-node@^5.0.6": + version "5.0.6" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typed-document-node/-/typed-document-node-5.0.6.tgz#54750f4a7c6e963defeb6c27a9ea280a2a8bc2a3" + integrity sha512-US0J95hOE2/W/h42w4oiY+DFKG7IetEN1mQMgXXeat1w6FAR5PlIz4JrRrEkiVfVetZ1g7K78SOwBD8/IJnDiA== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/visitor-plugin-common" "5.1.0" + auto-bind "~4.0.0" + change-case-all "1.0.15" + tslib "~2.6.0" + +"@graphql-codegen/typescript-operations@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-4.2.0.tgz#0c6bbaf41cb325809b7e9e2b9d85ab01f11d142f" + integrity sha512-lmuwYb03XC7LNRS8oo9M4/vlOrq/wOKmTLBHlltK2YJ1BO/4K/Q9Jdv/jDmJpNydHVR1fmeF4wAfsIp1f9JibA== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/typescript" "^4.0.6" + "@graphql-codegen/visitor-plugin-common" "5.1.0" + auto-bind "~4.0.0" + tslib "~2.6.0" + +"@graphql-codegen/typescript-react-apollo@^4.3.0": + version "4.3.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-react-apollo/-/typescript-react-apollo-4.3.0.tgz#c20b26a3756ed39e84c465c8b0f0212c113f2fee" + integrity sha512-h+IxCGrOTDD60/6ztYDQs81yKDZZq/8aHqM9HHrZ9FiZn145O48VnQNCmGm88I619G9rEET8cCOrtYkCt+ZSzA== + dependencies: + "@graphql-codegen/plugin-helpers" "^3.0.0" + "@graphql-codegen/visitor-plugin-common" "2.13.1" + auto-bind "~4.0.0" + change-case-all "1.0.15" + tslib "~2.6.0" + +"@graphql-codegen/typescript@^4.0.6": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-4.0.6.tgz#2c9b70dc1eafda912de5e31c119c757b1aa5fca1" + integrity sha512-IBG4N+Blv7KAL27bseruIoLTjORFCT3r+QYyMC3g11uY3/9TPpaUyjSdF70yBe5GIQ6dAgDU+ENUC1v7EPi0rw== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-codegen/schema-ast" "^4.0.2" + "@graphql-codegen/visitor-plugin-common" "5.1.0" + auto-bind "~4.0.0" + tslib "~2.6.0" + +"@graphql-codegen/visitor-plugin-common@2.13.1": + version "2.13.1" + resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.1.tgz#2228660f6692bcdb96b1f6d91a0661624266b76b" + integrity sha512-mD9ufZhDGhyrSaWQGrU1Q1c5f01TeWtSWy/cDwXYjJcHIj1Y/DG2x0tOflEfCvh5WcnmHNIw4lzDsg1W7iFJEg== + dependencies: + "@graphql-codegen/plugin-helpers" "^2.7.2" + "@graphql-tools/optimize" "^1.3.0" + "@graphql-tools/relay-operation-optimizer" "^6.5.0" + "@graphql-tools/utils" "^8.8.0" + auto-bind "~4.0.0" + change-case-all "1.0.14" + dependency-graph "^0.11.0" + graphql-tag "^2.11.0" + parse-filepath "^1.0.2" + tslib "~2.4.0" + +"@graphql-codegen/visitor-plugin-common@5.1.0", "@graphql-codegen/visitor-plugin-common@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-5.1.0.tgz#4edf7edb53460e71762a5fd8bbf5269bc3d9200b" + integrity sha512-eamQxtA9bjJqI2lU5eYoA1GbdMIRT2X8m8vhWYsVQVWD3qM7sx/IqJU0kx0J3Vd4/CSd36BzL6RKwksibytDIg== + dependencies: + "@graphql-codegen/plugin-helpers" "^5.0.3" + "@graphql-tools/optimize" "^2.0.0" + "@graphql-tools/relay-operation-optimizer" "^7.0.0" + "@graphql-tools/utils" "^10.0.0" + auto-bind "~4.0.0" + change-case-all "1.0.15" + dependency-graph "^0.11.0" + graphql-tag "^2.11.0" + parse-filepath "^1.0.2" + tslib "~2.6.0" + +"@graphql-tools/apollo-engine-loader@^8.0.0": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.1.tgz#1ec8718af6130ff8039cd653991412472cdd7e55" + integrity sha512-NaPeVjtrfbPXcl+MLQCJLWtqe2/E4bbAqcauEOQ+3sizw1Fc2CNmhHRF8a6W4D0ekvTRRXAMptXYgA2uConbrA== + dependencies: + "@ardatan/sync-fetch" "^0.0.1" + "@graphql-tools/utils" "^10.0.13" + "@whatwg-node/fetch" "^0.9.0" + tslib "^2.4.0" + +"@graphql-tools/batch-execute@^9.0.4": + version "9.0.4" + resolved "https://registry.yarnpkg.com/@graphql-tools/batch-execute/-/batch-execute-9.0.4.tgz#11601409c0c33491971fc82592de12390ec58be2" + integrity sha512-kkebDLXgDrep5Y0gK1RN3DMUlLqNhg60OAz0lTCqrYeja6DshxLtLkj+zV4mVbBA4mQOEoBmw6g1LZs3dA84/w== + dependencies: + "@graphql-tools/utils" "^10.0.13" + dataloader "^2.2.2" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/code-file-loader@^8.0.0": + version "8.1.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/code-file-loader/-/code-file-loader-8.1.1.tgz#517c37d4f8a20b2c6558b10cbe9a6f9bcfe98918" + integrity sha512-q4KN25EPSUztc8rA8YUU3ufh721Yk12xXDbtUA+YstczWS7a1RJlghYMFEfR1HsHSYbF7cUqkbnTKSGM3o52bQ== + dependencies: + "@graphql-tools/graphql-tag-pluck" "8.3.0" + "@graphql-tools/utils" "^10.0.13" + globby "^11.0.3" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/delegate@^10.0.4": + version "10.0.4" + resolved "https://registry.yarnpkg.com/@graphql-tools/delegate/-/delegate-10.0.4.tgz#7c38240f11e42ec2dd45d0a569ca6433ce4cb8dc" + integrity sha512-WswZRbQZMh/ebhc8zSomK9DIh6Pd5KbuiMsyiKkKz37TWTrlCOe+4C/fyrBFez30ksq6oFyCeSKMwfrCbeGo0Q== + dependencies: + "@graphql-tools/batch-execute" "^9.0.4" + "@graphql-tools/executor" "^1.2.1" + "@graphql-tools/schema" "^10.0.3" + "@graphql-tools/utils" "^10.0.13" + dataloader "^2.2.2" + tslib "^2.5.0" + +"@graphql-tools/documents@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/documents/-/documents-1.0.0.tgz#e3ed97197cc22ec830ca227fd7d17e86d8424bdf" + integrity sha512-rHGjX1vg/nZ2DKqRGfDPNC55CWZBMldEVcH+91BThRa6JeT80NqXknffLLEZLRUxyikCfkwMsk6xR3UNMqG0Rg== + dependencies: + lodash.sortby "^4.7.0" + tslib "^2.4.0" + +"@graphql-tools/executor-graphql-ws@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-graphql-ws/-/executor-graphql-ws-1.1.2.tgz#2bf959d2319692460b39400c0fe1515dfbb9f034" + integrity sha512-+9ZK0rychTH1LUv4iZqJ4ESbmULJMTsv3XlFooPUngpxZkk00q6LqHKJRrsLErmQrVaC7cwQCaRBJa0teK17Lg== + dependencies: + "@graphql-tools/utils" "^10.0.13" + "@types/ws" "^8.0.0" + graphql-ws "^5.14.0" + isomorphic-ws "^5.0.0" + tslib "^2.4.0" + ws "^8.13.0" + +"@graphql-tools/executor-http@^1.0.9": + version "1.0.9" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-http/-/executor-http-1.0.9.tgz#87ca8b99a32241eb0cc30a9c500d2672e92d58b7" + integrity sha512-+NXaZd2MWbbrWHqU4EhXcrDbogeiCDmEbrAN+rMn4Nu2okDjn2MTFDbTIab87oEubQCH4Te1wDkWPKrzXup7+Q== + dependencies: + "@graphql-tools/utils" "^10.0.13" + "@repeaterjs/repeater" "^3.0.4" + "@whatwg-node/fetch" "^0.9.0" + extract-files "^11.0.0" + meros "^1.2.1" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/executor-legacy-ws@^1.0.6": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor-legacy-ws/-/executor-legacy-ws-1.0.6.tgz#4ed311b731db8fd5c99e66a66361afbf9c2109fc" + integrity sha512-lDSxz9VyyquOrvSuCCnld3256Hmd+QI2lkmkEv7d4mdzkxkK4ddAWW1geQiWrQvWmdsmcnGGlZ7gDGbhEExwqg== + dependencies: + "@graphql-tools/utils" "^10.0.13" + "@types/ws" "^8.0.0" + isomorphic-ws "^5.0.0" + tslib "^2.4.0" + ws "^8.15.0" + +"@graphql-tools/executor@^1.2.1": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/executor/-/executor-1.2.3.tgz#55426aa13ccb3ec213129ff793b356d881d6e0ff" + integrity sha512-aAS+TGjSq8BJuDq1RV/A/8E53Iu3KvaWpD8DPio0Qe/0YF26tdpK6EcmNSGrrjiZOwVIZ80wclZrFstHzCPm8A== + dependencies: + "@graphql-tools/utils" "^10.1.1" + "@graphql-typed-document-node/core" "3.2.0" + "@repeaterjs/repeater" "^3.0.4" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/git-loader@^8.0.0": + version "8.0.5" + resolved "https://registry.yarnpkg.com/@graphql-tools/git-loader/-/git-loader-8.0.5.tgz#77f9c2a35fdb3a403d33660ed11702720d4b016e" + integrity sha512-P97/1mhruDiA6D5WUmx3n/aeGPLWj2+4dpzDOxFGGU+z9NcI/JdygMkeFpGZNHeJfw+kHfxgPcMPnxHcyhAoVA== + dependencies: + "@graphql-tools/graphql-tag-pluck" "8.3.0" + "@graphql-tools/utils" "^10.0.13" + is-glob "4.0.3" + micromatch "^4.0.4" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/github-loader@^8.0.0": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/github-loader/-/github-loader-8.0.1.tgz#011e1f9495d42a55139a12f576cc6bb04943ecf4" + integrity sha512-W4dFLQJ5GtKGltvh/u1apWRFKBQOsDzFxO9cJkOYZj1VzHCpRF43uLST4VbCfWve+AwBqOuKr7YgkHoxpRMkcg== + dependencies: + "@ardatan/sync-fetch" "^0.0.1" + "@graphql-tools/executor-http" "^1.0.9" + "@graphql-tools/graphql-tag-pluck" "^8.0.0" + "@graphql-tools/utils" "^10.0.13" + "@whatwg-node/fetch" "^0.9.0" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/graphql-file-loader@^8.0.0": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-file-loader/-/graphql-file-loader-8.0.1.tgz#03869b14cb91d0ef539df8195101279bb2df9c9e" + integrity sha512-7gswMqWBabTSmqbaNyWSmRRpStWlcCkBc73E6NZNlh4YNuiyKOwbvSkOUYFOqFMfEL+cFsXgAvr87Vz4XrYSbA== + dependencies: + "@graphql-tools/import" "7.0.1" + "@graphql-tools/utils" "^10.0.13" + globby "^11.0.3" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/graphql-tag-pluck@8.3.0", "@graphql-tools/graphql-tag-pluck@^8.0.0": + version "8.3.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/graphql-tag-pluck/-/graphql-tag-pluck-8.3.0.tgz#11bb8c627253137b39b34fb765cd6ebe506388b9" + integrity sha512-gNqukC+s7iHC7vQZmx1SEJQmLnOguBq+aqE2zV2+o1hxkExvKqyFli1SY/9gmukFIKpKutCIj+8yLOM+jARutw== + dependencies: + "@babel/core" "^7.22.9" + "@babel/parser" "^7.16.8" + "@babel/plugin-syntax-import-assertions" "^7.20.0" + "@babel/traverse" "^7.16.8" + "@babel/types" "^7.16.8" + "@graphql-tools/utils" "^10.0.13" + tslib "^2.4.0" + +"@graphql-tools/import@7.0.1": + version "7.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/import/-/import-7.0.1.tgz#4e0d181c63350b1c926ae91b84a4cbaf03713c2c" + integrity sha512-935uAjAS8UAeXThqHfYVr4HEAp6nHJ2sximZKO1RzUTq5WoALMAhhGARl0+ecm6X+cqNUwIChJbjtaa6P/ML0w== + dependencies: + "@graphql-tools/utils" "^10.0.13" + resolve-from "5.0.0" + tslib "^2.4.0" + +"@graphql-tools/json-file-loader@^8.0.0": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/json-file-loader/-/json-file-loader-8.0.1.tgz#3fcfe869f22d8129a74369da69bf491c0bff7c2d" + integrity sha512-lAy2VqxDAHjVyqeJonCP6TUemrpYdDuKt25a10X6zY2Yn3iFYGnuIDQ64cv3ytyGY6KPyPB+Kp+ZfOkNDG3FQA== + dependencies: + "@graphql-tools/utils" "^10.0.13" + globby "^11.0.3" + tslib "^2.4.0" + unixify "^1.0.0" + +"@graphql-tools/load@^8.0.0": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/load/-/load-8.0.2.tgz#47d9916bf96dea05df27f11b53812f4327d9b6d2" + integrity sha512-S+E/cmyVmJ3CuCNfDuNF2EyovTwdWfQScXv/2gmvJOti2rGD8jTt9GYVzXaxhblLivQR9sBUCNZu/w7j7aXUCA== + dependencies: + "@graphql-tools/schema" "^10.0.3" + "@graphql-tools/utils" "^10.0.13" + p-limit "3.1.0" + tslib "^2.4.0" + +"@graphql-tools/merge@^9.0.0", "@graphql-tools/merge@^9.0.3": + version "9.0.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/merge/-/merge-9.0.3.tgz#4d0b467132e6f788b69fab803d31480b8ce4b61a" + integrity sha512-FeKv9lKLMwqDu0pQjPpF59GY3HReUkWXKsMIuMuJQOKh9BETu7zPEFUELvcw8w+lwZkl4ileJsHXC9+AnsT2Lw== + dependencies: + "@graphql-tools/utils" "^10.0.13" + tslib "^2.4.0" + +"@graphql-tools/optimize@^1.3.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/optimize/-/optimize-1.4.0.tgz#20d6a9efa185ef8fc4af4fd409963e0907c6e112" + integrity sha512-dJs/2XvZp+wgHH8T5J2TqptT9/6uVzIYvA6uFACha+ufvdMBedkfR4b4GbT8jAKLRARiqRTxy3dctnwkTM2tdw== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/optimize@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@graphql-tools/optimize/-/optimize-2.0.0.tgz#7a9779d180824511248a50c5a241eff6e7a2d906" + integrity sha512-nhdT+CRGDZ+bk68ic+Jw1OZ99YCDIKYA5AlVAnBHJvMawSx9YQqQAIj4refNc1/LRieGiuWvhbG3jvPVYho0Dg== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/prisma-loader@^8.0.0": + version "8.0.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/prisma-loader/-/prisma-loader-8.0.3.tgz#a41acb41629cf5327834bedd259939024cf774ba" + integrity sha512-oZhxnMr3Jw2WAW1h9FIhF27xWzIB7bXWM8olz4W12oII4NiZl7VRkFw9IT50zME2Bqi9LGh9pkmMWkjvbOpl+Q== + dependencies: + "@graphql-tools/url-loader" "^8.0.2" + "@graphql-tools/utils" "^10.0.13" + "@types/js-yaml" "^4.0.0" + "@types/json-stable-stringify" "^1.0.32" + "@whatwg-node/fetch" "^0.9.0" + chalk "^4.1.0" + debug "^4.3.1" + dotenv "^16.0.0" + graphql-request "^6.0.0" + http-proxy-agent "^7.0.0" + https-proxy-agent "^7.0.0" + jose "^5.0.0" + js-yaml "^4.0.0" + json-stable-stringify "^1.0.1" + lodash "^4.17.20" + scuid "^1.1.0" + tslib "^2.4.0" + yaml-ast-parser "^0.0.43" + +"@graphql-tools/relay-operation-optimizer@^6.5.0": + version "6.5.18" + resolved "https://registry.yarnpkg.com/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.5.18.tgz#a1b74a8e0a5d0c795b8a4d19629b654cf66aa5ab" + integrity sha512-mc5VPyTeV+LwiM+DNvoDQfPqwQYhPV/cl5jOBjTgSniyaq8/86aODfMkrE2OduhQ5E00hqrkuL2Fdrgk0w1QJg== + dependencies: + "@ardatan/relay-compiler" "12.0.0" + "@graphql-tools/utils" "^9.2.1" + tslib "^2.4.0" + +"@graphql-tools/relay-operation-optimizer@^7.0.0": + version "7.0.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-7.0.1.tgz#8ac33e1d2626b6816d9283769c4a05c062b8065a" + integrity sha512-y0ZrQ/iyqWZlsS/xrJfSir3TbVYJTYmMOu4TaSz6F4FRDTQ3ie43BlKkhf04rC28pnUOS4BO9pDcAo1D30l5+A== + dependencies: + "@ardatan/relay-compiler" "12.0.0" + "@graphql-tools/utils" "^10.0.13" + tslib "^2.4.0" + +"@graphql-tools/schema@^10.0.0", "@graphql-tools/schema@^10.0.3": + version "10.0.3" + resolved "https://registry.yarnpkg.com/@graphql-tools/schema/-/schema-10.0.3.tgz#48c14be84cc617c19c4c929258672b6ab01768de" + integrity sha512-p28Oh9EcOna6i0yLaCFOnkcBDQECVf3SCexT6ktb86QNj9idnkhI+tCxnwZDh58Qvjd2nURdkbevvoZkvxzCog== + dependencies: + "@graphql-tools/merge" "^9.0.3" + "@graphql-tools/utils" "^10.0.13" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-tools/url-loader@^8.0.0", "@graphql-tools/url-loader@^8.0.2": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/url-loader/-/url-loader-8.0.2.tgz#ee8e10a85d82c72662f6bc6bbc7b408510a36ebd" + integrity sha512-1dKp2K8UuFn7DFo1qX5c1cyazQv2h2ICwA9esHblEqCYrgf69Nk8N7SODmsfWg94OEaI74IqMoM12t7eIGwFzQ== + dependencies: + "@ardatan/sync-fetch" "^0.0.1" + "@graphql-tools/delegate" "^10.0.4" + "@graphql-tools/executor-graphql-ws" "^1.1.2" + "@graphql-tools/executor-http" "^1.0.9" + "@graphql-tools/executor-legacy-ws" "^1.0.6" + "@graphql-tools/utils" "^10.0.13" + "@graphql-tools/wrap" "^10.0.2" + "@types/ws" "^8.0.0" + "@whatwg-node/fetch" "^0.9.0" + isomorphic-ws "^5.0.0" + tslib "^2.4.0" + value-or-promise "^1.0.11" + ws "^8.12.0" + +"@graphql-tools/utils@^10.0.0", "@graphql-tools/utils@^10.0.13", "@graphql-tools/utils@^10.1.1": + version "10.1.2" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-10.1.2.tgz#192de00e7301c0242e7305ab16bbeef76bbcec74" + integrity sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw== + dependencies: + "@graphql-typed-document-node/core" "^3.1.1" + cross-inspect "1.0.0" + dset "^3.1.2" + tslib "^2.4.0" + +"@graphql-tools/utils@^8.8.0": + version "8.13.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-8.13.1.tgz#b247607e400365c2cd87ff54654d4ad25a7ac491" + integrity sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw== + dependencies: + tslib "^2.4.0" + +"@graphql-tools/utils@^9.0.0", "@graphql-tools/utils@^9.2.1": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-9.2.1.tgz#1b3df0ef166cfa3eae706e3518b17d5922721c57" + integrity sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A== + dependencies: + "@graphql-typed-document-node/core" "^3.1.1" + tslib "^2.4.0" + +"@graphql-tools/wrap@^10.0.2": + version "10.0.5" + resolved "https://registry.yarnpkg.com/@graphql-tools/wrap/-/wrap-10.0.5.tgz#614b964a158887b4a644f5425b2b9a57b5751f72" + integrity sha512-Cbr5aYjr3HkwdPvetZp1cpDWTGdD1Owgsb3z/ClzhmrboiK86EnQDxDvOJiQkDCPWE9lNBwj8Y4HfxroY0D9DQ== + dependencies: + "@graphql-tools/delegate" "^10.0.4" + "@graphql-tools/schema" "^10.0.3" + "@graphql-tools/utils" "^10.1.1" + tslib "^2.4.0" + value-or-promise "^1.0.12" + +"@graphql-typed-document-node/core@3.2.0", "@graphql-typed-document-node/core@^3.1.1", "@graphql-typed-document-node/core@^3.2.0": version "3.2.0" resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.2.0.tgz#5f3d96ec6b2354ad6d8a28bf216a1d97b5426861" integrity sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ== @@ -4665,6 +5513,15 @@ "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping" "^0.3.9" +"@jridgewell/gen-mapping@^0.3.5": + version "0.3.5" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" + integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== + dependencies: + "@jridgewell/set-array" "^1.2.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.24" + "@jridgewell/resolve-uri@3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" @@ -4680,6 +5537,11 @@ resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== +"@jridgewell/set-array@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== + "@jridgewell/source-map@^0.3.2": version "0.3.2" resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.2.tgz#f45351aaed4527a298512ec72f81040c998580fb" @@ -4722,11 +5584,24 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" +"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": + version "0.3.25" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + "@juggle/resize-observer@^3.3.1": version "3.4.0" resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60" integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA== +"@kamilkisiela/fast-url-parser@^1.1.4": + version "1.1.4" + resolved "https://registry.yarnpkg.com/@kamilkisiela/fast-url-parser/-/fast-url-parser-1.1.4.tgz#9d68877a489107411b953c54ea65d0658b515809" + integrity sha512-gbkePEBupNydxCelHCESvFSFM8XPh1Zs/OAVRW/rKpEqPAl5PbOM90Si8mv9bvnR53uPD2s/FiRxdvSejpRJew== + "@keplr-wallet/types@^0.11.52": version "0.11.59" resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.11.59.tgz#5514dd0c79edb870138f521689894cf71efc7485" @@ -6050,6 +6925,33 @@ mkdirp "^1.0.4" rimraf "^3.0.2" +"@peculiar/asn1-schema@^2.3.8": + version "2.3.8" + resolved "https://registry.yarnpkg.com/@peculiar/asn1-schema/-/asn1-schema-2.3.8.tgz#04b38832a814e25731232dd5be883460a156da3b" + integrity sha512-ULB1XqHKx1WBU/tTFIA+uARuRoBVZ4pNdOA878RDrRbBfBGcSzi5HBkdScC6ZbHn8z7L8gmKCgPC1LHRrP46tA== + dependencies: + asn1js "^3.0.5" + pvtsutils "^1.3.5" + tslib "^2.6.2" + +"@peculiar/json-schema@^1.1.12": + version "1.1.12" + resolved "https://registry.yarnpkg.com/@peculiar/json-schema/-/json-schema-1.1.12.tgz#fe61e85259e3b5ba5ad566cb62ca75b3d3cd5339" + integrity sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w== + dependencies: + tslib "^2.0.0" + +"@peculiar/webcrypto@^1.4.0": + version "1.4.5" + resolved "https://registry.yarnpkg.com/@peculiar/webcrypto/-/webcrypto-1.4.5.tgz#424bed6b0d133b772f5cbffd143d0468a90f40a0" + integrity sha512-oDk93QCDGdxFRM8382Zdminzs44dg3M2+E5Np+JWkpqLDyJC9DviMh8F8mEJkYuUcUOGA5jHO5AJJ10MFWdbZw== + dependencies: + "@peculiar/asn1-schema" "^2.3.8" + "@peculiar/json-schema" "^1.1.12" + pvtsutils "^1.3.5" + tslib "^2.6.2" + webcrypto-core "^1.7.8" + "@pkgjs/parseargs@^0.11.0": version "0.11.0" resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" @@ -6423,6 +7325,11 @@ resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.6.0.tgz#45010e1826f4d81a1b2cfaf874f1aac93998cd28" integrity sha512-N13NRw3T2+6Xi9J//3CGLsK2OqC8NMme3d/YX+nh05K9YHWGcv8DycHJrqGScSP4T75o8IN6nqIMhVFU8ohg8w== +"@repeaterjs/repeater@^3.0.4": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@repeaterjs/repeater/-/repeater-3.0.5.tgz#b77571685410217a548a9c753aa3cdfc215bfc78" + integrity sha512-l3YHBLAol6d/IKnB9LhpD0cEZWAoe3eFKUyTYWmFmCO2Q/WOckxLQAUyMZWwZV2M/m3+4vgRoaolFqaII82/TA== + "@rjsf/core@^3.2.1": version "3.2.1" resolved "https://registry.yarnpkg.com/@rjsf/core/-/core-3.2.1.tgz#8a7b24c9a6f01f0ecb093fdfc777172c12b1b009" @@ -8115,6 +9022,11 @@ expect "^29.0.0" pretty-format "^29.0.0" +"@types/js-yaml@^4.0.0": + version "4.0.9" + resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-4.0.9.tgz#cd82382c4f902fed9691a2ed79ec68c5898af4c2" + integrity sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg== + "@types/jsdom@^20.0.0": version "20.0.1" resolved "https://registry.yarnpkg.com/@types/jsdom/-/jsdom-20.0.1.tgz#07c14bc19bd2f918c1929541cdaacae894744808" @@ -8129,6 +9041,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== +"@types/json-stable-stringify@^1.0.32": + version "1.0.36" + resolved "https://registry.yarnpkg.com/@types/json-stable-stringify/-/json-stable-stringify-1.0.36.tgz#fe6c6001a69ff8160a772da08779448a333c7ddd" + integrity sha512-b7bq23s4fgBB76n34m2b3RBf6M369B0Z9uRR8aHTMd8kZISRkmDEpPD8hhpYvDFzr3bJCPES96cm3Q6qRNDbQw== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -8456,6 +9373,13 @@ tapable "^2.2.0" webpack "^5" +"@types/ws@^8.0.0": + version "8.5.10" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.10.tgz#4acfb517970853fa6574a3a6886791d04a396787" + integrity sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A== + dependencies: + "@types/node" "*" + "@types/ws@^8.2.2", "@types/ws@^8.5.4": version "8.5.6" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.6.tgz#e9ad51f0ab79b9110c50916c9fcbddc36d373065" @@ -8891,6 +9815,57 @@ resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-1.7.0.tgz#e1993689ac42d2b16e9194376cfb6753f6254db1" integrity sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q== +"@whatwg-node/events@^0.0.3": + version "0.0.3" + resolved "https://registry.yarnpkg.com/@whatwg-node/events/-/events-0.0.3.tgz#13a65dd4f5893f55280f766e29ae48074927acad" + integrity sha512-IqnKIDWfXBJkvy/k6tzskWTc2NK3LcqHlb+KHGCrjOCH4jfQckRX0NAiIcC/vIqQkzLYw2r2CTSwAxcrtcD6lA== + +"@whatwg-node/events@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@whatwg-node/events/-/events-0.1.1.tgz#0ca718508249419587e130da26d40e29d99b5356" + integrity sha512-AyQEn5hIPV7Ze+xFoXVU3QTHXVbWPrzaOkxtENMPMuNL6VVHrp4hHfDt9nrQpjO7BgvuM95dMtkycX5M/DZR3w== + +"@whatwg-node/fetch@^0.8.0": + version "0.8.8" + resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.8.8.tgz#48c6ad0c6b7951a73e812f09dd22d75e9fa18cae" + integrity sha512-CdcjGC2vdKhc13KKxgsc6/616BQ7ooDIgPeTuAiE8qfCnS0mGzcfCOoZXypQSz73nxI+GWc7ZReIAVhxoE1KCg== + dependencies: + "@peculiar/webcrypto" "^1.4.0" + "@whatwg-node/node-fetch" "^0.3.6" + busboy "^1.6.0" + urlpattern-polyfill "^8.0.0" + web-streams-polyfill "^3.2.1" + +"@whatwg-node/fetch@^0.9.0": + version "0.9.17" + resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.9.17.tgz#10e4ea2392926c8d41ff57e3156857e885317d3f" + integrity sha512-TDYP3CpCrxwxpiNY0UMNf096H5Ihf67BK1iKGegQl5u9SlpEDYrvnV71gWBGJm+Xm31qOy8ATgma9rm8Pe7/5Q== + dependencies: + "@whatwg-node/node-fetch" "^0.5.7" + urlpattern-polyfill "^10.0.0" + +"@whatwg-node/node-fetch@^0.3.6": + version "0.3.6" + resolved "https://registry.yarnpkg.com/@whatwg-node/node-fetch/-/node-fetch-0.3.6.tgz#e28816955f359916e2d830b68a64493124faa6d0" + integrity sha512-w9wKgDO4C95qnXZRwZTfCmLWqyRnooGjcIwG0wADWjw9/HN0p7dtvtgSvItZtUyNteEvgTrd8QojNEqV6DAGTA== + dependencies: + "@whatwg-node/events" "^0.0.3" + busboy "^1.6.0" + fast-querystring "^1.1.1" + fast-url-parser "^1.1.3" + tslib "^2.3.1" + +"@whatwg-node/node-fetch@^0.5.7": + version "0.5.10" + resolved "https://registry.yarnpkg.com/@whatwg-node/node-fetch/-/node-fetch-0.5.10.tgz#85448d0d8c13efe5f8d7bb0957b3276c8c3b6575" + integrity sha512-KIAHepie/T1PRkUfze4t+bPlyvpxlWiXTPtcGlbIZ0vWkBJMdRmCg4ZrJ2y4XaO1eTPo1HlWYUuj1WvoIpumqg== + dependencies: + "@kamilkisiela/fast-url-parser" "^1.1.4" + "@whatwg-node/events" "^0.1.0" + busboy "^1.6.0" + fast-querystring "^1.1.1" + tslib "^2.3.1" + "@wry/caches@^1.0.0": version "1.0.1" resolved "https://registry.yarnpkg.com/@wry/caches/-/caches-1.0.1.tgz#8641fd3b6e09230b86ce8b93558d44cf1ece7e52" @@ -9186,6 +10161,13 @@ agent-base@6: dependencies: debug "4" +agent-base@^7.0.2, agent-base@^7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.0.tgz#536802b76bc0b34aa50195eb2442276d613e3434" + integrity sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg== + dependencies: + debug "^4.3.4" + aggregate-error@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" @@ -9296,7 +10278,7 @@ ansi-escapes@^3.2.0: resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== -ansi-escapes@^4.2.1: +ansi-escapes@^4.2.1, ansi-escapes@^4.3.0: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== @@ -9695,6 +10677,15 @@ asn1@~0.2.3: dependencies: safer-buffer "~2.1.0" +asn1js@^3.0.1, asn1js@^3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/asn1js/-/asn1js-3.0.5.tgz#5ea36820443dbefb51cc7f88a2ebb5b462114f38" + integrity sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ== + dependencies: + pvtsutils "^1.3.2" + pvutils "^1.1.3" + tslib "^2.4.0" + assert-plus@1.0.0, assert-plus@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" @@ -9803,6 +10794,11 @@ atob@^2.1.2: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== +auto-bind@~4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/auto-bind/-/auto-bind-4.0.0.tgz#e3589fc6c2da8f7ca43ba9f84fa52a744fc997fb" + integrity sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ== + automation-events@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/automation-events/-/automation-events-5.0.2.tgz#c792ce2b1e43481019153f37dcb0d18c68642425" @@ -10040,6 +11036,11 @@ babel-plugin-root-import@^6.6.0: dependencies: slash "^3.0.0" +babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0: + version "7.0.0-beta.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf" + integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ== + babel-preset-current-node-syntax@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" @@ -10058,6 +11059,39 @@ babel-preset-current-node-syntax@^1.0.0: "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" +babel-preset-fbjs@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz#38a14e5a7a3b285a3f3a86552d650dca5cf6111c" + integrity sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow== + dependencies: + "@babel/plugin-proposal-class-properties" "^7.0.0" + "@babel/plugin-proposal-object-rest-spread" "^7.0.0" + "@babel/plugin-syntax-class-properties" "^7.0.0" + "@babel/plugin-syntax-flow" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.0.0" + "@babel/plugin-transform-arrow-functions" "^7.0.0" + "@babel/plugin-transform-block-scoped-functions" "^7.0.0" + "@babel/plugin-transform-block-scoping" "^7.0.0" + "@babel/plugin-transform-classes" "^7.0.0" + "@babel/plugin-transform-computed-properties" "^7.0.0" + "@babel/plugin-transform-destructuring" "^7.0.0" + "@babel/plugin-transform-flow-strip-types" "^7.0.0" + "@babel/plugin-transform-for-of" "^7.0.0" + "@babel/plugin-transform-function-name" "^7.0.0" + "@babel/plugin-transform-literals" "^7.0.0" + "@babel/plugin-transform-member-expression-literals" "^7.0.0" + "@babel/plugin-transform-modules-commonjs" "^7.0.0" + "@babel/plugin-transform-object-super" "^7.0.0" + "@babel/plugin-transform-parameters" "^7.0.0" + "@babel/plugin-transform-property-literals" "^7.0.0" + "@babel/plugin-transform-react-display-name" "^7.0.0" + "@babel/plugin-transform-react-jsx" "^7.0.0" + "@babel/plugin-transform-shorthand-properties" "^7.0.0" + "@babel/plugin-transform-spread" "^7.0.0" + "@babel/plugin-transform-template-literals" "^7.0.0" + babel-plugin-syntax-trailing-function-commas "^7.0.0-beta.0" + babel-preset-jest@^26.6.2: version "26.6.2" resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz#747872b1171df032252426586881d62d31798fee" @@ -10627,6 +11661,16 @@ browserslist@^4.21.9: node-releases "^2.0.12" update-browserslist-db "^1.0.11" +browserslist@^4.22.2: + version "4.23.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab" + integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ== + dependencies: + caniuse-lite "^1.0.30001587" + electron-to-chromium "^1.4.668" + node-releases "^2.0.14" + update-browserslist-db "^1.0.13" + bs-logger@0.x: version "0.2.6" resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" @@ -10728,6 +11772,13 @@ bundle-name@^3.0.0: dependencies: run-applescript "^5.0.0" +busboy@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" + integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== + dependencies: + streamsearch "^1.1.0" + byte-access@^1.0.0, byte-access@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/byte-access/-/byte-access-1.0.1.tgz#84badd99be3671c03f0dd6a039a9c963983724af" @@ -10823,6 +11874,17 @@ call-bind@^1.0.0, call-bind@^1.0.2: function-bind "^1.1.1" get-intrinsic "^1.0.2" +call-bind@^1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" + callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" @@ -10895,6 +11957,11 @@ caniuse-lite@^1.0.30001503: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001517.tgz#90fabae294215c3495807eb24fc809e11dc2f0a8" integrity sha512-Vdhm5S11DaFVLlyiKu4hiUTkpZu+y1KA/rZZqVQfOD5YdDT/eQKlkt7NaE0WGOFgX32diqt9MiP9CAiFeRklaA== +caniuse-lite@^1.0.30001587: + version "1.0.30001600" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001600.tgz#93a3ee17a35aa6a9f0c6ef1b2ab49507d1ab9079" + integrity sha512-+2S9/2JFhYmYaDpZvo0lKkfvuKIglrx68MwOBqMGHhQsNkLjB5xtc/TGoEPs+MxjSyN/72qer2g97nzR641mOQ== + canvas-color-tracker@1: version "1.2.1" resolved "https://registry.yarnpkg.com/canvas-color-tracker/-/canvas-color-tracker-1.2.1.tgz#c552872f8f254bac3e74ea4cc7fed3bb19859bf1" @@ -10909,6 +11976,15 @@ canvas-fit@^1.5.0: dependencies: element-size "^1.1.1" +capital-case@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/capital-case/-/capital-case-1.0.4.tgz#9d130292353c9249f6b00fa5852bee38a717e669" + integrity sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + upper-case-first "^2.0.2" + capture-exit@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" @@ -10998,7 +12074,7 @@ chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: +chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -11011,6 +12087,56 @@ chalk@^5.0.1: resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.2.0.tgz#249623b7d66869c673699fb66d65723e54dfcfb3" integrity sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA== +change-case-all@1.0.14: + version "1.0.14" + resolved "https://registry.yarnpkg.com/change-case-all/-/change-case-all-1.0.14.tgz#bac04da08ad143278d0ac3dda7eccd39280bfba1" + integrity sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA== + dependencies: + change-case "^4.1.2" + is-lower-case "^2.0.2" + is-upper-case "^2.0.2" + lower-case "^2.0.2" + lower-case-first "^2.0.2" + sponge-case "^1.0.1" + swap-case "^2.0.2" + title-case "^3.0.3" + upper-case "^2.0.2" + upper-case-first "^2.0.2" + +change-case-all@1.0.15: + version "1.0.15" + resolved "https://registry.yarnpkg.com/change-case-all/-/change-case-all-1.0.15.tgz#de29393167fc101d646cd76b0ef23e27d09756ad" + integrity sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ== + dependencies: + change-case "^4.1.2" + is-lower-case "^2.0.2" + is-upper-case "^2.0.2" + lower-case "^2.0.2" + lower-case-first "^2.0.2" + sponge-case "^1.0.1" + swap-case "^2.0.2" + title-case "^3.0.3" + upper-case "^2.0.2" + upper-case-first "^2.0.2" + +change-case@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/change-case/-/change-case-4.1.2.tgz#fedfc5f136045e2398c0410ee441f95704641e12" + integrity sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A== + dependencies: + camel-case "^4.1.2" + capital-case "^1.0.4" + constant-case "^3.0.4" + dot-case "^3.0.4" + header-case "^2.0.4" + no-case "^3.0.4" + param-case "^3.0.4" + pascal-case "^3.1.2" + path-case "^3.0.4" + sentence-case "^3.0.4" + snake-case "^3.0.4" + tslib "^2.0.3" + char-regex@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" @@ -11291,11 +12417,24 @@ cli-table3@^0.6.1: optionalDependencies: "@colors/colors" "1.5.0" +cli-truncate@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-2.1.0.tgz#c39e28bf05edcde5be3b98992a22deed5a2b93c7" + integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg== + dependencies: + slice-ansi "^3.0.0" + string-width "^4.2.0" + cli-width@^2.0.0: version "2.2.1" resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== +cli-width@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" + integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== + clipboardy@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/clipboardy/-/clipboardy-3.0.0.tgz#f3876247404d334c9ed01b6f269c11d09a5e3092" @@ -11505,7 +12644,7 @@ colorette@^2.0.10, colorette@^2.0.14: resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798" integrity sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ== -colorette@^2.0.19: +colorette@^2.0.16, colorette@^2.0.19: version "2.0.20" resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== @@ -11577,6 +12716,11 @@ common-path-prefix@^3.0.0: resolved "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-3.0.0.tgz#7d007a7e07c58c4b4d5f433131a19141b29f11e0" integrity sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w== +common-tags@1.8.2: + version "1.8.2" + resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6" + integrity sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA== + commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" @@ -11738,6 +12882,15 @@ const-pinf-float64@^1.0.0: resolved "https://registry.yarnpkg.com/const-pinf-float64/-/const-pinf-float64-1.0.0.tgz#f6efb0d79f9c0986d3e79f2923abf9b70b63d726" integrity sha512-wfs+V4HdSN7C3CWJWR7hVa24yTPn3mDJthwhRIObZBh6UjTjkUMUrCP3UrNGozB/HjTpcScnGXtQUNa+yjsIJQ== +constant-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/constant-case/-/constant-case-3.0.4.tgz#3b84a9aeaf4cf31ec45e6bf5de91bdfb0589faf1" + integrity sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + upper-case "^2.0.2" + constants-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" @@ -11932,9 +13085,19 @@ cosmiconfig@^8.0.0, cosmiconfig@^8.1.3, cosmiconfig@^8.2.0: resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.2.0.tgz#f7d17c56a590856cd1e7cee98734dca272b0d8fd" integrity sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ== dependencies: - import-fresh "^3.2.1" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + parse-json "^5.0.0" + path-type "^4.0.0" + +cosmiconfig@^8.1.0: + version "8.3.6" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.3.6.tgz#060a2b871d66dba6c8538ea1118ba1ac16f5fae3" + integrity sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA== + dependencies: + import-fresh "^3.3.0" js-yaml "^4.1.0" - parse-json "^5.0.0" + parse-json "^5.2.0" path-type "^4.0.0" cosmjs-types@^0.4.0, cosmjs-types@^0.4.1: @@ -12042,6 +13205,13 @@ cross-fetch@^3.1.5: dependencies: node-fetch "2.6.7" +cross-inspect@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/cross-inspect/-/cross-inspect-1.0.0.tgz#5fda1af759a148594d2d58394a9e21364f6849af" + integrity sha512-4PFfn4b5ZN6FMNGSZlyb7wUhuN8wvj8t/VQHZdM4JsDcruGJ8L2kf9zao98QIrBPFCpdk27qst/AGTl7pL3ypQ== + dependencies: + tslib "^2.4.0" + cross-spawn@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41" @@ -12803,6 +13973,11 @@ data-urls@^3.0.2: whatwg-mimetype "^3.0.0" whatwg-url "^11.0.0" +dataloader@^2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-2.2.2.tgz#216dc509b5abe39d43a9b9d97e6e5e473dfbe3e0" + integrity sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g== + datastore-core@^8.0.1: version "8.0.4" resolved "https://registry.yarnpkg.com/datastore-core/-/datastore-core-8.0.4.tgz#a5951c8e530f0ba11ca44f6bb3ce5d7070a3d44e" @@ -12895,7 +14070,7 @@ dateformat@^3.0.3: resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== -debounce@^1.2.1: +debounce@^1.2.0, debounce@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5" integrity sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug== @@ -13131,6 +14306,15 @@ defer-to-connect@^1.0.1: resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== +define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + gopd "^1.0.1" + define-lazy-prop@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" @@ -13251,6 +14435,11 @@ depd@~1.1.2: resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== +dependency-graph@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27" + integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg== + dequal@^2.0.0, dequal@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" @@ -13274,7 +14463,7 @@ detect-browser@^5.3.0: resolved "https://registry.yarnpkg.com/detect-browser/-/detect-browser-5.3.0.tgz#9705ef2bddf46072d0f7265a1fe300e36fe7ceca" integrity sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w== -detect-indent@^6.1.0: +detect-indent@^6.0.0, detect-indent@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6" integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== @@ -13544,6 +14733,11 @@ drbg.js@^1.0.1: create-hash "^1.1.2" create-hmac "^1.1.4" +dset@^3.1.2: + version "3.1.3" + resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.3.tgz#c194147f159841148e8e34ca41f638556d9542d2" + integrity sha512-20TuZZHCEZ2O71q9/+8BwKwZ0QtD9D8ObhrihJPr+vLLYlSuAU3/zL4cSlgbfeoGHTjCSJBa7NGcrF9/Bx/WJQ== + dtype@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/dtype/-/dtype-2.0.0.tgz#cd052323ce061444ecd2e8f5748f69a29be28434" @@ -13628,6 +14822,11 @@ electron-to-chromium@^1.4.431: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.475.tgz#2fee0e2a70cc1538b94f7f90aabcc436e4dcc827" integrity sha512-mTye5u5P98kSJO2n7zYALhpJDmoSQejIGya0iR01GpoRady8eK3bw7YHHnjA1Rfi4ZSLdpuzlAC7Zw+1Zu7Z6A== +electron-to-chromium@^1.4.668: + version "1.4.715" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.715.tgz#bb16bcf2a3537962fccfa746b5c98c5f7404ff46" + integrity sha512-XzWNH4ZSa9BwVUQSDorPWAUQ5WGuYz7zJUNpNif40zFCiCl20t8zgylmreNmn26h5kiyw2lg7RfTmeMBsDklqg== + element-size@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/element-size/-/element-size-1.1.1.tgz#64e5f159d97121631845bcbaecaf279c39b5e34e" @@ -13863,6 +15062,18 @@ es-abstract@^1.19.0, es-abstract@^1.20.4: unbox-primitive "^1.0.2" which-typed-array "^1.1.9" +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + es-get-iterator@^1.1.2: version "1.1.3" resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.3.tgz#3ef87523c5d464d41084b2c3c9c214f1199763d6" @@ -14968,6 +16179,11 @@ extglob@^2.0.4: snapdragon "^0.8.1" to-regex "^3.0.1" +extract-files@^11.0.0: + version "11.0.0" + resolved "https://registry.yarnpkg.com/extract-files/-/extract-files-11.0.0.tgz#b72d428712f787eef1f5193aff8ab5351ca8469a" + integrity sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ== + extract-files@^9.0.0: version "9.0.0" resolved "https://registry.yarnpkg.com/extract-files/-/extract-files-9.0.0.tgz#8a7744f2437f81f5ed3250ed9f1550de902fe54a" @@ -15006,6 +16222,11 @@ falafel@^2.1.0: acorn "^7.1.1" isarray "^2.0.1" +fast-decode-uri-component@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz#46f8b6c22b30ff7a81357d4f59abfae938202543" + integrity sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg== + fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -15054,12 +16275,19 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== +fast-querystring@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/fast-querystring/-/fast-querystring-1.1.2.tgz#a6d24937b4fc6f791b4ee31dcb6f53aeafb89f53" + integrity sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg== + dependencies: + fast-decode-uri-component "^1.0.1" + fast-safe-stringify@2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.4.tgz#4fe828718aa61dbcf9119c3c24e79cc4dea973b2" integrity sha512-mNlGUdKOeGNleyrmgbKYtbnCr9KZkZXU7eM89JRo8vY10f7Ul1Fbj07hUBW3N4fC0xM+fmfFfa2zM7mIizhpNQ== -fast-url-parser@1.1.3: +fast-url-parser@1.1.3, fast-url-parser@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz#f4af3ea9f34d8a271cf58ad2b3759f431f0b318d" integrity sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ== @@ -15652,6 +16880,11 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + function.prototype.name@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" @@ -15711,6 +16944,17 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@ has "^1.0.3" has-symbols "^1.0.3" +get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + get-iterator@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/get-iterator/-/get-iterator-1.0.2.tgz#cd747c02b4c084461fac14f48f6b45a80ed25c82" @@ -16255,7 +17499,7 @@ glob@^10.0.0: minipass "^5.0.0 || ^6.0.2 || ^7.0.0" path-scurry "^1.10.1" -glob@^7.0.3, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: +glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -16317,7 +17561,7 @@ globalthis@^1.0.1, globalthis@^1.0.3: dependencies: define-properties "^1.1.3" -globby@^11.0.1, globby@^11.0.2, globby@^11.1.0: +globby@^11.0.1, globby@^11.0.2, globby@^11.0.3, globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== @@ -16572,6 +17816,23 @@ grapheme-splitter@^1.0.4: resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== +graphql-config@^5.0.2: + version "5.0.3" + resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-5.0.3.tgz#d9aa2954cf47a927f9cb83cdc4e42ae55d0b321e" + integrity sha512-BNGZaoxIBkv9yy6Y7omvsaBUHOzfFcII3UN++tpH8MGOKFPFkCPZuwx09ggANMt8FgyWP1Od8SWPmrUEZca4NQ== + dependencies: + "@graphql-tools/graphql-file-loader" "^8.0.0" + "@graphql-tools/json-file-loader" "^8.0.0" + "@graphql-tools/load" "^8.0.0" + "@graphql-tools/merge" "^9.0.0" + "@graphql-tools/url-loader" "^8.0.0" + "@graphql-tools/utils" "^10.0.0" + cosmiconfig "^8.1.0" + jiti "^1.18.2" + minimatch "^4.2.3" + string-env-interpolation "^1.0.1" + tslib "^2.4.0" + graphql-request@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-5.2.0.tgz#a05fb54a517d91bb2d7aefa17ade4523dc5ebdca" @@ -16582,14 +17843,22 @@ graphql-request@^5.1.0: extract-files "^9.0.0" form-data "^3.0.0" -graphql-tag@^2.12.6, graphql-tag@^2.4.2: +graphql-request@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-6.1.0.tgz#f4eb2107967af3c7a5907eb3131c671eac89be4f" + integrity sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw== + dependencies: + "@graphql-typed-document-node/core" "^3.2.0" + cross-fetch "^3.1.5" + +graphql-tag@^2.11.0, graphql-tag@^2.12.6, graphql-tag@^2.4.2: version "2.12.6" resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.12.6.tgz#d441a569c1d2537ef10ca3d1633b48725329b5f1" integrity sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg== dependencies: tslib "^2.1.0" -graphql-ws@^5.15.0: +graphql-ws@^5.14.0, graphql-ws@^5.15.0: version "5.15.0" resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.15.0.tgz#2db79e1b42468a8363bf5ca6168d076e2f8fdebc" integrity sha512-xWGAtm3fig9TIhSaNsg0FaDZ8Pyn/3re3RFlP4rhQcmjRDIPpk1EhRuNB+YSJtLzttyuToaDiNhwT1OMoGnJnw== @@ -16707,6 +17976,13 @@ has-property-descriptors@^1.0.0: dependencies: get-intrinsic "^1.1.1" +has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== + dependencies: + es-define-property "^1.0.0" + has-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" @@ -16804,6 +18080,13 @@ hashlru@^2.3.0: resolved "https://registry.yarnpkg.com/hashlru/-/hashlru-2.3.0.tgz#5dc15928b3f6961a2056416bb3a4910216fdfb51" integrity sha512-0cMsjjIC8I+D3M44pOQdsy0OHXGLVz6Z0beRuufhKa0KfaD2wGwAev6jILzXsd3/vpnNQJmWyZtIILqM1N+n5A== +hasown@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + hast-util-from-parse5@^7.0.0: version "7.1.2" resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-7.1.2.tgz#aecfef73e3ceafdfa4550716443e4eb7b02e22b0" @@ -16898,6 +18181,14 @@ he@^1.2.0: resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== +header-case@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/header-case/-/header-case-2.0.4.tgz#5a42e63b55177349cf405beb8d775acabb92c063" + integrity sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q== + dependencies: + capital-case "^1.0.4" + tslib "^2.0.3" + helia@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/helia/-/helia-2.0.3.tgz#4bbb3070ddddb93227cfc230544e106180b9a216" @@ -17129,6 +18420,14 @@ http-proxy-agent@^5.0.0: agent-base "6" debug "4" +http-proxy-agent@^7.0.0: + version "7.0.2" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz#9a8b1f246866c028509486585f62b8f2c18c270e" + integrity sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig== + dependencies: + agent-base "^7.1.0" + debug "^4.3.4" + http-proxy-middleware@^2.0.3: version "2.0.6" resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz#e1a4dd6979572c7ab5a4e4b55095d1f32a74963f" @@ -17179,6 +18478,14 @@ https-proxy-agent@^5.0.1: agent-base "6" debug "4" +https-proxy-agent@^7.0.0: + version "7.0.4" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz#8e97b841a029ad8ddc8731f26595bad868cb4168" + integrity sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg== + dependencies: + agent-base "^7.0.2" + debug "4" + human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" @@ -17285,7 +18592,12 @@ immutable@^4.0.0: resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.0.tgz#eb1738f14ffb39fd068b1dbe1296117484dd34be" integrity sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg== -import-fresh@^3.0.0, import-fresh@^3.2.1: +immutable@~3.7.6: + version "3.7.6" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.7.6.tgz#13b4d3cb12befa15482a26fe1b2ebae640071e4b" + integrity sha512-AizQPcaofEtO11RZhPPHBOJRdo/20MKQF9mBLnVkBoyHi1/zXK8fzVdnEpSV9gxqtnh6Qomfp3F0xT5qP/vThw== + +import-fresh@^3.0.0, import-fresh@^3.2.1, import-fresh@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== @@ -17293,6 +18605,11 @@ import-fresh@^3.0.0, import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" +import-from@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/import-from/-/import-from-4.0.0.tgz#2710b8d66817d232e16f4166e319248d3d5492e2" + integrity sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ== + import-lazy@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-4.0.0.tgz#e8eb627483a0a43da3c03f3e35548be5cb0cc153" @@ -17401,6 +18718,27 @@ inquirer@^6.2.2: strip-ansi "^5.1.0" through "^2.3.6" +inquirer@^8.0.0: + version "8.2.6" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.6.tgz#733b74888195d8d400a67ac332011b5fae5ea562" + integrity sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.1" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^5.4.1" + run-async "^2.4.0" + rxjs "^7.5.5" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + wrap-ansi "^6.0.1" + interface-blockstore@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/interface-blockstore/-/interface-blockstore-4.0.1.tgz#0dda1774d72ca7e990dc1921cfc524b3e9d1b9ca" @@ -18007,6 +19345,14 @@ is-absolute-url@^3.0.0: resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-3.0.3.tgz#96c6a22b6a23929b11ea0afb1836c36ad4a5d698" integrity sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q== +is-absolute@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" + integrity sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA== + dependencies: + is-relative "^1.0.0" + is-windows "^1.0.1" + is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" @@ -18245,7 +19591,7 @@ is-generator-function@^1.0.7: dependencies: has-tostringtag "^1.0.0" -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: +is-glob@4.0.3, is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== @@ -18314,6 +19660,13 @@ is-loopback-addr@^2.0.1: resolved "https://registry.yarnpkg.com/is-loopback-addr/-/is-loopback-addr-2.0.1.tgz#0b43534f0b16ff899f1f19f322b59c38bd25fa03" integrity sha512-SEsepLbdWFb13B6U0tt6dYcUM0iK/U7XOC43N70Z4Qb88WpNtp+ospyNI9ddpqncs7Z7brAEsVBTQpaqSNntIw== +is-lower-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-lower-case/-/is-lower-case-2.0.2.tgz#1c0884d3012c841556243483aa5d522f47396d2a" + integrity sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ== + dependencies: + tslib "^2.0.3" + is-map@^2.0.1, is-map@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz#00922db8c9bf73e81b7a335827bc2a43f2b91127" @@ -18460,6 +19813,13 @@ is-regex@^1.1.4: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-relative@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" + integrity sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA== + dependencies: + is-unc-path "^1.0.0" + is-retry-allowed@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz#d778488bd0a4666a3be8a1482b9f2baafedea8b4" @@ -18546,11 +19906,25 @@ is-typedarray@^1.0.0, is-typedarray@~1.0.0: resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== +is-unc-path@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" + integrity sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ== + dependencies: + unc-path-regex "^0.1.2" + is-unicode-supported@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== +is-upper-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-upper-case/-/is-upper-case-2.0.2.tgz#f1105ced1fe4de906a5f39553e7d3803fd804649" + integrity sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ== + dependencies: + tslib "^2.0.3" + is-weakmap@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.1.tgz#5008b59bdc43b698201d18f62b37b2ca243e8cf2" @@ -18586,7 +19960,7 @@ is-window@^1.0.2: resolved "https://registry.yarnpkg.com/is-window/-/is-window-1.0.2.tgz#2c896ca53db97de45d3c33133a65d8c9f563480d" integrity sha512-uj00kdXyZb9t9RcAUAwMZAnkBUwdYGhYlt7djMXhfyhUCzwNba50tIiBKR7q0l7tdoBtFVw/3JmLY6fI3rmZmg== -is-windows@^1.0.2: +is-windows@^1.0.1, is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== @@ -18661,6 +20035,11 @@ isomorphic-ws@^4.0.1: resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc" integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w== +isomorphic-ws@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf" + integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw== + isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" @@ -19788,11 +21167,21 @@ jest@^29.7.0: import-local "^3.0.2" jest-cli "^29.7.0" +jiti@^1.17.1: + version "1.21.0" + resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d" + integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q== + jiti@^1.18.2: version "1.18.2" resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.18.2.tgz#80c3ef3d486ebf2450d9335122b32d121f2a83cd" integrity sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg== +jose@^5.0.0: + version "5.2.3" + resolved "https://registry.yarnpkg.com/jose/-/jose-5.2.3.tgz#071c87f9fe720cff741a403c8080b69bfe13164a" + integrity sha512-KUXdbctm1uHVL8BYhnyHkgp3zDX5KW8ZhAKVFEfUbU2P8Alpzjb+48hHvjOdQIyPshoblhzsuqOwEEAbtHVirA== + js-sdsl@^4.1.4: version "4.4.0" resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.4.0.tgz#8b437dbe642daa95760400b602378ed8ffea8430" @@ -19828,7 +21217,7 @@ js-yaml@^3.13.0, js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" -js-yaml@^4.1.0: +js-yaml@^4.0.0, js-yaml@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== @@ -20012,11 +21401,29 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== +json-stable-stringify@^1.0.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.1.1.tgz#52d4361b47d49168bcc4e564189a42e5a7439454" + integrity sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg== + dependencies: + call-bind "^1.0.5" + isarray "^2.0.5" + jsonify "^0.0.1" + object-keys "^1.1.1" + json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== +json-to-pretty-yaml@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/json-to-pretty-yaml/-/json-to-pretty-yaml-1.2.2.tgz#f4cd0bd0a5e8fe1df25aaf5ba118b099fd992d5b" + integrity sha512-rvm6hunfCcqegwYaG5T4yKJWxc9FXFgBVrcTZ4XfSVRwa5HA/Xs+vB/Eo9treYYHCeNM0nrSUr82V/M31Urc7A== + dependencies: + remedial "^1.0.7" + remove-trailing-spaces "^1.0.6" + json2mq@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/json2mq/-/json2mq-0.2.0.tgz#b637bd3ba9eabe122c83e9720483aeb10d2c904a" @@ -20059,6 +21466,11 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" +jsonify@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.1.tgz#2aa3111dae3d34a0f151c63f3a45d995d9420978" + integrity sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg== + jsonparse@^1.2.0: version "1.3.1" resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" @@ -20493,6 +21905,20 @@ lines-and-columns@^1.1.6: resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== +listr2@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/listr2/-/listr2-4.0.5.tgz#9dcc50221583e8b4c71c43f9c7dfd0ef546b75d5" + integrity sha512-juGHV1doQdpNT3GSTs9IUN43QJb7KHdF9uqg7Vufs/tG9VTzpFphqF4pm/ICdAABGQxsyNn9CiYA3StkI6jpwA== + dependencies: + cli-truncate "^2.1.0" + colorette "^2.0.16" + log-update "^4.0.0" + p-map "^4.0.0" + rfdc "^1.3.0" + rxjs "^7.5.5" + through "^2.3.8" + wrap-ansi "^7.0.0" + lit-element@^3.3.0: version "3.3.2" resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.3.2.tgz#9913bf220b85065f0e5f1bb8878cc44f36b50cfa" @@ -20638,6 +22064,11 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== + lodash.startcase@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.startcase/-/lodash.startcase-4.4.0.tgz#9436e34ed26093ed7ffae1936144350915d9add8" @@ -20658,12 +22089,12 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== -lodash@4.17.21, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4: +lodash@4.17.21, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@~4.17.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -log-symbols@^4.1.0: +log-symbols@^4.0.0, log-symbols@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== @@ -20680,6 +22111,16 @@ log-update@^3.3.0: cli-cursor "^2.1.0" wrap-ansi "^5.0.0" +log-update@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/log-update/-/log-update-4.0.0.tgz#589ecd352471f2a1c0c570287543a64dfd20e0a1" + integrity sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg== + dependencies: + ansi-escapes "^4.3.0" + cli-cursor "^3.1.0" + slice-ansi "^4.0.0" + wrap-ansi "^6.2.0" + logform@^2.2.0, logform@^2.3.2: version "2.5.1" resolved "https://registry.yarnpkg.com/logform/-/logform-2.5.1.tgz#44c77c34becd71b3a42a3970c77929e52c6ed48b" @@ -20722,6 +22163,13 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3 dependencies: js-tokens "^3.0.0 || ^4.0.0" +lower-case-first@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/lower-case-first/-/lower-case-first-2.0.2.tgz#64c2324a2250bf7c37c5901e76a5b5309301160b" + integrity sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg== + dependencies: + tslib "^2.0.3" + lower-case@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28" @@ -20812,7 +22260,7 @@ makeerror@1.0.12: dependencies: tmpl "1.0.5" -map-cache@^0.2.2: +map-cache@^0.2.0, map-cache@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== @@ -21225,6 +22673,11 @@ merge2@^1.3.0, merge2@^1.4.1: resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== +meros@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/meros/-/meros-1.3.0.tgz#c617d2092739d55286bf618129280f362e6242f2" + integrity sha512-2BNGOimxEz5hmjUG2FwoxCt5HN7BXdaWyFqEwxPTrJzVdABtrL4TiHTcsWSFAxPQ/tOnEaQEJh3qWq71QRMY+w== + methods@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" @@ -21635,6 +23088,13 @@ minimatch@3.1.2, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch dependencies: brace-expansion "^1.1.7" +minimatch@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-4.2.3.tgz#b4dcece1d674dee104bb0fb833ebb85a78cbbca6" + integrity sha512-lIUdtK5hdofgCTu3aT0sOaHsYR37viUuIc0rwnnDXImbwFRcumyLMeZaM0t0I/fgxS6s6JMfu0rLD1Wz9pv1ng== + dependencies: + brace-expansion "^1.1.7" + minimatch@^5.0.1, minimatch@^5.1.0: version "5.1.6" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" @@ -22012,6 +23472,11 @@ mute-stream@0.0.7: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ== +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + nan@^2.14.0: version "2.17.0" resolved "https://registry.yarnpkg.com/nan/-/nan-2.17.0.tgz#c0150a2368a182f033e9aa5195ec76ea41a199cb" @@ -22378,6 +23843,11 @@ node-releases@^2.0.12: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== +node-releases@^2.0.14: + version "2.0.14" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" + integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== + node-releases@^2.0.8: version "2.0.10" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f" @@ -22498,6 +23968,11 @@ nth-check@^2.0.1: dependencies: boolbase "^1.0.0" +nullthrows@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" + integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== + number-is-integer@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/number-is-integer/-/number-is-integer-1.0.1.tgz#e59bca172ffed27318e79c7ceb6cb72c095b2152" @@ -22845,6 +24320,13 @@ p-finally@^1.0.0: resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== +p-limit@3.1.0, p-limit@^3.0.2, p-limit@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + p-limit@^2.0.0, p-limit@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" @@ -22852,13 +24334,6 @@ p-limit@^2.0.0, p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-limit@^3.0.2, p-limit@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - p-limit@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-4.0.0.tgz#914af6544ed32bfa54670b061cafcbd04984b644" @@ -23056,6 +24531,15 @@ parse-duration@^1.0.0, parse-duration@^1.0.2: resolved "https://registry.yarnpkg.com/parse-duration/-/parse-duration-1.0.3.tgz#b6681f5edcc2689643b34c09ea63f86f58a35814" integrity sha512-o6NAh12na5VvR6nFejkU0gpQ8jmOY9Y9sTU2ke3L3G/d/3z8jqmbBbeyBGHU73P4JLXfc7tJARygIK3WGIkloA== +parse-filepath@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/parse-filepath/-/parse-filepath-1.0.2.tgz#a632127f53aaf3d15876f5872f3ffac763d6c891" + integrity sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q== + dependencies: + is-absolute "^1.0.0" + map-cache "^0.2.0" + path-root "^0.1.1" + parse-headers@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/parse-headers/-/parse-headers-2.0.5.tgz#069793f9356a54008571eb7f9761153e6c770da9" @@ -23128,6 +24612,14 @@ path-browserify@^1.0.1: resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== +path-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/path-case/-/path-case-3.0.4.tgz#9168645334eb942658375c56f80b4c0cb5f82c6f" + integrity sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg== + dependencies: + dot-case "^3.0.4" + tslib "^2.0.3" + path-exists@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" @@ -23168,6 +24660,18 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== +path-root-regex@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/path-root-regex/-/path-root-regex-0.1.2.tgz#bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d" + integrity sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ== + +path-root@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/path-root/-/path-root-0.1.1.tgz#9a4a6814cac1c0cd73360a95f32083c8ea4745b7" + integrity sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg== + dependencies: + path-root-regex "^0.1.0" + path-scurry@^1.10.1: version "1.10.1" resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.10.1.tgz#9ba6bf5aa8500fe9fd67df4f0d9483b2b0bfc698" @@ -24484,6 +25988,18 @@ pure-rand@^6.0.0: resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.0.2.tgz#a9c2ddcae9b68d736a8163036f088a2781c8b306" integrity sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ== +pvtsutils@^1.3.2, pvtsutils@^1.3.5: + version "1.3.5" + resolved "https://registry.yarnpkg.com/pvtsutils/-/pvtsutils-1.3.5.tgz#b8705b437b7b134cd7fd858f025a23456f1ce910" + integrity sha512-ARvb14YB9Nm2Xi6nBq1ZX6dAM0FsJnuk+31aUp4TrcZEdKUlSqOqsxJHUPJDNE3qiIp+iUPEIeR6Je/tgV7zsA== + dependencies: + tslib "^2.6.1" + +pvutils@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/pvutils/-/pvutils-1.1.3.tgz#f35fc1d27e7cd3dfbd39c0826d173e806a03f5a3" + integrity sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ== + pxls@^2.0.0: version "2.3.2" resolved "https://registry.yarnpkg.com/pxls/-/pxls-2.3.2.tgz#79100d2cc95089fc6e00053a9d93c1ddddb2c7b4" @@ -25673,6 +27189,15 @@ relateurl@^0.2.7: resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog== +relay-runtime@12.0.0: + version "12.0.0" + resolved "https://registry.yarnpkg.com/relay-runtime/-/relay-runtime-12.0.0.tgz#1e039282bdb5e0c1b9a7dc7f6b9a09d4f4ff8237" + integrity sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug== + dependencies: + "@babel/runtime" "^7.0.0" + fbjs "^3.0.0" + invariant "^2.2.4" + remark-breaks@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/remark-breaks/-/remark-breaks-3.0.3.tgz#660e6c995e954e5abdd95bf77df6f1402cb911ef" @@ -25731,6 +27256,11 @@ remark-slug@^6.0.0: mdast-util-to-string "^1.0.0" unist-util-visit "^2.0.0" +remedial@^1.0.7: + version "1.0.8" + resolved "https://registry.yarnpkg.com/remedial/-/remedial-1.0.8.tgz#a5e4fd52a0e4956adbaf62da63a5a46a78c578a0" + integrity sha512-/62tYiOe6DzS5BqVsNpH/nkGlX45C/Sp6V+NtiN6JQNS1Viay7cWkazmRkrQrdFj2eshDe96SIQNIoMxqhzBOg== + remove-accents@0.4.2: version "0.4.2" resolved "https://registry.yarnpkg.com/remove-accents/-/remove-accents-0.4.2.tgz#0a43d3aaae1e80db919e07ae254b285d9e1c7bb5" @@ -25741,6 +27271,11 @@ remove-trailing-separator@^1.0.1: resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw== +remove-trailing-spaces@^1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/remove-trailing-spaces/-/remove-trailing-spaces-1.0.8.tgz#4354d22f3236374702f58ee373168f6d6887ada7" + integrity sha512-O3vsMYfWighyFbTd8hk8VaSj9UAGENxAtX+//ugIst2RMk5e03h6RoIS+0ylsFxY1gvmPuAY/PO4It+gPEeySA== + renderkid@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-3.0.0.tgz#5fd823e4d6951d37358ecc9a58b1f06836b6268a" @@ -25956,6 +27491,11 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== +rfdc@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.1.tgz#2b6d4df52dffe8bb346992a10ea9451f24373a8f" + integrity sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg== + right-now@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/right-now/-/right-now-1.0.0.tgz#6e89609deebd7dcdaf8daecc9aea39cf585a0918" @@ -26092,7 +27632,7 @@ run-applescript@^5.0.0: dependencies: execa "^5.0.0" -run-async@^2.2.0: +run-async@^2.2.0, run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== @@ -26123,7 +27663,7 @@ rxjs@6, rxjs@^6.4.0, rxjs@^6.5.3: dependencies: tslib "^1.9.0" -rxjs@^7.8.0: +rxjs@^7.5.5, rxjs@^7.8.0: version "7.8.1" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== @@ -26301,6 +27841,11 @@ scryptsy@^2.1.0: resolved "https://registry.yarnpkg.com/scryptsy/-/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" integrity sha512-1CdSqHQowJBnMAFyPEBRfqag/YP9OF394FV+4YREIJX4ljD7OxvQRDayyoyyCk+senRjSkP6VnUNQmVQqB6g7w== +scuid@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/scuid/-/scuid-1.1.0.tgz#d3f9f920956e737a60f72d0e4ad280bf324d5dab" + integrity sha512-MuCAyrGZcTLfQoH2XoBlQ8C6bzwN88XT/0slOGz0pn8+gIP85BOAfYa44ZXQUTOwRwPU0QvgU+V+OSajl/59Xg== + secp256k1@^3.7.1: version "3.8.0" resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.8.0.tgz#28f59f4b01dbee9575f56a47034b7d2e3b3b352d" @@ -26394,6 +27939,15 @@ send@0.18.0: range-parser "~1.2.1" statuses "2.0.1" +sentence-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/sentence-case/-/sentence-case-3.0.4.tgz#3645a7b8c117c787fde8702056225bb62a45131f" + integrity sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg== + dependencies: + no-case "^3.0.4" + tslib "^2.0.3" + upper-case-first "^2.0.2" + serialize-javascript@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-5.0.1.tgz#7886ec848049a462467a97d3d918ebb2aaf934f4" @@ -26494,6 +28048,18 @@ set-delayed-interval@^1.0.0: resolved "https://registry.yarnpkg.com/set-delayed-interval/-/set-delayed-interval-1.0.0.tgz#1f7c065780a365f10250f8a80e2be10175ea0388" integrity sha512-29fhAwuZlLcuBnW/EwxvLcg2D3ELX+VBDNhnavs3YYkab72qmrcSeQNVdzl8EcPPahGQXhBM6MKdPLCQGMDakw== +set-function-length@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + gopd "^1.0.1" + has-property-descriptors "^1.0.2" + set-value@^2.0.0, set-value@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" @@ -26604,6 +28170,11 @@ signed-varint@^2.0.1: dependencies: varint "~5.0.0" +signedsource@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/signedsource/-/signedsource-1.0.0.tgz#1ddace4981798f93bd833973803d80d52e93ad6a" + integrity sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww== + signum@^0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/signum/-/signum-0.0.0.tgz#ab551b1003351070a704783f1a09c5e7691f9cf6" @@ -26747,6 +28318,15 @@ slice-ansi@^2.1.0: astral-regex "^1.0.0" is-fullwidth-code-point "^2.0.0" +slice-ansi@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-3.0.0.tgz#31ddc10930a1b7e0b67b08c96c2f49b77a789787" + integrity sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + slice-ansi@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" @@ -26761,6 +28341,14 @@ slick-carousel@^1.8.1: resolved "https://registry.yarnpkg.com/slick-carousel/-/slick-carousel-1.8.1.tgz#a4bfb29014887bb66ce528b90bd0cda262cc8f8d" integrity sha512-XB9Ftrf2EEKfzoQXt3Nitrt/IPbT+f1fgqBdoxO3W/+JYvtEOW6EgxnWfr9GH6nmULv7Y2tPmEX3koxThVmebA== +snake-case@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/snake-case/-/snake-case-3.0.4.tgz#4f2bbd568e9935abdfd593f34c691dadb49c452c" + integrity sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg== + dependencies: + dot-case "^3.0.4" + tslib "^2.0.3" + snapdragon-node@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" @@ -26973,6 +28561,13 @@ split2@^3.0.0: dependencies: readable-stream "^3.0.0" +sponge-case@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/sponge-case/-/sponge-case-1.0.1.tgz#260833b86453883d974f84854cdb63aecc5aef4c" + integrity sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA== + dependencies: + tslib "^2.0.3" + sprintf-js@1.1.2, sprintf-js@^1.0.3: version "1.1.2" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.2.tgz#da1765262bf8c0f571749f2ad6c26300207ae673" @@ -27120,6 +28715,11 @@ stream-to-it@^0.2.2, stream-to-it@^0.2.4: dependencies: get-iterator "^1.0.2" +streamsearch@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" + integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== + strict-uri-encode@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" @@ -27135,6 +28735,11 @@ string-convert@^0.2.0: resolved "https://registry.yarnpkg.com/string-convert/-/string-convert-0.2.1.tgz#6982cc3049fbb4cd85f8b24568b9d9bf39eeff97" integrity sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A== +string-env-interpolation@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/string-env-interpolation/-/string-env-interpolation-1.0.1.tgz#ad4397ae4ac53fe6c91d1402ad6f6a52862c7152" + integrity sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg== + string-length@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" @@ -27654,6 +29259,13 @@ svgo@^2.7.0: picocolors "^1.0.0" stable "^0.1.8" +swap-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/swap-case/-/swap-case-2.0.2.tgz#671aedb3c9c137e2985ef51c51f9e98445bf70d9" + integrity sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw== + dependencies: + tslib "^2.0.3" + swarm-js@0.1.39: version "0.1.39" resolved "https://registry.yarnpkg.com/swarm-js/-/swarm-js-0.1.39.tgz#79becb07f291d4b2a178c50fee7aa6e10342c0e8" @@ -28067,6 +29679,13 @@ tinyqueue@^2.0.3: resolved "https://registry.yarnpkg.com/tinyqueue/-/tinyqueue-2.0.3.tgz#64d8492ebf39e7801d7bd34062e29b45b2035f08" integrity sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA== +title-case@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/title-case/-/title-case-3.0.3.tgz#bc689b46f02e411f1d1e1d081f7c3deca0489982" + integrity sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA== + dependencies: + tslib "^2.0.3" + titleize@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/titleize/-/titleize-3.0.0.tgz#71c12eb7fdd2558aa8a44b0be83b8a76694acd53" @@ -28336,6 +29955,11 @@ ts-jest@^29.1.1: semver "^7.5.3" yargs-parser "^21.0.1" +ts-log@^2.2.3: + version "2.2.5" + resolved "https://registry.yarnpkg.com/ts-log/-/ts-log-2.2.5.tgz#aef3252f1143d11047e2cb6f7cfaac7408d96623" + integrity sha512-PGcnJoTBnVGy6yYNFxWVNkdcAuAMstvutN9MgDJIV6L0oG8fB+ZNNy1T+wJzah8RPGor1mZuPQkVfXNDpy9eHA== + ts-migrate-plugins@^0.1.35: version "0.1.35" resolved "https://registry.yarnpkg.com/ts-migrate-plugins/-/ts-migrate-plugins-0.1.35.tgz#96579e07ba8ffa31ff85dfbdd0220482e641f654" @@ -28393,7 +30017,7 @@ tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0, tslib@^2.5 resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== -tslib@^2.3.0: +tslib@^2.3.0, tslib@^2.3.1, tslib@^2.6.1, tslib@^2.6.2, tslib@~2.6.0: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== @@ -28403,6 +30027,11 @@ tslib@~2.3.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== +tslib@~2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" + integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== + tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" @@ -28657,6 +30286,11 @@ unbzip2-stream@^1.0.9: buffer "^5.2.1" through "^2.3.8" +unc-path-regex@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" + integrity sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg== + underscore@1.9.1: version "1.9.1" resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961" @@ -28838,6 +30472,13 @@ universalify@^2.0.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== +unixify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unixify/-/unixify-1.0.0.tgz#3a641c8c2ffbce4da683a5c70f03a462940c2090" + integrity sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg== + dependencies: + normalize-path "^2.1.1" + unpipe@1.0.0, unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -28903,6 +30544,14 @@ update-browserslist-db@^1.0.11: escalade "^3.1.1" picocolors "^1.0.0" +update-browserslist-db@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4" + integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + update-check@1.5.4: version "1.5.4" resolved "https://registry.yarnpkg.com/update-check/-/update-check-1.5.4.tgz#5b508e259558f1ad7dbc8b4b0457d4c9d28c8743" @@ -28916,6 +30565,20 @@ update-diff@^1.1.0: resolved "https://registry.yarnpkg.com/update-diff/-/update-diff-1.1.0.tgz#f510182d81ee819fb82c3a6b22b62bbdeda7808f" integrity sha512-rCiBPiHxZwT4+sBhEbChzpO5hYHjm91kScWgdHf4Qeafs6Ba7MBl+d9GlGv72bcTZQO0sLmtQS1pHSWoCLtN/A== +upper-case-first@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/upper-case-first/-/upper-case-first-2.0.2.tgz#992c3273f882abd19d1e02894cc147117f844324" + integrity sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg== + dependencies: + tslib "^2.0.3" + +upper-case@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-2.0.2.tgz#d89810823faab1df1549b7d97a76f8662bae6f7a" + integrity sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg== + dependencies: + tslib "^2.0.3" + uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -28968,6 +30631,16 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" +urlpattern-polyfill@^10.0.0: + version "10.0.0" + resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz#f0a03a97bfb03cdf33553e5e79a2aadd22cac8ec" + integrity sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg== + +urlpattern-polyfill@^8.0.0: + version "8.0.2" + resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz#99f096e35eff8bf4b5a2aa7d58a1523d6ebc7ce5" + integrity sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ== + use-callback-ref@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/use-callback-ref/-/use-callback-ref-1.3.0.tgz#772199899b9c9a50526fedc4993fc7fa1f7e32d5" @@ -29238,6 +30911,11 @@ value-equal@^1.0.1: resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c" integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw== +value-or-promise@^1.0.11, value-or-promise@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/value-or-promise/-/value-or-promise-1.0.12.tgz#0e5abfeec70148c78460a849f6b003ea7986f15c" + integrity sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q== + varint-decoder@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/varint-decoder/-/varint-decoder-1.0.0.tgz#289dab7887ee58d0c7be3a3353abeab4ca60aa77" @@ -29399,6 +31077,11 @@ web-namespaces@^2.0.0: resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-2.0.1.tgz#1010ff7c650eccb2592cebeeaf9a1b253fd40692" integrity sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ== +web-streams-polyfill@^3.2.1: + version "3.3.3" + resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz#2073b91a2fdb1fbfbd401e7de0ac9f8214cecb4b" + integrity sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw== + web3-bzz@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-bzz/-/web3-bzz-1.2.4.tgz#a4adb7a8cba3d260de649bdb1f14ed359bfb3821" @@ -29651,6 +31334,17 @@ web3@1.2.4: web3-shh "1.2.4" web3-utils "1.2.4" +webcrypto-core@^1.7.8: + version "1.7.8" + resolved "https://registry.yarnpkg.com/webcrypto-core/-/webcrypto-core-1.7.8.tgz#056918036e846c72cfebbb04052e283f57f1114a" + integrity sha512-eBR98r9nQXTqXt/yDRtInszPMjTaSAMJAFDg2AHsgrnczawT1asx9YNBX6k5p+MekbPF4+s/UJJrr88zsTqkSg== + dependencies: + "@peculiar/asn1-schema" "^2.3.8" + "@peculiar/json-schema" "^1.1.12" + asn1js "^3.0.1" + pvtsutils "^1.3.5" + tslib "^2.6.2" + webgl-context@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/webgl-context/-/webgl-context-2.2.0.tgz#8f37d7257cf6df1cd0a49e6a7b1b721b94cc86a0" @@ -30094,7 +31788,7 @@ wrap-ansi@^5.0.0: string-width "^3.0.0" strip-ansi "^5.0.0" -wrap-ansi@^6.2.0: +wrap-ansi@^6.0.1, wrap-ansi@^6.2.0: version "6.2.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== @@ -30190,6 +31884,11 @@ ws@^8.11.0, ws@^8.12.1, ws@^8.13.0, ws@^8.2.3, ws@^8.4.0: resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0" integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== +ws@^8.12.0, ws@^8.15.0: + version "8.16.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.16.0.tgz#d1cd774f36fbc07165066a60e40323eab6446fd4" + integrity sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ== + ws@~8.11.0: version "8.11.0" resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143" @@ -30331,11 +32030,21 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== +yaml-ast-parser@^0.0.43: + version "0.0.43" + resolved "https://registry.yarnpkg.com/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz#e8a23e6fb4c38076ab92995c5dca33f3d3d7c9bb" + integrity sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A== + yaml@^1.10.0, yaml@^1.10.2: version "1.10.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== +yaml@^2.3.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.4.1.tgz#2e57e0b5e995292c25c75d2658f0664765210eed" + integrity sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg== + yargs-parser@^18.1.2: version "18.1.3" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" @@ -30354,7 +32063,7 @@ yargs-parser@^21.0.1, yargs-parser@^21.1.1: resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== -yargs@^15.0.2, yargs@^15.1.0: +yargs@^15.0.2, yargs@^15.1.0, yargs@^15.3.1: version "15.4.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== @@ -30384,7 +32093,7 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yargs@^17.3.1: +yargs@^17.0.0, yargs@^17.3.1: version "17.7.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== From 0aaeaf6bbc09ebdf3b377b109821f9576d6e1eab Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 15:32:45 +0530 Subject: [PATCH 17/40] refactor(timeline): use codegen graphql --- .../{txsTable.jsx => txsTable.legacy.jsx} | 2 +- .../_refactor/account/component/txsTable.tsx | 160 ++++++++++++++++++ ...ddress.ts => useGetTsxByAddress.legacy.ts} | 0 3 files changed, 161 insertions(+), 1 deletion(-) rename src/pages/robot/_refactor/account/component/{txsTable.jsx => txsTable.legacy.jsx} (98%) create mode 100644 src/pages/robot/_refactor/account/component/txsTable.tsx rename src/pages/robot/_refactor/account/hooks/{useGetTsxByAddress.ts => useGetTsxByAddress.legacy.ts} (100%) diff --git a/src/pages/robot/_refactor/account/component/txsTable.jsx b/src/pages/robot/_refactor/account/component/txsTable.legacy.jsx similarity index 98% rename from src/pages/robot/_refactor/account/component/txsTable.jsx rename to src/pages/robot/_refactor/account/component/txsTable.legacy.jsx index 7782be2fc..b44909b11 100644 --- a/src/pages/robot/_refactor/account/component/txsTable.jsx +++ b/src/pages/robot/_refactor/account/component/txsTable.legacy.jsx @@ -15,7 +15,7 @@ import { } from '../../../../../utils/utils'; import RenderValue from './RenderValue'; -import useGetTsxByAddress from '../hooks/useGetTsxByAddress'; +import useGetTsxByAddress from '../hooks/useGetTsxByAddress.legacy'; import { useAdviser } from 'src/features/adviser/context'; function TxsTable() { diff --git a/src/pages/robot/_refactor/account/component/txsTable.tsx b/src/pages/robot/_refactor/account/component/txsTable.tsx new file mode 100644 index 000000000..a508cdcc3 --- /dev/null +++ b/src/pages/robot/_refactor/account/component/txsTable.tsx @@ -0,0 +1,160 @@ +import React, { useEffect, useMemo } from 'react'; +import { useMessagesByAddressQuery } from 'src/generated/graphql'; +import InfiniteScroll from 'react-infinite-scroll-component'; +import { Link } from 'react-router-dom'; +import statusTrueImg from 'src/image/ionicons_svg_ios-checkmark-circle.svg'; +import statusFalseImg from 'src/image/ionicons_svg_ios-close-circle.svg'; +import Table from 'src/components/Table/Table'; +import { useRobotContext } from 'src/pages/robot/robot.context'; +import Display from 'src/components/containerGradient/Display/Display'; +import { MsgType, TextTable } from 'src/components'; +import { getNowUtcTime, timeSince, trimString } from 'src/utils/utils'; +import { useAdviser } from 'src/features/adviser/context'; + +import RenderValue from './RenderValue'; + +const limit = 1000; // Use a constant for the limit + +function TxsTable() { + const { address: accountUser } = useRobotContext(); + const { setAdviser } = useAdviser(); + const { data, loading, fetchMore, error } = useMessagesByAddressQuery({ + variables: { + address: `{${accountUser}}`, + limit, + offset: 0, + }, + notifyOnNetworkStatusChange: true, + }); + + useEffect(() => { + setAdviser( + <> + the life history of one neuron, which cannot be removed or destroyed{' '} +
+ what is written in the blockchain cannot be cut out with an axe + + ); + }, [setAdviser]); + + const fetchMoreData = () => { + fetchMore({ + variables: { + offset: data?.messages_by_address.length, + }, + updateQuery: (prev, { fetchMoreResult }) => { + if (!fetchMoreResult) { + return prev; + } + + return { + ...prev, + messages_by_address: [ + ...prev.messages_by_address, + ...fetchMoreResult.messages_by_address, + ], + }; + }, + }); + }; + + // Prepare data for the table, combining all fetched pages + const tableData = useMemo(() => { + return (data?.messages_by_address || []).map((item) => { + let timeAgoInMS = + getNowUtcTime() - Date.parse(item.transaction.block.timestamp); + + let typeTx = item.type; + if ( + typeTx.includes('MsgSend') && + item?.value?.to_address === accountUser + ) { + typeTx = 'Receive'; + } + + return { + status: ( + + status + + ), + type: ( +
+ +
+ ), + timestamp: {timeSince(timeAgoInMS)} ago, + tx: ( + + + {trimString(item.transaction_hash, 6, 6)} + + + ), + action: ( + + + + ), + }; + }); + }, [data, accountUser]); + + const hasMore = data?.messages_by_address.length % limit === 0; + + return ( + + Loading...

} + style={{ display: 'grid', gap: '15px' }} + > + info.getValue(), + }, + { + header: 'Type', + accessorKey: 'type', + cell: (info) => info.getValue(), + }, + { + header: 'Timestamp', + accessorKey: 'timestamp', + cell: (info) => info.getValue(), + }, + { + header: 'Tx', + accessorKey: 'tx', + cell: (info) => info.getValue(), + }, + { + header: 'Action', + accessorKey: 'action', + cell: (info) => info.getValue(), + }, + ]} + data={tableData} + isLoading={loading} + /> + + + {error && Error: {error.message}} + + ); +} + +export default TxsTable; diff --git a/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts b/src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.legacy.ts similarity index 100% rename from src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.ts rename to src/pages/robot/_refactor/account/hooks/useGetTsxByAddress.legacy.ts From b68c4b1f4260597be0a6ad69ceeab87ac7465b7b Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 15:52:46 +0530 Subject: [PATCH 18/40] refactor(gql): codegen tx subscription --- .../txs/graphql/transactions.graphql | 8 ++++ src/containers/txs/index.tsx | 26 ++++--------- src/generated/graphql.ts | 37 +++++++++++++++++++ 3 files changed, 52 insertions(+), 19 deletions(-) create mode 100644 src/containers/txs/graphql/transactions.graphql diff --git a/src/containers/txs/graphql/transactions.graphql b/src/containers/txs/graphql/transactions.graphql new file mode 100644 index 000000000..443df543e --- /dev/null +++ b/src/containers/txs/graphql/transactions.graphql @@ -0,0 +1,8 @@ +subscription Transactions { + transaction(offset: 0, limit: 200, order_by: { height: desc }) { + success + messages + height + hash + } +} diff --git a/src/containers/txs/index.tsx b/src/containers/txs/index.tsx index 94e1850e8..9df1d348e 100644 --- a/src/containers/txs/index.tsx +++ b/src/containers/txs/index.tsx @@ -1,31 +1,19 @@ -import { gql } from '@apollo/client'; - import { v4 as uuidv4 } from 'uuid'; -import { useSubscription } from '@apollo/client'; import { Pane, TableEv as Table } from '@cybercongress/gravity'; import { Link } from 'react-router-dom'; +import { useTransactionsSubscription } from 'src/generated/graphql'; + import { trimString, formatNumber } from '../../utils/utils'; import { Loading, MsgType, TextTable } from '../../components'; -const statusTrueImg = require('../../image/ionicons_svg_ios-checkmark-circle.svg'); -const statusFalseImg = require('../../image/ionicons_svg_ios-close-circle.svg'); - -const GET_CHARACTERS = gql` - subscription Query { - transaction(offset: 0, limit: 200, order_by: { height: desc }) { - success - messages - height - hash - } - } -`; +import statusTrueImg from '../../image/ionicons_svg_ios-checkmark-circle.svg'; +import statusFalseImg from '../../image/ionicons_svg_ios-close-circle.svg'; function Txs() { - const { loading, error, data } = useSubscription(GET_CHARACTERS); + const { loading, error, data } = useTransactionsSubscription(); function renderRows() { - return data.transaction.map((item, index) => ( + return (data?.transaction || []).map((item, index) => ( - ) : data?.transaction.length > 0 ? ( + ) : data?.transaction.length ? ( ; }; +export type TransactionsSubscriptionVariables = Exact<{ [key: string]: never; }>; + + +export type TransactionsSubscription = { __typename?: 'subscription_root', transaction: Array<{ __typename?: 'transaction', success: boolean, messages: any, height: any, hash: string }> }; + export type MessagesByAddressQueryVariables = Exact<{ address?: InputMaybe; limit?: InputMaybe; @@ -10329,6 +10334,38 @@ export type MessagesByAddressQueryVariables = Exact<{ export type MessagesByAddressQuery = { __typename?: 'query_root', messages_by_address: Array<{ __typename?: 'message', transaction_hash: string, value: any, type: string, transaction: { __typename?: 'transaction', success: boolean, block: { __typename?: 'block', timestamp: any } } }> }; +export const TransactionsDocument = gql` + subscription Transactions { + transaction(offset: 0, limit: 200, order_by: {height: desc}) { + success + messages + height + hash + } +} + `; + +/** + * __useTransactionsSubscription__ + * + * To run a query within a React component, call `useTransactionsSubscription` and pass it any options that fit your needs. + * When your component renders, `useTransactionsSubscription` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useTransactionsSubscription({ + * variables: { + * }, + * }); + */ +export function useTransactionsSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSubscription(TransactionsDocument, options); + } +export type TransactionsSubscriptionHookResult = ReturnType; +export type TransactionsSubscriptionResult = Apollo.SubscriptionResult; export const MessagesByAddressDocument = gql` query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint) { messages_by_address( From d4dcc2d0712bf57d51807b993cbb9e9bfbd256d6 Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 19:09:45 +0530 Subject: [PATCH 19/40] refactor(app): rnaming consts, small clenup --- docker-compose.yml | 4 +- src/constants/config.ts | 6 +- src/constants/defaultNetworks.ts | 8 +- src/containers/home/home.jsx | 4 +- .../temple/hooks/useGetNegentropy.ts | 4 +- src/containers/txs/txsDetails.jsx | 4 +- src/contexts/queryClient.tsx | 4 +- src/contexts/signerClient.tsx | 4 +- .../CyberlinksGraphContainer.tsx | 34 -------- .../_refactor/account/component/txsTable.tsx | 7 +- .../robot/_refactor/account/tabs/follows.tsx | 1 - .../services/dataSource/blockchain/lcd.ts | 6 +- src/services/backend/services/lcd/lcd.ts | 14 ++-- src/types/networks.ts | 4 +- src/utils/governance.ts | 20 ++--- src/utils/keplrUtils.ts | 6 +- src/utils/networkListIbc.ts | 2 +- src/utils/search/utils.ts | 82 +++++++++---------- webpack.config.common.js | 4 +- 19 files changed, 87 insertions(+), 131 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index dc3190b6f..8b0768b85 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,8 +9,8 @@ services: environment: - NODE_OPTIONS=--max-old-space-size=8192 - CHAIN_ID=bostrom - - API=https://rpc.bostrom.cybernode.ai - - LCD=https://lcd.bostrom.cybernode.ai + - RPC_URL=https://rpc.bostrom.cybernode.ai + - LCD_URL=https://lcd.bostrom.cybernode.ai - WEBSOCKET_URL=wss://rpc.bostrom.cybernode.ai/websocket - INDEX_HTTPS=https://index.bostrom.cybernode.ai/v1/graphql - INDEX_WEBSOCKET=wss://index.bostrom.cybernode.ai/v1/graphql diff --git a/src/constants/config.ts b/src/constants/config.ts index 87705c722..4b3ba7052 100644 --- a/src/constants/config.ts +++ b/src/constants/config.ts @@ -6,9 +6,11 @@ const DEFAULT_CHAIN_ID: Networks.BOSTROM | Networks.SPACE_PUSSY = export const CHAIN_ID = process.env.CHAIN_ID || DEFAULT_CHAIN_ID; -export const LCD = process.env.LCD || defaultNetworks[DEFAULT_CHAIN_ID].LCD; +export const LCD_URL = + process.env.LCD_URL || defaultNetworks[DEFAULT_CHAIN_ID].LCD_URL; -export const API = process.env.API || defaultNetworks[DEFAULT_CHAIN_ID].API; +export const RPC_URL = + process.env.RPC_URL || defaultNetworks[DEFAULT_CHAIN_ID].RPC_URL; export const WEBSOCKET_URL = process.env.WEBSOCKET_URL || defaultNetworks[DEFAULT_CHAIN_ID].WEBSOCKET_URL; diff --git a/src/constants/defaultNetworks.ts b/src/constants/defaultNetworks.ts index 4b71e4efe..9342a27ca 100644 --- a/src/constants/defaultNetworks.ts +++ b/src/constants/defaultNetworks.ts @@ -9,8 +9,8 @@ const defaultNetworks: NetworksList = { CHAIN_ID: Networks.BOSTROM, BASE_DENOM: 'boot', DENOM_LIQUID: 'hydrogen', - API: 'https://rpc.bostrom.cybernode.ai', - LCD: 'https://lcd.bostrom.cybernode.ai', + RPC_URL: 'https://rpc.bostrom.cybernode.ai', + LCD_URL: 'https://lcd.bostrom.cybernode.ai', WEBSOCKET_URL: 'wss://rpc.bostrom.cybernode.ai/websocket', INDEX_HTTPS: 'https://index.bostrom.cybernode.ai/v1/graphql', INDEX_WEBSOCKET: 'wss://index.bostrom.cybernode.ai/v1/graphql', @@ -21,8 +21,8 @@ const defaultNetworks: NetworksList = { CHAIN_ID: Networks.SPACE_PUSSY, BASE_DENOM: 'pussy', DENOM_LIQUID: 'liquidpussy', - API: 'https://rpc.space-pussy.cybernode.ai/', - LCD: 'https://lcd.space-pussy.cybernode.ai', + RPC_URL: 'https://rpc.space-pussy.cybernode.ai/', + LCD_URL: 'https://lcd.space-pussy.cybernode.ai', WEBSOCKET_URL: 'wss://rpc.space-pussy.cybernode.ai/websocket', INDEX_HTTPS: 'https://index.space-pussy.cybernode.ai/v1/graphql', INDEX_WEBSOCKET: 'wss://index.space-pussy.cybernode.ai/v1/graphql', diff --git a/src/containers/home/home.jsx b/src/containers/home/home.jsx index 6878cdb24..c067ea7a4 100644 --- a/src/containers/home/home.jsx +++ b/src/containers/home/home.jsx @@ -13,7 +13,7 @@ import { formatCurrency, formatNumber } from '../../utils/utils'; import useGetStatisticsCyber from '../brain/hooks/getStatisticsCyber'; import KnowledgeTab from '../brain/tabs/knowledge'; import { getNumTokens, getStateGift } from '../portal/utils'; -import { BASE_DENOM, LCD } from 'src/constants/config'; +import { BASE_DENOM, LCD_URL } from 'src/constants/config'; const PREFIXES = [ { @@ -114,7 +114,7 @@ function Home() { setEntropyLoader(true); const response = await axios({ method: 'get', - url: `${LCD}/rank/negentropy`, + url: `${LCD_URL}/rank/negentropy`, }); if (response.data.result.negentropy) { setEntropy(response.data.result.negentropy); diff --git a/src/containers/temple/hooks/useGetNegentropy.ts b/src/containers/temple/hooks/useGetNegentropy.ts index d0f7b1062..26b96e207 100644 --- a/src/containers/temple/hooks/useGetNegentropy.ts +++ b/src/containers/temple/hooks/useGetNegentropy.ts @@ -2,13 +2,13 @@ import { useEffect, useState } from 'react'; import { useQuery } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import axios from 'axios'; -import { LCD } from 'src/constants/config'; +import { LCD_URL } from 'src/constants/config'; const getNegentropy = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/rank/negentropy`, + url: `${LCD_URL}/rank/negentropy`, }); return response.data; diff --git a/src/containers/txs/txsDetails.jsx b/src/containers/txs/txsDetails.jsx index d928102b3..4a808f616 100644 --- a/src/containers/txs/txsDetails.jsx +++ b/src/containers/txs/txsDetails.jsx @@ -3,7 +3,7 @@ import { useState, useEffect } from 'react'; import { useParams } from 'react-router-dom'; import axios from 'axios'; import { useDevice } from 'src/contexts/device'; -import { LCD } from 'src/constants/config'; +import { LCD_URL } from 'src/constants/config'; import InformationTxs from './informationTxs'; import Msgs from './msgs'; import ActionBarContainer from '../Search/ActionBarContainer'; @@ -13,7 +13,7 @@ const getTxs = async (txs) => { try { const response = await axios({ method: 'get', - url: `${LCD}/cosmos/tx/v1beta1/txs/${txs}`, + url: `${LCD_URL}/cosmos/tx/v1beta1/txs/${txs}`, }); return response.data; } catch (e) { diff --git a/src/contexts/queryClient.tsx b/src/contexts/queryClient.tsx index 75457e316..33d846dd4 100644 --- a/src/contexts/queryClient.tsx +++ b/src/contexts/queryClient.tsx @@ -2,7 +2,7 @@ import React, { useContext } from 'react'; import { CyberClient } from '@cybercongress/cyber-js'; import { Option } from 'src/types'; import { useQuery } from '@tanstack/react-query'; -import { API } from 'src/constants/config'; +import { RPC_URL } from 'src/constants/config'; const QueryClientContext = React.createContext>(undefined); @@ -14,7 +14,7 @@ function QueryClientProvider({ children }: { children: React.ReactNode }) { const { data, error, isFetching } = useQuery({ queryKey: ['cyberClient', 'connect'], queryFn: async () => { - return CyberClient.connect(API); + return CyberClient.connect(RPC_URL); }, }); diff --git a/src/contexts/signerClient.tsx b/src/contexts/signerClient.tsx index a44f1ca73..0c6d269f1 100644 --- a/src/contexts/signerClient.tsx +++ b/src/contexts/signerClient.tsx @@ -15,7 +15,7 @@ import { Keplr } from '@keplr-wallet/types'; import { addAddressPocket, setDefaultAccount } from 'src/redux/features/pocket'; import { accountsKeplr } from 'src/utils/utils'; import usePrevious from 'src/hooks/usePrevious'; -import { API, BECH32_PREFIX, CHAIN_ID } from 'src/constants/config'; +import { RPC_URL, BECH32_PREFIX, CHAIN_ID } from 'src/constants/config'; // TODO: interface for keplr and OfflineSigner // type SignerType = OfflineSigner & { @@ -34,7 +34,7 @@ async function createClient( ): Promise { const options = { prefix: BECH32_PREFIX }; const client = await SigningCyberClient.connectWithSigner( - API, + RPC_URL, signer, options ); diff --git a/src/features/cyberlinks/CyberlinksGraph/CyberlinksGraphContainer.tsx b/src/features/cyberlinks/CyberlinksGraph/CyberlinksGraphContainer.tsx index 87720e7f6..4c92bc5ab 100644 --- a/src/features/cyberlinks/CyberlinksGraph/CyberlinksGraphContainer.tsx +++ b/src/features/cyberlinks/CyberlinksGraph/CyberlinksGraphContainer.tsx @@ -66,37 +66,3 @@ function CyberlinksGraphContainer({ } export default CyberlinksGraphContainer; - -// old code - -// const handleNewLink = useCallback(subscription => { -// let link = subscription["subscriptionData"].data["cyberlink"][0] -// let { nodes, links } = data; -// let l = { -// source: link["object_from"], -// target: link["object_to"], -// name: link["txhash"] -// } - -// if (!nodes.some(node => node["id"] == l["source"])) { -// nodes.push({id: l["source"]}) -// } - -// if (!nodes.some(node => node["id"] == l["target"])) { -// nodes.push({id: l["target"]}) -// } - -// setItems({ -// nodes: [...nodes], -// links: [...links, { -// source: l["source"], -// target: l["target"], -// name: l["name"], -// curvative: getRandomInt(20,500)/1000 -// }] -// }) -// }, [data]) - -// const { loading: loadingLinks, data: dataNew } = useSubscription(CYBERLINK_SUBSCRIPTION, { -// onSubscriptionData: handleNewLink -// }); diff --git a/src/pages/robot/_refactor/account/component/txsTable.tsx b/src/pages/robot/_refactor/account/component/txsTable.tsx index a508cdcc3..32a076450 100644 --- a/src/pages/robot/_refactor/account/component/txsTable.tsx +++ b/src/pages/robot/_refactor/account/component/txsTable.tsx @@ -17,6 +17,7 @@ const limit = 1000; // Use a constant for the limit function TxsTable() { const { address: accountUser } = useRobotContext(); + const [hasMore, setHasMore] = useState(true); const { setAdviser } = useAdviser(); const { data, loading, fetchMore, error } = useMessagesByAddressQuery({ variables: { @@ -46,7 +47,7 @@ function TxsTable() { if (!fetchMoreResult) { return prev; } - + setHasMore(fetchMoreResult.messages_by_address.length > 0); return { ...prev, messages_by_address: [ @@ -61,7 +62,7 @@ function TxsTable() { // Prepare data for the table, combining all fetched pages const tableData = useMemo(() => { return (data?.messages_by_address || []).map((item) => { - let timeAgoInMS = + const timeAgoInMS = getNowUtcTime() - Date.parse(item.transaction.block.timestamp); let typeTx = item.type; @@ -108,8 +109,6 @@ function TxsTable() { }); }, [data, accountUser]); - const hasMore = data?.messages_by_address.length % limit === 0; - return ( => { const response = await axios({ method: 'get', - url: `${LCD}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=${CID_FOLLOW}&limit=1000000000`, + url: `${LCD_URL}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=${CID_FOLLOW}&limit=1000000000`, signal, }); @@ -30,14 +30,10 @@ export const getFollowers = async ( const response = await axios({ method: 'get', - url: `${LCD}/txs?cyberlink.particleFrom=${CID_FOLLOW}&cyberlink.particleTo=${addressHash}&limit=1000000000`, + url: `${LCD_URL}/txs?cyberlink.particleFrom=${CID_FOLLOW}&cyberlink.particleTo=${addressHash}&limit=1000000000`, signal, }); - // console.log( - // '-----getFollowers', - // `${CYBER_NODE_URL_LCD}/txs?cyberlink.particleFrom=${CID_FOLLOW}&cyberlink.particleTo=${addressHash}&limit=1000000000`, - // response.data - // ); + if (!response.data.txs) { return []; } @@ -46,6 +42,6 @@ export const getFollowers = async ( export async function getTransaction(txHash: string) { // https://lcd.bostrom.cybernode.ai/cosmos/tx/v1beta1/txs/67FD87EBCC1633B779C154C1CAFD48DE71350074A04F742DAD418F69F1D05BB0 - const response = axios.get(`${LCD}/cosmos/tx/v1beta1/txs/${txHash}`); + const response = axios.get(`${LCD_URL}/cosmos/tx/v1beta1/txs/${txHash}`); return response; } diff --git a/src/types/networks.ts b/src/types/networks.ts index 2820dc199..769e79800 100644 --- a/src/types/networks.ts +++ b/src/types/networks.ts @@ -11,8 +11,8 @@ export type NetworkConfig = { CHAIN_ID: Networks; BASE_DENOM: string; DENOM_LIQUID: string; - API: string; - LCD: string; + RPC_URL: string; + LCD_URL: string; WEBSOCKET_URL: string; INDEX_HTTPS: string; INDEX_WEBSOCKET: string; diff --git a/src/utils/governance.ts b/src/utils/governance.ts index 881e24672..c68720235 100644 --- a/src/utils/governance.ts +++ b/src/utils/governance.ts @@ -1,12 +1,12 @@ import axios from 'axios'; import { GetTxsEventResponse } from 'cosmjs-types/cosmos/tx/v1beta1/service'; -import { LCD } from 'src/constants/config'; +import { LCD_URL } from 'src/constants/config'; export const getProposals = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/cosmos/gov/v1beta1/proposals`, + url: `${LCD_URL}/cosmos/gov/v1beta1/proposals`, }); return response.data.proposals; @@ -20,7 +20,7 @@ export const getProposalsDetail = (id) => new Promise((resolve) => { axios({ method: 'get', - url: `${LCD}/cosmos/gov/v1beta1/proposals/${id}`, + url: `${LCD_URL}/cosmos/gov/v1beta1/proposals/${id}`, }) .then((response) => { resolve(response.data.proposal); @@ -34,7 +34,7 @@ export const getStakingPool = () => new Promise((resolve) => { axios({ method: 'get', - url: `${LCD}/staking/pool`, + url: `${LCD_URL}/staking/pool`, }) .then((response) => { resolve(response.data.result); @@ -48,7 +48,7 @@ export const getTallying = () => new Promise((resolve) => { axios({ method: 'get', - url: `${LCD}/gov/parameters/tallying`, + url: `${LCD_URL}/gov/parameters/tallying`, }) .then((response) => { resolve(response.data.result); @@ -62,7 +62,7 @@ export const getProposer = async (id) => { try { const response = await axios({ method: 'get', - url: `${LCD}/gov/proposals/${id}/proposer`, + url: `${LCD_URL}/gov/proposals/${id}/proposer`, }); return response.data.result; } catch (error) { @@ -75,7 +75,7 @@ export const getMinDeposit = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/gov/parameters/deposit`, + url: `${LCD_URL}/gov/parameters/deposit`, }); return response.data.result; } catch (error) { @@ -88,9 +88,7 @@ export const getTableVoters = async (id, offset = 0, limit = 20) => { try { const response = await axios({ method: 'get', - url: `${ - LCD - }/cosmos/tx/v1beta1/txs?pagination.offset=${ + url: `${LCD_URL}/cosmos/tx/v1beta1/txs?pagination.offset=${ offset * limit }&pagination.limit=${limit}&orderBy=ORDER_BY_DESC&events=proposal_vote.proposal_id%3D${id}`, }); @@ -108,7 +106,7 @@ export const getTallyingProposals = async (id) => { try { const response = await axios({ method: 'get', - url: `${LCD}/gov/proposals/${id}/tally`, + url: `${LCD_URL}/gov/proposals/${id}/tally`, }); return response.data.result; } catch (e) { diff --git a/src/utils/keplrUtils.ts b/src/utils/keplrUtils.ts index ac58ee47c..1daefb627 100644 --- a/src/utils/keplrUtils.ts +++ b/src/utils/keplrUtils.ts @@ -1,5 +1,5 @@ import { Keplr } from '@keplr-wallet/types'; -import { API, CHAIN_ID, BASE_DENOM, LCD } from 'src/constants/config'; +import { RPC_URL, CHAIN_ID, BASE_DENOM, LCD_URL } from 'src/constants/config'; export const getKeplr = async (): Promise => { if (window.keplr) { @@ -32,8 +32,8 @@ const configKeplr = (prefix) => { // The name of the chain to be displayed to the user. chainName: CHAIN_ID, // RPC endpoint of the chain. - rpc: API, - rest: LCD, + rpc: RPC_URL, + rest: LCD_URL, stakeCurrency: { coinDenom: BASE_DENOM.toUpperCase(), coinMinimalDenom: BASE_DENOM, diff --git a/src/utils/networkListIbc.ts b/src/utils/networkListIbc.ts index 245063dc2..65cde328a 100644 --- a/src/utils/networkListIbc.ts +++ b/src/utils/networkListIbc.ts @@ -18,7 +18,7 @@ export type NetworkCons = { const networkList: ObjectKey = { bostrom: { chainId: defaultNetworks.bostrom.CHAIN_ID, - rpc: defaultNetworks.bostrom.API, + rpc: defaultNetworks.bostrom.RPC_URL, coinMinimalDenom: defaultNetworks.bostrom.BASE_DENOM, }, 'osmosis-1': { diff --git a/src/utils/search/utils.ts b/src/utils/search/utils.ts index 75a8b1f3f..035bac2b4 100644 --- a/src/utils/search/utils.ts +++ b/src/utils/search/utils.ts @@ -5,7 +5,7 @@ import { CyberClient } from '@cybercongress/cyber-js'; import { QueryDelegatorDelegationsResponse } from 'cosmjs-types/cosmos/staking/v1beta1/query'; import { DelegationResponse } from 'cosmjs-types/cosmos/staking/v1beta1/staking'; import { CID_TWEET } from 'src/constants/app'; -import { INDEX_HTTPS, LCD } from 'src/constants/config'; +import { INDEX_HTTPS, LCD_URL } from 'src/constants/config'; const SEARCH_RESULT_TIMEOUT_MS = 10000; @@ -72,7 +72,7 @@ export const selfDelegationShares = async ( try { const response = await axios({ method: 'get', - url: `${LCD}/staking/delegators/${delegatorAddress}/delegations/${operatorAddress}`, + url: `${LCD_URL}/staking/delegators/${delegatorAddress}/delegations/${operatorAddress}`, }); return response.data.result.balance.amount; } catch (e) { @@ -85,7 +85,7 @@ export const stakingPool = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/staking/pool`, + url: `${LCD_URL}/staking/pool`, }); return response.data.result; @@ -99,7 +99,7 @@ export const getAccountBandwidth = async (address) => { try { const response = await axios({ method: 'get', - url: `${LCD}/bandwidth/neuron/${address}`, + url: `${LCD_URL}/bandwidth/neuron/${address}`, }); return response.data.result; } catch (e) { @@ -112,7 +112,7 @@ export const getRelevance = async (page = 0, limit = 50) => { try { const response = await axios({ method: 'get', - url: `${LCD}/rank/top?page=${page}&limit=${limit}`, + url: `${LCD_URL}/rank/top?page=${page}&limit=${limit}`, }); return response.data.result; } catch (error) { @@ -124,28 +124,24 @@ export const getBalance = async (address, node) => { try { const availablePromise = await axios({ method: 'get', - url: `${node || LCD}/bank/balances/${address}`, + url: `${node || LCD_URL}/bank/balances/${address}`, }); const delegationsPromise = await axios({ method: 'get', - url: `${ - node || LCD - }/staking/delegators/${address}/delegations`, + url: `${node || LCD_URL}/staking/delegators/${address}/delegations`, }); const unbondingPromise = await axios({ method: 'get', url: `${ - node || LCD + node || LCD_URL }/staking/delegators/${address}/unbonding_delegations`, }); const rewardsPropsise = await axios({ method: 'get', - url: `${ - node || LCD - }/distribution/delegators/${address}/rewards`, + url: `${node || LCD_URL}/distribution/delegators/${address}/rewards`, }); const response = { @@ -241,7 +237,7 @@ export const getTxs = async (txs) => { try { const response = await axios({ method: 'get', - url: `${LCD}/txs/${txs}`, + url: `${LCD_URL}/txs/${txs}`, }); return response.data; } catch (e) { @@ -254,7 +250,7 @@ export const getValidatorsInfo = async (address) => { try { const response = await axios({ method: 'get', - url: `${LCD}/staking/validators/${address}`, + url: `${LCD_URL}/staking/validators/${address}`, }); return response.data.result; } catch (e) { @@ -293,7 +289,7 @@ export const getDelegators = async (validatorAddr) => { try { const response = await axios({ method: 'get', - url: `${LCD}/staking/validators/${validatorAddr}/delegations`, + url: `${LCD_URL}/staking/validators/${validatorAddr}/delegations`, }); return response.data; } catch (e) { @@ -306,7 +302,7 @@ export const getTotalRewards = async (delegatorAddr) => { try { const response = await axios({ method: 'get', - url: `${LCD}/distribution/delegators/${delegatorAddr}/rewards`, + url: `${LCD_URL}/distribution/delegators/${delegatorAddr}/rewards`, }); return response.data.result; } catch (e) { @@ -344,7 +340,7 @@ const getParamSlashing = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/slashing/parameters`, + url: `${LCD_URL}/slashing/parameters`, }); return response.data.result; } catch (e) { @@ -357,7 +353,7 @@ const getParamDistribution = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/distribution/parameters`, + url: `${LCD_URL}/distribution/parameters`, }); return response.data.result; } catch (e) { @@ -370,7 +366,7 @@ const getParamBandwidth = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/bandwidth/parameters`, + url: `${LCD_URL}/bandwidth/parameters`, }); return response.data.result; } catch (e) { @@ -383,17 +379,17 @@ const getParamGov = async () => { try { const responseGovDeposit = await axios({ method: 'get', - url: `${LCD}/gov/parameters/deposit`, + url: `${LCD_URL}/gov/parameters/deposit`, }); const responseGovTallying = await axios({ method: 'get', - url: `${LCD}/gov/parameters/tallying`, + url: `${LCD_URL}/gov/parameters/tallying`, }); const responseGovVoting = await axios({ method: 'get', - url: `${LCD}/gov/parameters/voting`, + url: `${LCD_URL}/gov/parameters/voting`, }); const response = { @@ -413,7 +409,7 @@ const getParamRank = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/rank/parameters`, + url: `${LCD_URL}/rank/parameters`, }); return response.data.result; } catch (e) { @@ -426,7 +422,7 @@ const getParamInlfation = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/minting/parameters`, + url: `${LCD_URL}/minting/parameters`, }); return response.data.result; } catch (e) { @@ -439,7 +435,7 @@ const getParamResources = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/cyber/resources/v1beta1/resources/params`, + url: `${LCD_URL}/cyber/resources/v1beta1/resources/params`, }); return response.data.params; } catch (e) { @@ -452,7 +448,7 @@ const getParamStaking = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/staking/parameters`, + url: `${LCD_URL}/staking/parameters`, }); return response.data.result; } catch (e) { @@ -465,7 +461,7 @@ const getParamLiquidity = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/cosmos/liquidity/v1beta1/params`, + url: `${LCD_URL}/cosmos/liquidity/v1beta1/params`, }); return response.data.params; } catch (e) { @@ -478,7 +474,7 @@ const getParamGrid = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/cyber/grid/v1beta1/grid/params`, + url: `${LCD_URL}/cyber/grid/v1beta1/grid/params`, }); return response.data.params; } catch (e) { @@ -491,7 +487,7 @@ const getParamDmn = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/cyber/dmn/v1beta1/dmn/params`, + url: `${LCD_URL}/cyber/dmn/v1beta1/dmn/params`, }); return response.data.params; } catch (e) { @@ -590,7 +586,7 @@ export const getInlfation = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/minting/inflation`, + url: `${LCD_URL}/minting/inflation`, }); return response.data.result; } catch (e) { @@ -612,7 +608,7 @@ const getLink = async ( try { const response = await axios({ method: 'get', - url: `${LCD}/cosmos/tx/v1beta1/txs`, + url: `${LCD_URL}/cosmos/tx/v1beta1/txs`, params: { 'pagination.offset': offset, 'pagination.limit': limit, @@ -659,7 +655,7 @@ export const getFollows = async (address) => { try { const response = await axios({ method: 'get', - url: `${LCD}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=QmPLSA5oPqYxgc8F7EwrM8WS9vKrr1zPoDniSRFh8HSrxx&limit=1000000000`, + url: `${LCD_URL}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=QmPLSA5oPqYxgc8F7EwrM8WS9vKrr1zPoDniSRFh8HSrxx&limit=1000000000`, }); return response.data; } catch (e) { @@ -672,7 +668,7 @@ export const getTweet = async (address) => { try { const response = await axios({ method: 'get', - url: `${LCD}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=${CID_TWEET}&limit=1000000000`, + url: `${LCD_URL}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=${CID_TWEET}&limit=1000000000`, }); return response.data; } catch (error) { @@ -685,7 +681,7 @@ export const chekFollow = async (address, addressFollowHash) => { try { const response = await axios({ method: 'get', - url: `${LCD}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=QmPLSA5oPqYxgc8F7EwrM8WS9vKrr1zPoDniSRFh8HSrxx&cyberlink.particleTo=${addressFollowHash}&limit=1000000000`, + url: `${LCD_URL}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=QmPLSA5oPqYxgc8F7EwrM8WS9vKrr1zPoDniSRFh8HSrxx&cyberlink.particleTo=${addressFollowHash}&limit=1000000000`, }); return response.data; } catch (error) { @@ -710,7 +706,7 @@ export async function getTransactions({ orderBy = 'ORDER_BY_UNSPECIFIED', }: PropsTx) { const { offset, limit } = pagination; - return axios.get(`${LCD}/cosmos/tx/v1beta1/txs`, { + return axios.get(`${LCD_URL}/cosmos/tx/v1beta1/txs`, { params: { 'pagination.offset': offset, 'pagination.limit': limit, @@ -735,7 +731,7 @@ export async function getCyberlinks(address) { try { const response = await axios({ method: 'get', - url: `${LCD}/cosmos/tx/v1beta1/txs?pagination.offset=0&pagination.limit=5&orderBy=ORDER_BY_ASC&events=message.action='/cyber.graph.v1beta1.MsgCyberlink'&events=cyberlink.neuron='${address}'`, + url: `${LCD_URL}/cosmos/tx/v1beta1/txs?pagination.offset=0&pagination.limit=5&orderBy=ORDER_BY_ASC&events=message.action='/cyber.graph.v1beta1.MsgCyberlink'&events=cyberlink.neuron='${address}'`, }); return response.data.pagination.total; @@ -749,7 +745,7 @@ export const getAvatar = async (address) => { try { const response = await axios({ method: 'get', - url: `${LCD}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=Qmf89bXkJH9jw4uaLkHmZkxQ51qGKfUPtAMxA8rTwBrmTs&limit=1000000000`, + url: `${LCD_URL}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=Qmf89bXkJH9jw4uaLkHmZkxQ51qGKfUPtAMxA8rTwBrmTs&limit=1000000000`, }); return response.data; } catch (error) { @@ -762,7 +758,7 @@ export const getFollowers = async (addressHash) => { try { const response = await axios({ method: 'get', - url: `${LCD}/txs?cyberlink.particleFrom=QmPLSA5oPqYxgc8F7EwrM8WS9vKrr1zPoDniSRFh8HSrxx&cyberlink.particleTo=${addressHash}&limit=1000000000`, + url: `${LCD_URL}/txs?cyberlink.particleFrom=QmPLSA5oPqYxgc8F7EwrM8WS9vKrr1zPoDniSRFh8HSrxx&cyberlink.particleTo=${addressHash}&limit=1000000000`, }); return response.data; } catch (error) { @@ -776,12 +772,12 @@ export const getCreator = async (cid) => { // TODO: refactor this const response = await axios({ method: 'get', - url: `${LCD}/cosmos/tx/v1beta1/txs?pagination.offset=0&pagination.limit=1&orderBy=ORDER_BY_ASC&events=cyberlink.particleTo%3D%27${cid}%27`, + url: `${LCD_URL}/cosmos/tx/v1beta1/txs?pagination.offset=0&pagination.limit=1&orderBy=ORDER_BY_ASC&events=cyberlink.particleTo%3D%27${cid}%27`, }); const response2 = await axios({ method: 'get', - url: `${LCD}/cosmos/tx/v1beta1/txs?pagination.offset=0&pagination.limit=1&orderBy=ORDER_BY_ASC&events=cyberlink.particleFrom%3D%27${cid}%27`, + url: `${LCD_URL}/cosmos/tx/v1beta1/txs?pagination.offset=0&pagination.limit=1&orderBy=ORDER_BY_ASC&events=cyberlink.particleFrom%3D%27${cid}%27`, }); const h1 = Number(response.data.tx_responses?.[0]?.height || 0); @@ -804,7 +800,7 @@ export const authAccounts = async (address) => { try { const response = await axios({ method: 'get', - url: `${LCD}/auth/accounts/${address}`, + url: `${LCD_URL}/auth/accounts/${address}`, }); return response.data; } catch (error) { @@ -866,7 +862,7 @@ export const getDenomTraces = async () => { try { const response = await axios({ method: 'get', - url: `${LCD}/ibc/apps/transfer/v1/denom_traces`, + url: `${LCD_URL}/ibc/apps/transfer/v1/denom_traces`, }); return response.data; } catch (e) { diff --git a/webpack.config.common.js b/webpack.config.common.js index deacf5d6a..44ccb15aa 100644 --- a/webpack.config.common.js +++ b/webpack.config.common.js @@ -100,8 +100,8 @@ const config = { 'process.env.COMMIT_SHA': JSON.stringify(process.env.COMMIT_SHA), 'process.env.CHAIN_ID': JSON.stringify(process.env.CHAIN_ID), - 'process.env.API': JSON.stringify(process.env.API), - 'process.env.LCD': JSON.stringify(process.env.LCD), + 'process.env.RPC_URL': JSON.stringify(process.env.RPC_URL), + 'process.env.LCD_URL': JSON.stringify(process.env.LCD_URL), 'process.env.WEBSOCKET_URL': JSON.stringify(process.env.WEBSOCKET_URL), 'process.env.INDEX_HTTPS': JSON.stringify(process.env.INDEX_HTTPS), 'process.env.INDEX_WEBSOCKET': JSON.stringify( From f6724d8805d1f0a66c17be681432a5cdaded549f Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 19:40:41 +0530 Subject: [PATCH 20/40] feat(lcd): lcd autogenerated typescript defenitions --- package.json | 4 +- src/generated/lcd.d.ts | 27930 +++++++++++++++++++++++++++++++++++++++ yarn.lock | 314 +- 3 files changed, 28227 insertions(+), 21 deletions(-) create mode 100644 src/generated/lcd.d.ts diff --git a/package.json b/package.json index 199bdce1c..7e8817aac 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "test": "jest --transformIgnorePatterns --verbose", - "gql": "yarn graphql-codegen --config ./codegen.ts" + "generate-graphql-types": "yarn graphql-codegen --config ./codegen.ts", + "generate-lcd-types": "npx swagger-typescript-api -p https://lcd.bostrom.cybernode.ai/swagger/swagger.yaml -o ./src/generated -n lcd.d.ts" }, "browserslist": "> 0.5%, last 2 versions, not dead", "license": "ISC", @@ -128,6 +129,7 @@ "stylelint-config-standard": "^33.0.0", "stylelint-config-standard-scss": "^9.0.0", "stylelint-order": "^6.0.3", + "swagger-typescript-api": "^13.0.3", "swr": "^1.0.1", "terser-webpack-plugin": "4.2.3", "ts-migrate": "^0.1.35", diff --git a/src/generated/lcd.d.ts b/src/generated/lcd.d.ts new file mode 100644 index 000000000..8956cd1e6 --- /dev/null +++ b/src/generated/lcd.d.ts @@ -0,0 +1,27930 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +export interface CyberGraphV1Beta1QueryGraphStatsResponse { + /** @format uint64 */ + cyberlinks?: string; + /** @format uint64 */ + particles?: string; +} + +/** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ +export interface GoogleProtobufAny { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; +} + +export interface GrpcGatewayRuntimeError { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; +} + +export interface CyberGraphV1Beta1Link { + from?: string; + to?: string; +} + +export type CyberGraphV1Beta1MsgCyberlinkResponse = object; + +export interface CyberBaseQueryV1Beta1PageRequest { + /** @format int64 */ + page?: number; + /** @format int64 */ + per_page?: number; +} + +export interface CyberBaseQueryV1Beta1PageResponse { + /** @format int64 */ + total?: number; +} + +export interface CyberRankV1Beta1Params { + /** @format int64 */ + calculation_period?: string; + damping_factor?: string; + tolerance?: string; +} + +export interface CyberRankV1Beta1QueryKarmaResponse { + /** @format uint64 */ + karma?: string; +} + +export interface CyberRankV1Beta1QueryLinkExistResponse { + /** @format boolean */ + exist?: boolean; +} + +export interface CyberRankV1Beta1QueryNegentropyParticleResponse { + /** @format uint64 */ + entropy?: string; +} + +export interface CyberRankV1Beta1QueryNegentropyResponse { + /** @format uint64 */ + negentropy?: string; +} + +export interface CyberRankV1Beta1QueryParamsResponse { + params?: { + /** @format int64 */ + calculation_period?: string; + damping_factor?: string; + tolerance?: string; + }; +} + +export interface CyberRankV1Beta1QueryRankResponse { + /** @format uint64 */ + rank?: string; +} + +export interface CyberRankV1Beta1QuerySearchResponse { + result?: { + particle?: string; + /** @format uint64 */ + rank?: string; + }[]; + pagination?: { + /** @format int64 */ + total?: number; + }; +} + +export interface CyberRankV1Beta1RankedParticle { + particle?: string; + /** @format uint64 */ + rank?: string; +} + +/** DecProto defines a Protobuf wrapper around a Dec object. */ +export interface CosmosBaseV1Beta1DecProto { + dec?: string; +} + +export interface CyberBandwidthV1Beta1NeuronBandwidth { + neuron?: string; + /** @format uint64 */ + remained_value?: string; + /** @format uint64 */ + last_updated_block?: string; + /** @format uint64 */ + max_value?: string; +} + +export interface CyberBandwidthV1Beta1Params { + /** @format uint64 */ + recovery_period?: string; + /** @format uint64 */ + adjust_price_period?: string; + base_price?: string; + base_load?: string; + /** @format uint64 */ + max_block_bandwidth?: string; +} + +export interface CyberBandwidthV1Beta1QueryLoadResponse { + /** DecProto defines a Protobuf wrapper around a Dec object. */ + load?: { + dec?: string; + }; +} + +export interface CyberBandwidthV1Beta1QueryNeuronBandwidthResponse { + neuron_bandwidth?: { + neuron?: string; + /** @format uint64 */ + remained_value?: string; + /** @format uint64 */ + last_updated_block?: string; + /** @format uint64 */ + max_value?: string; + }; +} + +export interface CyberBandwidthV1Beta1QueryParamsResponse { + params?: { + /** @format uint64 */ + recovery_period?: string; + /** @format uint64 */ + adjust_price_period?: string; + base_price?: string; + base_load?: string; + /** @format uint64 */ + max_block_bandwidth?: string; + }; +} + +export interface CyberBandwidthV1Beta1QueryPriceResponse { + /** DecProto defines a Protobuf wrapper around a Dec object. */ + price?: { + dec?: string; + }; +} + +export interface CyberBandwidthV1Beta1QueryTotalBandwidthResponse { + /** @format uint64 */ + total_bandwidth?: string; +} + +/** + * PageRequest is to be embedded in gRPC request messages for efficient + * pagination. Ex: + * message SomeRequest { + * Foo some_parameter = 1; + * PageRequest pagination = 2; + * } + */ +export interface CosmosBaseQueryV1Beta1PageRequest { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + key?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + offset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + limit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + * @format boolean + */ + count_total?: boolean; + /** + * reverse is set to true if results are to be returned in the descending order. + * @format boolean + */ + reverse?: boolean; +} + +/** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ +export interface CosmosBaseQueryV1Beta1PageResponse { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; +} + +/** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ +export interface CosmosBaseV1Beta1Coin { + denom?: string; + amount?: string; +} + +export interface CyberGridV1Beta1Params { + /** @format int64 */ + max_routes?: number; +} + +export interface CyberGridV1Beta1QueryParamsResponse { + params?: { + /** @format int64 */ + max_routes?: number; + }; +} + +export interface CyberGridV1Beta1QueryRouteResponse { + route?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }; +} + +export interface CyberGridV1Beta1QueryRoutedEnergyResponse { + value?: { + denom?: string; + amount?: string; + }[]; +} + +export interface CyberGridV1Beta1QueryRoutesResponse { + routes?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +export interface CyberGridV1Beta1Route { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; +} + +export type CyberGridV1Beta1MsgCreateRouteResponse = object; + +export type CyberGridV1Beta1MsgDeleteRouteResponse = object; + +export type CyberGridV1Beta1MsgEditRouteNameResponse = object; + +export type CyberGridV1Beta1MsgEditRouteResponse = object; + +export interface CyberResourcesV1Beta1Params { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + halving_period_volt_blocks?: number; + /** @format int64 */ + halving_period_ampere_blocks?: number; + /** @format int64 */ + base_investmint_period_volt?: number; + /** @format int64 */ + base_investmint_period_ampere?: number; + /** @format int64 */ + min_investmint_period?: number; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_volt?: { + denom?: string; + amount?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_ampere?: { + denom?: string; + amount?: string; + }; +} + +export interface CyberResourcesV1Beta1QueryInvestmintResponse { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + amount?: { + denom?: string; + amount?: string; + }; +} + +export interface CyberResourcesV1Beta1QueryParamsResponse { + params?: { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + halving_period_volt_blocks?: number; + /** @format int64 */ + halving_period_ampere_blocks?: number; + /** @format int64 */ + base_investmint_period_volt?: number; + /** @format int64 */ + base_investmint_period_ampere?: number; + /** @format int64 */ + min_investmint_period?: number; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_volt?: { + denom?: string; + amount?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_ampere?: { + denom?: string; + amount?: string; + }; + }; +} + +export type CyberResourcesV1Beta1MsgInvestmintResponse = object; + +export interface CyberDmnV1Beta1Load { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; +} + +export interface CyberDmnV1Beta1Params { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + max_gas?: number; + /** @format int64 */ + fee_ttl?: number; +} + +export interface CyberDmnV1Beta1QueryParamsResponse { + params?: { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + max_gas?: number; + /** @format int64 */ + fee_ttl?: number; + }; +} + +export interface CyberDmnV1Beta1QueryThoughtResponse { + thought?: { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; + }; +} + +export interface CyberDmnV1Beta1QueryThoughtStatsResponse { + thought_stats?: { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; + }; +} + +export interface CyberDmnV1Beta1QueryThoughtsResponse { + thoughts?: { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; + }[]; +} + +export interface CyberDmnV1Beta1QueryThoughtsStatsResponse { + thoughts_stats?: { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; + }[]; +} + +export interface CyberDmnV1Beta1Thought { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; +} + +export interface CyberDmnV1Beta1ThoughtStats { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; +} + +export interface CyberDmnV1Beta1Trigger { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; +} + +export type CyberDmnV1Beta1MsgChangeThoughtBlockResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtGasPriceResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtInputResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtNameResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtParticleResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtPeriodResponse = object; + +export type CyberDmnV1Beta1MsgCreateThoughtResponse = object; + +export type CyberDmnV1Beta1MsgForgetThoughtResponse = object; + +/** @example {"code":0,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ +export interface CheckTxResult { + code?: number; + data?: string; + gas_used?: number; + gas_wanted?: number; + info?: string; + log?: string; + tags?: { + key?: string; + value?: string; + }[]; +} + +/** @example {"code":5,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ +export interface DeliverTxResult { + code?: number; + data?: string; + gas_used?: number; + gas_wanted?: number; + info?: string; + log?: string; + tags?: { + key?: string; + value?: string; + }[]; +} + +export interface BroadcastTxCommitResult { + /** @example {"code":0,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ + check_tx?: { + code?: number; + data?: string; + gas_used?: number; + gas_wanted?: number; + info?: string; + log?: string; + tags?: { + key?: string; + value?: string; + }[]; + }; + /** @example {"code":5,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ + deliver_tx?: { + code?: number; + data?: string; + gas_used?: number; + gas_wanted?: number; + info?: string; + log?: string; + tags?: { + key?: string; + value?: string; + }[]; + }; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + height?: number; +} + +export interface KVPair { + key?: string; + value?: string; +} + +export type Msg = object; + +/** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ +export type Address = string; + +/** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ +export type ValidatorAddress = string; + +export interface Coin { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; +} + +/** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ +export type Hash = string; + +export interface TxQuery { + /** @example "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656" */ + hash?: string; + /** @example 368 */ + height?: number; + tx?: { + msg?: object[]; + fee?: { + gas?: string; + amount?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + }; + memo?: string; + signature?: { + /** @example "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=" */ + signature?: string; + pub_key?: { + /** @example "tendermint/PubKeySecp256k1" */ + type?: string; + /** @example "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" */ + value?: string; + }; + /** @example "0" */ + account_number?: string; + /** @example "0" */ + sequence?: string; + }; + }; + result?: { + log?: string; + /** @example "200000" */ + gas_wanted?: string; + /** @example "26354" */ + gas_used?: string; + tags?: { + key?: string; + value?: string; + }[]; + }; +} + +export interface PaginatedQueryTxs { + /** @example 1 */ + total_count?: number; + /** @example 1 */ + count?: number; + /** @example 1 */ + page_number?: number; + /** @example 1 */ + page_total?: number; + /** @example 30 */ + limit?: number; + txs?: { + /** @example "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656" */ + hash?: string; + /** @example 368 */ + height?: number; + tx?: { + msg?: object[]; + fee?: { + gas?: string; + amount?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + }; + memo?: string; + signature?: { + /** @example "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=" */ + signature?: string; + pub_key?: { + /** @example "tendermint/PubKeySecp256k1" */ + type?: string; + /** @example "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" */ + value?: string; + }; + /** @example "0" */ + account_number?: string; + /** @example "0" */ + sequence?: string; + }; + }; + result?: { + log?: string; + /** @example "200000" */ + gas_wanted?: string; + /** @example "26354" */ + gas_used?: string; + tags?: { + key?: string; + value?: string; + }[]; + }; + }[]; +} + +export interface StdTx { + msg?: object[]; + fee?: { + gas?: string; + amount?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + }; + memo?: string; + signature?: { + /** @example "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=" */ + signature?: string; + pub_key?: { + /** @example "tendermint/PubKeySecp256k1" */ + type?: string; + /** @example "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" */ + value?: string; + }; + /** @example "0" */ + account_number?: string; + /** @example "0" */ + sequence?: string; + }; +} + +export interface BlockID { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; +} + +export interface BlockHeader { + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example 1 */ + height?: number; + /** @example "2017-12-30T05:53:09.287+01:00" */ + time?: string; + /** @example 0 */ + num_txs?: number; + last_block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example 35 */ + total_txs?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_commit_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + data_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + next_validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + consensus_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + app_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_results_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + evidence_hash?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + proposer_address?: string; + version?: { + /** @example 10 */ + block?: string; + /** @example 0 */ + app?: string; + }; +} + +export interface Block { + header?: { + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example 1 */ + height?: number; + /** @example "2017-12-30T05:53:09.287+01:00" */ + time?: string; + /** @example 0 */ + num_txs?: number; + last_block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example 35 */ + total_txs?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_commit_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + data_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + next_validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + consensus_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + app_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_results_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + evidence_hash?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + proposer_address?: string; + version?: { + /** @example 10 */ + block?: string; + /** @example 0 */ + app?: string; + }; + }; + txs?: string[]; + evidence?: string[]; + last_commit?: { + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + precommits?: { + validator_address?: string; + /** @example "0" */ + validator_index?: string; + /** @example "0" */ + height?: string; + /** @example "0" */ + round?: string; + /** @example "2017-12-30T05:53:09.287+01:00" */ + timestamp?: string; + /** @example 2 */ + type?: number; + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ==" */ + signature?: string; + }[]; + }; +} + +export interface BlockQuery { + block_meta?: { + header?: { + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example 1 */ + height?: number; + /** @example "2017-12-30T05:53:09.287+01:00" */ + time?: string; + /** @example 0 */ + num_txs?: number; + last_block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example 35 */ + total_txs?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_commit_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + data_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + next_validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + consensus_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + app_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_results_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + evidence_hash?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + proposer_address?: string; + version?: { + /** @example 10 */ + block?: string; + /** @example 0 */ + app?: string; + }; + }; + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + }; + block?: { + header?: { + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example 1 */ + height?: number; + /** @example "2017-12-30T05:53:09.287+01:00" */ + time?: string; + /** @example 0 */ + num_txs?: number; + last_block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example 35 */ + total_txs?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_commit_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + data_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + next_validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + consensus_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + app_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_results_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + evidence_hash?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + proposer_address?: string; + version?: { + /** @example 10 */ + block?: string; + /** @example 0 */ + app?: string; + }; + }; + txs?: string[]; + evidence?: string[]; + last_commit?: { + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + precommits?: { + validator_address?: string; + /** @example "0" */ + validator_index?: string; + /** @example "0" */ + height?: string; + /** @example "0" */ + round?: string; + /** @example "2017-12-30T05:53:09.287+01:00" */ + timestamp?: string; + /** @example 2 */ + type?: number; + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ==" */ + signature?: string; + }[]; + }; + }; +} + +export interface DelegationDelegatorReward { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + validator_address?: string; + reward?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; +} + +export interface DelegatorTotalRewards { + rewards?: { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + validator_address?: string; + reward?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + }[]; + total?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; +} + +export interface BaseReq { + /** + * Sender address or Keybase name to generate a transaction + * @example "pb1ytyfcdj0nymx9afx34mvwj6gyrped0hmfd9qyq" + */ + from?: string; + /** @example "Sent via Provenance API" */ + memo?: string; + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example "0" */ + account_number?: string; + /** @example "1" */ + sequence?: string; + /** @example "200000" */ + gas?: string; + /** @example "1.2" */ + gas_adjustment?: string; + fees?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + /** + * Estimate gas for a transaction (cannot be used in conjunction with generate_only) + * @example false + */ + simulate?: boolean; +} + +export interface TendermintValidator { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + address?: string; + /** @example "pbvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf" */ + pub_key?: string; + /** @example "1000" */ + voting_power?: string; + /** @example "1000" */ + proposer_priority?: string; +} + +export interface TextProposal { + proposal_id?: number; + title?: string; + description?: string; + proposal_type?: string; + proposal_status?: string; + final_tally_result?: { + /** @example "0.0000000000" */ + yes?: string; + /** @example "0.0000000000" */ + abstain?: string; + /** @example "0.0000000000" */ + no?: string; + /** @example "0.0000000000" */ + no_with_veto?: string; + }; + submit_time?: string; + total_deposit?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + voting_start_time?: string; +} + +export interface Proposer { + proposal_id?: string; + proposer?: string; +} + +export interface Deposit { + amount?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + proposal_id?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + depositor?: string; +} + +export interface TallyResult { + /** @example "0.0000000000" */ + yes?: string; + /** @example "0.0000000000" */ + abstain?: string; + /** @example "0.0000000000" */ + no?: string; + /** @example "0.0000000000" */ + no_with_veto?: string; +} + +export interface Vote { + voter?: string; + proposal_id?: string; + option?: string; +} + +export interface Validator { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + operator_address?: string; + /** @example "pbvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf" */ + consensus_pubkey?: string; + jailed?: boolean; + status?: number; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + /** @example "0" */ + bond_height?: string; + /** @example 0 */ + bond_intra_tx_counter?: number; + /** @example "0" */ + unbonding_height?: string; + /** @example "1970-01-01T00:00:00Z" */ + unbonding_time?: string; + commission?: { + /** @example "0" */ + rate?: string; + /** @example "0" */ + max_rate?: string; + /** @example "0" */ + max_change_rate?: string; + /** @example "1970-01-01T00:00:00Z" */ + update_time?: string; + }; +} + +export interface Delegation { + delegator_address?: string; + validator_address?: string; + shares?: string; + balance?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }; +} + +export interface UnbondingDelegationPair { + delegator_address?: string; + validator_address?: string; + entries?: { + initial_balance?: string; + balance?: string; + creation_height?: string; + min_time?: string; + }[]; +} + +export interface UnbondingEntries { + initial_balance?: string; + balance?: string; + creation_height?: string; + min_time?: string; +} + +export interface UnbondingDelegation { + delegator_address?: string; + validator_address?: string; + initial_balance?: string; + balance?: string; + creation_height?: number; + min_time?: number; +} + +export interface Redelegation { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; + entries?: Redelegation[]; +} + +export interface RedelegationEntry { + creation_height?: number; + completion_time?: number; + initial_balance?: string; + balance?: string; + shares_dst?: string; +} + +export interface ValidatorDistInfo { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + operator_address?: string; + self_bond_rewards?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + val_commission?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; +} + +export interface PublicKey { + type?: string; + value?: string; +} + +export interface SigningInfo { + start_height?: string; + index_offset?: string; + jailed_until?: string; + missed_blocks_counter?: string; +} + +export interface ParamChange { + /** @example "staking" */ + subspace?: string; + /** @example "MaxValidators" */ + key?: string; + /** @example "" */ + subkey?: string; + value?: object; +} + +export interface Supply { + total?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; +} + +/** Params defines the parameters for the auth module. */ +export interface CosmosAuthV1Beta1Params { + /** @format uint64 */ + max_memo_characters?: string; + /** @format uint64 */ + tx_sig_limit?: string; + /** @format uint64 */ + tx_size_cost_per_byte?: string; + /** @format uint64 */ + sig_verify_cost_ed25519?: string; + /** @format uint64 */ + sig_verify_cost_secp256k1?: string; +} + +/** QueryAccountResponse is the response type for the Query/Account RPC method. */ +export interface CosmosAuthV1Beta1QueryAccountResponse { + /** account defines the account of the corresponding address. */ + account?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface CosmosAuthV1Beta1QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: { + /** @format uint64 */ + max_memo_characters?: string; + /** @format uint64 */ + tx_sig_limit?: string; + /** @format uint64 */ + tx_size_cost_per_byte?: string; + /** @format uint64 */ + sig_verify_cost_ed25519?: string; + /** @format uint64 */ + sig_verify_cost_secp256k1?: string; + }; +} + +/** + * DenomUnit represents a struct that describes a given + * denomination unit of the basic token. + */ +export interface CosmosBankV1Beta1DenomUnit { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; +} + +/** + * Metadata represents a struct that describes + * a basic token. + */ +export interface CosmosBankV1Beta1Metadata { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; +} + +/** Params defines the parameters for the bank module. */ +export interface CosmosBankV1Beta1Params { + send_enabled?: { + denom?: string; + enabled?: boolean; + }[]; + default_send_enabled?: boolean; +} + +/** + * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + * method. + */ +export interface CosmosBankV1Beta1QueryAllBalancesResponse { + /** balances is the balances of all the coins. */ + balances?: { + denom?: string; + amount?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ +export interface CosmosBankV1Beta1QueryBalanceResponse { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; +} + +/** + * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + * method. + */ +export interface CosmosBankV1Beta1QueryDenomMetadataResponse { + /** + * Metadata represents a struct that describes + * a basic token. + */ + metadata?: { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + }; +} + +/** + * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + * method. + */ +export interface CosmosBankV1Beta1QueryDenomsMetadataResponse { + /** metadata provides the client information for all the registered tokens. */ + metadatas?: { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryParamsResponse defines the response type for querying x/bank parameters. */ +export interface CosmosBankV1Beta1QueryParamsResponse { + /** Params defines the parameters for the bank module. */ + params?: { + send_enabled?: { + denom?: string; + enabled?: boolean; + }[]; + default_send_enabled?: boolean; + }; +} + +/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ +export interface CosmosBankV1Beta1QuerySupplyOfResponse { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + amount?: { + denom?: string; + amount?: string; + }; +} + +/** + * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + * method + */ +export interface CosmosBankV1Beta1QueryTotalSupplyResponse { + /** supply is the supply of the coins */ + supply?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * SendEnabled maps coin denom to a send_enabled status (whether a denom is + * sendable). + */ +export interface CosmosBankV1Beta1SendEnabled { + denom?: string; + enabled?: boolean; +} + +/** Input models transaction input. */ +export interface CosmosBankV1Beta1Input { + address?: string; + coins?: { + denom?: string; + amount?: string; + }[]; +} + +/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ +export type CosmosBankV1Beta1MsgMultiSendResponse = object; + +/** MsgSendResponse defines the Msg/Send response type. */ +export type CosmosBankV1Beta1MsgSendResponse = object; + +/** Output models transaction outputs. */ +export interface CosmosBankV1Beta1Output { + address?: string; + coins?: { + denom?: string; + amount?: string; + }[]; +} + +/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetBlockByHeightResponse { + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + block?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; +} + +/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetLatestBlockResponse { + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + block?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; +} + +/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetLatestValidatorSetResponse { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetNodeInfoResponse { + default_node_info?: { + protocol_version?: { + /** @format uint64 */ + p2p?: string; + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + /** @format byte */ + channels?: string; + moniker?: string; + other?: { + tx_index?: string; + rpc_address?: string; + }; + }; + /** VersionInfo is the type for the GetNodeInfoResponse message. */ + application_version?: { + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: { + /** module path */ + path?: string; + /** module version */ + version?: string; + /** checksum */ + sum?: string; + }[]; + }; +} + +/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetSyncingResponse { + syncing?: boolean; +} + +/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetValidatorSetByHeightResponse { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** Module is the type for VersionInfo */ +export interface CosmosBaseTendermintV1Beta1Module { + /** module path */ + path?: string; + /** module version */ + version?: string; + /** checksum */ + sum?: string; +} + +/** Validator is the type for the validator-set. */ +export interface CosmosBaseTendermintV1Beta1Validator { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; +} + +/** VersionInfo is the type for the GetNodeInfoResponse message. */ +export interface CosmosBaseTendermintV1Beta1VersionInfo { + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: { + /** module path */ + path?: string; + /** module version */ + version?: string; + /** checksum */ + sum?: string; + }[]; +} + +/** PublicKey defines the keys available for use with Tendermint Validators */ +export interface TendermintCryptoPublicKey { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; +} + +export interface TendermintP2PDefaultNodeInfo { + protocol_version?: { + /** @format uint64 */ + p2p?: string; + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + /** @format byte */ + channels?: string; + moniker?: string; + other?: { + tx_index?: string; + rpc_address?: string; + }; +} + +export interface TendermintP2PDefaultNodeInfoOther { + tx_index?: string; + rpc_address?: string; +} + +export interface TendermintP2PProtocolVersion { + /** @format uint64 */ + p2p?: string; + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; +} + +export interface TendermintTypesBlock { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; +} + +/** BlockID */ +export interface TendermintTypesBlockID { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; +} + +/** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ +export enum TendermintTypesBlockIDFlag { + BLOCK_ID_FLAG_UNKNOWN = 'BLOCK_ID_FLAG_UNKNOWN', + BLOCK_ID_FLAG_ABSENT = 'BLOCK_ID_FLAG_ABSENT', + BLOCK_ID_FLAG_COMMIT = 'BLOCK_ID_FLAG_COMMIT', + BLOCK_ID_FLAG_NIL = 'BLOCK_ID_FLAG_NIL', +} + +/** Commit contains the evidence that a block was committed by a set of validators. */ +export interface TendermintTypesCommit { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; +} + +/** CommitSig is a part of the Vote included in a Commit. */ +export interface TendermintTypesCommitSig { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; +} + +/** Data contains the set of transactions included in the block */ +export interface TendermintTypesData { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; +} + +/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ +export interface TendermintTypesDuplicateVoteEvidence { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; +} + +export interface TendermintTypesEvidence { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; +} + +export interface TendermintTypesEvidenceList { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; +} + +/** Header defines the structure of a Tendermint block header. */ +export interface TendermintTypesHeader { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; +} + +export interface TendermintTypesLightBlock { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; +} + +/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ +export interface TendermintTypesLightClientAttackEvidence { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; +} + +/** PartsetHeader */ +export interface TendermintTypesPartSetHeader { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; +} + +export interface TendermintTypesSignedHeader { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; +} + +/** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ +export enum TendermintTypesSignedMsgType { + SIGNED_MSG_TYPE_UNKNOWN = 'SIGNED_MSG_TYPE_UNKNOWN', + SIGNED_MSG_TYPE_PREVOTE = 'SIGNED_MSG_TYPE_PREVOTE', + SIGNED_MSG_TYPE_PRECOMMIT = 'SIGNED_MSG_TYPE_PRECOMMIT', + SIGNED_MSG_TYPE_PROPOSAL = 'SIGNED_MSG_TYPE_PROPOSAL', +} + +export interface TendermintTypesValidator { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; +} + +export interface TendermintTypesValidatorSet { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; +} + +/** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ +export interface TendermintTypesVote { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; +} + +/** + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ +export interface TendermintVersionConsensus { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; +} + +/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ +export type CosmosCrisisV1Beta1MsgVerifyInvariantResponse = object; + +/** + * DecCoin defines a token with a denomination and a decimal amount. + * + * NOTE: The amount field is an Dec which implements the custom method + * signatures required by gogoproto. + */ +export interface CosmosBaseV1Beta1DecCoin { + denom?: string; + amount?: string; +} + +/** + * DelegationDelegatorReward represents the properties + * of a delegator's delegation reward. + */ +export interface CosmosDistributionV1Beta1DelegationDelegatorReward { + validator_address?: string; + reward?: { + denom?: string; + amount?: string; + }[]; +} + +/** Params defines the set of params for the distribution module. */ +export interface CosmosDistributionV1Beta1Params { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; +} + +/** + * QueryCommunityPoolResponse is the response type for the Query/CommunityPool + * RPC method. + */ +export interface CosmosDistributionV1Beta1QueryCommunityPoolResponse { + /** pool defines community pool's coins. */ + pool?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * QueryDelegationRewardsResponse is the response type for the + * Query/DelegationRewards RPC method. + */ +export interface CosmosDistributionV1Beta1QueryDelegationRewardsResponse { + /** rewards defines the rewards accrued by a delegation. */ + rewards?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * QueryDelegationTotalRewardsResponse is the response type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface CosmosDistributionV1Beta1QueryDelegationTotalRewardsResponse { + /** rewards defines all the rewards accrued by a delegator. */ + rewards?: { + validator_address?: string; + reward?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** total defines the sum of all the rewards. */ + total?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * QueryDelegatorValidatorsResponse is the response type for the + * Query/DelegatorValidators RPC method. + */ +export interface CosmosDistributionV1Beta1QueryDelegatorValidatorsResponse { + /** validators defines the validators a delegator is delegating for. */ + validators?: string[]; +} + +/** + * QueryDelegatorWithdrawAddressResponse is the response type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface CosmosDistributionV1Beta1QueryDelegatorWithdrawAddressResponse { + /** withdraw_address defines the delegator address to query for. */ + withdraw_address?: string; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface CosmosDistributionV1Beta1QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; + }; +} + +/** + * QueryValidatorCommissionResponse is the response type for the + * Query/ValidatorCommission RPC method + */ +export interface CosmosDistributionV1Beta1QueryValidatorCommissionResponse { + /** commission defines the commision the validator received. */ + commission?: { + commission?: { + denom?: string; + amount?: string; + }[]; + }; +} + +/** + * QueryValidatorOutstandingRewardsResponse is the response type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface CosmosDistributionV1Beta1QueryValidatorOutstandingRewardsResponse { + /** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ + rewards?: { + rewards?: { + denom?: string; + amount?: string; + }[]; + }; +} + +/** + * QueryValidatorSlashesResponse is the response type for the + * Query/ValidatorSlashes RPC method. + */ +export interface CosmosDistributionV1Beta1QueryValidatorSlashesResponse { + /** slashes defines the slashes the validator received. */ + slashes?: { + /** @format uint64 */ + validator_period?: string; + fraction?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * ValidatorAccumulatedCommission represents accumulated commission + * for a validator kept as a running counter, can be withdrawn at any time. + */ +export interface CosmosDistributionV1Beta1ValidatorAccumulatedCommission { + commission?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ +export interface CosmosDistributionV1Beta1ValidatorOutstandingRewards { + rewards?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * ValidatorSlashEvent represents a validator slash event. + * Height is implicit within the store key. + * This is needed to calculate appropriate amount of staking tokens + * for delegations which are withdrawn after a slash has occurred. + */ +export interface CosmosDistributionV1Beta1ValidatorSlashEvent { + /** @format uint64 */ + validator_period?: string; + fraction?: string; +} + +/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ +export type CosmosDistributionV1Beta1MsgFundCommunityPoolResponse = object; + +/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ +export type CosmosDistributionV1Beta1MsgSetWithdrawAddressResponse = object; + +/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ +export type CosmosDistributionV1Beta1MsgWithdrawDelegatorRewardResponse = object; + +/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ +export type CosmosDistributionV1Beta1MsgWithdrawValidatorCommissionResponse = object; + +/** + * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC + * method. + */ +export interface CosmosEvidenceV1Beta1QueryAllEvidenceResponse { + /** evidence returns all evidences. */ + evidence?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ +export interface CosmosEvidenceV1Beta1QueryEvidenceResponse { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + evidence?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ +export interface CosmosEvidenceV1Beta1MsgSubmitEvidenceResponse { + /** + * hash defines the hash of the evidence. + * @format byte + */ + hash?: string; +} + +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface CosmosGovV1Beta1Deposit { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; +} + +/** DepositParams defines the params for deposits on governance proposals. */ +export interface CosmosGovV1Beta1DepositParams { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: { + denom?: string; + amount?: string; + }[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: string; +} + +/** Proposal defines the core field members of a governance proposal. */ +export interface CosmosGovV1Beta1Proposal { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; +} + +/** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ +export enum CosmosGovV1Beta1ProposalStatus { + PROPOSAL_STATUS_UNSPECIFIED = 'PROPOSAL_STATUS_UNSPECIFIED', + PROPOSAL_STATUS_DEPOSIT_PERIOD = 'PROPOSAL_STATUS_DEPOSIT_PERIOD', + PROPOSAL_STATUS_VOTING_PERIOD = 'PROPOSAL_STATUS_VOTING_PERIOD', + PROPOSAL_STATUS_PASSED = 'PROPOSAL_STATUS_PASSED', + PROPOSAL_STATUS_REJECTED = 'PROPOSAL_STATUS_REJECTED', + PROPOSAL_STATUS_FAILED = 'PROPOSAL_STATUS_FAILED', +} + +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface CosmosGovV1Beta1QueryDepositResponse { + /** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ + deposit?: { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; + }; +} + +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface CosmosGovV1Beta1QueryDepositsResponse { + deposits?: { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface CosmosGovV1Beta1QueryParamsResponse { + /** voting_params defines the parameters related to voting. */ + voting_params?: { + /** Length of the voting period. */ + voting_period?: string; + }; + /** deposit_params defines the parameters related to deposit. */ + deposit_params?: { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: { + denom?: string; + amount?: string; + }[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: string; + }; + /** tally_params defines the parameters related to tally. */ + tally_params?: { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + * @format byte + */ + quorum?: string; + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + * @format byte + */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + * @format byte + */ + veto_threshold?: string; + }; +} + +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface CosmosGovV1Beta1QueryProposalResponse { + /** Proposal defines the core field members of a governance proposal. */ + proposal?: { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; + }; +} + +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface CosmosGovV1Beta1QueryProposalsResponse { + proposals?: { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface CosmosGovV1Beta1QueryTallyResultResponse { + /** TallyResult defines a standard tally for a governance proposal. */ + tally?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; +} + +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface CosmosGovV1Beta1QueryVoteResponse { + /** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ + vote?: { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; + }; +} + +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface CosmosGovV1Beta1QueryVotesResponse { + /** votes defined the queried votes. */ + votes?: { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface CosmosGovV1Beta1TallyParams { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + * @format byte + */ + quorum?: string; + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + * @format byte + */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + * @format byte + */ + veto_threshold?: string; +} + +/** TallyResult defines a standard tally for a governance proposal. */ +export interface CosmosGovV1Beta1TallyResult { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; +} + +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface CosmosGovV1Beta1Vote { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; +} + +/** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ +export enum CosmosGovV1Beta1VoteOption { + VOTE_OPTION_UNSPECIFIED = 'VOTE_OPTION_UNSPECIFIED', + VOTE_OPTION_YES = 'VOTE_OPTION_YES', + VOTE_OPTION_ABSTAIN = 'VOTE_OPTION_ABSTAIN', + VOTE_OPTION_NO = 'VOTE_OPTION_NO', + VOTE_OPTION_NO_WITH_VETO = 'VOTE_OPTION_NO_WITH_VETO', +} + +/** VotingParams defines the params for voting on governance proposals. */ +export interface CosmosGovV1Beta1VotingParams { + /** Length of the voting period. */ + voting_period?: string; +} + +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export type CosmosGovV1Beta1MsgDepositResponse = object; + +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface CosmosGovV1Beta1MsgSubmitProposalResponse { + /** @format uint64 */ + proposal_id?: string; +} + +/** MsgVoteResponse defines the Msg/Vote response type. */ +export type CosmosGovV1Beta1MsgVoteResponse = object; + +/** Params holds parameters for the mint module. */ +export interface CosmosMintV1Beta1Params { + /** type of coin to mint */ + mint_denom?: string; + /** maximum annual change in inflation rate */ + inflation_rate_change?: string; + /** maximum inflation rate */ + inflation_max?: string; + /** minimum inflation rate */ + inflation_min?: string; + /** goal of percent bonded atoms */ + goal_bonded?: string; + /** + * expected blocks per year + * @format uint64 + */ + blocks_per_year?: string; +} + +/** + * QueryAnnualProvisionsResponse is the response type for the + * Query/AnnualProvisions RPC method. + */ +export interface CosmosMintV1Beta1QueryAnnualProvisionsResponse { + /** + * annual_provisions is the current minting annual provisions value. + * @format byte + */ + annual_provisions?: string; +} + +/** + * QueryInflationResponse is the response type for the Query/Inflation RPC + * method. + */ +export interface CosmosMintV1Beta1QueryInflationResponse { + /** + * inflation is the current minting inflation value. + * @format byte + */ + inflation?: string; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface CosmosMintV1Beta1QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: { + /** type of coin to mint */ + mint_denom?: string; + /** maximum annual change in inflation rate */ + inflation_rate_change?: string; + /** maximum inflation rate */ + inflation_max?: string; + /** minimum inflation rate */ + inflation_min?: string; + /** goal of percent bonded atoms */ + goal_bonded?: string; + /** + * expected blocks per year + * @format uint64 + */ + blocks_per_year?: string; + }; +} + +/** + * ParamChange defines an individual parameter change, for use in + * ParameterChangeProposal. + */ +export interface CosmosParamsV1Beta1ParamChange { + subspace?: string; + key?: string; + value?: string; +} + +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface CosmosParamsV1Beta1QueryParamsResponse { + /** param defines the queried parameter. */ + param?: { + subspace?: string; + key?: string; + value?: string; + }; +} + +/** Params represents the parameters used for by the slashing module. */ +export interface CosmosSlashingV1Beta1Params { + /** @format int64 */ + signed_blocks_window?: string; + /** @format byte */ + min_signed_per_window?: string; + downtime_jail_duration?: string; + /** @format byte */ + slash_fraction_double_sign?: string; + /** @format byte */ + slash_fraction_downtime?: string; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method */ +export interface CosmosSlashingV1Beta1QueryParamsResponse { + /** Params represents the parameters used for by the slashing module. */ + params?: { + /** @format int64 */ + signed_blocks_window?: string; + /** @format byte */ + min_signed_per_window?: string; + downtime_jail_duration?: string; + /** @format byte */ + slash_fraction_double_sign?: string; + /** @format byte */ + slash_fraction_downtime?: string; + }; +} + +/** + * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC + * method + */ +export interface CosmosSlashingV1Beta1QuerySigningInfoResponse { + /** + * val_signing_info is the signing info of requested val cons address + * ValidatorSigningInfo defines a validator's signing info for monitoring their + * liveness activity. + */ + val_signing_info?: { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; + }; +} + +/** + * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC + * method + */ +export interface CosmosSlashingV1Beta1QuerySigningInfosResponse { + /** info is the signing info of all validators */ + info?: { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * ValidatorSigningInfo defines a validator's signing info for monitoring their + * liveness activity. + */ +export interface CosmosSlashingV1Beta1ValidatorSigningInfo { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; +} + +/** MsgUnjailResponse defines the Msg/Unjail response type */ +export type CosmosSlashingV1Beta1MsgUnjailResponse = object; + +/** + * BondStatus is the status of a validator. + * + * - BOND_STATUS_UNSPECIFIED: UNSPECIFIED defines an invalid validator status. + * - BOND_STATUS_UNBONDED: UNBONDED defines a validator that is not bonded. + * - BOND_STATUS_UNBONDING: UNBONDING defines a validator that is unbonding. + * - BOND_STATUS_BONDED: BONDED defines a validator that is bonded. + * @default "BOND_STATUS_UNSPECIFIED" + */ +export enum CosmosStakingV1Beta1BondStatus { + BOND_STATUS_UNSPECIFIED = 'BOND_STATUS_UNSPECIFIED', + BOND_STATUS_UNBONDED = 'BOND_STATUS_UNBONDED', + BOND_STATUS_UNBONDING = 'BOND_STATUS_UNBONDING', + BOND_STATUS_BONDED = 'BOND_STATUS_BONDED', +} + +/** Commission defines commission parameters for a given validator. */ +export interface CosmosStakingV1Beta1Commission { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; +} + +/** + * CommissionRates defines the initial commission rates to be used for creating + * a validator. + */ +export interface CosmosStakingV1Beta1CommissionRates { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; +} + +/** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ +export interface CosmosStakingV1Beta1Delegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; +} + +/** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ +export interface CosmosStakingV1Beta1DelegationResponse { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; +} + +/** Description defines a validator description. */ +export interface CosmosStakingV1Beta1Description { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; +} + +/** + * HistoricalInfo contains header and validator information for a given block. + * It is stored as part of staking module's state, which persists the `n` most + * recent HistoricalInfo + * (`n` is set by the staking module's `historical_entries` parameter). + */ +export interface CosmosStakingV1Beta1HistoricalInfo { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** prev block info */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + valset?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; +} + +/** Params defines the parameters for the staking module. */ +export interface CosmosStakingV1Beta1Params { + /** unbonding_time is the time duration of unbonding. */ + unbonding_time?: string; + /** + * max_validators is the maximum number of validators. + * @format int64 + */ + max_validators?: number; + /** + * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). + * @format int64 + */ + max_entries?: number; + /** + * historical_entries is the number of historical entries to persist. + * @format int64 + */ + historical_entries?: number; + /** bond_denom defines the bondable coin denomination. */ + bond_denom?: string; +} + +/** + * Pool is used for tracking bonded and not-bonded token supply of the bond + * denomination. + */ +export interface CosmosStakingV1Beta1Pool { + not_bonded_tokens?: string; + bonded_tokens?: string; +} + +/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ +export interface CosmosStakingV1Beta1QueryDelegationResponse { + /** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ + delegation_response?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }; +} + +/** + * QueryDelegatorDelegationsResponse is response type for the + * Query/DelegatorDelegations RPC method. + */ +export interface CosmosStakingV1Beta1QueryDelegatorDelegationsResponse { + /** delegation_responses defines all the delegations' info of a delegator. */ + delegation_responses?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryUnbondingDelegatorDelegationsResponse is response type for the + * Query/UnbondingDelegatorDelegations RPC method. + */ +export interface CosmosStakingV1Beta1QueryDelegatorUnbondingDelegationsResponse { + unbonding_responses?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryDelegatorValidatorResponse response type for the + * Query/DelegatorValidator RPC method. + */ +export interface CosmosStakingV1Beta1QueryDelegatorValidatorResponse { + /** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ + validator?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }; +} + +/** + * QueryDelegatorValidatorsResponse is response type for the + * Query/DelegatorValidators RPC method. + */ +export interface CosmosStakingV1Beta1QueryDelegatorValidatorsResponse { + /** validators defines the the validators' info of a delegator. */ + validators?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + * method. + */ +export interface CosmosStakingV1Beta1QueryHistoricalInfoResponse { + /** hist defines the historical info at the given height. */ + hist?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** prev block info */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + valset?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + }; +} + +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface CosmosStakingV1Beta1QueryParamsResponse { + /** params holds all the parameters of this module. */ + params?: { + /** unbonding_time is the time duration of unbonding. */ + unbonding_time?: string; + /** + * max_validators is the maximum number of validators. + * @format int64 + */ + max_validators?: number; + /** + * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). + * @format int64 + */ + max_entries?: number; + /** + * historical_entries is the number of historical entries to persist. + * @format int64 + */ + historical_entries?: number; + /** bond_denom defines the bondable coin denomination. */ + bond_denom?: string; + }; +} + +/** QueryPoolResponse is response type for the Query/Pool RPC method. */ +export interface CosmosStakingV1Beta1QueryPoolResponse { + /** pool defines the pool info. */ + pool?: { + not_bonded_tokens?: string; + bonded_tokens?: string; + }; +} + +/** + * QueryRedelegationsResponse is response type for the Query/Redelegations RPC + * method. + */ +export interface CosmosStakingV1Beta1QueryRedelegationsResponse { + redelegation_responses?: { + /** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ + redelegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }[]; + }; + entries?: { + /** RedelegationEntry defines a redelegation object with relevant metadata. */ + redelegation_entry?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }; + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryDelegationResponse is response type for the Query/UnbondingDelegation + * RPC method. + */ +export interface CosmosStakingV1Beta1QueryUnbondingDelegationResponse { + /** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ + unbond?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }; +} + +/** + * QueryValidatorDelegationsResponse is response type for the + * Query/ValidatorDelegations RPC method + */ +export interface CosmosStakingV1Beta1QueryValidatorDelegationsResponse { + delegation_responses?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryValidatorResponse is response type for the Query/Validator RPC method */ +export interface CosmosStakingV1Beta1QueryValidatorResponse { + /** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ + validator?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }; +} + +/** + * QueryValidatorUnbondingDelegationsResponse is response type for the + * Query/ValidatorUnbondingDelegations RPC method. + */ +export interface CosmosStakingV1Beta1QueryValidatorUnbondingDelegationsResponse { + unbonding_responses?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ +export interface CosmosStakingV1Beta1QueryValidatorsResponse { + /** validators contains all the queried validators. */ + validators?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ +export interface CosmosStakingV1Beta1Redelegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }[]; +} + +/** RedelegationEntry defines a redelegation object with relevant metadata. */ +export interface CosmosStakingV1Beta1RedelegationEntry { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; +} + +/** + * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it + * contains a balance in addition to shares which is more suitable for client + * responses. + */ +export interface CosmosStakingV1Beta1RedelegationEntryResponse { + /** RedelegationEntry defines a redelegation object with relevant metadata. */ + redelegation_entry?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }; + balance?: string; +} + +/** + * RedelegationResponse is equivalent to a Redelegation except that its entries + * contain a balance in addition to shares which is more suitable for client + * responses. + */ +export interface CosmosStakingV1Beta1RedelegationResponse { + /** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ + redelegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }[]; + }; + entries?: { + /** RedelegationEntry defines a redelegation object with relevant metadata. */ + redelegation_entry?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }; + balance?: string; + }[]; +} + +/** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ +export interface CosmosStakingV1Beta1UnbondingDelegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; +} + +/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ +export interface CosmosStakingV1Beta1UnbondingDelegationEntry { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; +} + +/** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ +export interface CosmosStakingV1Beta1Validator { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; +} + +/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ +export interface CosmosStakingV1Beta1MsgBeginRedelegateResponse { + /** @format date-time */ + completion_time?: string; +} + +/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ +export type CosmosStakingV1Beta1MsgCreateValidatorResponse = object; + +/** MsgDelegateResponse defines the Msg/Delegate response type. */ +export type CosmosStakingV1Beta1MsgDelegateResponse = object; + +/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ +export type CosmosStakingV1Beta1MsgEditValidatorResponse = object; + +/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ +export interface CosmosStakingV1Beta1MsgUndelegateResponse { + /** @format date-time */ + completion_time?: string; +} + +/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ +export interface CosmosBaseAbciV1Beta1ABCIMessageLog { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; +} + +/** + * Attribute defines an attribute wrapper where the key and value are + * strings instead of raw bytes. + */ +export interface CosmosBaseAbciV1Beta1Attribute { + key?: string; + value?: string; +} + +/** GasInfo defines tx execution gas context. */ +export interface CosmosBaseAbciV1Beta1GasInfo { + /** + * GasWanted is the maximum units of work we allow this tx to perform. + * @format uint64 + */ + gas_wanted?: string; + /** + * GasUsed is the amount of gas actually consumed. + * @format uint64 + */ + gas_used?: string; +} + +/** Result is the union of ResponseFormat and ResponseCheckTx. */ +export interface CosmosBaseAbciV1Beta1Result { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * @format byte + */ + data?: string; + /** Log contains the log information from message or handler execution. */ + log?: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events?: { + type?: string; + attributes?: { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; + }[]; + }[]; +} + +/** + * StringEvent defines en Event object wrapper where all the attributes + * contain key/value pairs that are strings instead of raw bytes. + */ +export interface CosmosBaseAbciV1Beta1StringEvent { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; +} + +/** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ +export interface CosmosBaseAbciV1Beta1TxResponse { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; +} + +/** + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ +export interface CosmosCryptoMultisigV1Beta1CompactBitArray { + /** @format int64 */ + extra_bits_stored?: number; + /** @format byte */ + elems?: string; +} + +/** + * SignMode represents a signing mode with its own security guarantees. + * + * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected + * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx + * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT + * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future + * @default "SIGN_MODE_UNSPECIFIED" + */ +export enum CosmosTxSigningV1Beta1SignMode { + SIGN_MODE_UNSPECIFIED = 'SIGN_MODE_UNSPECIFIED', + SIGN_MODE_DIRECT = 'SIGN_MODE_DIRECT', + SIGN_MODE_TEXTUAL = 'SIGN_MODE_TEXTUAL', + SIGN_MODE_LEGACY_AMINO_JSON = 'SIGN_MODE_LEGACY_AMINO_JSON', +} + +/** + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ +export interface CosmosTxV1Beta1AuthInfo { + /** + * signer_infos defines the signing modes for the required signers. The number + * and order of elements must match the required signers from TxBody's + * messages. The first element is the primary signer and the one which pays + * the fee. + */ + signer_infos?: CosmosTxV1Beta1SignerInfo[]; + /** + * Fee is the fee and gas limit for the transaction. The first signer is the + * primary signer and the one which pays the fee. The fee can be calculated + * based on the cost of evaluating the body and doing signature verification + * of the signers. This can be estimated via simulation. + */ + fee?: { + /** amount is the amount of coins to be paid as a fee */ + amount?: { + denom?: string; + amount?: string; + }[]; + /** + * gas_limit is the maximum gas that can be used in transaction processing + * before an out of gas error occurs + * @format uint64 + */ + gas_limit?: string; + /** + * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + * the payer must be a tx signer (and thus have signed this field in AuthInfo). + * setting this field does *not* change the ordering of required signers for the transaction. + */ + payer?: string; + /** + * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + * not support fee grants, this will fail + */ + granter?: string; + }; +} + +/** + * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. + * + * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering + * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + * @default "BROADCAST_MODE_UNSPECIFIED" + */ +export enum CosmosTxV1Beta1BroadcastMode { + BROADCAST_MODE_UNSPECIFIED = 'BROADCAST_MODE_UNSPECIFIED', + BROADCAST_MODE_BLOCK = 'BROADCAST_MODE_BLOCK', + BROADCAST_MODE_SYNC = 'BROADCAST_MODE_SYNC', + BROADCAST_MODE_ASYNC = 'BROADCAST_MODE_ASYNC', +} + +/** + * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + * RPC method. + */ +export interface CosmosTxV1Beta1BroadcastTxRequest { + /** + * tx_bytes is the raw transaction. + * @format byte + */ + tx_bytes?: string; + /** + * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. + * + * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering + * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + * @default "BROADCAST_MODE_UNSPECIFIED" + */ + mode?: 'BROADCAST_MODE_UNSPECIFIED' | 'BROADCAST_MODE_BLOCK' | 'BROADCAST_MODE_SYNC' | 'BROADCAST_MODE_ASYNC'; +} + +/** + * BroadcastTxResponse is the response type for the + * Service.BroadcastTx method. + */ +export interface CosmosTxV1Beta1BroadcastTxResponse { + /** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ + tx_response?: { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + }; +} + +/** + * Fee includes the amount of coins paid in fees and the maximum + * gas to be used by the transaction. The ratio yields an effective "gasprice", + * which must be above some miminum to be accepted into the mempool. + */ +export interface CosmosTxV1Beta1Fee { + /** amount is the amount of coins to be paid as a fee */ + amount?: { + denom?: string; + amount?: string; + }[]; + /** + * gas_limit is the maximum gas that can be used in transaction processing + * before an out of gas error occurs + * @format uint64 + */ + gas_limit?: string; + /** + * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + * the payer must be a tx signer (and thus have signed this field in AuthInfo). + * setting this field does *not* change the ordering of required signers for the transaction. + */ + payer?: string; + /** + * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + * not support fee grants, this will fail + */ + granter?: string; +} + +/** GetTxResponse is the response type for the Service.GetTx method. */ +export interface CosmosTxV1Beta1GetTxResponse { + /** tx is the queried transaction. */ + tx?: CosmosTxV1Beta1Tx; + /** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ + tx_response?: { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + }; +} + +/** + * GetTxsEventResponse is the response type for the Service.TxsByEvents + * RPC method. + */ +export interface CosmosTxV1Beta1GetTxsEventResponse { + /** txs is the list of queried transactions. */ + txs?: CosmosTxV1Beta1Tx[]; + /** tx_responses is the list of queried TxResponses. */ + tx_responses?: { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** ModeInfo describes the signing mode of a single or nested multisig signer. */ +export interface CosmosTxV1Beta1ModeInfo { + /** single represents a single signer */ + single?: { + /** + * mode is the signing mode of the single signer + * SignMode represents a signing mode with its own security guarantees. + * + * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected + * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx + * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT + * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future + * @default "SIGN_MODE_UNSPECIFIED" + */ + mode?: 'SIGN_MODE_UNSPECIFIED' | 'SIGN_MODE_DIRECT' | 'SIGN_MODE_TEXTUAL' | 'SIGN_MODE_LEGACY_AMINO_JSON'; + }; + /** multi represents a nested multisig signer */ + multi?: CosmosTxV1Beta1ModeInfoMulti; +} + +/** Multi is the mode info for a multisig public key */ +export interface CosmosTxV1Beta1ModeInfoMulti { + /** + * bitarray specifies which keys within the multisig are signing + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ + bitarray?: { + /** @format int64 */ + extra_bits_stored?: number; + /** @format byte */ + elems?: string; + }; + /** + * mode_infos is the corresponding modes of the signers of the multisig + * which could include nested multisig public keys + */ + mode_infos?: CosmosTxV1Beta1ModeInfo[]; +} + +/** + * Single is the mode info for a single signer. It is structured as a message + * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + * future + */ +export interface CosmosTxV1Beta1ModeInfoSingle { + /** + * mode is the signing mode of the single signer + * SignMode represents a signing mode with its own security guarantees. + * + * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected + * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx + * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT + * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future + * @default "SIGN_MODE_UNSPECIFIED" + */ + mode?: 'SIGN_MODE_UNSPECIFIED' | 'SIGN_MODE_DIRECT' | 'SIGN_MODE_TEXTUAL' | 'SIGN_MODE_LEGACY_AMINO_JSON'; +} + +/** + * OrderBy defines the sorting order + * - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + * - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order + * - ORDER_BY_DESC: ORDER_BY_DESC defines descending order + * @default "ORDER_BY_UNSPECIFIED" + */ +export enum CosmosTxV1Beta1OrderBy { + ORDER_BY_UNSPECIFIED = 'ORDER_BY_UNSPECIFIED', + ORDER_BY_ASC = 'ORDER_BY_ASC', + ORDER_BY_DESC = 'ORDER_BY_DESC', +} + +/** + * SignerInfo describes the public key and signing mode of a single top-level + * signer. + */ +export interface CosmosTxV1Beta1SignerInfo { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + public_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * mode_info describes the signing mode of the signer and is a nested + * structure to support nested multisig pubkey's + * ModeInfo describes the signing mode of a single or nested multisig signer. + */ + mode_info?: CosmosTxV1Beta1ModeInfo; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to + * prevent replay attacks. + * @format uint64 + */ + sequence?: string; +} + +/** + * SimulateRequest is the request type for the Service.Simulate + * RPC method. + */ +export interface CosmosTxV1Beta1SimulateRequest { + /** tx is the transaction to simulate. */ + tx?: CosmosTxV1Beta1Tx; +} + +/** + * SimulateResponse is the response type for the + * Service.SimulateRPC method. + */ +export interface CosmosTxV1Beta1SimulateResponse { + /** gas_info is the information about gas used in the simulation. */ + gas_info?: { + /** + * GasWanted is the maximum units of work we allow this tx to perform. + * @format uint64 + */ + gas_wanted?: string; + /** + * GasUsed is the amount of gas actually consumed. + * @format uint64 + */ + gas_used?: string; + }; + /** result is the result of the simulation. */ + result?: { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * @format byte + */ + data?: string; + /** Log contains the log information from message or handler execution. */ + log?: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events?: { + type?: string; + attributes?: { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; + }[]; + }[]; + }; +} + +/** Tx is the standard type used for broadcasting transactions. */ +export interface CosmosTxV1Beta1Tx { + /** + * body is the processable content of the transaction + * TxBody is the body of a transaction that all signers sign over. + */ + body?: { + /** + * messages is a list of messages to be executed. The required signers of + * those messages define the number and order of elements in AuthInfo's + * signer_infos and Tx's signatures. Each required signer address is added to + * the list only the first time it occurs. + * By convention, the first required signer (usually from the first message) + * is referred to as the primary signer and pays the fee for the whole + * transaction. + */ + messages?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** memo is any arbitrary memo to be added to the transaction */ + memo?: string; + /** + * timeout is the block height after which this transaction will not + * be processed by the chain + * @format uint64 + */ + timeout_height?: string; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, the transaction will be rejected + */ + extension_options?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, they will be ignored + */ + non_critical_extension_options?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + }; + /** + * auth_info is the authorization related content of the transaction, + * specifically signers, signer modes and fee + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ + auth_info?: CosmosTxV1Beta1AuthInfo; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures?: string[]; +} + +/** TxBody is the body of a transaction that all signers sign over. */ +export interface CosmosTxV1Beta1TxBody { + /** + * messages is a list of messages to be executed. The required signers of + * those messages define the number and order of elements in AuthInfo's + * signer_infos and Tx's signatures. Each required signer address is added to + * the list only the first time it occurs. + * By convention, the first required signer (usually from the first message) + * is referred to as the primary signer and pays the fee for the whole + * transaction. + */ + messages?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** memo is any arbitrary memo to be added to the transaction */ + memo?: string; + /** + * timeout is the block height after which this transaction will not + * be processed by the chain + * @format uint64 + */ + timeout_height?: string; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, the transaction will be rejected + */ + extension_options?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, they will be ignored + */ + non_critical_extension_options?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; +} + +/** + * Event allows application developers to attach additional information to + * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * Later, transactions may be queried using these events. + */ +export interface TendermintAbciEvent { + type?: string; + attributes?: { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; + }[]; +} + +/** EventAttribute is a single key-value pair, associated with an event. */ +export interface TendermintAbciEventAttribute { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; +} + +/** Plan specifies information about a planned upgrade and when it should occur. */ +export interface CosmosUpgradeV1Beta1Plan { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name?: string; + /** + * The time after which the upgrade must be performed. + * Leave set to its zero value to use a pre-defined Height instead. + * @format date-time + */ + time?: string; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + * @format int64 + */ + height?: string; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info?: string; + /** + * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan + * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, + * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the + * previous version of the chain. + * This will allow IBC connections to persist smoothly across planned chain upgrades + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** + * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + * method. + */ +export interface CosmosUpgradeV1Beta1QueryAppliedPlanResponse { + /** + * height is the block height at which the plan was applied. + * @format int64 + */ + height?: string; +} + +/** + * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + * method. + */ +export interface CosmosUpgradeV1Beta1QueryCurrentPlanResponse { + /** plan is the current upgrade plan. */ + plan?: { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name?: string; + /** + * The time after which the upgrade must be performed. + * Leave set to its zero value to use a pre-defined Height instead. + * @format date-time + */ + time?: string; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + * @format int64 + */ + height?: string; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info?: string; + /** + * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan + * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, + * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the + * previous version of the chain. + * This will allow IBC connections to persist smoothly across planned chain upgrades + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; +} + +/** + * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState + * RPC method. + */ +export interface CosmosUpgradeV1Beta1QueryUpgradedConsensusStateResponse { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ +export type CosmosVestingV1Beta1MsgCreateVestingAccountResponse = object; + +/** + * AbsoluteTxPosition is a unique transaction position that allows for global + * ordering of transactions. + */ +export interface CosmwasmWasmV1Beta1AbsoluteTxPosition { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; +} + +/** CodeInfoResponse contains code meta data from CodeInfo */ +export interface CosmwasmWasmV1Beta1CodeInfoResponse { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; +} + +/** ContractCodeHistoryEntry metadata to a contract. */ +export interface CosmwasmWasmV1Beta1ContractCodeHistoryEntry { + /** + * ContractCodeHistoryOperationType actions that caused a code change + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data + * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" + */ + operation?: + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'; + /** + * CodeID is the reference to the stored WASM code + * @format uint64 + */ + code_id?: string; + /** Updated Tx position when the operation was executed. */ + updated?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + /** @format byte */ + msg?: string; +} + +/** + * ContractCodeHistoryOperationType actions that caused a code change + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data + * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" + */ +export enum CosmwasmWasmV1Beta1ContractCodeHistoryOperationType { + CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED', + CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT', + CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE', + CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS', +} + +/** ContractInfo stores a WASM contract instance */ +export interface CosmwasmWasmV1Beta1ContractInfo { + /** + * CodeID is the reference to the stored Wasm code + * @format uint64 + */ + code_id?: string; + /** Creator address who initially instantiated the contract */ + creator?: string; + /** Admin is an optional address that can execute migrations */ + admin?: string; + /** Label is optional metadata to be stored with a contract instance. */ + label?: string; + /** + * Created Tx position when the contract was instantiated. + * This data should kept internal and not be exposed via query results. Just + * use for sorting + * AbsoluteTxPosition is a unique transaction position that allows for global + * ordering of transactions. + */ + created?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + ibc_port_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + extension?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** Model is a struct that holds a KV pair */ +export interface CosmwasmWasmV1Beta1Model { + /** + * hex-encode key to read it better (this is often ascii) + * @format byte + */ + key?: string; + /** + * base64-encode raw value + * @format byte + */ + value?: string; +} + +/** + * QueryAllContractStateResponse is the response type for the + * Query/AllContractState RPC method + */ +export interface CosmwasmWasmV1Beta1QueryAllContractStateResponse { + models?: { + /** + * hex-encode key to read it better (this is often ascii) + * @format byte + */ + key?: string; + /** + * base64-encode raw value + * @format byte + */ + value?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryCodeResponse is the response type for the Query/Code RPC method */ +export interface CosmwasmWasmV1Beta1QueryCodeResponse { + /** CodeInfoResponse contains code meta data from CodeInfo */ + code_info?: { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; + }; + /** @format byte */ + data?: string; +} + +/** QueryCodesResponse is the response type for the Query/Codes RPC method */ +export interface CosmwasmWasmV1Beta1QueryCodesResponse { + code_infos?: { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryContractHistoryResponse is the response type for the + * Query/ContractHistory RPC method + */ +export interface CosmwasmWasmV1Beta1QueryContractHistoryResponse { + entries?: { + /** + * ContractCodeHistoryOperationType actions that caused a code change + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data + * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" + */ + operation?: + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'; + /** + * CodeID is the reference to the stored WASM code + * @format uint64 + */ + code_id?: string; + /** Updated Tx position when the operation was executed. */ + updated?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + /** @format byte */ + msg?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryContractInfoResponse is the response type for the Query/ContractInfo RPC + * method + */ +export interface CosmwasmWasmV1Beta1QueryContractInfoResponse { + /** address is the address of the contract */ + address?: string; + /** ContractInfo stores a WASM contract instance */ + contract_info?: { + /** + * CodeID is the reference to the stored Wasm code + * @format uint64 + */ + code_id?: string; + /** Creator address who initially instantiated the contract */ + creator?: string; + /** Admin is an optional address that can execute migrations */ + admin?: string; + /** Label is optional metadata to be stored with a contract instance. */ + label?: string; + /** + * Created Tx position when the contract was instantiated. + * This data should kept internal and not be exposed via query results. Just + * use for sorting + * AbsoluteTxPosition is a unique transaction position that allows for global + * ordering of transactions. + */ + created?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + ibc_port_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + extension?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; +} + +/** + * QueryContractsByCodeResponse is the response type for the + * Query/ContractsByCode RPC method + */ +export interface CosmwasmWasmV1Beta1QueryContractsByCodeResponse { + /** contracts are a set of contract addresses */ + contracts?: string[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryRawContractStateResponse is the response type for the + * Query/RawContractState RPC method + */ +export interface CosmwasmWasmV1Beta1QueryRawContractStateResponse { + /** + * Data contains the raw store data + * @format byte + */ + data?: string; +} + +/** + * QuerySmartContractStateResponse is the response type for the + * Query/SmartContractState RPC method + */ +export interface CosmwasmWasmV1Beta1QuerySmartContractStateResponse { + /** + * Data contains the json data returned from the smart contract + * @format byte + */ + data?: string; +} + +/** AccessConfig access control type. */ +export interface CosmwasmWasmV1Beta1AccessConfig { + /** + * AccessType permission types + * - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value + * - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden + * - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to an address + * - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted + * @default "ACCESS_TYPE_UNSPECIFIED" + */ + permission?: 'ACCESS_TYPE_UNSPECIFIED' | 'ACCESS_TYPE_NOBODY' | 'ACCESS_TYPE_ONLY_ADDRESS' | 'ACCESS_TYPE_EVERYBODY'; + address?: string; +} + +/** + * AccessType permission types + * - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value + * - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden + * - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to an address + * - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted + * @default "ACCESS_TYPE_UNSPECIFIED" + */ +export enum CosmwasmWasmV1Beta1AccessType { + ACCESS_TYPE_UNSPECIFIED = 'ACCESS_TYPE_UNSPECIFIED', + ACCESS_TYPE_NOBODY = 'ACCESS_TYPE_NOBODY', + ACCESS_TYPE_ONLY_ADDRESS = 'ACCESS_TYPE_ONLY_ADDRESS', + ACCESS_TYPE_EVERYBODY = 'ACCESS_TYPE_EVERYBODY', +} + +/** MsgClearAdminResponse returns empty data */ +export type CosmwasmWasmV1Beta1MsgClearAdminResponse = object; + +/** MsgExecuteContractResponse returns execution result data. */ +export interface CosmwasmWasmV1Beta1MsgExecuteContractResponse { + /** + * Data contains base64-encoded bytes to returned from the contract + * @format byte + */ + data?: string; +} + +/** MsgInstantiateContractResponse return instantiation result data */ +export interface CosmwasmWasmV1Beta1MsgInstantiateContractResponse { + /** Address is the bech32 address of the new contract instance. */ + address?: string; + /** + * Data contains base64-encoded bytes to returned from the contract + * @format byte + */ + data?: string; +} + +/** MsgMigrateContractResponse returns contract migration result data. */ +export interface CosmwasmWasmV1Beta1MsgMigrateContractResponse { + /** + * Data contains same raw bytes returned as data from the wasm contract. + * (May be empty) + * @format byte + */ + data?: string; +} + +/** MsgStoreCodeResponse returns store result data. */ +export interface CosmwasmWasmV1Beta1MsgStoreCodeResponse { + /** + * CodeID is the reference to the stored WASM code + * @format uint64 + */ + code_id?: string; +} + +/** MsgUpdateAdminResponse returns empty data */ +export type CosmwasmWasmV1Beta1MsgUpdateAdminResponse = object; + +/** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ +export interface IbcApplicationsTransferV1DenomTrace { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; +} + +/** + * Params defines the set of IBC transfer parameters. + * NOTE: To prevent a single token from being transferred, set the + * TransfersEnabled parameter to true and then set the bank module's SendEnabled + * parameter for the denomination to false. + */ +export interface IbcApplicationsTransferV1Params { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + send_enabled?: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receive_enabled?: boolean; +} + +/** + * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + * method. + */ +export interface IbcApplicationsTransferV1QueryDenomTraceResponse { + /** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ + denom_trace?: { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; + }; +} + +/** + * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + * method. + */ +export interface IbcApplicationsTransferV1QueryDenomTracesResponse { + /** denom_traces returns all denominations trace information. */ + denom_traces?: { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface IbcApplicationsTransferV1QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + send_enabled?: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receive_enabled?: boolean; + }; +} + +/** MsgTransferResponse defines the Msg/Transfer response type. */ +export type IbcApplicationsTransferV1MsgTransferResponse = object; + +/** + * Height is a monotonically increasing data type + * that can be compared against another Height for the purposes of updating and + * freezing clients + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ +export interface IbcCoreClientV1Height { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; +} + +/** + * Channel defines pipeline for exactly-once packet delivery between specific + * modules on separate blockchains, which has at least one end capable of + * sending packets and one end capable of receiving packets. + */ +export interface IbcCoreChannelV1Channel { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; +} + +/** Counterparty defines a channel end counterparty */ +export interface IbcCoreChannelV1Counterparty { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; +} + +/** + * IdentifiedChannel defines a channel with additional port and channel + * identifier fields. + */ +export interface IbcCoreChannelV1IdentifiedChannel { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; +} + +/** + * Order defines if a channel is ORDERED or UNORDERED + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ +export enum IbcCoreChannelV1Order { + ORDER_NONE_UNSPECIFIED = 'ORDER_NONE_UNSPECIFIED', + ORDER_UNORDERED = 'ORDER_UNORDERED', + ORDER_ORDERED = 'ORDER_ORDERED', +} + +/** + * PacketState defines the generic type necessary to retrieve and store + * packet commitments, acknowledgements, and receipts. + * Caller is responsible for knowing the context necessary to interpret this + * state as a commitment, acknowledgement, or a receipt. + */ +export interface IbcCoreChannelV1PacketState { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; +} + +/** + * QueryChannelClientStateResponse is the Response type for the + * Query/QueryChannelClientState RPC method + */ +export interface IbcCoreChannelV1QueryChannelClientStateResponse { + /** + * client state associated with the channel + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ + identified_client_state?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryChannelClientStateResponse is the Response type for the + * Query/QueryChannelClientState RPC method + */ +export interface IbcCoreChannelV1QueryChannelConsensusStateResponse { + /** + * consensus state associated with the channel + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** client ID associated with the consensus state */ + client_id?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryChannelResponse is the response type for the Query/Channel RPC method. + * Besides the Channel end, it includes a proof and the height from which the + * proof was retrieved. + */ +export interface IbcCoreChannelV1QueryChannelResponse { + /** + * channel associated with the request identifiers + * Channel defines pipeline for exactly-once packet delivery between specific + * modules on separate blockchains, which has at least one end capable of + * sending packets and one end capable of receiving packets. + */ + channel?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** QueryChannelsResponse is the response type for the Query/Channels RPC method. */ +export interface IbcCoreChannelV1QueryChannelsResponse { + /** list of stored channels of the chain. */ + channels?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionChannelsResponse is the Response type for the + * Query/QueryConnectionChannels RPC method + */ +export interface IbcCoreChannelV1QueryConnectionChannelsResponse { + /** list of channels associated with a connection. */ + channels?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QuerySequenceResponse is the request type for the + * Query/QueryNextSequenceReceiveResponse RPC method + */ +export interface IbcCoreChannelV1QueryNextSequenceReceiveResponse { + /** + * next sequence receive number + * @format uint64 + */ + next_sequence_receive?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketAcknowledgementResponse defines the client query response for a + * packet which also includes a proof and the height from which the + * proof was retrieved + */ +export interface IbcCoreChannelV1QueryPacketAcknowledgementResponse { + /** + * packet associated with the request fields + * @format byte + */ + acknowledgement?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketAcknowledgemetsResponse is the request type for the + * Query/QueryPacketAcknowledgements RPC method + */ +export interface IbcCoreChannelV1QueryPacketAcknowledgementsResponse { + acknowledgements?: { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketCommitmentResponse defines the client query response for a packet + * which also includes a proof and the height from which the proof was + * retrieved + */ +export interface IbcCoreChannelV1QueryPacketCommitmentResponse { + /** + * packet associated with the request fields + * @format byte + */ + commitment?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketCommitmentsResponse is the request type for the + * Query/QueryPacketCommitments RPC method + */ +export interface IbcCoreChannelV1QueryPacketCommitmentsResponse { + commitments?: { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketReceiptResponse defines the client query response for a packet receipt + * which also includes a proof, and the height from which the proof was + * retrieved + */ +export interface IbcCoreChannelV1QueryPacketReceiptResponse { + /** success flag for if receipt exists */ + received?: boolean; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryUnreceivedAcksResponse is the response type for the + * Query/UnreceivedAcks RPC method + */ +export interface IbcCoreChannelV1QueryUnreceivedAcksResponse { + /** list of unreceived acknowledgement sequences */ + sequences?: string[]; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryUnreceivedPacketsResponse is the response type for the + * Query/UnreceivedPacketCommitments RPC method + */ +export interface IbcCoreChannelV1QueryUnreceivedPacketsResponse { + /** list of unreceived packet sequences */ + sequences?: string[]; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ +export enum IbcCoreChannelV1State { + STATE_UNINITIALIZED_UNSPECIFIED = 'STATE_UNINITIALIZED_UNSPECIFIED', + STATE_INIT = 'STATE_INIT', + STATE_TRYOPEN = 'STATE_TRYOPEN', + STATE_OPEN = 'STATE_OPEN', + STATE_CLOSED = 'STATE_CLOSED', +} + +/** + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ +export interface IbcCoreClientV1IdentifiedClientState { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ +export type IbcCoreChannelV1MsgAcknowledgementResponse = object; + +/** MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response type. */ +export type IbcCoreChannelV1MsgChannelCloseConfirmResponse = object; + +/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ +export type IbcCoreChannelV1MsgChannelCloseInitResponse = object; + +/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ +export type IbcCoreChannelV1MsgChannelOpenAckResponse = object; + +/** MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response type. */ +export type IbcCoreChannelV1MsgChannelOpenConfirmResponse = object; + +/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ +export type IbcCoreChannelV1MsgChannelOpenInitResponse = object; + +/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ +export type IbcCoreChannelV1MsgChannelOpenTryResponse = object; + +/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ +export type IbcCoreChannelV1MsgRecvPacketResponse = object; + +/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ +export type IbcCoreChannelV1MsgTimeoutOnCloseResponse = object; + +/** MsgTimeoutResponse defines the Msg/Timeout response type. */ +export type IbcCoreChannelV1MsgTimeoutResponse = object; + +/** Packet defines a type that carries data across different chains through IBC */ +export interface IbcCoreChannelV1Packet { + /** + * number corresponds to the order of sends and receives, where a Packet + * with an earlier sequence number must be sent and received before a Packet + * with a later sequence number. + * @format uint64 + */ + sequence?: string; + /** identifies the port on the sending chain. */ + source_port?: string; + /** identifies the channel end on the sending chain. */ + source_channel?: string; + /** identifies the port on the receiving chain. */ + destination_port?: string; + /** identifies the channel end on the receiving chain. */ + destination_channel?: string; + /** + * actual opaque bytes transferred directly to the application module + * @format byte + */ + data?: string; + /** + * block height after which the packet times out + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + timeout_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + /** + * block timestamp (in nanoseconds) after which the packet times out + * @format uint64 + */ + timeout_timestamp?: string; +} + +/** ConsensusStateWithHeight defines a consensus state with an additional height field. */ +export interface IbcCoreClientV1ConsensusStateWithHeight { + /** + * consensus state height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + /** + * consensus state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** Params defines the set of IBC light client parameters. */ +export interface IbcCoreClientV1Params { + /** allowed_clients defines the list of allowed client state types. */ + allowed_clients?: string[]; +} + +/** QueryClientParamsResponse is the response type for the Query/ClientParams RPC method. */ +export interface IbcCoreClientV1QueryClientParamsResponse { + /** params defines the parameters of the module. */ + params?: { + /** allowed_clients defines the list of allowed client state types. */ + allowed_clients?: string[]; + }; +} + +/** + * QueryClientStateResponse is the response type for the Query/ClientState RPC + * method. Besides the client state, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface IbcCoreClientV1QueryClientStateResponse { + /** + * client state associated with the request identifier + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryClientStatesResponse is the response type for the Query/ClientStates RPC + * method. + */ +export interface IbcCoreClientV1QueryClientStatesResponse { + /** list of stored ClientStates of the chain. */ + client_states?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryConsensusStateResponse is the response type for the Query/ConsensusState + * RPC method + */ +export interface IbcCoreClientV1QueryConsensusStateResponse { + /** + * consensus state associated with the client identifier at the given height + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConsensusStatesResponse is the response type for the + * Query/ConsensusStates RPC method + */ +export interface IbcCoreClientV1QueryConsensusStatesResponse { + /** consensus states associated with the identifier */ + consensus_states?: { + /** + * consensus state height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + /** + * consensus state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ +export type IbcCoreClientV1MsgCreateClientResponse = object; + +/** MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response type. */ +export type IbcCoreClientV1MsgSubmitMisbehaviourResponse = object; + +/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ +export type IbcCoreClientV1MsgUpdateClientResponse = object; + +/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ +export type IbcCoreClientV1MsgUpgradeClientResponse = object; + +/** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + */ +export interface IbcCoreCommitmentV1MerklePrefix { + /** @format byte */ + key_prefix?: string; +} + +/** + * ConnectionEnd defines a stateful object on a chain connected to another + * separate one. + * NOTE: there must only be 2 defined ConnectionEnds to establish + * a connection between two chains. + */ +export interface IbcCoreConnectionV1ConnectionEnd { + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection. + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period that must pass before a consensus state can be used for packet-verification + * NOTE: delay period logic is only implemented by some clients. + * @format uint64 + */ + delay_period?: string; +} + +/** Counterparty defines the counterparty chain associated with a connection end. */ +export interface IbcCoreConnectionV1Counterparty { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; +} + +/** + * IdentifiedConnection defines a connection with additional connection + * identifier field. + */ +export interface IbcCoreConnectionV1IdentifiedConnection { + /** connection identifier. */ + id?: string; + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period associated with this connection. + * @format uint64 + */ + delay_period?: string; +} + +/** + * QueryClientConnectionsResponse is the response type for the + * Query/ClientConnections RPC method + */ +export interface IbcCoreConnectionV1QueryClientConnectionsResponse { + /** slice of all the connection paths associated with a client. */ + connection_paths?: string[]; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was generated + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionClientStateResponse is the response type for the + * Query/ConnectionClientState RPC method + */ +export interface IbcCoreConnectionV1QueryConnectionClientStateResponse { + /** + * client state associated with the channel + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ + identified_client_state?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionConsensusStateResponse is the response type for the + * Query/ConnectionConsensusState RPC method + */ +export interface IbcCoreConnectionV1QueryConnectionConsensusStateResponse { + /** + * consensus state associated with the channel + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** client ID associated with the consensus state */ + client_id?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionResponse is the response type for the Query/Connection RPC + * method. Besides the connection end, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface IbcCoreConnectionV1QueryConnectionResponse { + /** + * connection associated with the request identifier + * ConnectionEnd defines a stateful object on a chain connected to another + * separate one. + * NOTE: there must only be 2 defined ConnectionEnds to establish + * a connection between two chains. + */ + connection?: { + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection. + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period that must pass before a consensus state can be used for packet-verification + * NOTE: delay period logic is only implemented by some clients. + * @format uint64 + */ + delay_period?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionsResponse is the response type for the Query/Connections RPC + * method. + */ +export interface IbcCoreConnectionV1QueryConnectionsResponse { + /** list of stored connections of the chain. */ + connections?: { + /** connection identifier. */ + id?: string; + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period associated with this connection. + * @format uint64 + */ + delay_period?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * State defines if a connection is in one of the following states: + * INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A connection end has just started the opening handshake. + * - STATE_TRYOPEN: A connection end has acknowledged the handshake step on the counterparty + * chain. + * - STATE_OPEN: A connection end has completed the handshake. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ +export enum IbcCoreConnectionV1State { + STATE_UNINITIALIZED_UNSPECIFIED = 'STATE_UNINITIALIZED_UNSPECIFIED', + STATE_INIT = 'STATE_INIT', + STATE_TRYOPEN = 'STATE_TRYOPEN', + STATE_OPEN = 'STATE_OPEN', +} + +/** + * Version defines the versioning scheme used to negotiate the IBC verison in + * the connection handshake. + */ +export interface IbcCoreConnectionV1Version { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; +} + +/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ +export type IbcCoreConnectionV1MsgConnectionOpenAckResponse = object; + +/** MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm response type. */ +export type IbcCoreConnectionV1MsgConnectionOpenConfirmResponse = object; + +/** MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response type. */ +export type IbcCoreConnectionV1MsgConnectionOpenInitResponse = object; + +/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ +export type IbcCoreConnectionV1MsgConnectionOpenTryResponse = object; + +export type QueryParamsType = Record; +export type ResponseFormat = keyof Omit; + +export interface FullRequestParams extends Omit { + /** set parameter to `true` for call `securityWorker` for this request */ + secure?: boolean; + /** request path */ + path: string; + /** content type of request body */ + type?: ContentType; + /** query params */ + query?: QueryParamsType; + /** format of response (i.e. response.json() -> format: "json") */ + format?: ResponseFormat; + /** request body */ + body?: unknown; + /** base url */ + baseUrl?: string; + /** request cancellation token */ + cancelToken?: CancelToken; +} + +export type RequestParams = Omit; + +export interface ApiConfig { + baseUrl?: string; + baseApiParams?: Omit; + securityWorker?: (securityData: SecurityDataType | null) => Promise | RequestParams | void; + customFetch?: typeof fetch; +} + +export interface HttpResponse extends Response { + data: D; + error: E; +} + +type CancelToken = Symbol | string | number; + +export enum ContentType { + Json = 'application/json', + FormData = 'multipart/form-data', + UrlEncoded = 'application/x-www-form-urlencoded', + Text = 'text/plain', +} + +export class HttpClient { + public baseUrl: string = ''; + private securityData: SecurityDataType | null = null; + private securityWorker?: ApiConfig['securityWorker']; + private abortControllers = new Map(); + private customFetch = (...fetchParams: Parameters) => fetch(...fetchParams); + + private baseApiParams: RequestParams = { + credentials: 'same-origin', + headers: {}, + redirect: 'follow', + referrerPolicy: 'no-referrer', + }; + + constructor(apiConfig: ApiConfig = {}) { + Object.assign(this, apiConfig); + } + + public setSecurityData = (data: SecurityDataType | null) => { + this.securityData = data; + }; + + protected encodeQueryParam(key: string, value: any) { + const encodedKey = encodeURIComponent(key); + return `${encodedKey}=${encodeURIComponent(typeof value === 'number' ? value : `${value}`)}`; + } + + protected addQueryParam(query: QueryParamsType, key: string) { + return this.encodeQueryParam(key, query[key]); + } + + protected addArrayQueryParam(query: QueryParamsType, key: string) { + const value = query[key]; + return value.map((v: any) => this.encodeQueryParam(key, v)).join('&'); + } + + protected toQueryString(rawQuery?: QueryParamsType): string { + const query = rawQuery || {}; + const keys = Object.keys(query).filter((key) => 'undefined' !== typeof query[key]); + return keys + .map((key) => (Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key))) + .join('&'); + } + + protected addQueryParams(rawQuery?: QueryParamsType): string { + const queryString = this.toQueryString(rawQuery); + return queryString ? `?${queryString}` : ''; + } + + private contentFormatters: Record any> = { + [ContentType.Json]: (input: any) => + input !== null && (typeof input === 'object' || typeof input === 'string') ? JSON.stringify(input) : input, + [ContentType.Text]: (input: any) => (input !== null && typeof input !== 'string' ? JSON.stringify(input) : input), + [ContentType.FormData]: (input: any) => + Object.keys(input || {}).reduce((formData, key) => { + const property = input[key]; + formData.append( + key, + property instanceof Blob + ? property + : typeof property === 'object' && property !== null + ? JSON.stringify(property) + : `${property}` + ); + return formData; + }, new FormData()), + [ContentType.UrlEncoded]: (input: any) => this.toQueryString(input), + }; + + protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams { + return { + ...this.baseApiParams, + ...params1, + ...(params2 || {}), + headers: { + ...(this.baseApiParams.headers || {}), + ...(params1.headers || {}), + ...((params2 && params2.headers) || {}), + }, + }; + } + + protected createAbortSignal = (cancelToken: CancelToken): AbortSignal | undefined => { + if (this.abortControllers.has(cancelToken)) { + const abortController = this.abortControllers.get(cancelToken); + if (abortController) { + return abortController.signal; + } + return void 0; + } + + const abortController = new AbortController(); + this.abortControllers.set(cancelToken, abortController); + return abortController.signal; + }; + + public abortRequest = (cancelToken: CancelToken) => { + const abortController = this.abortControllers.get(cancelToken); + + if (abortController) { + abortController.abort(); + this.abortControllers.delete(cancelToken); + } + }; + + public request = async ({ + body, + secure, + path, + type, + query, + format, + baseUrl, + cancelToken, + ...params + }: FullRequestParams): Promise> => { + const secureParams = + ((typeof secure === 'boolean' ? secure : this.baseApiParams.secure) && + this.securityWorker && + (await this.securityWorker(this.securityData))) || + {}; + const requestParams = this.mergeRequestParams(params, secureParams); + const queryString = query && this.toQueryString(query); + const payloadFormatter = this.contentFormatters[type || ContentType.Json]; + const responseFormat = format || requestParams.format; + + return this.customFetch(`${baseUrl || this.baseUrl || ''}${path}${queryString ? `?${queryString}` : ''}`, { + ...requestParams, + headers: { + ...(requestParams.headers || {}), + ...(type && type !== ContentType.FormData ? { 'Content-Type': type } : {}), + }, + signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null, + body: typeof body === 'undefined' || body === null ? null : payloadFormatter(body), + }).then(async (response) => { + const r = response as HttpResponse; + r.data = null as unknown as T; + r.error = null as unknown as E; + + const data = !responseFormat + ? r + : await response[responseFormat]() + .then((data) => { + if (r.ok) { + r.data = data; + } else { + r.error = data; + } + return r; + }) + .catch((e) => { + r.error = e; + return r; + }); + + if (cancelToken) { + this.abortControllers.delete(cancelToken); + } + + if (!response.ok) throw data; + return data; + }); + }; +} + +/** + * @title Cyber + * @version 0.2.0 + * + * Bostrom Bootloader Hub + */ +export class Api extends HttpClient { + cyber = { + /** + * No description + * + * @tags Query + * @name GraphStats + * @request GET:/cyber/graph/v1beta1/graph_stats + */ + graphStats: (params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + cyberlinks?: string; + /** @format uint64 */ + particles?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/graph/v1beta1/graph_stats`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name IsAnyLinkExist + * @request GET:/cyber/rank/v1beta1/is_any_link_exist + */ + isAnyLinkExist: ( + query?: { + from?: string; + to?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + /** @format boolean */ + exist?: boolean; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/is_any_link_exist`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name IsLinkExist + * @request GET:/cyber/rank/v1beta1/is_link_exist + */ + isLinkExist: ( + query?: { + from?: string; + to?: string; + address?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + /** @format boolean */ + exist?: boolean; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/is_link_exist`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Karma + * @request GET:/cyber/rank/v1beta1/karma/{neuron} + */ + karma: (neuron: string, params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + karma?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/karma/${neuron}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Negentropy + * @request GET:/cyber/rank/v1beta1/negentropy + */ + negentropy: (params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + negentropy?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/negentropy`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ParticleNegentropy + * @request GET:/cyber/rank/v1beta1/negentropy/{particle} + */ + particleNegentropy: (particle: string, params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + entropy?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/negentropy/${particle}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Backlinks + * @request GET:/cyber/rank/v1beta1/rank/backlinks/{particle} + */ + backlinks: ( + particle: string, + query?: { + /** @format int64 */ + paginationPage?: number; + /** @format int64 */ + paginationPerPage?: number; + }, + params: RequestParams = {} + ) => + this.request< + { + result?: { + particle?: string; + /** @format uint64 */ + rank?: string; + }[]; + pagination?: { + /** @format int64 */ + total?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/backlinks/${particle}`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name RankParams + * @request GET:/cyber/rank/v1beta1/rank/params + */ + rankParams: (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format int64 */ + calculation_period?: string; + damping_factor?: string; + tolerance?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Rank + * @request GET:/cyber/rank/v1beta1/rank/rank/{particle} + */ + rank: (particle: string, params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + rank?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/rank/${particle}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Search + * @request GET:/cyber/rank/v1beta1/rank/search/{particle} + */ + search: ( + particle: string, + query?: { + /** @format int64 */ + paginationPage?: number; + /** @format int64 */ + paginationPerPage?: number; + }, + params: RequestParams = {} + ) => + this.request< + { + result?: { + particle?: string; + /** @format uint64 */ + rank?: string; + }[]; + pagination?: { + /** @format int64 */ + total?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/search/${particle}`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Top + * @request GET:/cyber/rank/v1beta1/rank/top + */ + top: ( + query?: { + /** @format int64 */ + page?: number; + /** @format int64 */ + per_page?: number; + }, + params: RequestParams = {} + ) => + this.request< + { + result?: { + particle?: string; + /** @format uint64 */ + rank?: string; + }[]; + pagination?: { + /** @format int64 */ + total?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/top`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Load + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/load + */ + load: (params: RequestParams = {}) => + this.request< + { + /** DecProto defines a Protobuf wrapper around a Dec object. */ + load?: { + dec?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/load`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name NeuronBandwidth + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/neuron/{neuron} + */ + neuronBandwidth: (neuron: string, params: RequestParams = {}) => + this.request< + { + neuron_bandwidth?: { + neuron?: string; + /** @format uint64 */ + remained_value?: string; + /** @format uint64 */ + last_updated_block?: string; + /** @format uint64 */ + max_value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/neuron/${neuron}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name BandwidthParams + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/params + */ + bandwidthParams: (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format uint64 */ + recovery_period?: string; + /** @format uint64 */ + adjust_price_period?: string; + base_price?: string; + base_load?: string; + /** @format uint64 */ + max_block_bandwidth?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Price + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/price + */ + price: (params: RequestParams = {}) => + this.request< + { + /** DecProto defines a Protobuf wrapper around a Dec object. */ + price?: { + dec?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/price`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name TotalBandwidth + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/total + */ + totalBandwidth: (params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + total_bandwidth?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/total`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DestinationRoutedEnergy + * @request GET:/cyber/grid/v1beta1/grid/destination_routed_energy + */ + destinationRoutedEnergy: ( + query?: { + destination?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + value?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/destination_routed_energy`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DestinationRoutes + * @request GET:/cyber/grid/v1beta1/grid/destination_routes + */ + destinationRoutes: ( + query?: { + destination?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + routes?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/destination_routes`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name GridParams + * @request GET:/cyber/grid/v1beta1/grid/params + */ + gridParams: (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format int64 */ + max_routes?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Route + * @request GET:/cyber/grid/v1beta1/grid/route + */ + route: ( + query?: { + source?: string; + destination?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + route?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/route`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Routes + * @request GET:/cyber/grid/v1beta1/grid/routes + */ + routes: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + * @format boolean + */ + paginationCountTotal?: boolean; + /** + * reverse is set to true if results are to be returned in the descending order. + * @format boolean + */ + paginationReverse?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + routes?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/routes`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name SourceRoutedEnergy + * @request GET:/cyber/grid/v1beta1/grid/source_routed_energy + */ + sourceRoutedEnergy: ( + query?: { + source?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + value?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/source_routed_energy`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name SourceRoutes + * @request GET:/cyber/grid/v1beta1/grid/source_routes + */ + sourceRoutes: ( + query?: { + source?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + routes?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/source_routes`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Investmint + * @request GET:/cyber/resources/v1beta1/resources/investmint + */ + investmint: ( + query?: { + amountDenom?: string; + amountAmount?: string; + resource?: string; + /** @format uint64 */ + length?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + amount?: { + denom?: string; + amount?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/resources/v1beta1/resources/investmint`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ResourcesParams + * @request GET:/cyber/resources/v1beta1/resources/params + */ + resourcesParams: (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + halving_period_volt_blocks?: number; + /** @format int64 */ + halving_period_ampere_blocks?: number; + /** @format int64 */ + base_investmint_period_volt?: number; + /** @format int64 */ + base_investmint_period_ampere?: number; + /** @format int64 */ + min_investmint_period?: number; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_volt?: { + denom?: string; + amount?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_ampere?: { + denom?: string; + amount?: string; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/resources/v1beta1/resources/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DmnParams + * @request GET:/cyber/dmn/v1beta1/dmn/params + */ + dmnParams: (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + max_gas?: number; + /** @format int64 */ + fee_ttl?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Thought + * @request GET:/cyber/dmn/v1beta1/dmn/thought + */ + thought: ( + query?: { + program?: string; + name?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + thought?: { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/thought`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ThoughtStats + * @request GET:/cyber/dmn/v1beta1/dmn/thought_stats + */ + thoughtStats: ( + query?: { + program?: string; + name?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + thought_stats?: { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/thought_stats`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Thoughts + * @request GET:/cyber/dmn/v1beta1/dmn/thoughts + */ + thoughts: (params: RequestParams = {}) => + this.request< + { + thoughts?: { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/thoughts`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ThoughtsStats + * @request GET:/cyber/dmn/v1beta1/dmn/thoughts_stats + */ + thoughtsStats: (params: RequestParams = {}) => + this.request< + { + thoughts_stats?: { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/thoughts_stats`, + method: 'GET', + ...params, + }), + }; + cosmos = { + /** + * No description + * + * @tags Query + * @name Account + * @summary Account returns account details based on address. + * @request GET:/cosmos/auth/v1beta1/accounts/{address} + */ + account: (address: string, params: RequestParams = {}) => + this.request< + { + /** account defines the account of the corresponding address. */ + account?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/auth/v1beta1/accounts/${address}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name AuthParams + * @summary Params queries all parameters. + * @request GET:/cosmos/auth/v1beta1/params + */ + authParams: (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + /** @format uint64 */ + max_memo_characters?: string; + /** @format uint64 */ + tx_sig_limit?: string; + /** @format uint64 */ + tx_size_cost_per_byte?: string; + /** @format uint64 */ + sig_verify_cost_ed25519?: string; + /** @format uint64 */ + sig_verify_cost_secp256k1?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/auth/v1beta1/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name AllBalances + * @summary AllBalances queries the balance of all coins for a single account. + * @request GET:/cosmos/bank/v1beta1/balances/{address} + */ + allBalances: ( + address: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** balances is the balances of all the coins. */ + balances?: { + denom?: string; + amount?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/balances/${address}`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Balance + * @summary Balance queries the balance of a single coin for a single account. + * @request GET:/cosmos/bank/v1beta1/balances/{address}/{denom} + */ + balance: (address: string, denom: string, params: RequestParams = {}) => + this.request< + { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/balances/${address}/${denom}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DenomsMetadata + * @summary DenomsMetadata queries the client metadata for all registered coin denominations. + * @request GET:/cosmos/bank/v1beta1/denoms_metadata + */ + denomsMetadata: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** metadata provides the client information for all the registered tokens. */ + metadatas?: { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/denoms_metadata`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DenomMetadata + * @summary DenomsMetadata queries the client metadata of a given coin denomination. + * @request GET:/cosmos/bank/v1beta1/denoms_metadata/{denom} + */ + denomMetadata: (denom: string, params: RequestParams = {}) => + this.request< + { + /** + * Metadata represents a struct that describes + * a basic token. + */ + metadata?: { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/denoms_metadata/${denom}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name BankParams + * @summary Params queries the parameters of x/bank module. + * @request GET:/cosmos/bank/v1beta1/params + */ + bankParams: (params: RequestParams = {}) => + this.request< + { + /** Params defines the parameters for the bank module. */ + params?: { + send_enabled?: { + denom?: string; + enabled?: boolean; + }[]; + default_send_enabled?: boolean; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name TotalSupply + * @summary TotalSupply queries the total supply of all coins. + * @request GET:/cosmos/bank/v1beta1/supply + */ + totalSupply: (params: RequestParams = {}) => + this.request< + { + /** supply is the supply of the coins */ + supply?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/supply`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name SupplyOf + * @summary SupplyOf queries the supply of a single coin. + * @request GET:/cosmos/bank/v1beta1/supply/{denom} + */ + supplyOf: (denom: string, params: RequestParams = {}) => + this.request< + { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + amount?: { + denom?: string; + amount?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/supply/${denom}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Service + * @name GetLatestBlock + * @summary GetLatestBlock returns the latest block. + * @request GET:/cosmos/base/tendermint/v1beta1/blocks/latest + */ + getLatestBlock: (params: RequestParams = {}) => + this.request< + { + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + block?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/blocks/latest`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Service + * @name GetBlockByHeight + * @summary GetBlockByHeight queries block for given height. + * @request GET:/cosmos/base/tendermint/v1beta1/blocks/{height} + */ + getBlockByHeight: (height: string, params: RequestParams = {}) => + this.request< + { + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + block?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/blocks/${height}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Service + * @name GetNodeInfo + * @summary GetNodeInfo queries the current node info. + * @request GET:/cosmos/base/tendermint/v1beta1/node_info + */ + getNodeInfo: (params: RequestParams = {}) => + this.request< + { + default_node_info?: { + protocol_version?: { + /** @format uint64 */ + p2p?: string; + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + /** @format byte */ + channels?: string; + moniker?: string; + other?: { + tx_index?: string; + rpc_address?: string; + }; + }; + /** VersionInfo is the type for the GetNodeInfoResponse message. */ + application_version?: { + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: { + /** module path */ + path?: string; + /** module version */ + version?: string; + /** checksum */ + sum?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/node_info`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Service + * @name GetSyncing + * @summary GetSyncing queries node syncing. + * @request GET:/cosmos/base/tendermint/v1beta1/syncing + */ + getSyncing: (params: RequestParams = {}) => + this.request< + { + syncing?: boolean; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/syncing`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Service + * @name GetLatestValidatorSet + * @summary GetLatestValidatorSet queries latest validator-set. + * @request GET:/cosmos/base/tendermint/v1beta1/validatorsets/latest + */ + getLatestValidatorSet: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/validatorsets/latest`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Service + * @name GetValidatorSetByHeight + * @summary GetValidatorSetByHeight queries validator-set at a given height. + * @request GET:/cosmos/base/tendermint/v1beta1/validatorsets/{height} + */ + getValidatorSetByHeight: ( + height: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/validatorsets/${height}`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name CommunityPool + * @summary CommunityPool queries the community pool coins. + * @request GET:/cosmos/distribution/v1beta1/community_pool + */ + communityPool: (params: RequestParams = {}) => + this.request< + { + /** pool defines community pool's coins. */ + pool?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/community_pool`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DelegationTotalRewards + * @summary DelegationTotalRewards queries the total rewards accrued by a each +validator. + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards + */ + delegationTotalRewards: (delegatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** rewards defines all the rewards accrued by a delegator. */ + rewards?: { + validator_address?: string; + reward?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** total defines the sum of all the rewards. */ + total?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DelegationRewards + * @summary DelegationRewards queries the total rewards accrued by a delegation. + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address} + */ + delegationRewards: (delegatorAddress: string, validatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** rewards defines the rewards accrued by a delegation. */ + rewards?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards/${validatorAddress}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DelegatorValidators + * @summary DelegatorValidators queries the validators of a delegator. + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators + */ + delegatorValidators: (delegatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** validators defines the validators a delegator is delegating for. */ + validators?: string[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/validators`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DelegatorWithdrawAddress + * @summary DelegatorWithdrawAddress queries withdraw address of a delegator. + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address + */ + delegatorWithdrawAddress: (delegatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** withdraw_address defines the delegator address to query for. */ + withdraw_address?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/withdraw_address`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DistributionParams + * @summary Params queries params of the distribution module. + * @request GET:/cosmos/distribution/v1beta1/params + */ + distributionParams: (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ValidatorCommission + * @summary ValidatorCommission queries accumulated commission for a validator. + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/commission + */ + validatorCommission: (validatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** commission defines the commision the validator received. */ + commission?: { + commission?: { + denom?: string; + amount?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/commission`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ValidatorOutstandingRewards + * @summary ValidatorOutstandingRewards queries rewards of a validator address. + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards + */ + validatorOutstandingRewards: (validatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ + rewards?: { + rewards?: { + denom?: string; + amount?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/outstanding_rewards`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ValidatorSlashes + * @summary ValidatorSlashes queries slash events of a validator. + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/slashes + */ + validatorSlashes: ( + validatorAddress: string, + query?: { + /** + * starting_height defines the optional starting height to query the slashes. + * @format uint64 + */ + starting_height?: string; + /** + * starting_height defines the optional ending height to query the slashes. + * @format uint64 + */ + ending_height?: string; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** slashes defines the slashes the validator received. */ + slashes?: { + /** @format uint64 */ + validator_period?: string; + fraction?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/slashes`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name AllEvidence + * @summary AllEvidence queries all evidence. + * @request GET:/cosmos/evidence/v1beta1/evidence + */ + allEvidence: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** evidence returns all evidences. */ + evidence?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/evidence/v1beta1/evidence`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Evidence + * @summary Evidence queries evidence based on evidence hash. + * @request GET:/cosmos/evidence/v1beta1/evidence/{evidence_hash} + */ + evidence: (evidenceHash: string, params: RequestParams = {}) => + this.request< + { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + evidence?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/evidence/v1beta1/evidence/${evidenceHash}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name GovParams + * @summary Params queries all parameters of the gov module. + * @request GET:/cosmos/gov/v1beta1/params/{params_type} + */ + govParams: (paramsType: string, params: RequestParams = {}) => + this.request< + { + /** voting_params defines the parameters related to voting. */ + voting_params?: { + /** Length of the voting period. */ + voting_period?: string; + }; + /** deposit_params defines the parameters related to deposit. */ + deposit_params?: { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: { + denom?: string; + amount?: string; + }[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: string; + }; + /** tally_params defines the parameters related to tally. */ + tally_params?: { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + * @format byte + */ + quorum?: string; + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + * @format byte + */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + * @format byte + */ + veto_threshold?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/params/${paramsType}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Proposals + * @summary Proposals queries all proposals based on given status. + * @request GET:/cosmos/gov/v1beta1/proposals + */ + proposals: ( + query?: { + /** + * proposal_status defines the status of the proposals. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + proposal_status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** voter defines the voter address for the proposals. */ + voter?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + proposals?: { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Proposal + * @summary Proposal queries proposal details based on ProposalID. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id} + */ + proposal: (proposalId: string, params: RequestParams = {}) => + this.request< + { + /** Proposal defines the core field members of a governance proposal. */ + proposal?: { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Deposits + * @summary Deposits queries all deposits of a single proposal. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits + */ + deposits: ( + proposalId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + deposits?: { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Deposit + * @summary Deposit queries single deposit information based proposalID, depositAddr. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor} + */ + deposit: (proposalId: string, depositor: string, params: RequestParams = {}) => + this.request< + { + /** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ + deposit?: { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits/${depositor}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name TallyResult + * @summary TallyResult queries the tally of a proposal vote. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/tally + */ + tallyResult: (proposalId: string, params: RequestParams = {}) => + this.request< + { + /** TallyResult defines a standard tally for a governance proposal. */ + tally?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/tally`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Votes + * @summary Votes queries votes of a given proposal. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes + */ + votes: ( + proposalId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** votes defined the queried votes. */ + votes?: { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Vote + * @summary Vote queries voted information based on proposalID, voterAddr. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter} + */ + vote: (proposalId: string, voter: string, params: RequestParams = {}) => + this.request< + { + /** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ + vote?: { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes/${voter}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name AnnualProvisions + * @summary AnnualProvisions current minting annual provisions value. + * @request GET:/cosmos/mint/v1beta1/annual_provisions + */ + annualProvisions: (params: RequestParams = {}) => + this.request< + { + /** + * annual_provisions is the current minting annual provisions value. + * @format byte + */ + annual_provisions?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/mint/v1beta1/annual_provisions`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Inflation + * @summary Inflation returns the current minting inflation value. + * @request GET:/cosmos/mint/v1beta1/inflation + */ + inflation: (params: RequestParams = {}) => + this.request< + { + /** + * inflation is the current minting inflation value. + * @format byte + */ + inflation?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/mint/v1beta1/inflation`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name MintParams + * @summary Params returns the total set of minting parameters. + * @request GET:/cosmos/mint/v1beta1/params + */ + mintParams: (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + /** type of coin to mint */ + mint_denom?: string; + /** maximum annual change in inflation rate */ + inflation_rate_change?: string; + /** maximum inflation rate */ + inflation_max?: string; + /** minimum inflation rate */ + inflation_min?: string; + /** goal of percent bonded atoms */ + goal_bonded?: string; + /** + * expected blocks per year + * @format uint64 + */ + blocks_per_year?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/mint/v1beta1/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Params + * @summary Params queries a specific parameter of a module, given its subspace and +key. + * @request GET:/cosmos/params/v1beta1/params + */ + params: ( + query?: { + /** subspace defines the module to query the parameter for. */ + subspace?: string; + /** key defines the key of the parameter in the subspace. */ + key?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + /** param defines the queried parameter. */ + param?: { + subspace?: string; + key?: string; + value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/params/v1beta1/params`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name SlashingParams + * @summary Params queries the parameters of slashing module + * @request GET:/cosmos/slashing/v1beta1/params + */ + slashingParams: (params: RequestParams = {}) => + this.request< + { + /** Params represents the parameters used for by the slashing module. */ + params?: { + /** @format int64 */ + signed_blocks_window?: string; + /** @format byte */ + min_signed_per_window?: string; + downtime_jail_duration?: string; + /** @format byte */ + slash_fraction_double_sign?: string; + /** @format byte */ + slash_fraction_downtime?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/slashing/v1beta1/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name SigningInfos + * @summary SigningInfos queries signing info of all validators + * @request GET:/cosmos/slashing/v1beta1/signing_infos + */ + signingInfos: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** info is the signing info of all validators */ + info?: { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/slashing/v1beta1/signing_infos`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name SigningInfo + * @summary SigningInfo queries the signing info of given cons address + * @request GET:/cosmos/slashing/v1beta1/signing_infos/{cons_address} + */ + signingInfo: (consAddress: string, params: RequestParams = {}) => + this.request< + { + /** + * val_signing_info is the signing info of requested val cons address + * ValidatorSigningInfo defines a validator's signing info for monitoring their + * liveness activity. + */ + val_signing_info?: { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/slashing/v1beta1/signing_infos/${consAddress}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DelegatorDelegations + * @summary DelegatorDelegations queries all delegations of a given delegator address. + * @request GET:/cosmos/staking/v1beta1/delegations/{delegator_addr} + */ + delegatorDelegations: ( + delegatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** delegation_responses defines all the delegations' info of a delegator. */ + delegation_responses?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegations/${delegatorAddr}`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Redelegations + * @summary Redelegations queries redelegations of given address. + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations + */ + redelegations: ( + delegatorAddr: string, + query?: { + /** src_validator_addr defines the validator address to redelegate from. */ + src_validator_addr?: string; + /** dst_validator_addr defines the validator address to redelegate to. */ + dst_validator_addr?: string; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + redelegation_responses?: { + /** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ + redelegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }[]; + }; + entries?: { + /** RedelegationEntry defines a redelegation object with relevant metadata. */ + redelegation_entry?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }; + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/redelegations`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DelegatorUnbondingDelegations + * @summary DelegatorUnbondingDelegations queries all unbonding delegations of a given +delegator address. + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations + */ + delegatorUnbondingDelegations: ( + delegatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + unbonding_responses?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/unbonding_delegations`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name StakingDelegatorValidators + * @summary DelegatorValidators queries all validators info for given delegator +address. + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators + */ + stakingDelegatorValidators: ( + delegatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** validators defines the the validators' info of a delegator. */ + validators?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: + | 'BOND_STATUS_UNSPECIFIED' + | 'BOND_STATUS_UNBONDED' + | 'BOND_STATUS_UNBONDING' + | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/validators`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DelegatorValidator + * @summary DelegatorValidator queries validator info for given delegator validator +pair. + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr} + */ + delegatorValidator: (delegatorAddr: string, validatorAddr: string, params: RequestParams = {}) => + this.request< + { + /** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ + validator?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: + | 'BOND_STATUS_UNSPECIFIED' + | 'BOND_STATUS_UNBONDED' + | 'BOND_STATUS_UNBONDING' + | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/validators/${validatorAddr}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name HistoricalInfo + * @summary HistoricalInfo queries the historical info for given height. + * @request GET:/cosmos/staking/v1beta1/historical_info/{height} + */ + historicalInfo: (height: string, params: RequestParams = {}) => + this.request< + { + /** hist defines the historical info at the given height. */ + hist?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** prev block info */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + valset?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: + | 'BOND_STATUS_UNSPECIFIED' + | 'BOND_STATUS_UNBONDED' + | 'BOND_STATUS_UNBONDING' + | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/historical_info/${height}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name StakingParams + * @summary Parameters queries the staking parameters. + * @request GET:/cosmos/staking/v1beta1/params + */ + stakingParams: (params: RequestParams = {}) => + this.request< + { + /** params holds all the parameters of this module. */ + params?: { + /** unbonding_time is the time duration of unbonding. */ + unbonding_time?: string; + /** + * max_validators is the maximum number of validators. + * @format int64 + */ + max_validators?: number; + /** + * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). + * @format int64 + */ + max_entries?: number; + /** + * historical_entries is the number of historical entries to persist. + * @format int64 + */ + historical_entries?: number; + /** bond_denom defines the bondable coin denomination. */ + bond_denom?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Pool + * @summary Pool queries the pool info. + * @request GET:/cosmos/staking/v1beta1/pool + */ + pool: (params: RequestParams = {}) => + this.request< + { + /** pool defines the pool info. */ + pool?: { + not_bonded_tokens?: string; + bonded_tokens?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/pool`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Validators + * @summary Validators queries all validators that match the given status. + * @request GET:/cosmos/staking/v1beta1/validators + */ + validators: ( + query?: { + /** status enables to query for validators matching a given status. */ + status?: string; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** validators contains all the queried validators. */ + validators?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: + | 'BOND_STATUS_UNSPECIFIED' + | 'BOND_STATUS_UNBONDED' + | 'BOND_STATUS_UNBONDING' + | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Validator + * @summary Validator queries validator info for given validator address. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr} + */ + validator: (validatorAddr: string, params: RequestParams = {}) => + this.request< + { + /** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ + validator?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: + | 'BOND_STATUS_UNSPECIFIED' + | 'BOND_STATUS_UNBONDED' + | 'BOND_STATUS_UNBONDING' + | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ValidatorDelegations + * @summary ValidatorDelegations queries delegate info for given validator. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations + */ + validatorDelegations: ( + validatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + delegation_responses?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Delegation + * @summary Delegation queries delegate info for given validator delegator pair. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr} + */ + delegation: (validatorAddr: string, delegatorAddr: string, params: RequestParams = {}) => + this.request< + { + /** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ + delegation_response?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations/${delegatorAddr}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name UnbondingDelegation + * @summary UnbondingDelegation queries unbonding info for given validator delegator +pair. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation + */ + unbondingDelegation: (validatorAddr: string, delegatorAddr: string, params: RequestParams = {}) => + this.request< + { + /** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ + unbond?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations/${delegatorAddr}/unbonding_delegation`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ValidatorUnbondingDelegations + * @summary ValidatorUnbondingDelegations queries unbonding delegations of a validator. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations + */ + validatorUnbondingDelegations: ( + validatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + unbonding_responses?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/unbonding_delegations`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Service + * @name Simulate + * @summary Simulate simulates executing a transaction for estimating gas usage. + * @request POST:/cosmos/tx/v1beta1/simulate + */ + simulate: (body: CosmosTxV1Beta1SimulateRequest, params: RequestParams = {}) => + this.request< + { + /** gas_info is the information about gas used in the simulation. */ + gas_info?: { + /** + * GasWanted is the maximum units of work we allow this tx to perform. + * @format uint64 + */ + gas_wanted?: string; + /** + * GasUsed is the amount of gas actually consumed. + * @format uint64 + */ + gas_used?: string; + }; + /** result is the result of the simulation. */ + result?: { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * @format byte + */ + data?: string; + /** Log contains the log information from message or handler execution. */ + log?: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events?: { + type?: string; + attributes?: { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; + }[]; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/tx/v1beta1/simulate`, + method: 'POST', + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Service + * @name GetTxsEvent + * @summary GetTxsEvent fetches txs by event. + * @request GET:/cosmos/tx/v1beta1/txs + */ + getTxsEvent: ( + query?: { + /** events is the list of transaction event type. */ + events?: string[]; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + /** + * - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + * - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order + * - ORDER_BY_DESC: ORDER_BY_DESC defines descending order + * @default "ORDER_BY_UNSPECIFIED" + */ + order_by?: 'ORDER_BY_UNSPECIFIED' | 'ORDER_BY_ASC' | 'ORDER_BY_DESC'; + }, + params: RequestParams = {} + ) => + this.request< + CosmosTxV1Beta1GetTxsEventResponse, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/tx/v1beta1/txs`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Service + * @name BroadcastTx + * @summary BroadcastTx broadcast transaction. + * @request POST:/cosmos/tx/v1beta1/txs + */ + broadcastTx: ( + body: { + /** + * tx_bytes is the raw transaction. + * @format byte + */ + tx_bytes?: string; + /** + * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. + * + * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering + * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + * @default "BROADCAST_MODE_UNSPECIFIED" + */ + mode?: 'BROADCAST_MODE_UNSPECIFIED' | 'BROADCAST_MODE_BLOCK' | 'BROADCAST_MODE_SYNC' | 'BROADCAST_MODE_ASYNC'; + }, + params: RequestParams = {} + ) => + this.request< + { + /** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ + tx_response?: { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/tx/v1beta1/txs`, + method: 'POST', + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * No description + * + * @tags Service + * @name GetTx + * @summary GetTx fetches a tx by hash. + * @request GET:/cosmos/tx/v1beta1/txs/{hash} + */ + getTx: (hash: string, params: RequestParams = {}) => + this.request< + CosmosTxV1Beta1GetTxResponse, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/tx/v1beta1/txs/${hash}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name AppliedPlan + * @summary AppliedPlan queries a previously applied upgrade plan by its name. + * @request GET:/cosmos/upgrade/v1beta1/applied_plan/{name} + */ + appliedPlan: (name: string, params: RequestParams = {}) => + this.request< + { + /** + * height is the block height at which the plan was applied. + * @format int64 + */ + height?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/upgrade/v1beta1/applied_plan/${name}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name CurrentPlan + * @summary CurrentPlan queries the current upgrade plan. + * @request GET:/cosmos/upgrade/v1beta1/current_plan + */ + currentPlan: (params: RequestParams = {}) => + this.request< + { + /** plan is the current upgrade plan. */ + plan?: { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name?: string; + /** + * The time after which the upgrade must be performed. + * Leave set to its zero value to use a pre-defined Height instead. + * @format date-time + */ + time?: string; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + * @format int64 + */ + height?: string; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info?: string; + /** + * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan + * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, + * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the + * previous version of the chain. + * This will allow IBC connections to persist smoothly across planned chain upgrades + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/upgrade/v1beta1/current_plan`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name UpgradedConsensusState + * @summary UpgradedConsensusState queries the consensus state that will serve +as a trusted kernel for the next version of this chain. It will only be +stored at the last height of this chain. +UpgradedConsensusState RPC not supported with legacy querier + * @request GET:/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height} + */ + upgradedConsensusState: (lastHeight: string, params: RequestParams = {}) => + this.request< + { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/upgrade/v1beta1/upgraded_consensus_state/${lastHeight}`, + method: 'GET', + ...params, + }), + }; + wasm = { + /** + * No description + * + * @tags Query + * @name Codes + * @summary Codes gets the metadata for all stored wasm codes + * @request GET:/wasm/v1beta1/code + */ + codes: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + code_infos?: { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/code`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Code + * @summary Code gets the binary code and metadata for a singe wasm code + * @request GET:/wasm/v1beta1/code/{code_id} + */ + code: (codeId: string, params: RequestParams = {}) => + this.request< + { + /** CodeInfoResponse contains code meta data from CodeInfo */ + code_info?: { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; + }; + /** @format byte */ + data?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/code/${codeId}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ContractsByCode + * @summary ContractsByCode lists all smart contracts for a code id + * @request GET:/wasm/v1beta1/code/{code_id}/contracts + */ + contractsByCode: ( + codeId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** contracts are a set of contract addresses */ + contracts?: string[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/code/${codeId}/contracts`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ContractInfo + * @summary ContractInfo gets the contract meta data + * @request GET:/wasm/v1beta1/contract/{address} + */ + contractInfo: (address: string, params: RequestParams = {}) => + this.request< + { + /** address is the address of the contract */ + address?: string; + /** ContractInfo stores a WASM contract instance */ + contract_info?: { + /** + * CodeID is the reference to the stored Wasm code + * @format uint64 + */ + code_id?: string; + /** Creator address who initially instantiated the contract */ + creator?: string; + /** Admin is an optional address that can execute migrations */ + admin?: string; + /** Label is optional metadata to be stored with a contract instance. */ + label?: string; + /** + * Created Tx position when the contract was instantiated. + * This data should kept internal and not be exposed via query results. Just + * use for sorting + * AbsoluteTxPosition is a unique transaction position that allows for global + * ordering of transactions. + */ + created?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + ibc_port_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + extension?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ContractHistory + * @summary ContractHistory gets the contract code history + * @request GET:/wasm/v1beta1/contract/{address}/history + */ + contractHistory: ( + address: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + entries?: { + /** + * ContractCodeHistoryOperationType actions that caused a code change + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data + * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" + */ + operation?: + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'; + /** + * CodeID is the reference to the stored WASM code + * @format uint64 + */ + code_id?: string; + /** Updated Tx position when the operation was executed. */ + updated?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + /** @format byte */ + msg?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}/history`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name RawContractState + * @summary RawContractState gets single key from the raw store data of a contract + * @request GET:/wasm/v1beta1/contract/{address}/raw/{query_data} + */ + rawContractState: (address: string, queryData: string, params: RequestParams = {}) => + this.request< + { + /** + * Data contains the raw store data + * @format byte + */ + data?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}/raw/${queryData}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name SmartContractState + * @summary SmartContractState get smart query result from the contract + * @request GET:/wasm/v1beta1/contract/{address}/smart/{query_data} + */ + smartContractState: (address: string, queryData: string, params: RequestParams = {}) => + this.request< + { + /** + * Data contains the json data returned from the smart contract + * @format byte + */ + data?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}/smart/${queryData}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name AllContractState + * @summary AllContractState gets all raw store data for a single contract + * @request GET:/wasm/v1beta1/contract/{address}/state + */ + allContractState: ( + address: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + models?: { + /** + * hex-encode key to read it better (this is often ascii) + * @format byte + */ + key?: string; + /** + * base64-encode raw value + * @format byte + */ + value?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}/state`, + method: 'GET', + query: query, + ...params, + }), + }; + ibc = { + /** + * No description + * + * @tags Query + * @name DenomTraces + * @summary DenomTraces queries all denomination traces. + * @request GET:/ibc/applications/transfer/v1beta1/denom_traces + */ + denomTraces: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** denom_traces returns all denominations trace information. */ + denom_traces?: { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/ibc/applications/transfer/v1beta1/denom_traces`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name DenomTrace + * @summary DenomTrace queries a denomination trace information. + * @request GET:/ibc/applications/transfer/v1beta1/denom_traces/{hash} + */ + denomTrace: (hash: string, params: RequestParams = {}) => + this.request< + { + /** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ + denom_trace?: { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/ibc/applications/transfer/v1beta1/denom_traces/${hash}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name IbcTransferParams + * @summary Params queries all parameters of the ibc-transfer module. + * @request GET:/ibc/applications/transfer/v1beta1/params + */ + ibcTransferParams: (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + send_enabled?: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receive_enabled?: boolean; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/ibc/applications/transfer/v1beta1/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Channels + * @summary Channels queries all the IBC channels of a chain. + * @request GET:/ibc/core/channel/v1beta1/channels + */ + channels: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** list of stored channels of the chain. */ + channels?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Channel + * @summary Channel queries an IBC Channel. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id} + */ + channel: (channelId: string, portId: string, params: RequestParams = {}) => + this.request< + { + /** + * channel associated with the request identifiers + * Channel defines pipeline for exactly-once packet delivery between specific + * modules on separate blockchains, which has at least one end capable of + * sending packets and one end capable of receiving packets. + */ + channel?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ChannelClientState + * @summary ChannelClientState queries for the client state for the channel associated +with the provided channel identifiers. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/client_state + */ + channelClientState: (channelId: string, portId: string, params: RequestParams = {}) => + this.request< + { + /** + * client state associated with the channel + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ + identified_client_state?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/client_state`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ChannelConsensusState + * @summary ChannelConsensusState queries for the consensus state for the channel +associated with the provided channel identifiers. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height} + */ + channelConsensusState: ( + channelId: string, + portId: string, + revisionNumber: string, + revisionHeight: string, + params: RequestParams = {} + ) => + this.request< + { + /** + * consensus state associated with the channel + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** client ID associated with the consensus state */ + client_id?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/consensus_state/revision/${revisionNumber}/height/${revisionHeight}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name NextSequenceReceive + * @summary NextSequenceReceive returns the next receive sequence for a given channel. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/next_sequence + */ + nextSequenceReceive: (channelId: string, portId: string, params: RequestParams = {}) => + this.request< + { + /** + * next sequence receive number + * @format uint64 + */ + next_sequence_receive?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/next_sequence`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name PacketAcknowledgements + * @summary PacketAcknowledgements returns all the packet acknowledgements associated +with a channel. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements + */ + packetAcknowledgements: ( + channelId: string, + portId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + acknowledgements?: { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_acknowledgements`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name PacketAcknowledgement + * @summary PacketAcknowledgement queries a stored packet acknowledgement hash. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence} + */ + packetAcknowledgement: (channelId: string, portId: string, sequence: string, params: RequestParams = {}) => + this.request< + { + /** + * packet associated with the request fields + * @format byte + */ + acknowledgement?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_acks/${sequence}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name PacketCommitments + * @summary PacketCommitments returns all the packet commitments hashes associated +with a channel. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments + */ + packetCommitments: ( + channelId: string, + portId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + commitments?: { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name UnreceivedAcks + * @summary UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a +channel and sequences. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks + */ + unreceivedAcks: (channelId: string, portId: string, packetAckSequences: string[], params: RequestParams = {}) => + this.request< + { + /** list of unreceived acknowledgement sequences */ + sequences?: string[]; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments/${packetAckSequences}/unreceived_acks`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name UnreceivedPackets + * @summary UnreceivedPackets returns all the unreceived IBC packets associated with a +channel and sequences. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets + */ + unreceivedPackets: ( + channelId: string, + portId: string, + packetCommitmentSequences: string[], + params: RequestParams = {} + ) => + this.request< + { + /** list of unreceived packet sequences */ + sequences?: string[]; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments/${packetCommitmentSequences}/unreceived_packets`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name PacketCommitment + * @summary PacketCommitment queries a stored packet commitment hash. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence} + */ + packetCommitment: (channelId: string, portId: string, sequence: string, params: RequestParams = {}) => + this.request< + { + /** + * packet associated with the request fields + * @format byte + */ + commitment?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments/${sequence}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name PacketReceipt + * @summary PacketReceipt queries if a given packet sequence has been received on the queried chain + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence} + */ + packetReceipt: (channelId: string, portId: string, sequence: string, params: RequestParams = {}) => + this.request< + { + /** success flag for if receipt exists */ + received?: boolean; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_receipts/${sequence}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ConnectionChannels + * @summary ConnectionChannels queries all the channels associated with a connection +end. + * @request GET:/ibc/core/channel/v1beta1/connections/{connection}/channels + */ + connectionChannels: ( + connection: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** list of channels associated with a connection. */ + channels?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/connections/${connection}/channels`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ClientParams + * @summary ClientParams queries all parameters of the ibc client. + * @request GET:/ibc/client/v1beta1/params + */ + clientParams: (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + /** allowed_clients defines the list of allowed client state types. */ + allowed_clients?: string[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/client/v1beta1/params`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ClientStates + * @summary ClientStates queries all the IBC light clients of a chain. + * @request GET:/ibc/core/client/v1beta1/client_states + */ + clientStates: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** list of stored ClientStates of the chain. */ + client_states?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/client/v1beta1/client_states`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ClientState + * @summary ClientState queries an IBC light client. + * @request GET:/ibc/core/client/v1beta1/client_states/{client_id} + */ + clientState: (clientId: string, params: RequestParams = {}) => + this.request< + { + /** + * client state associated with the request identifier + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/client/v1beta1/client_states/${clientId}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ConsensusStates + * @summary ConsensusStates queries all the consensus state associated with a given +client. + * @request GET:/ibc/core/client/v1beta1/consensus_states/{client_id} + */ + consensusStates: ( + clientId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** consensus states associated with the identifier */ + consensus_states?: { + /** + * consensus state height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + /** + * consensus state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/client/v1beta1/consensus_states/${clientId}`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ConsensusState + * @summary ConsensusState queries a consensus state associated with a client state at +a given height. + * @request GET:/ibc/core/client/v1beta1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height} + */ + consensusState: ( + clientId: string, + revisionNumber: string, + revisionHeight: string, + query?: { + /** + * latest_height overrrides the height field and queries the latest stored + * ConsensusState. + */ + latest_height?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** + * consensus state associated with the client identifier at the given height + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/client/v1beta1/consensus_states/${clientId}/revision/${revisionNumber}/height/${revisionHeight}`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ClientConnections + * @summary ClientConnections queries the connection paths associated with a client +state. + * @request GET:/ibc/core/connection/v1beta1/client_connections/{client_id} + */ + clientConnections: (clientId: string, params: RequestParams = {}) => + this.request< + { + /** slice of all the connection paths associated with a client. */ + connection_paths?: string[]; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was generated + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/client_connections/${clientId}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Connections + * @summary Connections queries all the IBC connections of a chain. + * @request GET:/ibc/core/connection/v1beta1/connections + */ + connections: ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** list of stored connections of the chain. */ + connections?: { + /** connection identifier. */ + id?: string; + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period associated with this connection. + * @format uint64 + */ + delay_period?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/connections`, + method: 'GET', + query: query, + ...params, + }), + + /** + * No description + * + * @tags Query + * @name Connection + * @summary Connection queries an IBC connection end. + * @request GET:/ibc/core/connection/v1beta1/connections/{connection_id} + */ + connection: (connectionId: string, params: RequestParams = {}) => + this.request< + { + /** + * connection associated with the request identifier + * ConnectionEnd defines a stateful object on a chain connected to another + * separate one. + * NOTE: there must only be 2 defined ConnectionEnds to establish + * a connection between two chains. + */ + connection?: { + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection. + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period that must pass before a consensus state can be used for packet-verification + * NOTE: delay period logic is only implemented by some clients. + * @format uint64 + */ + delay_period?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/connections/${connectionId}`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ConnectionClientState + * @summary ConnectionClientState queries the client state associated with the +connection. + * @request GET:/ibc/core/connection/v1beta1/connections/{connection_id}/client_state + */ + connectionClientState: (connectionId: string, params: RequestParams = {}) => + this.request< + { + /** + * client state associated with the channel + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ + identified_client_state?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/connections/${connectionId}/client_state`, + method: 'GET', + ...params, + }), + + /** + * No description + * + * @tags Query + * @name ConnectionConsensusState + * @summary ConnectionConsensusState queries the consensus state associated with the +connection. + * @request GET:/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height} + */ + connectionConsensusState: ( + connectionId: string, + revisionNumber: string, + revisionHeight: string, + params: RequestParams = {} + ) => + this.request< + { + /** + * consensus state associated with the channel + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** client ID associated with the consensus state */ + client_id?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/connections/${connectionId}/consensus_state/revision/${revisionNumber}/height/${revisionHeight}`, + method: 'GET', + ...params, + }), + }; +} diff --git a/yarn.lock b/yarn.lock index fb1e1e023..b9c98f708 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4475,6 +4475,11 @@ "@ethersproject/properties" "^5.7.0" "@ethersproject/strings" "^5.7.0" +"@exodus/schemasafe@^1.0.0-rc.2": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@exodus/schemasafe/-/schemasafe-1.3.0.tgz#731656abe21e8e769a7f70a4d833e6312fe59b7f" + integrity sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw== + "@fal-works/esbuild-plugin-global-externals@^2.1.2": version "2.1.2" resolved "https://registry.yarnpkg.com/@fal-works/esbuild-plugin-global-externals/-/esbuild-plugin-global-externals-2.1.2.tgz#c05ed35ad82df8e6ac616c68b92c2282bd083ba4" @@ -7360,6 +7365,11 @@ resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== +"@sindresorhus/is@^3.1.2": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-3.1.2.tgz#548650de521b344e3781fbdb0ece4aa6f729afb8" + integrity sha512-JiX9vxoKMmu8Y3Zr2RVathBL1Cdu4Nt4MuNWemt1Nc06A0RAin9c5FArkhGsyMBWfCu4zj+9b+GxtjAnE4qqLQ== + "@sinonjs/commons@^2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-2.0.0.tgz#fd4ca5b063554307e8327b4564bd56d3b73924a3" @@ -9334,6 +9344,11 @@ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== +"@types/swagger-schema-official@2.0.22": + version "2.0.22" + resolved "https://registry.yarnpkg.com/@types/swagger-schema-official/-/swagger-schema-official-2.0.22.tgz#f7e06168e6994574dfd86928ac04b196870ab043" + integrity sha512-7yQiX6MWSFSvc/1wW5smJMZTZ4fHOd+hqLr3qr/HONDxHEa2bnYAsOcGBOEqFIjd4yetwMOdEDdeW+udRAQnHA== + "@types/tough-cookie@*": version "4.0.2" resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.2.tgz#6286b4c7228d58ab7866d19716f3696e03a09397" @@ -11885,6 +11900,11 @@ call-bind@^1.0.5: get-intrinsic "^1.2.4" set-function-length "^1.2.1" +call-me-maybe@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.2.tgz#03f964f19522ba643b1b0693acb9152fe2074baa" + integrity sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ== + callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" @@ -13069,6 +13089,16 @@ cors@^2.8.1: object-assign "^4" vary "^1" +cosmiconfig@8.2.0, cosmiconfig@^8.0.0, cosmiconfig@^8.1.3, cosmiconfig@^8.2.0: + version "8.2.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.2.0.tgz#f7d17c56a590856cd1e7cee98734dca272b0d8fd" + integrity sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ== + dependencies: + import-fresh "^3.2.1" + js-yaml "^4.1.0" + parse-json "^5.0.0" + path-type "^4.0.0" + cosmiconfig@^7.0.0, cosmiconfig@^7.0.1: version "7.1.0" resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6" @@ -13080,16 +13110,6 @@ cosmiconfig@^7.0.0, cosmiconfig@^7.0.1: path-type "^4.0.0" yaml "^1.10.0" -cosmiconfig@^8.0.0, cosmiconfig@^8.1.3, cosmiconfig@^8.2.0: - version "8.2.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.2.0.tgz#f7d17c56a590856cd1e7cee98734dca272b0d8fd" - integrity sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ== - dependencies: - import-fresh "^3.2.1" - js-yaml "^4.1.0" - parse-json "^5.0.0" - path-type "^4.0.0" - cosmiconfig@^8.1.0: version "8.3.6" resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-8.3.6.tgz#060a2b871d66dba6c8538ea1118ba1ac16f5fae3" @@ -13964,6 +13984,11 @@ data-joint@^1.3: dependencies: index-array-by "^1.4.0" +data-uri-to-buffer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz#d8feb2b2881e6a4f58c2e08acfd0e2834e26222e" + integrity sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A== + data-urls@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-3.0.2.tgz#9cf24a477ae22bcef5cd5f6f0bfbc1d2d3be9143" @@ -14518,6 +14543,11 @@ dexie@^3.0.2: resolved "https://registry.yarnpkg.com/dexie/-/dexie-3.2.3.tgz#f35c91ca797599df8e771b998e9ae9669c877f8c" integrity sha512-iHayBd4UYryDCVUNa3PMsJMEnd8yjyh5p7a+RFeC8i8n476BC9wMhVvqiImq5zJZJf5Tuer+s4SSj+AA3x+ZbQ== +didyoumean@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" + integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw== + diff-sequences@^29.4.3: version "29.4.3" resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.4.3.tgz#9314bc1fabe09267ffeca9cbafc457d8499a13f2" @@ -14882,6 +14912,11 @@ emoji-regex@^9.2.2: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== +emojilib@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/emojilib/-/emojilib-2.4.0.tgz#ac518a8bb0d5f76dda57289ccb2fdf9d39ae721e" + integrity sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw== + emojis-list@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" @@ -15148,6 +15183,11 @@ es6-object-assign@^1.1.0: resolved "https://registry.yarnpkg.com/es6-object-assign/-/es6-object-assign-1.1.0.tgz#c2c3582656247c39ea107cb1e6652b6f9f24523c" integrity sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw== +es6-promise@^3.2.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" + integrity sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg== + es6-promise@^4.2.8: version "4.2.8" resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" @@ -15762,6 +15802,11 @@ esutils@^2.0.2: resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== +eta@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/eta/-/eta-2.2.0.tgz#eb8b5f8c4e8b6306561a455e62cd7492fe3a9b8a" + integrity sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g== + etag@~1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" @@ -16287,6 +16332,11 @@ fast-safe-stringify@2.0.4: resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.4.tgz#4fe828718aa61dbcf9119c3c24e79cc4dea973b2" integrity sha512-mNlGUdKOeGNleyrmgbKYtbnCr9KZkZXU7eM89JRo8vY10f7Ul1Fbj07hUBW3N4fC0xM+fmfFfa2zM7mIizhpNQ== +fast-safe-stringify@^2.0.7: + version "2.1.1" + resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884" + integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== + fast-url-parser@1.1.3, fast-url-parser@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz#f4af3ea9f34d8a271cf58ad2b3759f431f0b318d" @@ -16382,6 +16432,14 @@ fecha@^4.2.0: resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.3.tgz#4d9ccdbc61e8629b259fdca67e65891448d569fd" integrity sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw== +fetch-blob@^3.1.2, fetch-blob@^3.1.4: + version "3.2.0" + resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.2.0.tgz#f09b8d4bbd45adc6f0c20b7e787e793e309dcce9" + integrity sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ== + dependencies: + node-domexception "^1.0.0" + web-streams-polyfill "^3.0.3" + fetch-retry@^5.0.2: version "5.0.4" resolved "https://registry.yarnpkg.com/fetch-retry/-/fetch-retry-5.0.4.tgz#06e8e4533030bf6faa00ffbb9450cb9264c23c12" @@ -16759,6 +16817,13 @@ form-data@~2.3.2: combined-stream "^1.0.6" mime-types "^2.1.12" +formdata-polyfill@^4.0.10: + version "4.0.10" + resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" + integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== + dependencies: + fetch-blob "^3.1.2" + forwarded@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" @@ -18457,6 +18522,11 @@ http-signature@~1.2.0: jsprim "^1.2.2" sshpk "^1.7.0" +http2-client@^1.2.5: + version "1.3.5" + resolved "https://registry.yarnpkg.com/http2-client/-/http2-client-1.3.5.tgz#20c9dc909e3cc98284dd20af2432c524086df181" + integrity sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA== + https-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" @@ -21209,6 +21279,13 @@ js-yaml@4.0.0: dependencies: argparse "^2.0.1" +js-yaml@4.1.0, js-yaml@^4.0.0, js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + js-yaml@^3.13.0, js-yaml@^3.13.1: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" @@ -21217,13 +21294,6 @@ js-yaml@^3.13.0, js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" -js-yaml@^4.0.0, js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - jsbi@^3.1.1: version "3.2.5" resolved "https://registry.yarnpkg.com/jsbi/-/jsbi-3.2.5.tgz#b37bb90e0e5c2814c1c2a1bcd8c729888a2e37d6" @@ -22226,6 +22296,13 @@ mafmt@^7.0.0: dependencies: multiaddr "^7.3.0" +make-dir@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" + integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== + dependencies: + semver "^7.5.3" + make-dir@^1.0.0: version "1.3.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" @@ -23487,7 +23564,7 @@ nano-json-stream-parser@^0.1.2: resolved "https://registry.yarnpkg.com/nano-json-stream-parser/-/nano-json-stream-parser-0.1.2.tgz#0cc8f6d0e2b622b479c40d499c46d64b755c6f5f" integrity sha512-9MqxMH/BSJC7dnLsEMPyfN5Dvoo49IsPFYMcHw3Bcfc2kN0lpHRBSzlMSVx4HGyJ7s9B31CyBTVehWJoQ8Ctew== -nanoid@^3.1.20, nanoid@^3.1.23, nanoid@^3.3.6: +nanoid@3.3.6, nanoid@^3.1.20, nanoid@^3.1.23, nanoid@^3.3.6: version "3.3.6" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c" integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA== @@ -23751,6 +23828,28 @@ node-dir@^0.1.10, node-dir@^0.1.17: dependencies: minimatch "^3.0.2" +node-domexception@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" + integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== + +node-emoji@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-2.1.0.tgz#93c99b0d3dfe7d5e37c056aded389e013c72d0c5" + integrity sha512-tcsBm9C6FmPN5Wo7OjFi9lgMyJjvkAeirmjR/ax8Ttfqy4N8PoFic26uqFTIgayHPNI5FH4ltUvfh9kHzwcK9A== + dependencies: + "@sindresorhus/is" "^3.1.2" + char-regex "^1.0.2" + emojilib "^2.4.0" + skin-tone "^2.0.0" + +node-fetch-h2@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/node-fetch-h2/-/node-fetch-h2-2.3.0.tgz#c6188325f9bd3d834020bf0f2d6dc17ced2241ac" + integrity sha512-ofRW94Ab0T4AOh5Fk8t0h8OBWrmjb0SSB20xh1H8YnPV9EJ+f5AMoYSUQ2zgJ4Iq2HAK0I2l5/Nequ8YzFS3Hg== + dependencies: + http2-client "^1.2.5" + node-fetch-native@^1.0.2: version "1.1.0" resolved "https://registry.yarnpkg.com/node-fetch-native/-/node-fetch-native-1.1.0.tgz#a530f5c4cadb49b382dcf81d8f5f19ed0f457fbe" @@ -23792,6 +23891,15 @@ node-fetch@^2.6.12: dependencies: whatwg-url "^5.0.0" +node-fetch@^3.3.1: + version "3.3.2" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.2.tgz#d1e889bacdf733b4ff3b2b243eb7a12866a0b78b" + integrity sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA== + dependencies: + data-uri-to-buffer "^4.0.0" + fetch-blob "^3.1.4" + formdata-polyfill "^4.0.10" + node-forge@^1, node-forge@^1.1.0, node-forge@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" @@ -23838,6 +23946,13 @@ node-polyfill-webpack-plugin@^2.0.1: util "^0.12.4" vm-browserify "^1.1.2" +node-readfiles@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/node-readfiles/-/node-readfiles-0.2.0.tgz#dbbd4af12134e2e635c245ef93ffcf6f60673a5d" + integrity sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA== + dependencies: + es6-promise "^3.2.1" + node-releases@^2.0.12: version "2.0.13" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" @@ -23998,6 +24113,52 @@ nwsapi@^2.2.2: resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.4.tgz#fd59d5e904e8e1f03c25a7d5a15cfa16c714a1e5" integrity sha512-NHj4rzRo0tQdijE9ZqAx6kYDcoRwYwSYzCA8MY3JzfxlrvEU0jhnhJT9BhqhJs7I/dKcrDm6TyulaRqZPIhN5g== +oas-kit-common@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/oas-kit-common/-/oas-kit-common-1.0.8.tgz#6d8cacf6e9097967a4c7ea8bcbcbd77018e1f535" + integrity sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ== + dependencies: + fast-safe-stringify "^2.0.7" + +oas-linter@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/oas-linter/-/oas-linter-3.2.2.tgz#ab6a33736313490659035ca6802dc4b35d48aa1e" + integrity sha512-KEGjPDVoU5K6swgo9hJVA/qYGlwfbFx+Kg2QB/kd7rzV5N8N5Mg6PlsoCMohVnQmo+pzJap/F610qTodKzecGQ== + dependencies: + "@exodus/schemasafe" "^1.0.0-rc.2" + should "^13.2.1" + yaml "^1.10.0" + +oas-resolver@^2.5.6: + version "2.5.6" + resolved "https://registry.yarnpkg.com/oas-resolver/-/oas-resolver-2.5.6.tgz#10430569cb7daca56115c915e611ebc5515c561b" + integrity sha512-Yx5PWQNZomfEhPPOphFbZKi9W93CocQj18NlD2Pa4GWZzdZpSJvYwoiuurRI7m3SpcChrnO08hkuQDL3FGsVFQ== + dependencies: + node-fetch-h2 "^2.3.0" + oas-kit-common "^1.0.8" + reftools "^1.1.9" + yaml "^1.10.0" + yargs "^17.0.1" + +oas-schema-walker@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/oas-schema-walker/-/oas-schema-walker-1.1.5.tgz#74c3cd47b70ff8e0b19adada14455b5d3ac38a22" + integrity sha512-2yucenq1a9YPmeNExoUa9Qwrt9RFkjqaMAA1X+U7sbb0AqBeTIdMHky9SQQ6iN94bO5NW0W4TRYXerG+BdAvAQ== + +oas-validator@^5.0.8: + version "5.0.8" + resolved "https://registry.yarnpkg.com/oas-validator/-/oas-validator-5.0.8.tgz#387e90df7cafa2d3ffc83b5fb976052b87e73c28" + integrity sha512-cu20/HE5N5HKqVygs3dt94eYJfBi0TsZvPVXDhbXQHiEityDN+RROTleefoKRKKJ9dFAF2JBkDHgvWj0sjKGmw== + dependencies: + call-me-maybe "^1.0.1" + oas-kit-common "^1.0.8" + oas-linter "^3.2.2" + oas-resolver "^2.5.6" + oas-schema-walker "^1.1.5" + reftools "^1.1.9" + should "^13.2.1" + yaml "^1.10.0" + oauth-sign@~0.9.0: version "0.9.0" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" @@ -25584,6 +25745,11 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" +prettier@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae" + integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g== + prettier@^2.5.1, prettier@^2.8.0: version "2.8.8" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" @@ -26969,6 +27135,11 @@ redux@^4.0.5, redux@^4.2.1: dependencies: "@babel/runtime" "^7.9.2" +reftools@^1.1.9: + version "1.1.9" + resolved "https://registry.yarnpkg.com/reftools/-/reftools-1.1.9.tgz#e16e19f662ccd4648605312c06d34e5da3a2b77e" + integrity sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w== + regenerate-unicode-properties@^10.1.0: version "10.1.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz#7c3192cab6dd24e21cb4461e5ddd7dd24fa8374c" @@ -28144,6 +28315,50 @@ shell-quote@^1.7.3: resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.0.tgz#20d078d0eaf71d54f43bd2ba14a1b5b9bfa5c8ba" integrity sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ== +should-equal@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/should-equal/-/should-equal-2.0.0.tgz#6072cf83047360867e68e98b09d71143d04ee0c3" + integrity sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA== + dependencies: + should-type "^1.4.0" + +should-format@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/should-format/-/should-format-3.0.3.tgz#9bfc8f74fa39205c53d38c34d717303e277124f1" + integrity sha512-hZ58adtulAk0gKtua7QxevgUaXTTXxIi8t41L3zo9AHvjXO1/7sdLECuHeIN2SRtYXpNkmhoUP2pdeWgricQ+Q== + dependencies: + should-type "^1.3.0" + should-type-adaptors "^1.0.1" + +should-type-adaptors@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz#401e7f33b5533033944d5cd8bf2b65027792e27a" + integrity sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA== + dependencies: + should-type "^1.3.0" + should-util "^1.0.0" + +should-type@^1.3.0, should-type@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/should-type/-/should-type-1.4.0.tgz#0756d8ce846dfd09843a6947719dfa0d4cff5cf3" + integrity sha512-MdAsTu3n25yDbIe1NeN69G4n6mUnJGtSJHygX3+oN0ZbO3DTiATnf7XnYJdGT42JCXurTb1JI0qOBR65shvhPQ== + +should-util@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/should-util/-/should-util-1.0.1.tgz#fb0d71338f532a3a149213639e2d32cbea8bcb28" + integrity sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g== + +should@^13.2.1: + version "13.2.3" + resolved "https://registry.yarnpkg.com/should/-/should-13.2.3.tgz#96d8e5acf3e97b49d89b51feaa5ae8d07ef58f10" + integrity sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ== + dependencies: + should-equal "^2.0.0" + should-format "^3.0.3" + should-type "^1.4.0" + should-type-adaptors "^1.0.1" + should-util "^1.0.0" + side-channel@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" @@ -28290,6 +28505,13 @@ sisteransi@^1.0.5: resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== +skin-tone@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/skin-tone/-/skin-tone-2.0.0.tgz#4e3933ab45c0d4f4f781745d64b9f4c208e41237" + integrity sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA== + dependencies: + unicode-emoji-modifier-base "^1.0.0" + slab-decomposition@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/slab-decomposition/-/slab-decomposition-1.0.3.tgz#0345b3d364d78dad3f400cd5c8e0424547d23e7c" @@ -29259,6 +29481,48 @@ svgo@^2.7.0: picocolors "^1.0.0" stable "^0.1.8" +swagger-schema-official@2.0.0-bab6bed: + version "2.0.0-bab6bed" + resolved "https://registry.yarnpkg.com/swagger-schema-official/-/swagger-schema-official-2.0.0-bab6bed.tgz#70070468d6d2977ca5237b2e519ca7d06a2ea3fd" + integrity sha512-rCC0NWGKr/IJhtRuPq/t37qvZHI/mH4I4sxflVM+qgVe5Z2uOCivzWaVbuioJaB61kvm5UvB7b49E+oBY0M8jA== + +swagger-typescript-api@^13.0.3: + version "13.0.3" + resolved "https://registry.yarnpkg.com/swagger-typescript-api/-/swagger-typescript-api-13.0.3.tgz#cf7d6955e83463c8324e5fe1a885a3bfc6e54cd9" + integrity sha512-774ndLpGm2FNpUZpDugfoOO2pIcvSW9nlcqwLVSH9ju4YKCi1Gd83jPly7upcljOvZ8KO/edIUx+9eYViDYglg== + dependencies: + "@types/swagger-schema-official" "2.0.22" + cosmiconfig "8.2.0" + didyoumean "^1.2.2" + eta "^2.2.0" + js-yaml "4.1.0" + lodash "4.17.21" + make-dir "4.0.0" + nanoid "3.3.6" + node-emoji "2.1.0" + node-fetch "^3.3.1" + prettier "3.0.0" + swagger-schema-official "2.0.0-bab6bed" + swagger2openapi "7.0.8" + typescript "5.1.6" + +swagger2openapi@7.0.8: + version "7.0.8" + resolved "https://registry.yarnpkg.com/swagger2openapi/-/swagger2openapi-7.0.8.tgz#12c88d5de776cb1cbba758994930f40ad0afac59" + integrity sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g== + dependencies: + call-me-maybe "^1.0.1" + node-fetch "^2.6.1" + node-fetch-h2 "^2.3.0" + node-readfiles "^0.2.0" + oas-kit-common "^1.0.8" + oas-resolver "^2.5.6" + oas-schema-walker "^1.1.5" + oas-validator "^5.0.8" + reftools "^1.1.9" + yaml "^1.10.0" + yargs "^17.0.1" + swap-case@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/swap-case/-/swap-case-2.0.2.tgz#671aedb3c9c137e2985ef51c51f9e98445bf70d9" @@ -30186,6 +30450,11 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== +typescript@5.1.6: + version "5.1.6" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274" + integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== + typescript@^5.0.2: version "5.0.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" @@ -30308,6 +30577,11 @@ unicode-canonical-property-names-ecmascript@^2.0.0: resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ== +unicode-emoji-modifier-base@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unicode-emoji-modifier-base/-/unicode-emoji-modifier-base-1.0.0.tgz#dbbd5b54ba30f287e2a8d5a249da6c0cef369459" + integrity sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g== + unicode-match-property-ecmascript@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3" @@ -31077,7 +31351,7 @@ web-namespaces@^2.0.0: resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-2.0.1.tgz#1010ff7c650eccb2592cebeeaf9a1b253fd40692" integrity sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ== -web-streams-polyfill@^3.2.1: +web-streams-polyfill@^3.0.3, web-streams-polyfill@^3.2.1: version "3.3.3" resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz#2073b91a2fdb1fbfbd401e7de0ac9f8214cecb4b" integrity sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw== @@ -32093,7 +32367,7 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yargs@^17.0.0, yargs@^17.3.1: +yargs@^17.0.0, yargs@^17.0.1, yargs@^17.3.1: version "17.7.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== From 09e5113a20dd613b82c8841291e71740e7a6709e Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 19:44:25 +0530 Subject: [PATCH 21/40] feat(lcd): lcd autogenerated typescript defenitions AXIOS --- src/generated/lcd.d.ts | 197 ++++++++++++----------------------------- 1 file changed, 59 insertions(+), 138 deletions(-) diff --git a/src/generated/lcd.d.ts b/src/generated/lcd.d.ts index 8956cd1e6..0ad0c90a6 100644 --- a/src/generated/lcd.d.ts +++ b/src/generated/lcd.d.ts @@ -14074,10 +14074,12 @@ export type IbcCoreConnectionV1MsgConnectionOpenInitResponse = object; /** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ export type IbcCoreConnectionV1MsgConnectionOpenTryResponse = object; +import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, HeadersDefaults, ResponseType } from 'axios'; +import axios from 'axios'; + export type QueryParamsType = Record; -export type ResponseFormat = keyof Omit; -export interface FullRequestParams extends Omit { +export interface FullRequestParams extends Omit { /** set parameter to `true` for call `securityWorker` for this request */ secure?: boolean; /** request path */ @@ -14087,31 +14089,21 @@ export interface FullRequestParams extends Omit { /** query params */ query?: QueryParamsType; /** format of response (i.e. response.json() -> format: "json") */ - format?: ResponseFormat; + format?: ResponseType; /** request body */ body?: unknown; - /** base url */ - baseUrl?: string; - /** request cancellation token */ - cancelToken?: CancelToken; } export type RequestParams = Omit; -export interface ApiConfig { - baseUrl?: string; - baseApiParams?: Omit; - securityWorker?: (securityData: SecurityDataType | null) => Promise | RequestParams | void; - customFetch?: typeof fetch; -} - -export interface HttpResponse extends Response { - data: D; - error: E; +export interface ApiConfig extends Omit { + securityWorker?: ( + securityData: SecurityDataType | null + ) => Promise | AxiosRequestConfig | void; + secure?: boolean; + format?: ResponseType; } -type CancelToken = Symbol | string | number; - export enum ContentType { Json = 'application/json', FormData = 'multipart/form-data', @@ -14120,166 +14112,95 @@ export enum ContentType { } export class HttpClient { - public baseUrl: string = ''; + public instance: AxiosInstance; private securityData: SecurityDataType | null = null; private securityWorker?: ApiConfig['securityWorker']; - private abortControllers = new Map(); - private customFetch = (...fetchParams: Parameters) => fetch(...fetchParams); - - private baseApiParams: RequestParams = { - credentials: 'same-origin', - headers: {}, - redirect: 'follow', - referrerPolicy: 'no-referrer', - }; - - constructor(apiConfig: ApiConfig = {}) { - Object.assign(this, apiConfig); + private secure?: boolean; + private format?: ResponseType; + + constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig = {}) { + this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || '' }); + this.secure = secure; + this.format = format; + this.securityWorker = securityWorker; } public setSecurityData = (data: SecurityDataType | null) => { this.securityData = data; }; - protected encodeQueryParam(key: string, value: any) { - const encodedKey = encodeURIComponent(key); - return `${encodedKey}=${encodeURIComponent(typeof value === 'number' ? value : `${value}`)}`; - } + protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig { + const method = params1.method || (params2 && params2.method); - protected addQueryParam(query: QueryParamsType, key: string) { - return this.encodeQueryParam(key, query[key]); - } - - protected addArrayQueryParam(query: QueryParamsType, key: string) { - const value = query[key]; - return value.map((v: any) => this.encodeQueryParam(key, v)).join('&'); - } - - protected toQueryString(rawQuery?: QueryParamsType): string { - const query = rawQuery || {}; - const keys = Object.keys(query).filter((key) => 'undefined' !== typeof query[key]); - return keys - .map((key) => (Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key))) - .join('&'); - } - - protected addQueryParams(rawQuery?: QueryParamsType): string { - const queryString = this.toQueryString(rawQuery); - return queryString ? `?${queryString}` : ''; - } - - private contentFormatters: Record any> = { - [ContentType.Json]: (input: any) => - input !== null && (typeof input === 'object' || typeof input === 'string') ? JSON.stringify(input) : input, - [ContentType.Text]: (input: any) => (input !== null && typeof input !== 'string' ? JSON.stringify(input) : input), - [ContentType.FormData]: (input: any) => - Object.keys(input || {}).reduce((formData, key) => { - const property = input[key]; - formData.append( - key, - property instanceof Blob - ? property - : typeof property === 'object' && property !== null - ? JSON.stringify(property) - : `${property}` - ); - return formData; - }, new FormData()), - [ContentType.UrlEncoded]: (input: any) => this.toQueryString(input), - }; - - protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams { return { - ...this.baseApiParams, + ...this.instance.defaults, ...params1, ...(params2 || {}), headers: { - ...(this.baseApiParams.headers || {}), + ...((method && this.instance.defaults.headers[method.toLowerCase() as keyof HeadersDefaults]) || {}), ...(params1.headers || {}), ...((params2 && params2.headers) || {}), }, }; } - protected createAbortSignal = (cancelToken: CancelToken): AbortSignal | undefined => { - if (this.abortControllers.has(cancelToken)) { - const abortController = this.abortControllers.get(cancelToken); - if (abortController) { - return abortController.signal; - } - return void 0; + protected stringifyFormItem(formItem: unknown) { + if (typeof formItem === 'object' && formItem !== null) { + return JSON.stringify(formItem); + } else { + return `${formItem}`; } + } - const abortController = new AbortController(); - this.abortControllers.set(cancelToken, abortController); - return abortController.signal; - }; + protected createFormData(input: Record): FormData { + return Object.keys(input || {}).reduce((formData, key) => { + const property = input[key]; + const propertyContent: any[] = property instanceof Array ? property : [property]; - public abortRequest = (cancelToken: CancelToken) => { - const abortController = this.abortControllers.get(cancelToken); + for (const formItem of propertyContent) { + const isFileType = formItem instanceof Blob || formItem instanceof File; + formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem)); + } - if (abortController) { - abortController.abort(); - this.abortControllers.delete(cancelToken); - } - }; + return formData; + }, new FormData()); + } - public request = async ({ - body, + public request = async ({ secure, path, type, query, format, - baseUrl, - cancelToken, + body, ...params - }: FullRequestParams): Promise> => { + }: FullRequestParams): Promise> => { const secureParams = - ((typeof secure === 'boolean' ? secure : this.baseApiParams.secure) && + ((typeof secure === 'boolean' ? secure : this.secure) && this.securityWorker && (await this.securityWorker(this.securityData))) || {}; const requestParams = this.mergeRequestParams(params, secureParams); - const queryString = query && this.toQueryString(query); - const payloadFormatter = this.contentFormatters[type || ContentType.Json]; - const responseFormat = format || requestParams.format; + const responseFormat = format || this.format || undefined; + + if (type === ContentType.FormData && body && body !== null && typeof body === 'object') { + body = this.createFormData(body as Record); + } - return this.customFetch(`${baseUrl || this.baseUrl || ''}${path}${queryString ? `?${queryString}` : ''}`, { + if (type === ContentType.Text && body && body !== null && typeof body !== 'string') { + body = JSON.stringify(body); + } + + return this.instance.request({ ...requestParams, headers: { ...(requestParams.headers || {}), ...(type && type !== ContentType.FormData ? { 'Content-Type': type } : {}), }, - signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null, - body: typeof body === 'undefined' || body === null ? null : payloadFormatter(body), - }).then(async (response) => { - const r = response as HttpResponse; - r.data = null as unknown as T; - r.error = null as unknown as E; - - const data = !responseFormat - ? r - : await response[responseFormat]() - .then((data) => { - if (r.ok) { - r.data = data; - } else { - r.error = data; - } - return r; - }) - .catch((e) => { - r.error = e; - return r; - }); - - if (cancelToken) { - this.abortControllers.delete(cancelToken); - } - - if (!response.ok) throw data; - return data; + params: query, + responseType: responseFormat, + data: body, + url: path, }); }; } From d78127232c6327d2e65b77e9691bc7e38cab21c9 Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 22:15:47 +0530 Subject: [PATCH 22/40] feat(lcd): example of lcd api usage --- package.json | 2 +- .../temple/hooks/useGetNegentropy.ts | 41 ++++++++----------- src/generated/{lcd.d.ts => lcd.ts} | 0 src/services/backend/services/lcd/lcd.ts | 26 +++++++++--- 4 files changed, 38 insertions(+), 31 deletions(-) rename src/generated/{lcd.d.ts => lcd.ts} (100%) diff --git a/package.json b/package.json index 7e8817aac..010bc732f 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "build-storybook": "storybook build", "test": "jest --transformIgnorePatterns --verbose", "generate-graphql-types": "yarn graphql-codegen --config ./codegen.ts", - "generate-lcd-types": "npx swagger-typescript-api -p https://lcd.bostrom.cybernode.ai/swagger/swagger.yaml -o ./src/generated -n lcd.d.ts" + "generate-lcd-types": "npx swagger-typescript-api -p https://lcd.bostrom.cybernode.ai/swagger/swagger.yaml -o ./src/generated -n lcd.ts --axios" }, "browserslist": "> 0.5%, last 2 versions, not dead", "license": "ISC", diff --git a/src/containers/temple/hooks/useGetNegentropy.ts b/src/containers/temple/hooks/useGetNegentropy.ts index 26b96e207..4f8b3fa93 100644 --- a/src/containers/temple/hooks/useGetNegentropy.ts +++ b/src/containers/temple/hooks/useGetNegentropy.ts @@ -1,20 +1,24 @@ import { useEffect, useState } from 'react'; import { useQuery } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; -import axios from 'axios'; import { LCD_URL } from 'src/constants/config'; -const getNegentropy = async () => { - try { - const response = await axios({ - method: 'get', - url: `${LCD_URL}/rank/negentropy`, - }); +import { Api } from 'src/generated/lcd'; +import { AxiosResponse } from 'axios'; + +const lcdApi = new Api({ baseURL: LCD_URL }); +function dataOrEmpty(response: AxiosResponse) { + try { return response.data; } catch (e) { return null; } +} + +const getNegentropy = async () => { + const response = await lcdApi.cyber.negentropy(); + return dataOrEmpty(response); }; const keyQuery = 'negentropy'; @@ -28,32 +32,19 @@ function useGetNegentropy(refetchInterval: number | undefined) { const { data, status } = useQuery({ queryKey: [keyQuery], queryFn: async () => { - let response = { - negentropy: 0, - timestamp: '', - }; - - const responseNegentropy = await getNegentropy(); - - if (responseNegentropy && responseNegentropy !== null) { - const { result } = responseNegentropy; - const d = new Date(); - response = { negentropy: result.negentropy, timestamp: d }; - } - - return response; + const result = await getNegentropy(); + return { negentropy: result?.negentropy || 0, timestamp: Date.now() }; }, refetchInterval, }); useEffect(() => { - if (data && data !== null) { + if (data) { const lastgraphStatsLs = localStorage.getItem(keyQuery); if (lastgraphStatsLs !== null) { const oldData = JSON.parse(lastgraphStatsLs); - const timeChange = - Date.parse(data.timestamp) - Date.parse(oldData.timestamp); - const amountChange = new BigNumber(data.negentropy) + const timeChange = data!.timestamp - oldData.timestamp; + const amountChange = new BigNumber(data!.negentropy) .minus(oldData.negentropy) .toNumber(); if (timeChange > 0 && amountChange > 0) { diff --git a/src/generated/lcd.d.ts b/src/generated/lcd.ts similarity index 100% rename from src/generated/lcd.d.ts rename to src/generated/lcd.ts diff --git a/src/services/backend/services/lcd/lcd.ts b/src/services/backend/services/lcd/lcd.ts index c3bbe3c5b..e84ab5b58 100644 --- a/src/services/backend/services/lcd/lcd.ts +++ b/src/services/backend/services/lcd/lcd.ts @@ -3,17 +3,33 @@ import { NeuronAddress, ParticleCid } from 'src/types/base'; import { CID_FOLLOW } from 'src/constants/app'; import { getIpfsHash } from 'src/utils/ipfs/helpers'; import { LCD_URL } from 'src/constants/config'; +import { Api } from 'src/generated/lcd'; + +const lcdApi = new Api({ baseURL: LCD_URL }); export const getFollowsAsCid = async ( address: NeuronAddress, signal?: AbortSignal ): Promise => { - const response = await axios({ - method: 'get', - url: `${LCD_URL}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=${CID_FOLLOW}&limit=1000000000`, - signal, - }); + const response = await lcdApi.cosmos.getTxsEvent( + { + events: [ + `cyberlink.neuron=${address}`, + `cyberlink.particleFrom=${CID_FOLLOW}`, + ], + paginationLimit: '1000000000', + }, + { signal } + ); + // const response = await axios({ + // method: 'get', + // url: `${LCD_URL}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=${CID_FOLLOW}&limit=1000000000`, + // signal, + // }); + response.data.tx_responses!.map( + (item) => item.tx!.value!.msg![0].value!.links![0].to + ); if (!response.data.txs) { return []; } From d956931a9ff359d9647f7a5081b5c8ec357ff942 Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 23 Mar 2024 22:18:16 +0530 Subject: [PATCH 23/40] feat(lcd): remove --- src/services/backend/services/lcd/lcd.ts | 38 +++++++++++------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/src/services/backend/services/lcd/lcd.ts b/src/services/backend/services/lcd/lcd.ts index e84ab5b58..e4e6fdf9d 100644 --- a/src/services/backend/services/lcd/lcd.ts +++ b/src/services/backend/services/lcd/lcd.ts @@ -3,33 +3,31 @@ import { NeuronAddress, ParticleCid } from 'src/types/base'; import { CID_FOLLOW } from 'src/constants/app'; import { getIpfsHash } from 'src/utils/ipfs/helpers'; import { LCD_URL } from 'src/constants/config'; -import { Api } from 'src/generated/lcd'; +// import { Api } from 'src/generated/lcd'; -const lcdApi = new Api({ baseURL: LCD_URL }); +// const lcdApi = new Api({ baseURL: LCD_URL }); export const getFollowsAsCid = async ( address: NeuronAddress, signal?: AbortSignal ): Promise => { - const response = await lcdApi.cosmos.getTxsEvent( - { - events: [ - `cyberlink.neuron=${address}`, - `cyberlink.particleFrom=${CID_FOLLOW}`, - ], - paginationLimit: '1000000000', - }, - { signal } - ); + // const response = await lcdApi.cosmos.getTxsEvent( + // { + // events: [ + // `cyberlink.neuron=${address}`, + // `cyberlink.particleFrom=${CID_FOLLOW}`, + // ], + // paginationLimit: '1000000000', + // }, + // { signal } + // ); + + const response = await axios({ + method: 'get', + url: `${LCD_URL}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=${CID_FOLLOW}&limit=1000000000`, + signal, + }); - // const response = await axios({ - // method: 'get', - // url: `${LCD_URL}/txs?cyberlink.neuron=${address}&cyberlink.particleFrom=${CID_FOLLOW}&limit=1000000000`, - // signal, - // }); - response.data.tx_responses!.map( - (item) => item.tx!.value!.msg![0].value!.links![0].to - ); if (!response.data.txs) { return []; } From 0bb0a58d874f4935d4bb2c6132fb9f5434207894 Mon Sep 17 00:00:00 2001 From: dasein Date: Sun, 24 Mar 2024 10:19:28 +0530 Subject: [PATCH 24/40] refactor(app): modular api, cleanup --- package.json | 2 +- .../temple/hooks/useGetNegentropy.ts | 6 +- src/generated/Cosmos.ts | 7583 +++++ src/generated/Cyber.ts | 1281 + src/generated/Ibc.ts | 3769 +++ src/generated/Wasm.ts | 922 + src/generated/data-contracts.ts | 14075 ++++++++ src/generated/http-client.ts | 141 + src/generated/lcd.ts | 27851 ---------------- src/pages/teleport/hooks/utils.tsx | 3 + src/services/QueueManager/QueueManager.ts | 2 +- src/services/QueueManager/q.test.ts | 265 - src/services/ipfs/utils/utils-ipfs.ts | 145 +- src/utils/__tests__/date.test.ts | 15 +- src/utils/async/promise.ts | 39 +- src/utils/date.ts | 23 +- src/utils/helpers.ts | 83 - src/utils/rxjs/helpers.ts | 20 + src/utils/test-utils/test-utils.ts | 5 - 19 files changed, 27831 insertions(+), 28399 deletions(-) create mode 100644 src/generated/Cosmos.ts create mode 100644 src/generated/Cyber.ts create mode 100644 src/generated/Ibc.ts create mode 100644 src/generated/Wasm.ts create mode 100644 src/generated/data-contracts.ts create mode 100644 src/generated/http-client.ts delete mode 100644 src/generated/lcd.ts delete mode 100644 src/services/QueueManager/q.test.ts delete mode 100644 src/utils/helpers.ts create mode 100644 src/utils/rxjs/helpers.ts delete mode 100644 src/utils/test-utils/test-utils.ts diff --git a/package.json b/package.json index 010bc732f..62da2600c 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "build-storybook": "storybook build", "test": "jest --transformIgnorePatterns --verbose", "generate-graphql-types": "yarn graphql-codegen --config ./codegen.ts", - "generate-lcd-types": "npx swagger-typescript-api -p https://lcd.bostrom.cybernode.ai/swagger/swagger.yaml -o ./src/generated -n lcd.ts --axios" + "generate-lcd-types": "npx swagger-typescript-api -p https://lcd.bostrom.cybernode.ai/swagger/swagger.yaml -o ./src/generated -n lcd.ts --axios --modular " }, "browserslist": "> 0.5%, last 2 versions, not dead", "license": "ISC", diff --git a/src/containers/temple/hooks/useGetNegentropy.ts b/src/containers/temple/hooks/useGetNegentropy.ts index 4f8b3fa93..19d1780d7 100644 --- a/src/containers/temple/hooks/useGetNegentropy.ts +++ b/src/containers/temple/hooks/useGetNegentropy.ts @@ -3,10 +3,10 @@ import { useQuery } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { LCD_URL } from 'src/constants/config'; -import { Api } from 'src/generated/lcd'; import { AxiosResponse } from 'axios'; +import { Cyber as CyberLcdApi } from 'src/generated/Cyber'; -const lcdApi = new Api({ baseURL: LCD_URL }); +const lcdCyberApi = new CyberLcdApi({ baseURL: LCD_URL }); function dataOrEmpty(response: AxiosResponse) { try { @@ -17,7 +17,7 @@ function dataOrEmpty(response: AxiosResponse) { } const getNegentropy = async () => { - const response = await lcdApi.cyber.negentropy(); + const response = await lcdCyberApi.negentropy(); return dataOrEmpty(response); }; diff --git a/src/generated/Cosmos.ts b/src/generated/Cosmos.ts new file mode 100644 index 000000000..c4ec0721b --- /dev/null +++ b/src/generated/Cosmos.ts @@ -0,0 +1,7583 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +import { + CosmosTxV1Beta1GetTxResponse, + CosmosTxV1Beta1GetTxsEventResponse, + CosmosTxV1Beta1SimulateRequest, +} from './data-contracts'; +import { ContentType, HttpClient, RequestParams } from './http-client'; + +export class Cosmos extends HttpClient { + /** + * No description + * + * @tags Query + * @name Account + * @summary Account returns account details based on address. + * @request GET:/cosmos/auth/v1beta1/accounts/{address} + */ + account = (address: string, params: RequestParams = {}) => + this.request< + { + /** account defines the account of the corresponding address. */ + account?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/auth/v1beta1/accounts/${address}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name AuthParams + * @summary Params queries all parameters. + * @request GET:/cosmos/auth/v1beta1/params + */ + authParams = (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + /** @format uint64 */ + max_memo_characters?: string; + /** @format uint64 */ + tx_sig_limit?: string; + /** @format uint64 */ + tx_size_cost_per_byte?: string; + /** @format uint64 */ + sig_verify_cost_ed25519?: string; + /** @format uint64 */ + sig_verify_cost_secp256k1?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/auth/v1beta1/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name AllBalances + * @summary AllBalances queries the balance of all coins for a single account. + * @request GET:/cosmos/bank/v1beta1/balances/{address} + */ + allBalances = ( + address: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** balances is the balances of all the coins. */ + balances?: { + denom?: string; + amount?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/balances/${address}`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Balance + * @summary Balance queries the balance of a single coin for a single account. + * @request GET:/cosmos/bank/v1beta1/balances/{address}/{denom} + */ + balance = (address: string, denom: string, params: RequestParams = {}) => + this.request< + { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/balances/${address}/${denom}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name DenomsMetadata + * @summary DenomsMetadata queries the client metadata for all registered coin denominations. + * @request GET:/cosmos/bank/v1beta1/denoms_metadata + */ + denomsMetadata = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** metadata provides the client information for all the registered tokens. */ + metadatas?: { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/denoms_metadata`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name DenomMetadata + * @summary DenomsMetadata queries the client metadata of a given coin denomination. + * @request GET:/cosmos/bank/v1beta1/denoms_metadata/{denom} + */ + denomMetadata = (denom: string, params: RequestParams = {}) => + this.request< + { + /** + * Metadata represents a struct that describes + * a basic token. + */ + metadata?: { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/denoms_metadata/${denom}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name BankParams + * @summary Params queries the parameters of x/bank module. + * @request GET:/cosmos/bank/v1beta1/params + */ + bankParams = (params: RequestParams = {}) => + this.request< + { + /** Params defines the parameters for the bank module. */ + params?: { + send_enabled?: { + denom?: string; + enabled?: boolean; + }[]; + default_send_enabled?: boolean; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name TotalSupply + * @summary TotalSupply queries the total supply of all coins. + * @request GET:/cosmos/bank/v1beta1/supply + */ + totalSupply = (params: RequestParams = {}) => + this.request< + { + /** supply is the supply of the coins */ + supply?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/supply`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name SupplyOf + * @summary SupplyOf queries the supply of a single coin. + * @request GET:/cosmos/bank/v1beta1/supply/{denom} + */ + supplyOf = (denom: string, params: RequestParams = {}) => + this.request< + { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + amount?: { + denom?: string; + amount?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/bank/v1beta1/supply/${denom}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Service + * @name GetLatestBlock + * @summary GetLatestBlock returns the latest block. + * @request GET:/cosmos/base/tendermint/v1beta1/blocks/latest + */ + getLatestBlock = (params: RequestParams = {}) => + this.request< + { + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + block?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/blocks/latest`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Service + * @name GetBlockByHeight + * @summary GetBlockByHeight queries block for given height. + * @request GET:/cosmos/base/tendermint/v1beta1/blocks/{height} + */ + getBlockByHeight = (height: string, params: RequestParams = {}) => + this.request< + { + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + block?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/blocks/${height}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Service + * @name GetNodeInfo + * @summary GetNodeInfo queries the current node info. + * @request GET:/cosmos/base/tendermint/v1beta1/node_info + */ + getNodeInfo = (params: RequestParams = {}) => + this.request< + { + default_node_info?: { + protocol_version?: { + /** @format uint64 */ + p2p?: string; + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + /** @format byte */ + channels?: string; + moniker?: string; + other?: { + tx_index?: string; + rpc_address?: string; + }; + }; + /** VersionInfo is the type for the GetNodeInfoResponse message. */ + application_version?: { + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: { + /** module path */ + path?: string; + /** module version */ + version?: string; + /** checksum */ + sum?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/node_info`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Service + * @name GetSyncing + * @summary GetSyncing queries node syncing. + * @request GET:/cosmos/base/tendermint/v1beta1/syncing + */ + getSyncing = (params: RequestParams = {}) => + this.request< + { + syncing?: boolean; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/syncing`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Service + * @name GetLatestValidatorSet + * @summary GetLatestValidatorSet queries latest validator-set. + * @request GET:/cosmos/base/tendermint/v1beta1/validatorsets/latest + */ + getLatestValidatorSet = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/validatorsets/latest`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Service + * @name GetValidatorSetByHeight + * @summary GetValidatorSetByHeight queries validator-set at a given height. + * @request GET:/cosmos/base/tendermint/v1beta1/validatorsets/{height} + */ + getValidatorSetByHeight = ( + height: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/base/tendermint/v1beta1/validatorsets/${height}`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name CommunityPool + * @summary CommunityPool queries the community pool coins. + * @request GET:/cosmos/distribution/v1beta1/community_pool + */ + communityPool = (params: RequestParams = {}) => + this.request< + { + /** pool defines community pool's coins. */ + pool?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/community_pool`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name DelegationTotalRewards + * @summary DelegationTotalRewards queries the total rewards accrued by a each +validator. + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards + */ + delegationTotalRewards = (delegatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** rewards defines all the rewards accrued by a delegator. */ + rewards?: { + validator_address?: string; + reward?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** total defines the sum of all the rewards. */ + total?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name DelegationRewards + * @summary DelegationRewards queries the total rewards accrued by a delegation. + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address} + */ + delegationRewards = (delegatorAddress: string, validatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** rewards defines the rewards accrued by a delegation. */ + rewards?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards/${validatorAddress}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name DelegatorValidators + * @summary DelegatorValidators queries the validators of a delegator. + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators + */ + delegatorValidators = (delegatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** validators defines the validators a delegator is delegating for. */ + validators?: string[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/validators`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name DelegatorWithdrawAddress + * @summary DelegatorWithdrawAddress queries withdraw address of a delegator. + * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address + */ + delegatorWithdrawAddress = (delegatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** withdraw_address defines the delegator address to query for. */ + withdraw_address?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/withdraw_address`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name DistributionParams + * @summary Params queries params of the distribution module. + * @request GET:/cosmos/distribution/v1beta1/params + */ + distributionParams = (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ValidatorCommission + * @summary ValidatorCommission queries accumulated commission for a validator. + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/commission + */ + validatorCommission = (validatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** commission defines the commision the validator received. */ + commission?: { + commission?: { + denom?: string; + amount?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/commission`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ValidatorOutstandingRewards + * @summary ValidatorOutstandingRewards queries rewards of a validator address. + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards + */ + validatorOutstandingRewards = (validatorAddress: string, params: RequestParams = {}) => + this.request< + { + /** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ + rewards?: { + rewards?: { + denom?: string; + amount?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/outstanding_rewards`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ValidatorSlashes + * @summary ValidatorSlashes queries slash events of a validator. + * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/slashes + */ + validatorSlashes = ( + validatorAddress: string, + query?: { + /** + * starting_height defines the optional starting height to query the slashes. + * @format uint64 + */ + starting_height?: string; + /** + * starting_height defines the optional ending height to query the slashes. + * @format uint64 + */ + ending_height?: string; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** slashes defines the slashes the validator received. */ + slashes?: { + /** @format uint64 */ + validator_period?: string; + fraction?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/slashes`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name AllEvidence + * @summary AllEvidence queries all evidence. + * @request GET:/cosmos/evidence/v1beta1/evidence + */ + allEvidence = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** evidence returns all evidences. */ + evidence?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/evidence/v1beta1/evidence`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Evidence + * @summary Evidence queries evidence based on evidence hash. + * @request GET:/cosmos/evidence/v1beta1/evidence/{evidence_hash} + */ + evidence = (evidenceHash: string, params: RequestParams = {}) => + this.request< + { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + evidence?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/evidence/v1beta1/evidence/${evidenceHash}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name GovParams + * @summary Params queries all parameters of the gov module. + * @request GET:/cosmos/gov/v1beta1/params/{params_type} + */ + govParams = (paramsType: string, params: RequestParams = {}) => + this.request< + { + /** voting_params defines the parameters related to voting. */ + voting_params?: { + /** Length of the voting period. */ + voting_period?: string; + }; + /** deposit_params defines the parameters related to deposit. */ + deposit_params?: { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: { + denom?: string; + amount?: string; + }[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: string; + }; + /** tally_params defines the parameters related to tally. */ + tally_params?: { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + * @format byte + */ + quorum?: string; + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + * @format byte + */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + * @format byte + */ + veto_threshold?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/params/${paramsType}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Proposals + * @summary Proposals queries all proposals based on given status. + * @request GET:/cosmos/gov/v1beta1/proposals + */ + proposals = ( + query?: { + /** + * proposal_status defines the status of the proposals. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + proposal_status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** voter defines the voter address for the proposals. */ + voter?: string; + /** depositor defines the deposit addresses from the proposals. */ + depositor?: string; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + proposals?: { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Proposal + * @summary Proposal queries proposal details based on ProposalID. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id} + */ + proposal = (proposalId: string, params: RequestParams = {}) => + this.request< + { + /** Proposal defines the core field members of a governance proposal. */ + proposal?: { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Deposits + * @summary Deposits queries all deposits of a single proposal. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits + */ + deposits = ( + proposalId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + deposits?: { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Deposit + * @summary Deposit queries single deposit information based proposalID, depositAddr. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor} + */ + deposit = (proposalId: string, depositor: string, params: RequestParams = {}) => + this.request< + { + /** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ + deposit?: { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits/${depositor}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name TallyResult + * @summary TallyResult queries the tally of a proposal vote. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/tally + */ + tallyResult = (proposalId: string, params: RequestParams = {}) => + this.request< + { + /** TallyResult defines a standard tally for a governance proposal. */ + tally?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/tally`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Votes + * @summary Votes queries votes of a given proposal. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes + */ + votes = ( + proposalId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** votes defined the queried votes. */ + votes?: { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Vote + * @summary Vote queries voted information based on proposalID, voterAddr. + * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter} + */ + vote = (proposalId: string, voter: string, params: RequestParams = {}) => + this.request< + { + /** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ + vote?: { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes/${voter}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name AnnualProvisions + * @summary AnnualProvisions current minting annual provisions value. + * @request GET:/cosmos/mint/v1beta1/annual_provisions + */ + annualProvisions = (params: RequestParams = {}) => + this.request< + { + /** + * annual_provisions is the current minting annual provisions value. + * @format byte + */ + annual_provisions?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/mint/v1beta1/annual_provisions`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Inflation + * @summary Inflation returns the current minting inflation value. + * @request GET:/cosmos/mint/v1beta1/inflation + */ + inflation = (params: RequestParams = {}) => + this.request< + { + /** + * inflation is the current minting inflation value. + * @format byte + */ + inflation?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/mint/v1beta1/inflation`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name MintParams + * @summary Params returns the total set of minting parameters. + * @request GET:/cosmos/mint/v1beta1/params + */ + mintParams = (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + /** type of coin to mint */ + mint_denom?: string; + /** maximum annual change in inflation rate */ + inflation_rate_change?: string; + /** maximum inflation rate */ + inflation_max?: string; + /** minimum inflation rate */ + inflation_min?: string; + /** goal of percent bonded atoms */ + goal_bonded?: string; + /** + * expected blocks per year + * @format uint64 + */ + blocks_per_year?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/mint/v1beta1/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Params + * @summary Params queries a specific parameter of a module, given its subspace and +key. + * @request GET:/cosmos/params/v1beta1/params + */ + params = ( + query?: { + /** subspace defines the module to query the parameter for. */ + subspace?: string; + /** key defines the key of the parameter in the subspace. */ + key?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + /** param defines the queried parameter. */ + param?: { + subspace?: string; + key?: string; + value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/params/v1beta1/params`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name SlashingParams + * @summary Params queries the parameters of slashing module + * @request GET:/cosmos/slashing/v1beta1/params + */ + slashingParams = (params: RequestParams = {}) => + this.request< + { + /** Params represents the parameters used for by the slashing module. */ + params?: { + /** @format int64 */ + signed_blocks_window?: string; + /** @format byte */ + min_signed_per_window?: string; + downtime_jail_duration?: string; + /** @format byte */ + slash_fraction_double_sign?: string; + /** @format byte */ + slash_fraction_downtime?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/slashing/v1beta1/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name SigningInfos + * @summary SigningInfos queries signing info of all validators + * @request GET:/cosmos/slashing/v1beta1/signing_infos + */ + signingInfos = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** info is the signing info of all validators */ + info?: { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/slashing/v1beta1/signing_infos`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name SigningInfo + * @summary SigningInfo queries the signing info of given cons address + * @request GET:/cosmos/slashing/v1beta1/signing_infos/{cons_address} + */ + signingInfo = (consAddress: string, params: RequestParams = {}) => + this.request< + { + /** + * val_signing_info is the signing info of requested val cons address + * ValidatorSigningInfo defines a validator's signing info for monitoring their + * liveness activity. + */ + val_signing_info?: { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cosmos/slashing/v1beta1/signing_infos/${consAddress}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name DelegatorDelegations + * @summary DelegatorDelegations queries all delegations of a given delegator address. + * @request GET:/cosmos/staking/v1beta1/delegations/{delegator_addr} + */ + delegatorDelegations = ( + delegatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** delegation_responses defines all the delegations' info of a delegator. */ + delegation_responses?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegations/${delegatorAddr}`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Redelegations + * @summary Redelegations queries redelegations of given address. + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations + */ + redelegations = ( + delegatorAddr: string, + query?: { + /** src_validator_addr defines the validator address to redelegate from. */ + src_validator_addr?: string; + /** dst_validator_addr defines the validator address to redelegate to. */ + dst_validator_addr?: string; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + redelegation_responses?: { + /** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ + redelegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }[]; + }; + entries?: { + /** RedelegationEntry defines a redelegation object with relevant metadata. */ + redelegation_entry?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }; + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/redelegations`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name DelegatorUnbondingDelegations + * @summary DelegatorUnbondingDelegations queries all unbonding delegations of a given +delegator address. + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations + */ + delegatorUnbondingDelegations = ( + delegatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + unbonding_responses?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/unbonding_delegations`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name StakingDelegatorValidators + * @summary DelegatorValidators queries all validators info for given delegator +address. + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators + */ + stakingDelegatorValidators = ( + delegatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** validators defines the the validators' info of a delegator. */ + validators?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/validators`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name DelegatorValidator + * @summary DelegatorValidator queries validator info for given delegator validator +pair. + * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr} + */ + delegatorValidator = (delegatorAddr: string, validatorAddr: string, params: RequestParams = {}) => + this.request< + { + /** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ + validator?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/validators/${validatorAddr}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name HistoricalInfo + * @summary HistoricalInfo queries the historical info for given height. + * @request GET:/cosmos/staking/v1beta1/historical_info/{height} + */ + historicalInfo = (height: string, params: RequestParams = {}) => + this.request< + { + /** hist defines the historical info at the given height. */ + hist?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** prev block info */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + valset?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: + | 'BOND_STATUS_UNSPECIFIED' + | 'BOND_STATUS_UNBONDED' + | 'BOND_STATUS_UNBONDING' + | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/historical_info/${height}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name StakingParams + * @summary Parameters queries the staking parameters. + * @request GET:/cosmos/staking/v1beta1/params + */ + stakingParams = (params: RequestParams = {}) => + this.request< + { + /** params holds all the parameters of this module. */ + params?: { + /** unbonding_time is the time duration of unbonding. */ + unbonding_time?: string; + /** + * max_validators is the maximum number of validators. + * @format int64 + */ + max_validators?: number; + /** + * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). + * @format int64 + */ + max_entries?: number; + /** + * historical_entries is the number of historical entries to persist. + * @format int64 + */ + historical_entries?: number; + /** bond_denom defines the bondable coin denomination. */ + bond_denom?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Pool + * @summary Pool queries the pool info. + * @request GET:/cosmos/staking/v1beta1/pool + */ + pool = (params: RequestParams = {}) => + this.request< + { + /** pool defines the pool info. */ + pool?: { + not_bonded_tokens?: string; + bonded_tokens?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/pool`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Validators + * @summary Validators queries all validators that match the given status. + * @request GET:/cosmos/staking/v1beta1/validators + */ + validators = ( + query?: { + /** status enables to query for validators matching a given status. */ + status?: string; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** validators contains all the queried validators. */ + validators?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Validator + * @summary Validator queries validator info for given validator address. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr} + */ + validator = (validatorAddr: string, params: RequestParams = {}) => + this.request< + { + /** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ + validator?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ValidatorDelegations + * @summary ValidatorDelegations queries delegate info for given validator. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations + */ + validatorDelegations = ( + validatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + delegation_responses?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Delegation + * @summary Delegation queries delegate info for given validator delegator pair. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr} + */ + delegation = (validatorAddr: string, delegatorAddr: string, params: RequestParams = {}) => + this.request< + { + /** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ + delegation_response?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations/${delegatorAddr}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name UnbondingDelegation + * @summary UnbondingDelegation queries unbonding info for given validator delegator +pair. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation + */ + unbondingDelegation = (validatorAddr: string, delegatorAddr: string, params: RequestParams = {}) => + this.request< + { + /** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ + unbond?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations/${delegatorAddr}/unbonding_delegation`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ValidatorUnbondingDelegations + * @summary ValidatorUnbondingDelegations queries unbonding delegations of a validator. + * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations + */ + validatorUnbondingDelegations = ( + validatorAddr: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + unbonding_responses?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/unbonding_delegations`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Service + * @name Simulate + * @summary Simulate simulates executing a transaction for estimating gas usage. + * @request POST:/cosmos/tx/v1beta1/simulate + */ + simulate = (body: CosmosTxV1Beta1SimulateRequest, params: RequestParams = {}) => + this.request< + { + /** gas_info is the information about gas used in the simulation. */ + gas_info?: { + /** + * GasWanted is the maximum units of work we allow this tx to perform. + * @format uint64 + */ + gas_wanted?: string; + /** + * GasUsed is the amount of gas actually consumed. + * @format uint64 + */ + gas_used?: string; + }; + /** result is the result of the simulation. */ + result?: { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * @format byte + */ + data?: string; + /** Log contains the log information from message or handler execution. */ + log?: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events?: { + type?: string; + attributes?: { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; + }[]; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/tx/v1beta1/simulate`, + method: 'POST', + body: body, + type: ContentType.Json, + ...params, + }); + /** + * No description + * + * @tags Service + * @name GetTxsEvent + * @summary GetTxsEvent fetches txs by event. + * @request GET:/cosmos/tx/v1beta1/txs + */ + getTxsEvent = ( + query?: { + /** events is the list of transaction event type. */ + events?: string[]; + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + /** + * - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + * - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order + * - ORDER_BY_DESC: ORDER_BY_DESC defines descending order + * @default "ORDER_BY_UNSPECIFIED" + */ + order_by?: 'ORDER_BY_UNSPECIFIED' | 'ORDER_BY_ASC' | 'ORDER_BY_DESC'; + }, + params: RequestParams = {} + ) => + this.request< + CosmosTxV1Beta1GetTxsEventResponse, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/tx/v1beta1/txs`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Service + * @name BroadcastTx + * @summary BroadcastTx broadcast transaction. + * @request POST:/cosmos/tx/v1beta1/txs + */ + broadcastTx = ( + body: { + /** + * tx_bytes is the raw transaction. + * @format byte + */ + tx_bytes?: string; + /** + * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. + * + * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering + * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + * @default "BROADCAST_MODE_UNSPECIFIED" + */ + mode?: 'BROADCAST_MODE_UNSPECIFIED' | 'BROADCAST_MODE_BLOCK' | 'BROADCAST_MODE_SYNC' | 'BROADCAST_MODE_ASYNC'; + }, + params: RequestParams = {} + ) => + this.request< + { + /** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ + tx_response?: { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/tx/v1beta1/txs`, + method: 'POST', + body: body, + type: ContentType.Json, + ...params, + }); + /** + * No description + * + * @tags Service + * @name GetTx + * @summary GetTx fetches a tx by hash. + * @request GET:/cosmos/tx/v1beta1/txs/{hash} + */ + getTx = (hash: string, params: RequestParams = {}) => + this.request< + CosmosTxV1Beta1GetTxResponse, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/tx/v1beta1/txs/${hash}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name AppliedPlan + * @summary AppliedPlan queries a previously applied upgrade plan by its name. + * @request GET:/cosmos/upgrade/v1beta1/applied_plan/{name} + */ + appliedPlan = (name: string, params: RequestParams = {}) => + this.request< + { + /** + * height is the block height at which the plan was applied. + * @format int64 + */ + height?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/upgrade/v1beta1/applied_plan/${name}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name CurrentPlan + * @summary CurrentPlan queries the current upgrade plan. + * @request GET:/cosmos/upgrade/v1beta1/current_plan + */ + currentPlan = (params: RequestParams = {}) => + this.request< + { + /** plan is the current upgrade plan. */ + plan?: { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name?: string; + /** + * The time after which the upgrade must be performed. + * Leave set to its zero value to use a pre-defined Height instead. + * @format date-time + */ + time?: string; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + * @format int64 + */ + height?: string; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info?: string; + /** + * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan + * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, + * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the + * previous version of the chain. + * This will allow IBC connections to persist smoothly across planned chain upgrades + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/upgrade/v1beta1/current_plan`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name UpgradedConsensusState + * @summary UpgradedConsensusState queries the consensus state that will serve +as a trusted kernel for the next version of this chain. It will only be +stored at the last height of this chain. +UpgradedConsensusState RPC not supported with legacy querier + * @request GET:/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height} + */ + upgradedConsensusState = (lastHeight: string, params: RequestParams = {}) => + this.request< + { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/cosmos/upgrade/v1beta1/upgraded_consensus_state/${lastHeight}`, + method: 'GET', + ...params, + }); +} diff --git a/src/generated/Cyber.ts b/src/generated/Cyber.ts new file mode 100644 index 000000000..d9e905da3 --- /dev/null +++ b/src/generated/Cyber.ts @@ -0,0 +1,1281 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +import { HttpClient, RequestParams } from './http-client'; + +export class Cyber extends HttpClient { + /** + * No description + * + * @tags Query + * @name GraphStats + * @request GET:/cyber/graph/v1beta1/graph_stats + */ + graphStats = (params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + cyberlinks?: string; + /** @format uint64 */ + particles?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/graph/v1beta1/graph_stats`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name IsAnyLinkExist + * @request GET:/cyber/rank/v1beta1/is_any_link_exist + */ + isAnyLinkExist = ( + query?: { + from?: string; + to?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + /** @format boolean */ + exist?: boolean; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/is_any_link_exist`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name IsLinkExist + * @request GET:/cyber/rank/v1beta1/is_link_exist + */ + isLinkExist = ( + query?: { + from?: string; + to?: string; + address?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + /** @format boolean */ + exist?: boolean; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/is_link_exist`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Karma + * @request GET:/cyber/rank/v1beta1/karma/{neuron} + */ + karma = (neuron: string, params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + karma?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/karma/${neuron}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Negentropy + * @request GET:/cyber/rank/v1beta1/negentropy + */ + negentropy = (params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + negentropy?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/negentropy`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ParticleNegentropy + * @request GET:/cyber/rank/v1beta1/negentropy/{particle} + */ + particleNegentropy = (particle: string, params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + entropy?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/negentropy/${particle}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Backlinks + * @request GET:/cyber/rank/v1beta1/rank/backlinks/{particle} + */ + backlinks = ( + particle: string, + query?: { + /** @format int64 */ + paginationPage?: number; + /** @format int64 */ + paginationPerPage?: number; + }, + params: RequestParams = {} + ) => + this.request< + { + result?: { + particle?: string; + /** @format uint64 */ + rank?: string; + }[]; + pagination?: { + /** @format int64 */ + total?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/backlinks/${particle}`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name RankParams + * @request GET:/cyber/rank/v1beta1/rank/params + */ + rankParams = (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format int64 */ + calculation_period?: string; + damping_factor?: string; + tolerance?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Rank + * @request GET:/cyber/rank/v1beta1/rank/rank/{particle} + */ + rank = (particle: string, params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + rank?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/rank/${particle}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Search + * @request GET:/cyber/rank/v1beta1/rank/search/{particle} + */ + search = ( + particle: string, + query?: { + /** @format int64 */ + paginationPage?: number; + /** @format int64 */ + paginationPerPage?: number; + }, + params: RequestParams = {} + ) => + this.request< + { + result?: { + particle?: string; + /** @format uint64 */ + rank?: string; + }[]; + pagination?: { + /** @format int64 */ + total?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/search/${particle}`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Top + * @request GET:/cyber/rank/v1beta1/rank/top + */ + top = ( + query?: { + /** @format int64 */ + page?: number; + /** @format int64 */ + per_page?: number; + }, + params: RequestParams = {} + ) => + this.request< + { + result?: { + particle?: string; + /** @format uint64 */ + rank?: string; + }[]; + pagination?: { + /** @format int64 */ + total?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/rank/v1beta1/rank/top`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Load + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/load + */ + load = (params: RequestParams = {}) => + this.request< + { + /** DecProto defines a Protobuf wrapper around a Dec object. */ + load?: { + dec?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/load`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name NeuronBandwidth + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/neuron/{neuron} + */ + neuronBandwidth = (neuron: string, params: RequestParams = {}) => + this.request< + { + neuron_bandwidth?: { + neuron?: string; + /** @format uint64 */ + remained_value?: string; + /** @format uint64 */ + last_updated_block?: string; + /** @format uint64 */ + max_value?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/neuron/${neuron}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name BandwidthParams + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/params + */ + bandwidthParams = (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format uint64 */ + recovery_period?: string; + /** @format uint64 */ + adjust_price_period?: string; + base_price?: string; + base_load?: string; + /** @format uint64 */ + max_block_bandwidth?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Price + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/price + */ + price = (params: RequestParams = {}) => + this.request< + { + /** DecProto defines a Protobuf wrapper around a Dec object. */ + price?: { + dec?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/price`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name TotalBandwidth + * @request GET:/cyber/bandwidth/v1beta1/bandwidth/total + */ + totalBandwidth = (params: RequestParams = {}) => + this.request< + { + /** @format uint64 */ + total_bandwidth?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/bandwidth/v1beta1/bandwidth/total`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name DestinationRoutedEnergy + * @request GET:/cyber/grid/v1beta1/grid/destination_routed_energy + */ + destinationRoutedEnergy = ( + query?: { + destination?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + value?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/destination_routed_energy`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name DestinationRoutes + * @request GET:/cyber/grid/v1beta1/grid/destination_routes + */ + destinationRoutes = ( + query?: { + destination?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + routes?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/destination_routes`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name GridParams + * @request GET:/cyber/grid/v1beta1/grid/params + */ + gridParams = (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format int64 */ + max_routes?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Route + * @request GET:/cyber/grid/v1beta1/grid/route + */ + route = ( + query?: { + source?: string; + destination?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + route?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/route`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Routes + * @request GET:/cyber/grid/v1beta1/grid/routes + */ + routes = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + * @format boolean + */ + paginationCountTotal?: boolean; + /** + * reverse is set to true if results are to be returned in the descending order. + * @format boolean + */ + paginationReverse?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + routes?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/routes`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name SourceRoutedEnergy + * @request GET:/cyber/grid/v1beta1/grid/source_routed_energy + */ + sourceRoutedEnergy = ( + query?: { + source?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + value?: { + denom?: string; + amount?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/source_routed_energy`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name SourceRoutes + * @request GET:/cyber/grid/v1beta1/grid/source_routes + */ + sourceRoutes = ( + query?: { + source?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + routes?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/grid/v1beta1/grid/source_routes`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Investmint + * @request GET:/cyber/resources/v1beta1/resources/investmint + */ + investmint = ( + query?: { + amountDenom?: string; + amountAmount?: string; + resource?: string; + /** @format uint64 */ + length?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + amount?: { + denom?: string; + amount?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/resources/v1beta1/resources/investmint`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name ResourcesParams + * @request GET:/cyber/resources/v1beta1/resources/params + */ + resourcesParams = (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + halving_period_volt_blocks?: number; + /** @format int64 */ + halving_period_ampere_blocks?: number; + /** @format int64 */ + base_investmint_period_volt?: number; + /** @format int64 */ + base_investmint_period_ampere?: number; + /** @format int64 */ + min_investmint_period?: number; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_volt?: { + denom?: string; + amount?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_ampere?: { + denom?: string; + amount?: string; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/resources/v1beta1/resources/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name DmnParams + * @request GET:/cyber/dmn/v1beta1/dmn/params + */ + dmnParams = (params: RequestParams = {}) => + this.request< + { + params?: { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + max_gas?: number; + /** @format int64 */ + fee_ttl?: number; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Thought + * @request GET:/cyber/dmn/v1beta1/dmn/thought + */ + thought = ( + query?: { + program?: string; + name?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + thought?: { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/thought`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name ThoughtStats + * @request GET:/cyber/dmn/v1beta1/dmn/thought_stats + */ + thoughtStats = ( + query?: { + program?: string; + name?: string; + }, + params: RequestParams = {} + ) => + this.request< + { + thought_stats?: { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/thought_stats`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Thoughts + * @request GET:/cyber/dmn/v1beta1/dmn/thoughts + */ + thoughts = (params: RequestParams = {}) => + this.request< + { + thoughts?: { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/thoughts`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ThoughtsStats + * @request GET:/cyber/dmn/v1beta1/dmn/thoughts_stats + */ + thoughtsStats = (params: RequestParams = {}) => + this.request< + { + thoughts_stats?: { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; + }[]; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/cyber/dmn/v1beta1/dmn/thoughts_stats`, + method: 'GET', + ...params, + }); +} diff --git a/src/generated/Ibc.ts b/src/generated/Ibc.ts new file mode 100644 index 000000000..f422b6e75 --- /dev/null +++ b/src/generated/Ibc.ts @@ -0,0 +1,3769 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +import { HttpClient, RequestParams } from './http-client'; + +export class Ibc extends HttpClient { + /** + * No description + * + * @tags Query + * @name DenomTraces + * @summary DenomTraces queries all denomination traces. + * @request GET:/ibc/applications/transfer/v1beta1/denom_traces + */ + denomTraces = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** denom_traces returns all denominations trace information. */ + denom_traces?: { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/ibc/applications/transfer/v1beta1/denom_traces`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name DenomTrace + * @summary DenomTrace queries a denomination trace information. + * @request GET:/ibc/applications/transfer/v1beta1/denom_traces/{hash} + */ + denomTrace = (hash: string, params: RequestParams = {}) => + this.request< + { + /** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ + denom_trace?: { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/ibc/applications/transfer/v1beta1/denom_traces/${hash}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name IbcTransferParams + * @summary Params queries all parameters of the ibc-transfer module. + * @request GET:/ibc/applications/transfer/v1beta1/params + */ + ibcTransferParams = (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + send_enabled?: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receive_enabled?: boolean; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + type_url?: string; + /** @format byte */ + value?: string; + }[]; + } + >({ + path: `/ibc/applications/transfer/v1beta1/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Channels + * @summary Channels queries all the IBC channels of a chain. + * @request GET:/ibc/core/channel/v1beta1/channels + */ + channels = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** list of stored channels of the chain. */ + channels?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Channel + * @summary Channel queries an IBC Channel. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id} + */ + channel = (channelId: string, portId: string, params: RequestParams = {}) => + this.request< + { + /** + * channel associated with the request identifiers + * Channel defines pipeline for exactly-once packet delivery between specific + * modules on separate blockchains, which has at least one end capable of + * sending packets and one end capable of receiving packets. + */ + channel?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ChannelClientState + * @summary ChannelClientState queries for the client state for the channel associated +with the provided channel identifiers. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/client_state + */ + channelClientState = (channelId: string, portId: string, params: RequestParams = {}) => + this.request< + { + /** + * client state associated with the channel + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ + identified_client_state?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/client_state`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ChannelConsensusState + * @summary ChannelConsensusState queries for the consensus state for the channel +associated with the provided channel identifiers. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height} + */ + channelConsensusState = ( + channelId: string, + portId: string, + revisionNumber: string, + revisionHeight: string, + params: RequestParams = {} + ) => + this.request< + { + /** + * consensus state associated with the channel + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** client ID associated with the consensus state */ + client_id?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/consensus_state/revision/${revisionNumber}/height/${revisionHeight}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name NextSequenceReceive + * @summary NextSequenceReceive returns the next receive sequence for a given channel. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/next_sequence + */ + nextSequenceReceive = (channelId: string, portId: string, params: RequestParams = {}) => + this.request< + { + /** + * next sequence receive number + * @format uint64 + */ + next_sequence_receive?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/next_sequence`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name PacketAcknowledgements + * @summary PacketAcknowledgements returns all the packet acknowledgements associated +with a channel. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements + */ + packetAcknowledgements = ( + channelId: string, + portId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + acknowledgements?: { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_acknowledgements`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name PacketAcknowledgement + * @summary PacketAcknowledgement queries a stored packet acknowledgement hash. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence} + */ + packetAcknowledgement = (channelId: string, portId: string, sequence: string, params: RequestParams = {}) => + this.request< + { + /** + * packet associated with the request fields + * @format byte + */ + acknowledgement?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_acks/${sequence}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name PacketCommitments + * @summary PacketCommitments returns all the packet commitments hashes associated +with a channel. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments + */ + packetCommitments = ( + channelId: string, + portId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + commitments?: { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name UnreceivedAcks + * @summary UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a +channel and sequences. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks + */ + unreceivedAcks = (channelId: string, portId: string, packetAckSequences: string[], params: RequestParams = {}) => + this.request< + { + /** list of unreceived acknowledgement sequences */ + sequences?: string[]; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments/${packetAckSequences}/unreceived_acks`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name UnreceivedPackets + * @summary UnreceivedPackets returns all the unreceived IBC packets associated with a +channel and sequences. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets + */ + unreceivedPackets = ( + channelId: string, + portId: string, + packetCommitmentSequences: string[], + params: RequestParams = {} + ) => + this.request< + { + /** list of unreceived packet sequences */ + sequences?: string[]; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments/${packetCommitmentSequences}/unreceived_packets`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name PacketCommitment + * @summary PacketCommitment queries a stored packet commitment hash. + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence} + */ + packetCommitment = (channelId: string, portId: string, sequence: string, params: RequestParams = {}) => + this.request< + { + /** + * packet associated with the request fields + * @format byte + */ + commitment?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments/${sequence}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name PacketReceipt + * @summary PacketReceipt queries if a given packet sequence has been received on the queried chain + * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence} + */ + packetReceipt = (channelId: string, portId: string, sequence: string, params: RequestParams = {}) => + this.request< + { + /** success flag for if receipt exists */ + received?: boolean; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_receipts/${sequence}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ConnectionChannels + * @summary ConnectionChannels queries all the channels associated with a connection +end. + * @request GET:/ibc/core/channel/v1beta1/connections/{connection}/channels + */ + connectionChannels = ( + connection: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** list of channels associated with a connection. */ + channels?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/channel/v1beta1/connections/${connection}/channels`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name ClientParams + * @summary ClientParams queries all parameters of the ibc client. + * @request GET:/ibc/client/v1beta1/params + */ + clientParams = (params: RequestParams = {}) => + this.request< + { + /** params defines the parameters of the module. */ + params?: { + /** allowed_clients defines the list of allowed client state types. */ + allowed_clients?: string[]; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/client/v1beta1/params`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ClientStates + * @summary ClientStates queries all the IBC light clients of a chain. + * @request GET:/ibc/core/client/v1beta1/client_states + */ + clientStates = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** list of stored ClientStates of the chain. */ + client_states?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/client/v1beta1/client_states`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name ClientState + * @summary ClientState queries an IBC light client. + * @request GET:/ibc/core/client/v1beta1/client_states/{client_id} + */ + clientState = (clientId: string, params: RequestParams = {}) => + this.request< + { + /** + * client state associated with the request identifier + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/client/v1beta1/client_states/${clientId}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ConsensusStates + * @summary ConsensusStates queries all the consensus state associated with a given +client. + * @request GET:/ibc/core/client/v1beta1/consensus_states/{client_id} + */ + consensusStates = ( + clientId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** consensus states associated with the identifier */ + consensus_states?: { + /** + * consensus state height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + /** + * consensus state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/client/v1beta1/consensus_states/${clientId}`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name ConsensusState + * @summary ConsensusState queries a consensus state associated with a client state at +a given height. + * @request GET:/ibc/core/client/v1beta1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height} + */ + consensusState = ( + clientId: string, + revisionNumber: string, + revisionHeight: string, + query?: { + /** + * latest_height overrrides the height field and queries the latest stored + * ConsensusState. + */ + latest_height?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** + * consensus state associated with the client identifier at the given height + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/client/v1beta1/consensus_states/${clientId}/revision/${revisionNumber}/height/${revisionHeight}`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name ClientConnections + * @summary ClientConnections queries the connection paths associated with a client +state. + * @request GET:/ibc/core/connection/v1beta1/client_connections/{client_id} + */ + clientConnections = (clientId: string, params: RequestParams = {}) => + this.request< + { + /** slice of all the connection paths associated with a client. */ + connection_paths?: string[]; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was generated + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/client_connections/${clientId}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name Connections + * @summary Connections queries all the IBC connections of a chain. + * @request GET:/ibc/core/connection/v1beta1/connections + */ + connections = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** list of stored connections of the chain. */ + connections?: { + /** connection identifier. */ + id?: string; + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period associated with this connection. + * @format uint64 + */ + delay_period?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/connections`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Connection + * @summary Connection queries an IBC connection end. + * @request GET:/ibc/core/connection/v1beta1/connections/{connection_id} + */ + connection = (connectionId: string, params: RequestParams = {}) => + this.request< + { + /** + * connection associated with the request identifier + * ConnectionEnd defines a stateful object on a chain connected to another + * separate one. + * NOTE: there must only be 2 defined ConnectionEnds to establish + * a connection between two chains. + */ + connection?: { + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection. + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period that must pass before a consensus state can be used for packet-verification + * NOTE: delay period logic is only implemented by some clients. + * @format uint64 + */ + delay_period?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/connections/${connectionId}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ConnectionClientState + * @summary ConnectionClientState queries the client state associated with the +connection. + * @request GET:/ibc/core/connection/v1beta1/connections/{connection_id}/client_state + */ + connectionClientState = (connectionId: string, params: RequestParams = {}) => + this.request< + { + /** + * client state associated with the channel + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ + identified_client_state?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/connections/${connectionId}/client_state`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ConnectionConsensusState + * @summary ConnectionConsensusState queries the consensus state associated with the +connection. + * @request GET:/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height} + */ + connectionConsensusState = ( + connectionId: string, + revisionNumber: string, + revisionHeight: string, + params: RequestParams = {} + ) => + this.request< + { + /** + * consensus state associated with the channel + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** client ID associated with the consensus state */ + client_id?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/ibc/core/connection/v1beta1/connections/${connectionId}/consensus_state/revision/${revisionNumber}/height/${revisionHeight}`, + method: 'GET', + ...params, + }); +} diff --git a/src/generated/Wasm.ts b/src/generated/Wasm.ts new file mode 100644 index 000000000..d00315bb6 --- /dev/null +++ b/src/generated/Wasm.ts @@ -0,0 +1,922 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +import { HttpClient, RequestParams } from './http-client'; + +export class Wasm extends HttpClient { + /** + * No description + * + * @tags Query + * @name Codes + * @summary Codes gets the metadata for all stored wasm codes + * @request GET:/wasm/v1beta1/code + */ + codes = ( + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + code_infos?: { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/code`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name Code + * @summary Code gets the binary code and metadata for a singe wasm code + * @request GET:/wasm/v1beta1/code/{code_id} + */ + code = (codeId: string, params: RequestParams = {}) => + this.request< + { + /** CodeInfoResponse contains code meta data from CodeInfo */ + code_info?: { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; + }; + /** @format byte */ + data?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/code/${codeId}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ContractsByCode + * @summary ContractsByCode lists all smart contracts for a code id + * @request GET:/wasm/v1beta1/code/{code_id}/contracts + */ + contractsByCode = ( + codeId: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + /** contracts are a set of contract addresses */ + contracts?: string[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/code/${codeId}/contracts`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name ContractInfo + * @summary ContractInfo gets the contract meta data + * @request GET:/wasm/v1beta1/contract/{address} + */ + contractInfo = (address: string, params: RequestParams = {}) => + this.request< + { + /** address is the address of the contract */ + address?: string; + /** ContractInfo stores a WASM contract instance */ + contract_info?: { + /** + * CodeID is the reference to the stored Wasm code + * @format uint64 + */ + code_id?: string; + /** Creator address who initially instantiated the contract */ + creator?: string; + /** Admin is an optional address that can execute migrations */ + admin?: string; + /** Label is optional metadata to be stored with a contract instance. */ + label?: string; + /** + * Created Tx position when the contract was instantiated. + * This data should kept internal and not be exposed via query results. Just + * use for sorting + * AbsoluteTxPosition is a unique transaction position that allows for global + * ordering of transactions. + */ + created?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + ibc_port_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + extension?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name ContractHistory + * @summary ContractHistory gets the contract code history + * @request GET:/wasm/v1beta1/contract/{address}/history + */ + contractHistory = ( + address: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + entries?: { + /** + * ContractCodeHistoryOperationType actions that caused a code change + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data + * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" + */ + operation?: + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'; + /** + * CodeID is the reference to the stored WASM code + * @format uint64 + */ + code_id?: string; + /** Updated Tx position when the operation was executed. */ + updated?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + /** @format byte */ + msg?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}/history`, + method: 'GET', + query: query, + ...params, + }); + /** + * No description + * + * @tags Query + * @name RawContractState + * @summary RawContractState gets single key from the raw store data of a contract + * @request GET:/wasm/v1beta1/contract/{address}/raw/{query_data} + */ + rawContractState = (address: string, queryData: string, params: RequestParams = {}) => + this.request< + { + /** + * Data contains the raw store data + * @format byte + */ + data?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}/raw/${queryData}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name SmartContractState + * @summary SmartContractState get smart query result from the contract + * @request GET:/wasm/v1beta1/contract/{address}/smart/{query_data} + */ + smartContractState = (address: string, queryData: string, params: RequestParams = {}) => + this.request< + { + /** + * Data contains the json data returned from the smart contract + * @format byte + */ + data?: string; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}/smart/${queryData}`, + method: 'GET', + ...params, + }); + /** + * No description + * + * @tags Query + * @name AllContractState + * @summary AllContractState gets all raw store data for a single contract + * @request GET:/wasm/v1beta1/contract/{address}/state + */ + allContractState = ( + address: string, + query?: { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + paginationKey?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + paginationOffset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + paginationLimit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + */ + paginationCountTotal?: boolean; + }, + params: RequestParams = {} + ) => + this.request< + { + models?: { + /** + * hex-encode key to read it better (this is often ascii) + * @format byte + */ + key?: string; + /** + * base64-encode raw value + * @format byte + */ + value?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + }, + { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + } + >({ + path: `/wasm/v1beta1/contract/${address}/state`, + method: 'GET', + query: query, + ...params, + }); +} diff --git a/src/generated/data-contracts.ts b/src/generated/data-contracts.ts new file mode 100644 index 000000000..f40fa095b --- /dev/null +++ b/src/generated/data-contracts.ts @@ -0,0 +1,14075 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +export interface CyberGraphV1Beta1QueryGraphStatsResponse { + /** @format uint64 */ + cyberlinks?: string; + /** @format uint64 */ + particles?: string; +} + +/** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ +export interface GoogleProtobufAny { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; +} + +export interface GrpcGatewayRuntimeError { + error?: string; + /** @format int32 */ + code?: number; + message?: string; + details?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; +} + +export interface CyberGraphV1Beta1Link { + from?: string; + to?: string; +} + +export type CyberGraphV1Beta1MsgCyberlinkResponse = object; + +export interface CyberBaseQueryV1Beta1PageRequest { + /** @format int64 */ + page?: number; + /** @format int64 */ + per_page?: number; +} + +export interface CyberBaseQueryV1Beta1PageResponse { + /** @format int64 */ + total?: number; +} + +export interface CyberRankV1Beta1Params { + /** @format int64 */ + calculation_period?: string; + damping_factor?: string; + tolerance?: string; +} + +export interface CyberRankV1Beta1QueryKarmaResponse { + /** @format uint64 */ + karma?: string; +} + +export interface CyberRankV1Beta1QueryLinkExistResponse { + /** @format boolean */ + exist?: boolean; +} + +export interface CyberRankV1Beta1QueryNegentropyParticleResponse { + /** @format uint64 */ + entropy?: string; +} + +export interface CyberRankV1Beta1QueryNegentropyResponse { + /** @format uint64 */ + negentropy?: string; +} + +export interface CyberRankV1Beta1QueryParamsResponse { + params?: { + /** @format int64 */ + calculation_period?: string; + damping_factor?: string; + tolerance?: string; + }; +} + +export interface CyberRankV1Beta1QueryRankResponse { + /** @format uint64 */ + rank?: string; +} + +export interface CyberRankV1Beta1QuerySearchResponse { + result?: { + particle?: string; + /** @format uint64 */ + rank?: string; + }[]; + pagination?: { + /** @format int64 */ + total?: number; + }; +} + +export interface CyberRankV1Beta1RankedParticle { + particle?: string; + /** @format uint64 */ + rank?: string; +} + +/** DecProto defines a Protobuf wrapper around a Dec object. */ +export interface CosmosBaseV1Beta1DecProto { + dec?: string; +} + +export interface CyberBandwidthV1Beta1NeuronBandwidth { + neuron?: string; + /** @format uint64 */ + remained_value?: string; + /** @format uint64 */ + last_updated_block?: string; + /** @format uint64 */ + max_value?: string; +} + +export interface CyberBandwidthV1Beta1Params { + /** @format uint64 */ + recovery_period?: string; + /** @format uint64 */ + adjust_price_period?: string; + base_price?: string; + base_load?: string; + /** @format uint64 */ + max_block_bandwidth?: string; +} + +export interface CyberBandwidthV1Beta1QueryLoadResponse { + /** DecProto defines a Protobuf wrapper around a Dec object. */ + load?: { + dec?: string; + }; +} + +export interface CyberBandwidthV1Beta1QueryNeuronBandwidthResponse { + neuron_bandwidth?: { + neuron?: string; + /** @format uint64 */ + remained_value?: string; + /** @format uint64 */ + last_updated_block?: string; + /** @format uint64 */ + max_value?: string; + }; +} + +export interface CyberBandwidthV1Beta1QueryParamsResponse { + params?: { + /** @format uint64 */ + recovery_period?: string; + /** @format uint64 */ + adjust_price_period?: string; + base_price?: string; + base_load?: string; + /** @format uint64 */ + max_block_bandwidth?: string; + }; +} + +export interface CyberBandwidthV1Beta1QueryPriceResponse { + /** DecProto defines a Protobuf wrapper around a Dec object. */ + price?: { + dec?: string; + }; +} + +export interface CyberBandwidthV1Beta1QueryTotalBandwidthResponse { + /** @format uint64 */ + total_bandwidth?: string; +} + +/** + * PageRequest is to be embedded in gRPC request messages for efficient + * pagination. Ex: + * message SomeRequest { + * Foo some_parameter = 1; + * PageRequest pagination = 2; + * } + */ +export interface CosmosBaseQueryV1Beta1PageRequest { + /** + * key is a value returned in PageResponse.next_key to begin + * querying the next page most efficiently. Only one of offset or key + * should be set. + * @format byte + */ + key?: string; + /** + * offset is a numeric offset that can be used when key is unavailable. + * It is less efficient than using key. Only one of offset or key should + * be set. + * @format uint64 + */ + offset?: string; + /** + * limit is the total number of results to be returned in the result page. + * If left empty it will default to a value to be set by each app. + * @format uint64 + */ + limit?: string; + /** + * count_total is set to true to indicate that the result set should include + * a count of the total number of items available for pagination in UIs. + * count_total is only respected when offset is used. It is ignored when key + * is set. + * @format boolean + */ + count_total?: boolean; + /** + * reverse is set to true if results are to be returned in the descending order. + * @format boolean + */ + reverse?: boolean; +} + +/** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ +export interface CosmosBaseQueryV1Beta1PageResponse { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; +} + +/** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ +export interface CosmosBaseV1Beta1Coin { + denom?: string; + amount?: string; +} + +export interface CyberGridV1Beta1Params { + /** @format int64 */ + max_routes?: number; +} + +export interface CyberGridV1Beta1QueryParamsResponse { + params?: { + /** @format int64 */ + max_routes?: number; + }; +} + +export interface CyberGridV1Beta1QueryRouteResponse { + route?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }; +} + +export interface CyberGridV1Beta1QueryRoutedEnergyResponse { + value?: { + denom?: string; + amount?: string; + }[]; +} + +export interface CyberGridV1Beta1QueryRoutesResponse { + routes?: { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +export interface CyberGridV1Beta1Route { + source?: string; + destination?: string; + name?: string; + value?: { + denom?: string; + amount?: string; + }[]; +} + +export type CyberGridV1Beta1MsgCreateRouteResponse = object; + +export type CyberGridV1Beta1MsgDeleteRouteResponse = object; + +export type CyberGridV1Beta1MsgEditRouteNameResponse = object; + +export type CyberGridV1Beta1MsgEditRouteResponse = object; + +export interface CyberResourcesV1Beta1Params { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + halving_period_volt_blocks?: number; + /** @format int64 */ + halving_period_ampere_blocks?: number; + /** @format int64 */ + base_investmint_period_volt?: number; + /** @format int64 */ + base_investmint_period_ampere?: number; + /** @format int64 */ + min_investmint_period?: number; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_volt?: { + denom?: string; + amount?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_ampere?: { + denom?: string; + amount?: string; + }; +} + +export interface CyberResourcesV1Beta1QueryInvestmintResponse { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + amount?: { + denom?: string; + amount?: string; + }; +} + +export interface CyberResourcesV1Beta1QueryParamsResponse { + params?: { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + halving_period_volt_blocks?: number; + /** @format int64 */ + halving_period_ampere_blocks?: number; + /** @format int64 */ + base_investmint_period_volt?: number; + /** @format int64 */ + base_investmint_period_ampere?: number; + /** @format int64 */ + min_investmint_period?: number; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_volt?: { + denom?: string; + amount?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + base_investmint_amount_ampere?: { + denom?: string; + amount?: string; + }; + }; +} + +export type CyberResourcesV1Beta1MsgInvestmintResponse = object; + +export interface CyberDmnV1Beta1Load { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; +} + +export interface CyberDmnV1Beta1Params { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + max_gas?: number; + /** @format int64 */ + fee_ttl?: number; +} + +export interface CyberDmnV1Beta1QueryParamsResponse { + params?: { + /** @format int64 */ + max_slots?: number; + /** @format int64 */ + max_gas?: number; + /** @format int64 */ + fee_ttl?: number; + }; +} + +export interface CyberDmnV1Beta1QueryThoughtResponse { + thought?: { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; + }; +} + +export interface CyberDmnV1Beta1QueryThoughtStatsResponse { + thought_stats?: { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; + }; +} + +export interface CyberDmnV1Beta1QueryThoughtsResponse { + thoughts?: { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; + }[]; +} + +export interface CyberDmnV1Beta1QueryThoughtsStatsResponse { + thoughts_stats?: { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; + }[]; +} + +export interface CyberDmnV1Beta1Thought { + program?: string; + trigger?: { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; + }; + load?: { + input?: string; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + gas_price?: { + denom?: string; + amount?: string; + }; + }; + name?: string; + particle?: string; +} + +export interface CyberDmnV1Beta1ThoughtStats { + program?: string; + name?: string; + /** @format uint64 */ + calls?: string; + /** @format uint64 */ + fees?: string; + /** @format uint64 */ + gas?: string; + /** @format uint64 */ + last_block?: string; +} + +export interface CyberDmnV1Beta1Trigger { + /** @format uint64 */ + period?: string; + /** @format uint64 */ + block?: string; +} + +export type CyberDmnV1Beta1MsgChangeThoughtBlockResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtGasPriceResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtInputResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtNameResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtParticleResponse = object; + +export type CyberDmnV1Beta1MsgChangeThoughtPeriodResponse = object; + +export type CyberDmnV1Beta1MsgCreateThoughtResponse = object; + +export type CyberDmnV1Beta1MsgForgetThoughtResponse = object; + +/** @example {"code":0,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ +export interface CheckTxResult { + code?: number; + data?: string; + gas_used?: number; + gas_wanted?: number; + info?: string; + log?: string; + tags?: { + key?: string; + value?: string; + }[]; +} + +/** @example {"code":5,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ +export interface DeliverTxResult { + code?: number; + data?: string; + gas_used?: number; + gas_wanted?: number; + info?: string; + log?: string; + tags?: { + key?: string; + value?: string; + }[]; +} + +export interface BroadcastTxCommitResult { + /** @example {"code":0,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ + check_tx?: { + code?: number; + data?: string; + gas_used?: number; + gas_wanted?: number; + info?: string; + log?: string; + tags?: { + key?: string; + value?: string; + }[]; + }; + /** @example {"code":5,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ + deliver_tx?: { + code?: number; + data?: string; + gas_used?: number; + gas_wanted?: number; + info?: string; + log?: string; + tags?: { + key?: string; + value?: string; + }[]; + }; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + height?: number; +} + +export interface KVPair { + key?: string; + value?: string; +} + +export type Msg = object; + +/** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ +export type Address = string; + +/** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ +export type ValidatorAddress = string; + +export interface Coin { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; +} + +/** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ +export type Hash = string; + +export interface TxQuery { + /** @example "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656" */ + hash?: string; + /** @example 368 */ + height?: number; + tx?: { + msg?: object[]; + fee?: { + gas?: string; + amount?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + }; + memo?: string; + signature?: { + /** @example "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=" */ + signature?: string; + pub_key?: { + /** @example "tendermint/PubKeySecp256k1" */ + type?: string; + /** @example "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" */ + value?: string; + }; + /** @example "0" */ + account_number?: string; + /** @example "0" */ + sequence?: string; + }; + }; + result?: { + log?: string; + /** @example "200000" */ + gas_wanted?: string; + /** @example "26354" */ + gas_used?: string; + tags?: { + key?: string; + value?: string; + }[]; + }; +} + +export interface PaginatedQueryTxs { + /** @example 1 */ + total_count?: number; + /** @example 1 */ + count?: number; + /** @example 1 */ + page_number?: number; + /** @example 1 */ + page_total?: number; + /** @example 30 */ + limit?: number; + txs?: { + /** @example "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656" */ + hash?: string; + /** @example 368 */ + height?: number; + tx?: { + msg?: object[]; + fee?: { + gas?: string; + amount?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + }; + memo?: string; + signature?: { + /** @example "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=" */ + signature?: string; + pub_key?: { + /** @example "tendermint/PubKeySecp256k1" */ + type?: string; + /** @example "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" */ + value?: string; + }; + /** @example "0" */ + account_number?: string; + /** @example "0" */ + sequence?: string; + }; + }; + result?: { + log?: string; + /** @example "200000" */ + gas_wanted?: string; + /** @example "26354" */ + gas_used?: string; + tags?: { + key?: string; + value?: string; + }[]; + }; + }[]; +} + +export interface StdTx { + msg?: object[]; + fee?: { + gas?: string; + amount?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + }; + memo?: string; + signature?: { + /** @example "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=" */ + signature?: string; + pub_key?: { + /** @example "tendermint/PubKeySecp256k1" */ + type?: string; + /** @example "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" */ + value?: string; + }; + /** @example "0" */ + account_number?: string; + /** @example "0" */ + sequence?: string; + }; +} + +export interface BlockID { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; +} + +export interface BlockHeader { + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example 1 */ + height?: number; + /** @example "2017-12-30T05:53:09.287+01:00" */ + time?: string; + /** @example 0 */ + num_txs?: number; + last_block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example 35 */ + total_txs?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_commit_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + data_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + next_validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + consensus_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + app_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_results_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + evidence_hash?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + proposer_address?: string; + version?: { + /** @example 10 */ + block?: string; + /** @example 0 */ + app?: string; + }; +} + +export interface Block { + header?: { + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example 1 */ + height?: number; + /** @example "2017-12-30T05:53:09.287+01:00" */ + time?: string; + /** @example 0 */ + num_txs?: number; + last_block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example 35 */ + total_txs?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_commit_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + data_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + next_validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + consensus_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + app_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_results_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + evidence_hash?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + proposer_address?: string; + version?: { + /** @example 10 */ + block?: string; + /** @example 0 */ + app?: string; + }; + }; + txs?: string[]; + evidence?: string[]; + last_commit?: { + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + precommits?: { + validator_address?: string; + /** @example "0" */ + validator_index?: string; + /** @example "0" */ + height?: string; + /** @example "0" */ + round?: string; + /** @example "2017-12-30T05:53:09.287+01:00" */ + timestamp?: string; + /** @example 2 */ + type?: number; + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ==" */ + signature?: string; + }[]; + }; +} + +export interface BlockQuery { + block_meta?: { + header?: { + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example 1 */ + height?: number; + /** @example "2017-12-30T05:53:09.287+01:00" */ + time?: string; + /** @example 0 */ + num_txs?: number; + last_block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example 35 */ + total_txs?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_commit_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + data_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + next_validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + consensus_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + app_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_results_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + evidence_hash?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + proposer_address?: string; + version?: { + /** @example 10 */ + block?: string; + /** @example 0 */ + app?: string; + }; + }; + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + }; + block?: { + header?: { + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example 1 */ + height?: number; + /** @example "2017-12-30T05:53:09.287+01:00" */ + time?: string; + /** @example 0 */ + num_txs?: number; + last_block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example 35 */ + total_txs?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_commit_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + data_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + next_validators_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + consensus_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + app_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + last_results_hash?: string; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + evidence_hash?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + proposer_address?: string; + version?: { + /** @example 10 */ + block?: string; + /** @example 0 */ + app?: string; + }; + }; + txs?: string[]; + evidence?: string[]; + last_commit?: { + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + precommits?: { + validator_address?: string; + /** @example "0" */ + validator_index?: string; + /** @example "0" */ + height?: string; + /** @example "0" */ + round?: string; + /** @example "2017-12-30T05:53:09.287+01:00" */ + timestamp?: string; + /** @example 2 */ + type?: number; + block_id?: { + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + parts?: { + /** @example 0 */ + total?: number; + /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ + hash?: string; + }; + }; + /** @example "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ==" */ + signature?: string; + }[]; + }; + }; +} + +export interface DelegationDelegatorReward { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + validator_address?: string; + reward?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; +} + +export interface DelegatorTotalRewards { + rewards?: { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + validator_address?: string; + reward?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + }[]; + total?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; +} + +export interface BaseReq { + /** + * Sender address or Keybase name to generate a transaction + * @example "pb1ytyfcdj0nymx9afx34mvwj6gyrped0hmfd9qyq" + */ + from?: string; + /** @example "Sent via Provenance API" */ + memo?: string; + /** @example "provenance-test-chain" */ + chain_id?: string; + /** @example "0" */ + account_number?: string; + /** @example "1" */ + sequence?: string; + /** @example "200000" */ + gas?: string; + /** @example "1.2" */ + gas_adjustment?: string; + fees?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + /** + * Estimate gas for a transaction (cannot be used in conjunction with generate_only) + * @example false + */ + simulate?: boolean; +} + +export interface TendermintValidator { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + address?: string; + /** @example "pbvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf" */ + pub_key?: string; + /** @example "1000" */ + voting_power?: string; + /** @example "1000" */ + proposer_priority?: string; +} + +export interface TextProposal { + proposal_id?: number; + title?: string; + description?: string; + proposal_type?: string; + proposal_status?: string; + final_tally_result?: { + /** @example "0.0000000000" */ + yes?: string; + /** @example "0.0000000000" */ + abstain?: string; + /** @example "0.0000000000" */ + no?: string; + /** @example "0.0000000000" */ + no_with_veto?: string; + }; + submit_time?: string; + total_deposit?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + voting_start_time?: string; +} + +export interface Proposer { + proposal_id?: string; + proposer?: string; +} + +export interface Deposit { + amount?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + proposal_id?: string; + /** + * bech32 encoded address + * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" + */ + depositor?: string; +} + +export interface TallyResult { + /** @example "0.0000000000" */ + yes?: string; + /** @example "0.0000000000" */ + abstain?: string; + /** @example "0.0000000000" */ + no?: string; + /** @example "0.0000000000" */ + no_with_veto?: string; +} + +export interface Vote { + voter?: string; + proposal_id?: string; + option?: string; +} + +export interface Validator { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + operator_address?: string; + /** @example "pbvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf" */ + consensus_pubkey?: string; + jailed?: boolean; + status?: number; + tokens?: string; + delegator_shares?: string; + description?: { + moniker?: string; + identity?: string; + website?: string; + security_contact?: string; + details?: string; + }; + /** @example "0" */ + bond_height?: string; + /** @example 0 */ + bond_intra_tx_counter?: number; + /** @example "0" */ + unbonding_height?: string; + /** @example "1970-01-01T00:00:00Z" */ + unbonding_time?: string; + commission?: { + /** @example "0" */ + rate?: string; + /** @example "0" */ + max_rate?: string; + /** @example "0" */ + max_change_rate?: string; + /** @example "1970-01-01T00:00:00Z" */ + update_time?: string; + }; +} + +export interface Delegation { + delegator_address?: string; + validator_address?: string; + shares?: string; + balance?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }; +} + +export interface UnbondingDelegationPair { + delegator_address?: string; + validator_address?: string; + entries?: { + initial_balance?: string; + balance?: string; + creation_height?: string; + min_time?: string; + }[]; +} + +export interface UnbondingEntries { + initial_balance?: string; + balance?: string; + creation_height?: string; + min_time?: string; +} + +export interface UnbondingDelegation { + delegator_address?: string; + validator_address?: string; + initial_balance?: string; + balance?: string; + creation_height?: number; + min_time?: number; +} + +export interface Redelegation { + delegator_address?: string; + validator_src_address?: string; + validator_dst_address?: string; + entries?: Redelegation[]; +} + +export interface RedelegationEntry { + creation_height?: number; + completion_time?: number; + initial_balance?: string; + balance?: string; + shares_dst?: string; +} + +export interface ValidatorDistInfo { + /** + * bech32 encoded address + * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" + */ + operator_address?: string; + self_bond_rewards?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; + val_commission?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; +} + +export interface PublicKey { + type?: string; + value?: string; +} + +export interface SigningInfo { + start_height?: string; + index_offset?: string; + jailed_until?: string; + missed_blocks_counter?: string; +} + +export interface ParamChange { + /** @example "staking" */ + subspace?: string; + /** @example "MaxValidators" */ + key?: string; + /** @example "" */ + subkey?: string; + value?: object; +} + +export interface Supply { + total?: { + /** @example "vspn" */ + denom?: string; + /** @example "5000" */ + amount?: string; + }[]; +} + +/** Params defines the parameters for the auth module. */ +export interface CosmosAuthV1Beta1Params { + /** @format uint64 */ + max_memo_characters?: string; + /** @format uint64 */ + tx_sig_limit?: string; + /** @format uint64 */ + tx_size_cost_per_byte?: string; + /** @format uint64 */ + sig_verify_cost_ed25519?: string; + /** @format uint64 */ + sig_verify_cost_secp256k1?: string; +} + +/** QueryAccountResponse is the response type for the Query/Account RPC method. */ +export interface CosmosAuthV1Beta1QueryAccountResponse { + /** account defines the account of the corresponding address. */ + account?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface CosmosAuthV1Beta1QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: { + /** @format uint64 */ + max_memo_characters?: string; + /** @format uint64 */ + tx_sig_limit?: string; + /** @format uint64 */ + tx_size_cost_per_byte?: string; + /** @format uint64 */ + sig_verify_cost_ed25519?: string; + /** @format uint64 */ + sig_verify_cost_secp256k1?: string; + }; +} + +/** + * DenomUnit represents a struct that describes a given + * denomination unit of the basic token. + */ +export interface CosmosBankV1Beta1DenomUnit { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; +} + +/** + * Metadata represents a struct that describes + * a basic token. + */ +export interface CosmosBankV1Beta1Metadata { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; +} + +/** Params defines the parameters for the bank module. */ +export interface CosmosBankV1Beta1Params { + send_enabled?: { + denom?: string; + enabled?: boolean; + }[]; + default_send_enabled?: boolean; +} + +/** + * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC + * method. + */ +export interface CosmosBankV1Beta1QueryAllBalancesResponse { + /** balances is the balances of all the coins. */ + balances?: { + denom?: string; + amount?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ +export interface CosmosBankV1Beta1QueryBalanceResponse { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; +} + +/** + * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC + * method. + */ +export interface CosmosBankV1Beta1QueryDenomMetadataResponse { + /** + * Metadata represents a struct that describes + * a basic token. + */ + metadata?: { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + }; +} + +/** + * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC + * method. + */ +export interface CosmosBankV1Beta1QueryDenomsMetadataResponse { + /** metadata provides the client information for all the registered tokens. */ + metadatas?: { + description?: string; + /** denom_units represents the list of DenomUnit's for a given coin */ + denom_units?: { + /** denom represents the string name of the given denom unit (e.g uatom). */ + denom?: string; + /** + * exponent represents power of 10 exponent that one must + * raise the base_denom to in order to equal the given DenomUnit's denom + * 1 denom = 1^exponent base_denom + * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + * exponent = 6, thus: 1 atom = 10^6 uatom). + * @format int64 + */ + exponent?: number; + /** aliases is a list of string aliases for the given denom */ + aliases?: string[]; + }[]; + /** base represents the base denom (should be the DenomUnit with exponent = 0). */ + base?: string; + /** + * display indicates the suggested denom that should be + * displayed in clients. + */ + display?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryParamsResponse defines the response type for querying x/bank parameters. */ +export interface CosmosBankV1Beta1QueryParamsResponse { + /** Params defines the parameters for the bank module. */ + params?: { + send_enabled?: { + denom?: string; + enabled?: boolean; + }[]; + default_send_enabled?: boolean; + }; +} + +/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ +export interface CosmosBankV1Beta1QuerySupplyOfResponse { + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + amount?: { + denom?: string; + amount?: string; + }; +} + +/** + * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC + * method + */ +export interface CosmosBankV1Beta1QueryTotalSupplyResponse { + /** supply is the supply of the coins */ + supply?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * SendEnabled maps coin denom to a send_enabled status (whether a denom is + * sendable). + */ +export interface CosmosBankV1Beta1SendEnabled { + denom?: string; + enabled?: boolean; +} + +/** Input models transaction input. */ +export interface CosmosBankV1Beta1Input { + address?: string; + coins?: { + denom?: string; + amount?: string; + }[]; +} + +/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ +export type CosmosBankV1Beta1MsgMultiSendResponse = object; + +/** MsgSendResponse defines the Msg/Send response type. */ +export type CosmosBankV1Beta1MsgSendResponse = object; + +/** Output models transaction outputs. */ +export interface CosmosBankV1Beta1Output { + address?: string; + coins?: { + denom?: string; + amount?: string; + }[]; +} + +/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetBlockByHeightResponse { + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + block?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; +} + +/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetLatestBlockResponse { + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + block?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; +} + +/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetLatestValidatorSetResponse { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetNodeInfoResponse { + default_node_info?: { + protocol_version?: { + /** @format uint64 */ + p2p?: string; + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + /** @format byte */ + channels?: string; + moniker?: string; + other?: { + tx_index?: string; + rpc_address?: string; + }; + }; + /** VersionInfo is the type for the GetNodeInfoResponse message. */ + application_version?: { + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: { + /** module path */ + path?: string; + /** module version */ + version?: string; + /** checksum */ + sum?: string; + }[]; + }; +} + +/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetSyncingResponse { + syncing?: boolean; +} + +/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ +export interface CosmosBaseTendermintV1Beta1GetValidatorSetByHeightResponse { + /** @format int64 */ + block_height?: string; + validators?: { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** Module is the type for VersionInfo */ +export interface CosmosBaseTendermintV1Beta1Module { + /** module path */ + path?: string; + /** module version */ + version?: string; + /** checksum */ + sum?: string; +} + +/** Validator is the type for the validator-set. */ +export interface CosmosBaseTendermintV1Beta1Validator { + address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + pub_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; +} + +/** VersionInfo is the type for the GetNodeInfoResponse message. */ +export interface CosmosBaseTendermintV1Beta1VersionInfo { + name?: string; + app_name?: string; + version?: string; + git_commit?: string; + build_tags?: string; + go_version?: string; + build_deps?: { + /** module path */ + path?: string; + /** module version */ + version?: string; + /** checksum */ + sum?: string; + }[]; +} + +/** PublicKey defines the keys available for use with Tendermint Validators */ +export interface TendermintCryptoPublicKey { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; +} + +export interface TendermintP2PDefaultNodeInfo { + protocol_version?: { + /** @format uint64 */ + p2p?: string; + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + default_node_id?: string; + listen_addr?: string; + network?: string; + version?: string; + /** @format byte */ + channels?: string; + moniker?: string; + other?: { + tx_index?: string; + rpc_address?: string; + }; +} + +export interface TendermintP2PDefaultNodeInfoOther { + tx_index?: string; + rpc_address?: string; +} + +export interface TendermintP2PProtocolVersion { + /** @format uint64 */ + p2p?: string; + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; +} + +export interface TendermintTypesBlock { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Data contains the set of transactions included in the block */ + data?: { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; + }; + evidence?: { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + last_commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; +} + +/** BlockID */ +export interface TendermintTypesBlockID { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; +} + +/** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ +export enum TendermintTypesBlockIDFlag { + BLOCK_ID_FLAG_UNKNOWN = 'BLOCK_ID_FLAG_UNKNOWN', + BLOCK_ID_FLAG_ABSENT = 'BLOCK_ID_FLAG_ABSENT', + BLOCK_ID_FLAG_COMMIT = 'BLOCK_ID_FLAG_COMMIT', + BLOCK_ID_FLAG_NIL = 'BLOCK_ID_FLAG_NIL', +} + +/** Commit contains the evidence that a block was committed by a set of validators. */ +export interface TendermintTypesCommit { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; +} + +/** CommitSig is a part of the Vote included in a Commit. */ +export interface TendermintTypesCommitSig { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; +} + +/** Data contains the set of transactions included in the block */ +export interface TendermintTypesData { + /** + * Txs that will be applied by state @ block.Height+1. + * NOTE: not all txs here are valid. We're just agreeing on the order first. + * This means that block.AppHash does not include these txs. + */ + txs?: string[]; +} + +/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ +export interface TendermintTypesDuplicateVoteEvidence { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; +} + +export interface TendermintTypesEvidence { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; +} + +export interface TendermintTypesEvidenceList { + evidence?: { + /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ + duplicate_vote_evidence?: { + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_a?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ + vote_b?: { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; + }; + /** @format int64 */ + total_voting_power?: string; + /** @format int64 */ + validator_power?: string; + /** @format date-time */ + timestamp?: string; + }; + /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ + light_client_attack_evidence?: { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; + }; + }[]; +} + +/** Header defines the structure of a Tendermint block header. */ +export interface TendermintTypesHeader { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; +} + +export interface TendermintTypesLightBlock { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; +} + +/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ +export interface TendermintTypesLightClientAttackEvidence { + conflicting_block?: { + signed_header?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: + | 'BLOCK_ID_FLAG_UNKNOWN' + | 'BLOCK_ID_FLAG_ABSENT' + | 'BLOCK_ID_FLAG_COMMIT' + | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; + }; + validator_set?: { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; + }; + }; + /** @format int64 */ + common_height?: string; + byzantine_validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + /** @format int64 */ + total_voting_power?: string; + /** @format date-time */ + timestamp?: string; +} + +/** PartsetHeader */ +export interface TendermintTypesPartSetHeader { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; +} + +export interface TendermintTypesSignedHeader { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** BlockID */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + /** Commit contains the evidence that a block was committed by a set of validators. */ + commit?: { + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + signatures?: { + /** + * BlockIdFlag indicates which BlcokID the signature is for + * @default "BLOCK_ID_FLAG_UNKNOWN" + */ + block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; + /** @format byte */ + validator_address?: string; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + signature?: string; + }[]; + }; +} + +/** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ +export enum TendermintTypesSignedMsgType { + SIGNED_MSG_TYPE_UNKNOWN = 'SIGNED_MSG_TYPE_UNKNOWN', + SIGNED_MSG_TYPE_PREVOTE = 'SIGNED_MSG_TYPE_PREVOTE', + SIGNED_MSG_TYPE_PRECOMMIT = 'SIGNED_MSG_TYPE_PRECOMMIT', + SIGNED_MSG_TYPE_PROPOSAL = 'SIGNED_MSG_TYPE_PROPOSAL', +} + +export interface TendermintTypesValidator { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; +} + +export interface TendermintTypesValidatorSet { + validators?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }[]; + proposer?: { + /** @format byte */ + address?: string; + /** PublicKey defines the keys available for use with Tendermint Validators */ + pub_key?: { + /** @format byte */ + ed25519?: string; + /** @format byte */ + secp256k1?: string; + }; + /** @format int64 */ + voting_power?: string; + /** @format int64 */ + proposer_priority?: string; + }; + /** @format int64 */ + total_voting_power?: string; +} + +/** + * Vote represents a prevote, precommit, or commit vote from validators for + * consensus. + */ +export interface TendermintTypesVote { + /** + * SignedMsgType is a type of signed message in the consensus. + * + * - SIGNED_MSG_TYPE_PREVOTE: Votes + * - SIGNED_MSG_TYPE_PROPOSAL: Proposals + * @default "SIGNED_MSG_TYPE_UNKNOWN" + */ + type?: + | 'SIGNED_MSG_TYPE_UNKNOWN' + | 'SIGNED_MSG_TYPE_PREVOTE' + | 'SIGNED_MSG_TYPE_PRECOMMIT' + | 'SIGNED_MSG_TYPE_PROPOSAL'; + /** @format int64 */ + height?: string; + /** @format int32 */ + round?: number; + /** BlockID */ + block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** @format date-time */ + timestamp?: string; + /** @format byte */ + validator_address?: string; + /** @format int32 */ + validator_index?: number; + /** @format byte */ + signature?: string; +} + +/** + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ +export interface TendermintVersionConsensus { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; +} + +/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ +export type CosmosCrisisV1Beta1MsgVerifyInvariantResponse = object; + +/** + * DecCoin defines a token with a denomination and a decimal amount. + * + * NOTE: The amount field is an Dec which implements the custom method + * signatures required by gogoproto. + */ +export interface CosmosBaseV1Beta1DecCoin { + denom?: string; + amount?: string; +} + +/** + * DelegationDelegatorReward represents the properties + * of a delegator's delegation reward. + */ +export interface CosmosDistributionV1Beta1DelegationDelegatorReward { + validator_address?: string; + reward?: { + denom?: string; + amount?: string; + }[]; +} + +/** Params defines the set of params for the distribution module. */ +export interface CosmosDistributionV1Beta1Params { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; +} + +/** + * QueryCommunityPoolResponse is the response type for the Query/CommunityPool + * RPC method. + */ +export interface CosmosDistributionV1Beta1QueryCommunityPoolResponse { + /** pool defines community pool's coins. */ + pool?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * QueryDelegationRewardsResponse is the response type for the + * Query/DelegationRewards RPC method. + */ +export interface CosmosDistributionV1Beta1QueryDelegationRewardsResponse { + /** rewards defines the rewards accrued by a delegation. */ + rewards?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * QueryDelegationTotalRewardsResponse is the response type for the + * Query/DelegationTotalRewards RPC method. + */ +export interface CosmosDistributionV1Beta1QueryDelegationTotalRewardsResponse { + /** rewards defines all the rewards accrued by a delegator. */ + rewards?: { + validator_address?: string; + reward?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** total defines the sum of all the rewards. */ + total?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * QueryDelegatorValidatorsResponse is the response type for the + * Query/DelegatorValidators RPC method. + */ +export interface CosmosDistributionV1Beta1QueryDelegatorValidatorsResponse { + /** validators defines the validators a delegator is delegating for. */ + validators?: string[]; +} + +/** + * QueryDelegatorWithdrawAddressResponse is the response type for the + * Query/DelegatorWithdrawAddress RPC method. + */ +export interface CosmosDistributionV1Beta1QueryDelegatorWithdrawAddressResponse { + /** withdraw_address defines the delegator address to query for. */ + withdraw_address?: string; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface CosmosDistributionV1Beta1QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: { + community_tax?: string; + base_proposer_reward?: string; + bonus_proposer_reward?: string; + withdraw_addr_enabled?: boolean; + }; +} + +/** + * QueryValidatorCommissionResponse is the response type for the + * Query/ValidatorCommission RPC method + */ +export interface CosmosDistributionV1Beta1QueryValidatorCommissionResponse { + /** commission defines the commision the validator received. */ + commission?: { + commission?: { + denom?: string; + amount?: string; + }[]; + }; +} + +/** + * QueryValidatorOutstandingRewardsResponse is the response type for the + * Query/ValidatorOutstandingRewards RPC method. + */ +export interface CosmosDistributionV1Beta1QueryValidatorOutstandingRewardsResponse { + /** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ + rewards?: { + rewards?: { + denom?: string; + amount?: string; + }[]; + }; +} + +/** + * QueryValidatorSlashesResponse is the response type for the + * Query/ValidatorSlashes RPC method. + */ +export interface CosmosDistributionV1Beta1QueryValidatorSlashesResponse { + /** slashes defines the slashes the validator received. */ + slashes?: { + /** @format uint64 */ + validator_period?: string; + fraction?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * ValidatorAccumulatedCommission represents accumulated commission + * for a validator kept as a running counter, can be withdrawn at any time. + */ +export interface CosmosDistributionV1Beta1ValidatorAccumulatedCommission { + commission?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + * for a validator inexpensive to track, allows simple sanity checks. + */ +export interface CosmosDistributionV1Beta1ValidatorOutstandingRewards { + rewards?: { + denom?: string; + amount?: string; + }[]; +} + +/** + * ValidatorSlashEvent represents a validator slash event. + * Height is implicit within the store key. + * This is needed to calculate appropriate amount of staking tokens + * for delegations which are withdrawn after a slash has occurred. + */ +export interface CosmosDistributionV1Beta1ValidatorSlashEvent { + /** @format uint64 */ + validator_period?: string; + fraction?: string; +} + +/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ +export type CosmosDistributionV1Beta1MsgFundCommunityPoolResponse = object; + +/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ +export type CosmosDistributionV1Beta1MsgSetWithdrawAddressResponse = object; + +/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ +export type CosmosDistributionV1Beta1MsgWithdrawDelegatorRewardResponse = object; + +/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ +export type CosmosDistributionV1Beta1MsgWithdrawValidatorCommissionResponse = object; + +/** + * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC + * method. + */ +export interface CosmosEvidenceV1Beta1QueryAllEvidenceResponse { + /** evidence returns all evidences. */ + evidence?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ +export interface CosmosEvidenceV1Beta1QueryEvidenceResponse { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + evidence?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ +export interface CosmosEvidenceV1Beta1MsgSubmitEvidenceResponse { + /** + * hash defines the hash of the evidence. + * @format byte + */ + hash?: string; +} + +/** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ +export interface CosmosGovV1Beta1Deposit { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; +} + +/** DepositParams defines the params for deposits on governance proposals. */ +export interface CosmosGovV1Beta1DepositParams { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: { + denom?: string; + amount?: string; + }[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: string; +} + +/** Proposal defines the core field members of a governance proposal. */ +export interface CosmosGovV1Beta1Proposal { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; +} + +/** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ +export enum CosmosGovV1Beta1ProposalStatus { + PROPOSAL_STATUS_UNSPECIFIED = 'PROPOSAL_STATUS_UNSPECIFIED', + PROPOSAL_STATUS_DEPOSIT_PERIOD = 'PROPOSAL_STATUS_DEPOSIT_PERIOD', + PROPOSAL_STATUS_VOTING_PERIOD = 'PROPOSAL_STATUS_VOTING_PERIOD', + PROPOSAL_STATUS_PASSED = 'PROPOSAL_STATUS_PASSED', + PROPOSAL_STATUS_REJECTED = 'PROPOSAL_STATUS_REJECTED', + PROPOSAL_STATUS_FAILED = 'PROPOSAL_STATUS_FAILED', +} + +/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ +export interface CosmosGovV1Beta1QueryDepositResponse { + /** + * Deposit defines an amount deposited by an account address to an active + * proposal. + */ + deposit?: { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; + }; +} + +/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ +export interface CosmosGovV1Beta1QueryDepositsResponse { + deposits?: { + /** @format uint64 */ + proposal_id?: string; + depositor?: string; + amount?: { + denom?: string; + amount?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface CosmosGovV1Beta1QueryParamsResponse { + /** voting_params defines the parameters related to voting. */ + voting_params?: { + /** Length of the voting period. */ + voting_period?: string; + }; + /** deposit_params defines the parameters related to deposit. */ + deposit_params?: { + /** Minimum deposit for a proposal to enter voting period. */ + min_deposit?: { + denom?: string; + amount?: string; + }[]; + /** + * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + * months. + */ + max_deposit_period?: string; + }; + /** tally_params defines the parameters related to tally. */ + tally_params?: { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + * @format byte + */ + quorum?: string; + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + * @format byte + */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + * @format byte + */ + veto_threshold?: string; + }; +} + +/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ +export interface CosmosGovV1Beta1QueryProposalResponse { + /** Proposal defines the core field members of a governance proposal. */ + proposal?: { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; + }; +} + +/** + * QueryProposalsResponse is the response type for the Query/Proposals RPC + * method. + */ +export interface CosmosGovV1Beta1QueryProposalsResponse { + proposals?: { + /** @format uint64 */ + proposal_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + content?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * ProposalStatus enumerates the valid statuses of a proposal. + * + * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + * period. + * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + * period. + * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + * passed. + * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + * been rejected. + * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + * failed. + * @default "PROPOSAL_STATUS_UNSPECIFIED" + */ + status?: + | 'PROPOSAL_STATUS_UNSPECIFIED' + | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' + | 'PROPOSAL_STATUS_VOTING_PERIOD' + | 'PROPOSAL_STATUS_PASSED' + | 'PROPOSAL_STATUS_REJECTED' + | 'PROPOSAL_STATUS_FAILED'; + /** TallyResult defines a standard tally for a governance proposal. */ + final_tally_result?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; + /** @format date-time */ + submit_time?: string; + /** @format date-time */ + deposit_end_time?: string; + total_deposit?: { + denom?: string; + amount?: string; + }[]; + /** @format date-time */ + voting_start_time?: string; + /** @format date-time */ + voting_end_time?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ +export interface CosmosGovV1Beta1QueryTallyResultResponse { + /** TallyResult defines a standard tally for a governance proposal. */ + tally?: { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; + }; +} + +/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ +export interface CosmosGovV1Beta1QueryVoteResponse { + /** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ + vote?: { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; + }; +} + +/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ +export interface CosmosGovV1Beta1QueryVotesResponse { + /** votes defined the queried votes. */ + votes?: { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** TallyParams defines the params for tallying votes on governance proposals. */ +export interface CosmosGovV1Beta1TallyParams { + /** + * Minimum percentage of total stake needed to vote for a result to be + * considered valid. + * @format byte + */ + quorum?: string; + /** + * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + * @format byte + */ + threshold?: string; + /** + * Minimum value of Veto votes to Total votes ratio for proposal to be + * vetoed. Default value: 1/3. + * @format byte + */ + veto_threshold?: string; +} + +/** TallyResult defines a standard tally for a governance proposal. */ +export interface CosmosGovV1Beta1TallyResult { + yes?: string; + abstain?: string; + no?: string; + no_with_veto?: string; +} + +/** + * Vote defines a vote on a governance proposal. + * A Vote consists of a proposal ID, the voter, and the vote option. + */ +export interface CosmosGovV1Beta1Vote { + /** @format uint64 */ + proposal_id?: string; + voter?: string; + /** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ + option?: + | 'VOTE_OPTION_UNSPECIFIED' + | 'VOTE_OPTION_YES' + | 'VOTE_OPTION_ABSTAIN' + | 'VOTE_OPTION_NO' + | 'VOTE_OPTION_NO_WITH_VETO'; +} + +/** + * VoteOption enumerates the valid vote options for a given governance proposal. + * + * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + * @default "VOTE_OPTION_UNSPECIFIED" + */ +export enum CosmosGovV1Beta1VoteOption { + VOTE_OPTION_UNSPECIFIED = 'VOTE_OPTION_UNSPECIFIED', + VOTE_OPTION_YES = 'VOTE_OPTION_YES', + VOTE_OPTION_ABSTAIN = 'VOTE_OPTION_ABSTAIN', + VOTE_OPTION_NO = 'VOTE_OPTION_NO', + VOTE_OPTION_NO_WITH_VETO = 'VOTE_OPTION_NO_WITH_VETO', +} + +/** VotingParams defines the params for voting on governance proposals. */ +export interface CosmosGovV1Beta1VotingParams { + /** Length of the voting period. */ + voting_period?: string; +} + +/** MsgDepositResponse defines the Msg/Deposit response type. */ +export type CosmosGovV1Beta1MsgDepositResponse = object; + +/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ +export interface CosmosGovV1Beta1MsgSubmitProposalResponse { + /** @format uint64 */ + proposal_id?: string; +} + +/** MsgVoteResponse defines the Msg/Vote response type. */ +export type CosmosGovV1Beta1MsgVoteResponse = object; + +/** Params holds parameters for the mint module. */ +export interface CosmosMintV1Beta1Params { + /** type of coin to mint */ + mint_denom?: string; + /** maximum annual change in inflation rate */ + inflation_rate_change?: string; + /** maximum inflation rate */ + inflation_max?: string; + /** minimum inflation rate */ + inflation_min?: string; + /** goal of percent bonded atoms */ + goal_bonded?: string; + /** + * expected blocks per year + * @format uint64 + */ + blocks_per_year?: string; +} + +/** + * QueryAnnualProvisionsResponse is the response type for the + * Query/AnnualProvisions RPC method. + */ +export interface CosmosMintV1Beta1QueryAnnualProvisionsResponse { + /** + * annual_provisions is the current minting annual provisions value. + * @format byte + */ + annual_provisions?: string; +} + +/** + * QueryInflationResponse is the response type for the Query/Inflation RPC + * method. + */ +export interface CosmosMintV1Beta1QueryInflationResponse { + /** + * inflation is the current minting inflation value. + * @format byte + */ + inflation?: string; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface CosmosMintV1Beta1QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: { + /** type of coin to mint */ + mint_denom?: string; + /** maximum annual change in inflation rate */ + inflation_rate_change?: string; + /** maximum inflation rate */ + inflation_max?: string; + /** minimum inflation rate */ + inflation_min?: string; + /** goal of percent bonded atoms */ + goal_bonded?: string; + /** + * expected blocks per year + * @format uint64 + */ + blocks_per_year?: string; + }; +} + +/** + * ParamChange defines an individual parameter change, for use in + * ParameterChangeProposal. + */ +export interface CosmosParamsV1Beta1ParamChange { + subspace?: string; + key?: string; + value?: string; +} + +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface CosmosParamsV1Beta1QueryParamsResponse { + /** param defines the queried parameter. */ + param?: { + subspace?: string; + key?: string; + value?: string; + }; +} + +/** Params represents the parameters used for by the slashing module. */ +export interface CosmosSlashingV1Beta1Params { + /** @format int64 */ + signed_blocks_window?: string; + /** @format byte */ + min_signed_per_window?: string; + downtime_jail_duration?: string; + /** @format byte */ + slash_fraction_double_sign?: string; + /** @format byte */ + slash_fraction_downtime?: string; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method */ +export interface CosmosSlashingV1Beta1QueryParamsResponse { + /** Params represents the parameters used for by the slashing module. */ + params?: { + /** @format int64 */ + signed_blocks_window?: string; + /** @format byte */ + min_signed_per_window?: string; + downtime_jail_duration?: string; + /** @format byte */ + slash_fraction_double_sign?: string; + /** @format byte */ + slash_fraction_downtime?: string; + }; +} + +/** + * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC + * method + */ +export interface CosmosSlashingV1Beta1QuerySigningInfoResponse { + /** + * val_signing_info is the signing info of requested val cons address + * ValidatorSigningInfo defines a validator's signing info for monitoring their + * liveness activity. + */ + val_signing_info?: { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; + }; +} + +/** + * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC + * method + */ +export interface CosmosSlashingV1Beta1QuerySigningInfosResponse { + /** info is the signing info of all validators */ + info?: { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; + }[]; + /** + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * ValidatorSigningInfo defines a validator's signing info for monitoring their + * liveness activity. + */ +export interface CosmosSlashingV1Beta1ValidatorSigningInfo { + address?: string; + /** + * height at which validator was first a candidate OR was unjailed + * @format int64 + */ + start_height?: string; + /** + * index offset into signed block bit array + * @format int64 + */ + index_offset?: string; + /** + * timestamp validator cannot be unjailed until + * @format date-time + */ + jailed_until?: string; + /** + * whether or not a validator has been tombstoned (killed out of validator + * set) + */ + tombstoned?: boolean; + /** + * missed blocks counter (to avoid scanning the array every time) + * @format int64 + */ + missed_blocks_counter?: string; +} + +/** MsgUnjailResponse defines the Msg/Unjail response type */ +export type CosmosSlashingV1Beta1MsgUnjailResponse = object; + +/** + * BondStatus is the status of a validator. + * + * - BOND_STATUS_UNSPECIFIED: UNSPECIFIED defines an invalid validator status. + * - BOND_STATUS_UNBONDED: UNBONDED defines a validator that is not bonded. + * - BOND_STATUS_UNBONDING: UNBONDING defines a validator that is unbonding. + * - BOND_STATUS_BONDED: BONDED defines a validator that is bonded. + * @default "BOND_STATUS_UNSPECIFIED" + */ +export enum CosmosStakingV1Beta1BondStatus { + BOND_STATUS_UNSPECIFIED = 'BOND_STATUS_UNSPECIFIED', + BOND_STATUS_UNBONDED = 'BOND_STATUS_UNBONDED', + BOND_STATUS_UNBONDING = 'BOND_STATUS_UNBONDING', + BOND_STATUS_BONDED = 'BOND_STATUS_BONDED', +} + +/** Commission defines commission parameters for a given validator. */ +export interface CosmosStakingV1Beta1Commission { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; +} + +/** + * CommissionRates defines the initial commission rates to be used for creating + * a validator. + */ +export interface CosmosStakingV1Beta1CommissionRates { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; +} + +/** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ +export interface CosmosStakingV1Beta1Delegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; +} + +/** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ +export interface CosmosStakingV1Beta1DelegationResponse { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; +} + +/** Description defines a validator description. */ +export interface CosmosStakingV1Beta1Description { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; +} + +/** + * HistoricalInfo contains header and validator information for a given block. + * It is stored as part of staking module's state, which persists the `n` most + * recent HistoricalInfo + * (`n` is set by the staking module's `historical_entries` parameter). + */ +export interface CosmosStakingV1Beta1HistoricalInfo { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** prev block info */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + valset?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; +} + +/** Params defines the parameters for the staking module. */ +export interface CosmosStakingV1Beta1Params { + /** unbonding_time is the time duration of unbonding. */ + unbonding_time?: string; + /** + * max_validators is the maximum number of validators. + * @format int64 + */ + max_validators?: number; + /** + * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). + * @format int64 + */ + max_entries?: number; + /** + * historical_entries is the number of historical entries to persist. + * @format int64 + */ + historical_entries?: number; + /** bond_denom defines the bondable coin denomination. */ + bond_denom?: string; +} + +/** + * Pool is used for tracking bonded and not-bonded token supply of the bond + * denomination. + */ +export interface CosmosStakingV1Beta1Pool { + not_bonded_tokens?: string; + bonded_tokens?: string; +} + +/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ +export interface CosmosStakingV1Beta1QueryDelegationResponse { + /** + * DelegationResponse is equivalent to Delegation except that it contains a + * balance in addition to shares which is more suitable for client responses. + */ + delegation_response?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }; +} + +/** + * QueryDelegatorDelegationsResponse is response type for the + * Query/DelegatorDelegations RPC method. + */ +export interface CosmosStakingV1Beta1QueryDelegatorDelegationsResponse { + /** delegation_responses defines all the delegations' info of a delegator. */ + delegation_responses?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryUnbondingDelegatorDelegationsResponse is response type for the + * Query/UnbondingDelegatorDelegations RPC method. + */ +export interface CosmosStakingV1Beta1QueryDelegatorUnbondingDelegationsResponse { + unbonding_responses?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryDelegatorValidatorResponse response type for the + * Query/DelegatorValidator RPC method. + */ +export interface CosmosStakingV1Beta1QueryDelegatorValidatorResponse { + /** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ + validator?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }; +} + +/** + * QueryDelegatorValidatorsResponse is response type for the + * Query/DelegatorValidators RPC method. + */ +export interface CosmosStakingV1Beta1QueryDelegatorValidatorsResponse { + /** validators defines the the validators' info of a delegator. */ + validators?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC + * method. + */ +export interface CosmosStakingV1Beta1QueryHistoricalInfoResponse { + /** hist defines the historical info at the given height. */ + hist?: { + /** Header defines the structure of a Tendermint block header. */ + header?: { + /** + * basic block info + * Consensus captures the consensus rules for processing a block in the blockchain, + * including all blockchain data structures and the rules of the application's + * state transition machine. + */ + version?: { + /** @format uint64 */ + block?: string; + /** @format uint64 */ + app?: string; + }; + chain_id?: string; + /** @format int64 */ + height?: string; + /** @format date-time */ + time?: string; + /** prev block info */ + last_block_id?: { + /** @format byte */ + hash?: string; + /** PartsetHeader */ + part_set_header?: { + /** @format int64 */ + total?: number; + /** @format byte */ + hash?: string; + }; + }; + /** + * hashes of block data + * @format byte + */ + last_commit_hash?: string; + /** @format byte */ + data_hash?: string; + /** + * hashes from the app output from the prev block + * @format byte + */ + validators_hash?: string; + /** @format byte */ + next_validators_hash?: string; + /** @format byte */ + consensus_hash?: string; + /** @format byte */ + app_hash?: string; + /** @format byte */ + last_results_hash?: string; + /** + * consensus info + * @format byte + */ + evidence_hash?: string; + /** @format byte */ + proposer_address?: string; + }; + valset?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + }; +} + +/** QueryParamsResponse is response type for the Query/Params RPC method. */ +export interface CosmosStakingV1Beta1QueryParamsResponse { + /** params holds all the parameters of this module. */ + params?: { + /** unbonding_time is the time duration of unbonding. */ + unbonding_time?: string; + /** + * max_validators is the maximum number of validators. + * @format int64 + */ + max_validators?: number; + /** + * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). + * @format int64 + */ + max_entries?: number; + /** + * historical_entries is the number of historical entries to persist. + * @format int64 + */ + historical_entries?: number; + /** bond_denom defines the bondable coin denomination. */ + bond_denom?: string; + }; +} + +/** QueryPoolResponse is response type for the Query/Pool RPC method. */ +export interface CosmosStakingV1Beta1QueryPoolResponse { + /** pool defines the pool info. */ + pool?: { + not_bonded_tokens?: string; + bonded_tokens?: string; + }; +} + +/** + * QueryRedelegationsResponse is response type for the Query/Redelegations RPC + * method. + */ +export interface CosmosStakingV1Beta1QueryRedelegationsResponse { + redelegation_responses?: { + /** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ + redelegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }[]; + }; + entries?: { + /** RedelegationEntry defines a redelegation object with relevant metadata. */ + redelegation_entry?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }; + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryDelegationResponse is response type for the Query/UnbondingDelegation + * RPC method. + */ +export interface CosmosStakingV1Beta1QueryUnbondingDelegationResponse { + /** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ + unbond?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }; +} + +/** + * QueryValidatorDelegationsResponse is response type for the + * Query/ValidatorDelegations RPC method + */ +export interface CosmosStakingV1Beta1QueryValidatorDelegationsResponse { + delegation_responses?: { + /** + * Delegation represents the bond with tokens held by an account. It is + * owned by one delegator, and is associated with the voting power of one + * validator. + */ + delegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** shares define the delegation shares received. */ + shares?: string; + }; + /** + * Coin defines a token with a denomination and an amount. + * + * NOTE: The amount field is an Int which implements the custom method + * signatures required by gogoproto. + */ + balance?: { + denom?: string; + amount?: string; + }; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryValidatorResponse is response type for the Query/Validator RPC method */ +export interface CosmosStakingV1Beta1QueryValidatorResponse { + /** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ + validator?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }; +} + +/** + * QueryValidatorUnbondingDelegationsResponse is response type for the + * Query/ValidatorUnbondingDelegations RPC method. + */ +export interface CosmosStakingV1Beta1QueryValidatorUnbondingDelegationsResponse { + unbonding_responses?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ +export interface CosmosStakingV1Beta1QueryValidatorsResponse { + /** validators contains all the queried validators. */ + validators?: { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ +export interface CosmosStakingV1Beta1Redelegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }[]; +} + +/** RedelegationEntry defines a redelegation object with relevant metadata. */ +export interface CosmosStakingV1Beta1RedelegationEntry { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; +} + +/** + * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it + * contains a balance in addition to shares which is more suitable for client + * responses. + */ +export interface CosmosStakingV1Beta1RedelegationEntryResponse { + /** RedelegationEntry defines a redelegation object with relevant metadata. */ + redelegation_entry?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }; + balance?: string; +} + +/** + * RedelegationResponse is equivalent to a Redelegation except that its entries + * contain a balance in addition to shares which is more suitable for client + * responses. + */ +export interface CosmosStakingV1Beta1RedelegationResponse { + /** + * Redelegation contains the list of a particular delegator's redelegating bonds + * from a particular source validator to a particular destination validator. + */ + redelegation?: { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_src_address is the validator redelegation source operator address. */ + validator_src_address?: string; + /** validator_dst_address is the validator redelegation destination operator address. */ + validator_dst_address?: string; + /** entries are the redelegation entries. */ + entries?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }[]; + }; + entries?: { + /** RedelegationEntry defines a redelegation object with relevant metadata. */ + redelegation_entry?: { + /** + * creation_height defines the height which the redelegation took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time defines the unix time for redelegation completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the initial balance when redelegation started. */ + initial_balance?: string; + /** shares_dst is the amount of destination-validator shares created by redelegation. */ + shares_dst?: string; + }; + balance?: string; + }[]; +} + +/** + * UnbondingDelegation stores all of a single delegator's unbonding bonds + * for a single validator in an time-ordered list. + */ +export interface CosmosStakingV1Beta1UnbondingDelegation { + /** delegator_address is the bech32-encoded address of the delegator. */ + delegator_address?: string; + /** validator_address is the bech32-encoded address of the validator. */ + validator_address?: string; + /** entries are the unbonding delegation entries. */ + entries?: { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; + }[]; +} + +/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ +export interface CosmosStakingV1Beta1UnbondingDelegationEntry { + /** + * creation_height is the height which the unbonding took place. + * @format int64 + */ + creation_height?: string; + /** + * completion_time is the unix time for unbonding completion. + * @format date-time + */ + completion_time?: string; + /** initial_balance defines the tokens initially scheduled to receive at completion. */ + initial_balance?: string; + /** balance defines the tokens to receive at completion. */ + balance?: string; +} + +/** + * Validator defines a validator, together with the total amount of the + * Validator's bond shares and their exchange rate to coins. Slashing results in + * a decrease in the exchange rate, allowing correct calculation of future + * undelegations without iterating over delegators. When coins are delegated to + * this validator, the validator is credited with a delegation whose number of + * bond shares is based on the amount of coins delegated divided by the current + * exchange rate. Voting power can be calculated as total bonded shares + * multiplied by exchange rate. + */ +export interface CosmosStakingV1Beta1Validator { + /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ + operator_address?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_pubkey?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** jailed defined whether the validator has been jailed from bonded status or not. */ + jailed?: boolean; + /** + * status is the validator status (bonded/unbonding/unbonded). + * @default "BOND_STATUS_UNSPECIFIED" + */ + status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; + /** tokens define the delegated tokens (incl. self-delegation). */ + tokens?: string; + /** delegator_shares defines total shares issued to a validator's delegators. */ + delegator_shares?: string; + /** description defines the description terms for the validator. */ + description?: { + /** moniker defines a human-readable name for the validator. */ + moniker?: string; + /** identity defines an optional identity signature (ex. UPort or Keybase). */ + identity?: string; + /** website defines an optional website link. */ + website?: string; + /** security_contact defines an optional email for security contact. */ + security_contact?: string; + /** details define other optional details. */ + details?: string; + }; + /** + * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + * @format int64 + */ + unbonding_height?: string; + /** + * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + * @format date-time + */ + unbonding_time?: string; + /** commission defines the commission parameters. */ + commission?: { + /** commission_rates defines the initial commission rates to be used for creating a validator. */ + commission_rates?: { + /** rate is the commission rate charged to delegators, as a fraction. */ + rate?: string; + /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ + max_rate?: string; + /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ + max_change_rate?: string; + }; + /** + * update_time is the last time the commission rate was changed. + * @format date-time + */ + update_time?: string; + }; + /** min_self_delegation is the validator's self declared minimum self delegation. */ + min_self_delegation?: string; +} + +/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ +export interface CosmosStakingV1Beta1MsgBeginRedelegateResponse { + /** @format date-time */ + completion_time?: string; +} + +/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ +export type CosmosStakingV1Beta1MsgCreateValidatorResponse = object; + +/** MsgDelegateResponse defines the Msg/Delegate response type. */ +export type CosmosStakingV1Beta1MsgDelegateResponse = object; + +/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ +export type CosmosStakingV1Beta1MsgEditValidatorResponse = object; + +/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ +export interface CosmosStakingV1Beta1MsgUndelegateResponse { + /** @format date-time */ + completion_time?: string; +} + +/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ +export interface CosmosBaseAbciV1Beta1ABCIMessageLog { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; +} + +/** + * Attribute defines an attribute wrapper where the key and value are + * strings instead of raw bytes. + */ +export interface CosmosBaseAbciV1Beta1Attribute { + key?: string; + value?: string; +} + +/** GasInfo defines tx execution gas context. */ +export interface CosmosBaseAbciV1Beta1GasInfo { + /** + * GasWanted is the maximum units of work we allow this tx to perform. + * @format uint64 + */ + gas_wanted?: string; + /** + * GasUsed is the amount of gas actually consumed. + * @format uint64 + */ + gas_used?: string; +} + +/** Result is the union of ResponseFormat and ResponseCheckTx. */ +export interface CosmosBaseAbciV1Beta1Result { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * @format byte + */ + data?: string; + /** Log contains the log information from message or handler execution. */ + log?: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events?: { + type?: string; + attributes?: { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; + }[]; + }[]; +} + +/** + * StringEvent defines en Event object wrapper where all the attributes + * contain key/value pairs that are strings instead of raw bytes. + */ +export interface CosmosBaseAbciV1Beta1StringEvent { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; +} + +/** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ +export interface CosmosBaseAbciV1Beta1TxResponse { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; +} + +/** + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ +export interface CosmosCryptoMultisigV1Beta1CompactBitArray { + /** @format int64 */ + extra_bits_stored?: number; + /** @format byte */ + elems?: string; +} + +/** + * SignMode represents a signing mode with its own security guarantees. + * + * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected + * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx + * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT + * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future + * @default "SIGN_MODE_UNSPECIFIED" + */ +export enum CosmosTxSigningV1Beta1SignMode { + SIGN_MODE_UNSPECIFIED = 'SIGN_MODE_UNSPECIFIED', + SIGN_MODE_DIRECT = 'SIGN_MODE_DIRECT', + SIGN_MODE_TEXTUAL = 'SIGN_MODE_TEXTUAL', + SIGN_MODE_LEGACY_AMINO_JSON = 'SIGN_MODE_LEGACY_AMINO_JSON', +} + +/** + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ +export interface CosmosTxV1Beta1AuthInfo { + /** + * signer_infos defines the signing modes for the required signers. The number + * and order of elements must match the required signers from TxBody's + * messages. The first element is the primary signer and the one which pays + * the fee. + */ + signer_infos?: CosmosTxV1Beta1SignerInfo[]; + /** + * Fee is the fee and gas limit for the transaction. The first signer is the + * primary signer and the one which pays the fee. The fee can be calculated + * based on the cost of evaluating the body and doing signature verification + * of the signers. This can be estimated via simulation. + */ + fee?: { + /** amount is the amount of coins to be paid as a fee */ + amount?: { + denom?: string; + amount?: string; + }[]; + /** + * gas_limit is the maximum gas that can be used in transaction processing + * before an out of gas error occurs + * @format uint64 + */ + gas_limit?: string; + /** + * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + * the payer must be a tx signer (and thus have signed this field in AuthInfo). + * setting this field does *not* change the ordering of required signers for the transaction. + */ + payer?: string; + /** + * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + * not support fee grants, this will fail + */ + granter?: string; + }; +} + +/** + * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. + * + * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering + * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + * @default "BROADCAST_MODE_UNSPECIFIED" + */ +export enum CosmosTxV1Beta1BroadcastMode { + BROADCAST_MODE_UNSPECIFIED = 'BROADCAST_MODE_UNSPECIFIED', + BROADCAST_MODE_BLOCK = 'BROADCAST_MODE_BLOCK', + BROADCAST_MODE_SYNC = 'BROADCAST_MODE_SYNC', + BROADCAST_MODE_ASYNC = 'BROADCAST_MODE_ASYNC', +} + +/** + * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest + * RPC method. + */ +export interface CosmosTxV1Beta1BroadcastTxRequest { + /** + * tx_bytes is the raw transaction. + * @format byte + */ + tx_bytes?: string; + /** + * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. + * + * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering + * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + * the tx to be committed in a block. + * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + * a CheckTx execution response only. + * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + * immediately. + * @default "BROADCAST_MODE_UNSPECIFIED" + */ + mode?: 'BROADCAST_MODE_UNSPECIFIED' | 'BROADCAST_MODE_BLOCK' | 'BROADCAST_MODE_SYNC' | 'BROADCAST_MODE_ASYNC'; +} + +/** + * BroadcastTxResponse is the response type for the + * Service.BroadcastTx method. + */ +export interface CosmosTxV1Beta1BroadcastTxResponse { + /** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ + tx_response?: { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + }; +} + +/** + * Fee includes the amount of coins paid in fees and the maximum + * gas to be used by the transaction. The ratio yields an effective "gasprice", + * which must be above some miminum to be accepted into the mempool. + */ +export interface CosmosTxV1Beta1Fee { + /** amount is the amount of coins to be paid as a fee */ + amount?: { + denom?: string; + amount?: string; + }[]; + /** + * gas_limit is the maximum gas that can be used in transaction processing + * before an out of gas error occurs + * @format uint64 + */ + gas_limit?: string; + /** + * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. + * the payer must be a tx signer (and thus have signed this field in AuthInfo). + * setting this field does *not* change the ordering of required signers for the transaction. + */ + payer?: string; + /** + * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used + * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does + * not support fee grants, this will fail + */ + granter?: string; +} + +/** GetTxResponse is the response type for the Service.GetTx method. */ +export interface CosmosTxV1Beta1GetTxResponse { + /** tx is the queried transaction. */ + tx?: CosmosTxV1Beta1Tx; + /** + * TxResponse defines a structure containing relevant tx data and metadata. The + * tags are stringified and the log is JSON decoded. + */ + tx_response?: { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + }; +} + +/** + * GetTxsEventResponse is the response type for the Service.TxsByEvents + * RPC method. + */ +export interface CosmosTxV1Beta1GetTxsEventResponse { + /** txs is the list of queried transactions. */ + txs?: CosmosTxV1Beta1Tx[]; + /** tx_responses is the list of queried TxResponses. */ + tx_responses?: { + /** + * The block height + * @format int64 + */ + height?: string; + /** The transaction hash. */ + txhash?: string; + /** Namespace for the Code */ + codespace?: string; + /** + * Response code. + * @format int64 + */ + code?: number; + /** Result bytes, if any. */ + data?: string; + /** + * The output of the application's logger (raw string). May be + * non-deterministic. + */ + raw_log?: string; + /** The output of the application's logger (typed). May be non-deterministic. */ + logs?: { + /** @format int64 */ + msg_index?: number; + log?: string; + /** + * Events contains a slice of Event objects that were emitted during some + * execution. + */ + events?: { + type?: string; + attributes?: { + key?: string; + value?: string; + }[]; + }[]; + }[]; + /** Additional information. May be non-deterministic. */ + info?: string; + /** + * Amount of gas requested for transaction. + * @format int64 + */ + gas_wanted?: string; + /** + * Amount of gas consumed by transaction. + * @format int64 + */ + gas_used?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + tx?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * Time of the previous block. For heights > 1, it's the weighted median of + * the timestamps of the valid votes in the block.LastCommit. For height == 1, + * it's genesis time. + */ + timestamp?: string; + }[]; + /** pagination defines an pagination for the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** ModeInfo describes the signing mode of a single or nested multisig signer. */ +export interface CosmosTxV1Beta1ModeInfo { + /** single represents a single signer */ + single?: { + /** + * mode is the signing mode of the single signer + * SignMode represents a signing mode with its own security guarantees. + * + * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected + * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx + * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT + * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future + * @default "SIGN_MODE_UNSPECIFIED" + */ + mode?: 'SIGN_MODE_UNSPECIFIED' | 'SIGN_MODE_DIRECT' | 'SIGN_MODE_TEXTUAL' | 'SIGN_MODE_LEGACY_AMINO_JSON'; + }; + /** multi represents a nested multisig signer */ + multi?: CosmosTxV1Beta1ModeInfoMulti; +} + +/** Multi is the mode info for a multisig public key */ +export interface CosmosTxV1Beta1ModeInfoMulti { + /** + * bitarray specifies which keys within the multisig are signing + * CompactBitArray is an implementation of a space efficient bit array. + * This is used to ensure that the encoded data takes up a minimal amount of + * space after proto encoding. + * This is not thread safe, and is not intended for concurrent usage. + */ + bitarray?: { + /** @format int64 */ + extra_bits_stored?: number; + /** @format byte */ + elems?: string; + }; + /** + * mode_infos is the corresponding modes of the signers of the multisig + * which could include nested multisig public keys + */ + mode_infos?: CosmosTxV1Beta1ModeInfo[]; +} + +/** + * Single is the mode info for a single signer. It is structured as a message + * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the + * future + */ +export interface CosmosTxV1Beta1ModeInfoSingle { + /** + * mode is the signing mode of the single signer + * SignMode represents a signing mode with its own security guarantees. + * + * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + * rejected + * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + * verified with raw bytes from Tx + * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some + * human-readable textual representation on top of the binary representation + * from SIGN_MODE_DIRECT + * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + * Amino JSON and will be removed in the future + * @default "SIGN_MODE_UNSPECIFIED" + */ + mode?: 'SIGN_MODE_UNSPECIFIED' | 'SIGN_MODE_DIRECT' | 'SIGN_MODE_TEXTUAL' | 'SIGN_MODE_LEGACY_AMINO_JSON'; +} + +/** + * OrderBy defines the sorting order + * - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + * - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order + * - ORDER_BY_DESC: ORDER_BY_DESC defines descending order + * @default "ORDER_BY_UNSPECIFIED" + */ +export enum CosmosTxV1Beta1OrderBy { + ORDER_BY_UNSPECIFIED = 'ORDER_BY_UNSPECIFIED', + ORDER_BY_ASC = 'ORDER_BY_ASC', + ORDER_BY_DESC = 'ORDER_BY_DESC', +} + +/** + * SignerInfo describes the public key and signing mode of a single top-level + * signer. + */ +export interface CosmosTxV1Beta1SignerInfo { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + public_key?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * mode_info describes the signing mode of the signer and is a nested + * structure to support nested multisig pubkey's + * ModeInfo describes the signing mode of a single or nested multisig signer. + */ + mode_info?: CosmosTxV1Beta1ModeInfo; + /** + * sequence is the sequence of the account, which describes the + * number of committed transactions signed by a given address. It is used to + * prevent replay attacks. + * @format uint64 + */ + sequence?: string; +} + +/** + * SimulateRequest is the request type for the Service.Simulate + * RPC method. + */ +export interface CosmosTxV1Beta1SimulateRequest { + /** tx is the transaction to simulate. */ + tx?: CosmosTxV1Beta1Tx; +} + +/** + * SimulateResponse is the response type for the + * Service.SimulateRPC method. + */ +export interface CosmosTxV1Beta1SimulateResponse { + /** gas_info is the information about gas used in the simulation. */ + gas_info?: { + /** + * GasWanted is the maximum units of work we allow this tx to perform. + * @format uint64 + */ + gas_wanted?: string; + /** + * GasUsed is the amount of gas actually consumed. + * @format uint64 + */ + gas_used?: string; + }; + /** result is the result of the simulation. */ + result?: { + /** + * Data is any data returned from message or handler execution. It MUST be + * length prefixed in order to separate data from multiple message executions. + * @format byte + */ + data?: string; + /** Log contains the log information from message or handler execution. */ + log?: string; + /** + * Events contains a slice of Event objects that were emitted during message + * or handler execution. + */ + events?: { + type?: string; + attributes?: { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; + }[]; + }[]; + }; +} + +/** Tx is the standard type used for broadcasting transactions. */ +export interface CosmosTxV1Beta1Tx { + /** + * body is the processable content of the transaction + * TxBody is the body of a transaction that all signers sign over. + */ + body?: { + /** + * messages is a list of messages to be executed. The required signers of + * those messages define the number and order of elements in AuthInfo's + * signer_infos and Tx's signatures. Each required signer address is added to + * the list only the first time it occurs. + * By convention, the first required signer (usually from the first message) + * is referred to as the primary signer and pays the fee for the whole + * transaction. + */ + messages?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** memo is any arbitrary memo to be added to the transaction */ + memo?: string; + /** + * timeout is the block height after which this transaction will not + * be processed by the chain + * @format uint64 + */ + timeout_height?: string; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, the transaction will be rejected + */ + extension_options?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, they will be ignored + */ + non_critical_extension_options?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + }; + /** + * auth_info is the authorization related content of the transaction, + * specifically signers, signer modes and fee + * AuthInfo describes the fee and signer modes that are used to sign a + * transaction. + */ + auth_info?: CosmosTxV1Beta1AuthInfo; + /** + * signatures is a list of signatures that matches the length and order of + * AuthInfo's signer_infos to allow connecting signature meta information like + * public key and signing mode by position. + */ + signatures?: string[]; +} + +/** TxBody is the body of a transaction that all signers sign over. */ +export interface CosmosTxV1Beta1TxBody { + /** + * messages is a list of messages to be executed. The required signers of + * those messages define the number and order of elements in AuthInfo's + * signer_infos and Tx's signatures. Each required signer address is added to + * the list only the first time it occurs. + * By convention, the first required signer (usually from the first message) + * is referred to as the primary signer and pays the fee for the whole + * transaction. + */ + messages?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** memo is any arbitrary memo to be added to the transaction */ + memo?: string; + /** + * timeout is the block height after which this transaction will not + * be processed by the chain + * @format uint64 + */ + timeout_height?: string; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, the transaction will be rejected + */ + extension_options?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; + /** + * extension_options are arbitrary options that can be added by chains + * when the default options are not sufficient. If any of these are present + * and can't be handled, they will be ignored + */ + non_critical_extension_options?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }[]; +} + +/** + * Event allows application developers to attach additional information to + * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. + * Later, transactions may be queried using these events. + */ +export interface TendermintAbciEvent { + type?: string; + attributes?: { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; + }[]; +} + +/** EventAttribute is a single key-value pair, associated with an event. */ +export interface TendermintAbciEventAttribute { + /** @format byte */ + key?: string; + /** @format byte */ + value?: string; + index?: boolean; +} + +/** Plan specifies information about a planned upgrade and when it should occur. */ +export interface CosmosUpgradeV1Beta1Plan { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name?: string; + /** + * The time after which the upgrade must be performed. + * Leave set to its zero value to use a pre-defined Height instead. + * @format date-time + */ + time?: string; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + * @format int64 + */ + height?: string; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info?: string; + /** + * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan + * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, + * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the + * previous version of the chain. + * This will allow IBC connections to persist smoothly across planned chain upgrades + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** + * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC + * method. + */ +export interface CosmosUpgradeV1Beta1QueryAppliedPlanResponse { + /** + * height is the block height at which the plan was applied. + * @format int64 + */ + height?: string; +} + +/** + * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC + * method. + */ +export interface CosmosUpgradeV1Beta1QueryCurrentPlanResponse { + /** plan is the current upgrade plan. */ + plan?: { + /** + * Sets the name for the upgrade. This name will be used by the upgraded + * version of the software to apply any special "on-upgrade" commands during + * the first BeginBlock method after the upgrade is applied. It is also used + * to detect whether a software version can handle a given upgrade. If no + * upgrade handler with this name has been set in the software, it will be + * assumed that the software is out-of-date when the upgrade Time or Height is + * reached and the software will exit. + */ + name?: string; + /** + * The time after which the upgrade must be performed. + * Leave set to its zero value to use a pre-defined Height instead. + * @format date-time + */ + time?: string; + /** + * The height at which the upgrade must be performed. + * Only used if Time is not set. + * @format int64 + */ + height?: string; + /** + * Any application specific upgrade info to be included on-chain + * such as a git commit that validators could automatically upgrade to + */ + info?: string; + /** + * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan + * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, + * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the + * previous version of the chain. + * This will allow IBC connections to persist smoothly across planned chain upgrades + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; +} + +/** + * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState + * RPC method. + */ +export interface CosmosUpgradeV1Beta1QueryUpgradedConsensusStateResponse { + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + upgraded_consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ +export type CosmosVestingV1Beta1MsgCreateVestingAccountResponse = object; + +/** + * AbsoluteTxPosition is a unique transaction position that allows for global + * ordering of transactions. + */ +export interface CosmwasmWasmV1Beta1AbsoluteTxPosition { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; +} + +/** CodeInfoResponse contains code meta data from CodeInfo */ +export interface CosmwasmWasmV1Beta1CodeInfoResponse { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; +} + +/** ContractCodeHistoryEntry metadata to a contract. */ +export interface CosmwasmWasmV1Beta1ContractCodeHistoryEntry { + /** + * ContractCodeHistoryOperationType actions that caused a code change + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data + * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" + */ + operation?: + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'; + /** + * CodeID is the reference to the stored WASM code + * @format uint64 + */ + code_id?: string; + /** Updated Tx position when the operation was executed. */ + updated?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + /** @format byte */ + msg?: string; +} + +/** + * ContractCodeHistoryOperationType actions that caused a code change + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data + * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" + */ +export enum CosmwasmWasmV1Beta1ContractCodeHistoryOperationType { + CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED', + CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT', + CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE', + CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS', +} + +/** ContractInfo stores a WASM contract instance */ +export interface CosmwasmWasmV1Beta1ContractInfo { + /** + * CodeID is the reference to the stored Wasm code + * @format uint64 + */ + code_id?: string; + /** Creator address who initially instantiated the contract */ + creator?: string; + /** Admin is an optional address that can execute migrations */ + admin?: string; + /** Label is optional metadata to be stored with a contract instance. */ + label?: string; + /** + * Created Tx position when the contract was instantiated. + * This data should kept internal and not be exposed via query results. Just + * use for sorting + * AbsoluteTxPosition is a unique transaction position that allows for global + * ordering of transactions. + */ + created?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + ibc_port_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + extension?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** Model is a struct that holds a KV pair */ +export interface CosmwasmWasmV1Beta1Model { + /** + * hex-encode key to read it better (this is often ascii) + * @format byte + */ + key?: string; + /** + * base64-encode raw value + * @format byte + */ + value?: string; +} + +/** + * QueryAllContractStateResponse is the response type for the + * Query/AllContractState RPC method + */ +export interface CosmwasmWasmV1Beta1QueryAllContractStateResponse { + models?: { + /** + * hex-encode key to read it better (this is often ascii) + * @format byte + */ + key?: string; + /** + * base64-encode raw value + * @format byte + */ + value?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryCodeResponse is the response type for the Query/Code RPC method */ +export interface CosmwasmWasmV1Beta1QueryCodeResponse { + /** CodeInfoResponse contains code meta data from CodeInfo */ + code_info?: { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; + }; + /** @format byte */ + data?: string; +} + +/** QueryCodesResponse is the response type for the Query/Codes RPC method */ +export interface CosmwasmWasmV1Beta1QueryCodesResponse { + code_infos?: { + /** @format uint64 */ + code_id?: string; + creator?: string; + /** @format byte */ + data_hash?: string; + source?: string; + builder?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryContractHistoryResponse is the response type for the + * Query/ContractHistory RPC method + */ +export interface CosmwasmWasmV1Beta1QueryContractHistoryResponse { + entries?: { + /** + * ContractCodeHistoryOperationType actions that caused a code change + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration + * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data + * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" + */ + operation?: + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' + | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'; + /** + * CodeID is the reference to the stored WASM code + * @format uint64 + */ + code_id?: string; + /** Updated Tx position when the operation was executed. */ + updated?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + /** @format byte */ + msg?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryContractInfoResponse is the response type for the Query/ContractInfo RPC + * method + */ +export interface CosmwasmWasmV1Beta1QueryContractInfoResponse { + /** address is the address of the contract */ + address?: string; + /** ContractInfo stores a WASM contract instance */ + contract_info?: { + /** + * CodeID is the reference to the stored Wasm code + * @format uint64 + */ + code_id?: string; + /** Creator address who initially instantiated the contract */ + creator?: string; + /** Admin is an optional address that can execute migrations */ + admin?: string; + /** Label is optional metadata to be stored with a contract instance. */ + label?: string; + /** + * Created Tx position when the contract was instantiated. + * This data should kept internal and not be exposed via query results. Just + * use for sorting + * AbsoluteTxPosition is a unique transaction position that allows for global + * ordering of transactions. + */ + created?: { + /** + * BlockHeight is the block the contract was created at + * @format uint64 + */ + block_height?: string; + /** + * TxIndex is a monotonic counter within the block (actual transaction index, + * or gas consumed) + * @format uint64 + */ + tx_index?: string; + }; + ibc_port_id?: string; + /** + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + extension?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; +} + +/** + * QueryContractsByCodeResponse is the response type for the + * Query/ContractsByCode RPC method + */ +export interface CosmwasmWasmV1Beta1QueryContractsByCodeResponse { + /** contracts are a set of contract addresses */ + contracts?: string[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryRawContractStateResponse is the response type for the + * Query/RawContractState RPC method + */ +export interface CosmwasmWasmV1Beta1QueryRawContractStateResponse { + /** + * Data contains the raw store data + * @format byte + */ + data?: string; +} + +/** + * QuerySmartContractStateResponse is the response type for the + * Query/SmartContractState RPC method + */ +export interface CosmwasmWasmV1Beta1QuerySmartContractStateResponse { + /** + * Data contains the json data returned from the smart contract + * @format byte + */ + data?: string; +} + +/** AccessConfig access control type. */ +export interface CosmwasmWasmV1Beta1AccessConfig { + /** + * AccessType permission types + * - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value + * - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden + * - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to an address + * - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted + * @default "ACCESS_TYPE_UNSPECIFIED" + */ + permission?: 'ACCESS_TYPE_UNSPECIFIED' | 'ACCESS_TYPE_NOBODY' | 'ACCESS_TYPE_ONLY_ADDRESS' | 'ACCESS_TYPE_EVERYBODY'; + address?: string; +} + +/** + * AccessType permission types + * - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value + * - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden + * - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to an address + * - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted + * @default "ACCESS_TYPE_UNSPECIFIED" + */ +export enum CosmwasmWasmV1Beta1AccessType { + ACCESS_TYPE_UNSPECIFIED = 'ACCESS_TYPE_UNSPECIFIED', + ACCESS_TYPE_NOBODY = 'ACCESS_TYPE_NOBODY', + ACCESS_TYPE_ONLY_ADDRESS = 'ACCESS_TYPE_ONLY_ADDRESS', + ACCESS_TYPE_EVERYBODY = 'ACCESS_TYPE_EVERYBODY', +} + +/** MsgClearAdminResponse returns empty data */ +export type CosmwasmWasmV1Beta1MsgClearAdminResponse = object; + +/** MsgExecuteContractResponse returns execution result data. */ +export interface CosmwasmWasmV1Beta1MsgExecuteContractResponse { + /** + * Data contains base64-encoded bytes to returned from the contract + * @format byte + */ + data?: string; +} + +/** MsgInstantiateContractResponse return instantiation result data */ +export interface CosmwasmWasmV1Beta1MsgInstantiateContractResponse { + /** Address is the bech32 address of the new contract instance. */ + address?: string; + /** + * Data contains base64-encoded bytes to returned from the contract + * @format byte + */ + data?: string; +} + +/** MsgMigrateContractResponse returns contract migration result data. */ +export interface CosmwasmWasmV1Beta1MsgMigrateContractResponse { + /** + * Data contains same raw bytes returned as data from the wasm contract. + * (May be empty) + * @format byte + */ + data?: string; +} + +/** MsgStoreCodeResponse returns store result data. */ +export interface CosmwasmWasmV1Beta1MsgStoreCodeResponse { + /** + * CodeID is the reference to the stored WASM code + * @format uint64 + */ + code_id?: string; +} + +/** MsgUpdateAdminResponse returns empty data */ +export type CosmwasmWasmV1Beta1MsgUpdateAdminResponse = object; + +/** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ +export interface IbcApplicationsTransferV1DenomTrace { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; +} + +/** + * Params defines the set of IBC transfer parameters. + * NOTE: To prevent a single token from being transferred, set the + * TransfersEnabled parameter to true and then set the bank module's SendEnabled + * parameter for the denomination to false. + */ +export interface IbcApplicationsTransferV1Params { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + send_enabled?: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receive_enabled?: boolean; +} + +/** + * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC + * method. + */ +export interface IbcApplicationsTransferV1QueryDenomTraceResponse { + /** + * DenomTrace contains the base denomination for ICS20 fungible tokens and the + * source tracing information path. + */ + denom_trace?: { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; + }; +} + +/** + * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC + * method. + */ +export interface IbcApplicationsTransferV1QueryDenomTracesResponse { + /** denom_traces returns all denominations trace information. */ + denom_traces?: { + /** + * path defines the chain of port/channel identifiers used for tracing the + * source of the fungible token. + */ + path?: string; + /** base denomination of the relayed fungible token. */ + base_denom?: string; + }[]; + /** pagination defines the pagination in the response. */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** QueryParamsResponse is the response type for the Query/Params RPC method. */ +export interface IbcApplicationsTransferV1QueryParamsResponse { + /** params defines the parameters of the module. */ + params?: { + /** + * send_enabled enables or disables all cross-chain token transfers from this + * chain. + */ + send_enabled?: boolean; + /** + * receive_enabled enables or disables all cross-chain token transfers to this + * chain. + */ + receive_enabled?: boolean; + }; +} + +/** MsgTransferResponse defines the Msg/Transfer response type. */ +export type IbcApplicationsTransferV1MsgTransferResponse = object; + +/** + * Height is a monotonically increasing data type + * that can be compared against another Height for the purposes of updating and + * freezing clients + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ +export interface IbcCoreClientV1Height { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; +} + +/** + * Channel defines pipeline for exactly-once packet delivery between specific + * modules on separate blockchains, which has at least one end capable of + * sending packets and one end capable of receiving packets. + */ +export interface IbcCoreChannelV1Channel { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; +} + +/** Counterparty defines a channel end counterparty */ +export interface IbcCoreChannelV1Counterparty { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; +} + +/** + * IdentifiedChannel defines a channel with additional port and channel + * identifier fields. + */ +export interface IbcCoreChannelV1IdentifiedChannel { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; +} + +/** + * Order defines if a channel is ORDERED or UNORDERED + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ +export enum IbcCoreChannelV1Order { + ORDER_NONE_UNSPECIFIED = 'ORDER_NONE_UNSPECIFIED', + ORDER_UNORDERED = 'ORDER_UNORDERED', + ORDER_ORDERED = 'ORDER_ORDERED', +} + +/** + * PacketState defines the generic type necessary to retrieve and store + * packet commitments, acknowledgements, and receipts. + * Caller is responsible for knowing the context necessary to interpret this + * state as a commitment, acknowledgement, or a receipt. + */ +export interface IbcCoreChannelV1PacketState { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; +} + +/** + * QueryChannelClientStateResponse is the Response type for the + * Query/QueryChannelClientState RPC method + */ +export interface IbcCoreChannelV1QueryChannelClientStateResponse { + /** + * client state associated with the channel + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ + identified_client_state?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryChannelClientStateResponse is the Response type for the + * Query/QueryChannelClientState RPC method + */ +export interface IbcCoreChannelV1QueryChannelConsensusStateResponse { + /** + * consensus state associated with the channel + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** client ID associated with the consensus state */ + client_id?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryChannelResponse is the response type for the Query/Channel RPC method. + * Besides the Channel end, it includes a proof and the height from which the + * proof was retrieved. + */ +export interface IbcCoreChannelV1QueryChannelResponse { + /** + * channel associated with the request identifiers + * Channel defines pipeline for exactly-once packet delivery between specific + * modules on separate blockchains, which has at least one end capable of + * sending packets and one end capable of receiving packets. + */ + channel?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** QueryChannelsResponse is the response type for the Query/Channels RPC method. */ +export interface IbcCoreChannelV1QueryChannelsResponse { + /** list of stored channels of the chain. */ + channels?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionChannelsResponse is the Response type for the + * Query/QueryConnectionChannels RPC method + */ +export interface IbcCoreChannelV1QueryConnectionChannelsResponse { + /** list of channels associated with a connection. */ + channels?: { + /** + * current state of the channel end + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; + /** + * whether the channel is ordered or unordered + * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + * which they were sent. + * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + * @default "ORDER_NONE_UNSPECIFIED" + */ + ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; + /** counterparty channel end */ + counterparty?: { + /** port on the counterparty chain which owns the other end of the channel. */ + port_id?: string; + /** channel end on the counterparty chain */ + channel_id?: string; + }; + /** + * list of connection identifiers, in order, along which packets sent on + * this channel will travel + */ + connection_hops?: string[]; + /** opaque channel version, which is agreed upon during the handshake */ + version?: string; + /** port identifier */ + port_id?: string; + /** channel identifier */ + channel_id?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QuerySequenceResponse is the request type for the + * Query/QueryNextSequenceReceiveResponse RPC method + */ +export interface IbcCoreChannelV1QueryNextSequenceReceiveResponse { + /** + * next sequence receive number + * @format uint64 + */ + next_sequence_receive?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketAcknowledgementResponse defines the client query response for a + * packet which also includes a proof and the height from which the + * proof was retrieved + */ +export interface IbcCoreChannelV1QueryPacketAcknowledgementResponse { + /** + * packet associated with the request fields + * @format byte + */ + acknowledgement?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketAcknowledgemetsResponse is the request type for the + * Query/QueryPacketAcknowledgements RPC method + */ +export interface IbcCoreChannelV1QueryPacketAcknowledgementsResponse { + acknowledgements?: { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketCommitmentResponse defines the client query response for a packet + * which also includes a proof and the height from which the proof was + * retrieved + */ +export interface IbcCoreChannelV1QueryPacketCommitmentResponse { + /** + * packet associated with the request fields + * @format byte + */ + commitment?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketCommitmentsResponse is the request type for the + * Query/QueryPacketCommitments RPC method + */ +export interface IbcCoreChannelV1QueryPacketCommitmentsResponse { + commitments?: { + /** channel port identifier. */ + port_id?: string; + /** channel unique identifier. */ + channel_id?: string; + /** + * packet sequence. + * @format uint64 + */ + sequence?: string; + /** + * embedded data that represents packet state. + * @format byte + */ + data?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryPacketReceiptResponse defines the client query response for a packet receipt + * which also includes a proof, and the height from which the proof was + * retrieved + */ +export interface IbcCoreChannelV1QueryPacketReceiptResponse { + /** success flag for if receipt exists */ + received?: boolean; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryUnreceivedAcksResponse is the response type for the + * Query/UnreceivedAcks RPC method + */ +export interface IbcCoreChannelV1QueryUnreceivedAcksResponse { + /** list of unreceived acknowledgement sequences */ + sequences?: string[]; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryUnreceivedPacketsResponse is the response type for the + * Query/UnreceivedPacketCommitments RPC method + */ +export interface IbcCoreChannelV1QueryUnreceivedPacketsResponse { + /** list of unreceived packet sequences */ + sequences?: string[]; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * State defines if a channel is in one of the following states: + * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A channel has just started the opening handshake. + * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + * - STATE_OPEN: A channel has completed the handshake. Open channels are + * ready to send and receive packets. + * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + * packets. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ +export enum IbcCoreChannelV1State { + STATE_UNINITIALIZED_UNSPECIFIED = 'STATE_UNINITIALIZED_UNSPECIFIED', + STATE_INIT = 'STATE_INIT', + STATE_TRYOPEN = 'STATE_TRYOPEN', + STATE_OPEN = 'STATE_OPEN', + STATE_CLOSED = 'STATE_CLOSED', +} + +/** + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ +export interface IbcCoreClientV1IdentifiedClientState { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ +export type IbcCoreChannelV1MsgAcknowledgementResponse = object; + +/** MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response type. */ +export type IbcCoreChannelV1MsgChannelCloseConfirmResponse = object; + +/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ +export type IbcCoreChannelV1MsgChannelCloseInitResponse = object; + +/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ +export type IbcCoreChannelV1MsgChannelOpenAckResponse = object; + +/** MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response type. */ +export type IbcCoreChannelV1MsgChannelOpenConfirmResponse = object; + +/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ +export type IbcCoreChannelV1MsgChannelOpenInitResponse = object; + +/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ +export type IbcCoreChannelV1MsgChannelOpenTryResponse = object; + +/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ +export type IbcCoreChannelV1MsgRecvPacketResponse = object; + +/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ +export type IbcCoreChannelV1MsgTimeoutOnCloseResponse = object; + +/** MsgTimeoutResponse defines the Msg/Timeout response type. */ +export type IbcCoreChannelV1MsgTimeoutResponse = object; + +/** Packet defines a type that carries data across different chains through IBC */ +export interface IbcCoreChannelV1Packet { + /** + * number corresponds to the order of sends and receives, where a Packet + * with an earlier sequence number must be sent and received before a Packet + * with a later sequence number. + * @format uint64 + */ + sequence?: string; + /** identifies the port on the sending chain. */ + source_port?: string; + /** identifies the channel end on the sending chain. */ + source_channel?: string; + /** identifies the port on the receiving chain. */ + destination_port?: string; + /** identifies the channel end on the receiving chain. */ + destination_channel?: string; + /** + * actual opaque bytes transferred directly to the application module + * @format byte + */ + data?: string; + /** + * block height after which the packet times out + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + timeout_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + /** + * block timestamp (in nanoseconds) after which the packet times out + * @format uint64 + */ + timeout_timestamp?: string; +} + +/** ConsensusStateWithHeight defines a consensus state with an additional height field. */ +export interface IbcCoreClientV1ConsensusStateWithHeight { + /** + * consensus state height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + /** + * consensus state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; +} + +/** Params defines the set of IBC light client parameters. */ +export interface IbcCoreClientV1Params { + /** allowed_clients defines the list of allowed client state types. */ + allowed_clients?: string[]; +} + +/** QueryClientParamsResponse is the response type for the Query/ClientParams RPC method. */ +export interface IbcCoreClientV1QueryClientParamsResponse { + /** params defines the parameters of the module. */ + params?: { + /** allowed_clients defines the list of allowed client state types. */ + allowed_clients?: string[]; + }; +} + +/** + * QueryClientStateResponse is the response type for the Query/ClientState RPC + * method. Besides the client state, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface IbcCoreClientV1QueryClientStateResponse { + /** + * client state associated with the request identifier + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryClientStatesResponse is the response type for the Query/ClientStates RPC + * method. + */ +export interface IbcCoreClientV1QueryClientStatesResponse { + /** list of stored ClientStates of the chain. */ + client_states?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** + * QueryConsensusStateResponse is the response type for the Query/ConsensusState + * RPC method + */ +export interface IbcCoreClientV1QueryConsensusStateResponse { + /** + * consensus state associated with the client identifier at the given height + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConsensusStatesResponse is the response type for the + * Query/ConsensusStates RPC method + */ +export interface IbcCoreClientV1QueryConsensusStatesResponse { + /** consensus states associated with the identifier */ + consensus_states?: { + /** + * consensus state height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; + /** + * consensus state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; +} + +/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ +export type IbcCoreClientV1MsgCreateClientResponse = object; + +/** MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response type. */ +export type IbcCoreClientV1MsgSubmitMisbehaviourResponse = object; + +/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ +export type IbcCoreClientV1MsgUpdateClientResponse = object; + +/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ +export type IbcCoreClientV1MsgUpgradeClientResponse = object; + +/** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + */ +export interface IbcCoreCommitmentV1MerklePrefix { + /** @format byte */ + key_prefix?: string; +} + +/** + * ConnectionEnd defines a stateful object on a chain connected to another + * separate one. + * NOTE: there must only be 2 defined ConnectionEnds to establish + * a connection between two chains. + */ +export interface IbcCoreConnectionV1ConnectionEnd { + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection. + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period that must pass before a consensus state can be used for packet-verification + * NOTE: delay period logic is only implemented by some clients. + * @format uint64 + */ + delay_period?: string; +} + +/** Counterparty defines the counterparty chain associated with a connection end. */ +export interface IbcCoreConnectionV1Counterparty { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; +} + +/** + * IdentifiedConnection defines a connection with additional connection + * identifier field. + */ +export interface IbcCoreConnectionV1IdentifiedConnection { + /** connection identifier. */ + id?: string; + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period associated with this connection. + * @format uint64 + */ + delay_period?: string; +} + +/** + * QueryClientConnectionsResponse is the response type for the + * Query/ClientConnections RPC method + */ +export interface IbcCoreConnectionV1QueryClientConnectionsResponse { + /** slice of all the connection paths associated with a client. */ + connection_paths?: string[]; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was generated + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionClientStateResponse is the response type for the + * Query/ConnectionClientState RPC method + */ +export interface IbcCoreConnectionV1QueryConnectionClientStateResponse { + /** + * client state associated with the channel + * IdentifiedClientState defines a client state with an additional client + * identifier field. + */ + identified_client_state?: { + /** client identifier */ + client_id?: string; + /** + * client state + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + client_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionConsensusStateResponse is the response type for the + * Query/ConnectionConsensusState RPC method + */ +export interface IbcCoreConnectionV1QueryConnectionConsensusStateResponse { + /** + * consensus state associated with the channel + * `Any` contains an arbitrary serialized protocol buffer message along with a + * URL that describes the type of the serialized message. + * + * Protobuf library provides support to pack/unpack Any values in the form + * of utility functions or additional generated methods of the Any type. + * + * Example 1: Pack and unpack a message in C++. + * + * Foo foo = ...; + * Any any; + * any.PackFrom(foo); + * ... + * if (any.UnpackTo(&foo)) { + * ... + * } + * + * Example 2: Pack and unpack a message in Java. + * + * Foo foo = ...; + * Any any = Any.pack(foo); + * ... + * if (any.is(Foo.class)) { + * foo = any.unpack(Foo.class); + * } + * + * Example 3: Pack and unpack a message in Python. + * + * foo = Foo(...) + * any = Any() + * any.Pack(foo) + * ... + * if any.Is(Foo.DESCRIPTOR): + * any.Unpack(foo) + * ... + * + * Example 4: Pack and unpack a message in Go + * + * foo := &pb.Foo{...} + * any, err := ptypes.MarshalAny(foo) + * ... + * foo := &pb.Foo{} + * if err := ptypes.UnmarshalAny(any, foo); err != nil { + * ... + * } + * + * The pack methods provided by protobuf library will by default use + * 'type.googleapis.com/full.type.name' as the type URL and the unpack + * methods only use the fully qualified type name after the last '/' + * in the type URL, for example "foo.bar.com/x/y.z" will yield type + * name "y.z". + * + * + * JSON + * ==== + * The JSON representation of an `Any` value uses the regular + * representation of the deserialized, embedded message, with an + * additional field `@type` which contains the type URL. Example: + * + * package google.profile; + * message Person { + * string first_name = 1; + * string last_name = 2; + * } + * + * { + * "@type": "type.googleapis.com/google.profile.Person", + * "firstName": , + * "lastName": + * } + * + * If the embedded message type is well-known and has a custom JSON + * representation, that representation will be embedded adding a field + * `value` which holds the custom JSON in addition to the `@type` + * field. Example (for message [google.protobuf.Duration][]): + * + * { + * "@type": "type.googleapis.com/google.protobuf.Duration", + * "value": "1.212s" + * } + */ + consensus_state?: { + /** + * A URL/resource name that uniquely identifies the type of the serialized + * protocol buffer message. This string must contain at least + * one "/" character. The last segment of the URL's path must represent + * the fully qualified name of the type (as in + * `path/google.protobuf.Duration`). The name should be in a canonical form + * (e.g., leading "." is not accepted). + * + * In practice, teams usually precompile into the binary all types that they + * expect it to use in the context of Any. However, for URLs which use the + * scheme `http`, `https`, or no scheme, one can optionally set up a type + * server that maps type URLs to message definitions as follows: + * + * * If no scheme is provided, `https` is assumed. + * * An HTTP GET on the URL must yield a [google.protobuf.Type][] + * value in binary format, or produce an error. + * * Applications are allowed to cache lookup results based on the + * URL, or have them precompiled into a binary to avoid any + * lookup. Therefore, binary compatibility needs to be preserved + * on changes to types. (Use versioned type names to manage + * breaking changes.) + * + * Note: this functionality is not currently available in the official + * protobuf release, and it is not used for type URLs beginning with + * type.googleapis.com. + * + * Schemes other than `http`, `https` (or the empty scheme) might be + * used with implementation specific semantics. + */ + type_url?: string; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @format byte + */ + value?: string; + }; + /** client ID associated with the consensus state */ + client_id?: string; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionResponse is the response type for the Query/Connection RPC + * method. Besides the connection end, it includes a proof and the height from + * which the proof was retrieved. + */ +export interface IbcCoreConnectionV1QueryConnectionResponse { + /** + * connection associated with the request identifier + * ConnectionEnd defines a stateful object on a chain connected to another + * separate one. + * NOTE: there must only be 2 defined ConnectionEnds to establish + * a connection between two chains. + */ + connection?: { + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection. + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period that must pass before a consensus state can be used for packet-verification + * NOTE: delay period logic is only implemented by some clients. + * @format uint64 + */ + delay_period?: string; + }; + /** + * merkle proof of existence + * @format byte + */ + proof?: string; + /** + * height at which the proof was retrieved + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + proof_height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * QueryConnectionsResponse is the response type for the Query/Connections RPC + * method. + */ +export interface IbcCoreConnectionV1QueryConnectionsResponse { + /** list of stored connections of the chain. */ + connections?: { + /** connection identifier. */ + id?: string; + /** client associated with this connection. */ + client_id?: string; + /** + * IBC version which can be utilised to determine encodings or protocols for + * channels or packets utilising this connection + */ + versions?: { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; + }[]; + /** + * current state of the connection end. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ + state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; + /** counterparty chain associated with this connection. */ + counterparty?: { + /** + * identifies the client on the counterparty chain associated with a given + * connection. + */ + client_id?: string; + /** + * identifies the connection end on the counterparty chain associated with a + * given connection. + */ + connection_id?: string; + /** + * MerklePrefix is merkle path prefixed to the key. + * The constructed key from the Path and the key will be append(Path.KeyPath, + * append(Path.KeyPrefix, key...)) + * commitment merkle prefix of the counterparty chain. + */ + prefix?: { + /** @format byte */ + key_prefix?: string; + }; + }; + /** + * delay period associated with this connection. + * @format uint64 + */ + delay_period?: string; + }[]; + /** + * pagination response + * PageResponse is to be embedded in gRPC response messages where the + * corresponding request message has used PageRequest. + * + * message SomeResponse { + * repeated Bar results = 1; + * PageResponse page = 2; + * } + */ + pagination?: { + /** + * next_key is the key to be passed to PageRequest.key to + * query the next page most efficiently + * @format byte + */ + next_key?: string; + /** + * total is total number of results available if PageRequest.count_total + * was set, its value is undefined otherwise + * @format uint64 + */ + total?: string; + }; + /** + * query block height + * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber + * the same. However some consensus algorithms may choose to reset the + * height in certain conditions e.g. hard forks, state-machine breaking changes + * In these cases, the RevisionNumber is incremented so that height continues to + * be monitonically increasing even as the RevisionHeight gets reset + */ + height?: { + /** + * the revision that the client is currently on + * @format uint64 + */ + revision_number?: string; + /** + * the height within the given revision + * @format uint64 + */ + revision_height?: string; + }; +} + +/** + * State defines if a connection is in one of the following states: + * INIT, TRYOPEN, OPEN or UNINITIALIZED. + * + * - STATE_UNINITIALIZED_UNSPECIFIED: Default State + * - STATE_INIT: A connection end has just started the opening handshake. + * - STATE_TRYOPEN: A connection end has acknowledged the handshake step on the counterparty + * chain. + * - STATE_OPEN: A connection end has completed the handshake. + * @default "STATE_UNINITIALIZED_UNSPECIFIED" + */ +export enum IbcCoreConnectionV1State { + STATE_UNINITIALIZED_UNSPECIFIED = 'STATE_UNINITIALIZED_UNSPECIFIED', + STATE_INIT = 'STATE_INIT', + STATE_TRYOPEN = 'STATE_TRYOPEN', + STATE_OPEN = 'STATE_OPEN', +} + +/** + * Version defines the versioning scheme used to negotiate the IBC verison in + * the connection handshake. + */ +export interface IbcCoreConnectionV1Version { + /** unique version identifier */ + identifier?: string; + /** list of features compatible with the specified identifier */ + features?: string[]; +} + +/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ +export type IbcCoreConnectionV1MsgConnectionOpenAckResponse = object; + +/** MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm response type. */ +export type IbcCoreConnectionV1MsgConnectionOpenConfirmResponse = object; + +/** MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response type. */ +export type IbcCoreConnectionV1MsgConnectionOpenInitResponse = object; + +/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ +export type IbcCoreConnectionV1MsgConnectionOpenTryResponse = object; diff --git a/src/generated/http-client.ts b/src/generated/http-client.ts new file mode 100644 index 000000000..68118472f --- /dev/null +++ b/src/generated/http-client.ts @@ -0,0 +1,141 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, HeadersDefaults, ResponseType } from 'axios'; +import axios from 'axios'; + +export type QueryParamsType = Record; + +export interface FullRequestParams extends Omit { + /** set parameter to `true` for call `securityWorker` for this request */ + secure?: boolean; + /** request path */ + path: string; + /** content type of request body */ + type?: ContentType; + /** query params */ + query?: QueryParamsType; + /** format of response (i.e. response.json() -> format: "json") */ + format?: ResponseType; + /** request body */ + body?: unknown; +} + +export type RequestParams = Omit; + +export interface ApiConfig extends Omit { + securityWorker?: ( + securityData: SecurityDataType | null + ) => Promise | AxiosRequestConfig | void; + secure?: boolean; + format?: ResponseType; +} + +export enum ContentType { + Json = 'application/json', + FormData = 'multipart/form-data', + UrlEncoded = 'application/x-www-form-urlencoded', + Text = 'text/plain', +} + +export class HttpClient { + public instance: AxiosInstance; + private securityData: SecurityDataType | null = null; + private securityWorker?: ApiConfig['securityWorker']; + private secure?: boolean; + private format?: ResponseType; + + constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig = {}) { + this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || '' }); + this.secure = secure; + this.format = format; + this.securityWorker = securityWorker; + } + + public setSecurityData = (data: SecurityDataType | null) => { + this.securityData = data; + }; + + protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig { + const method = params1.method || (params2 && params2.method); + + return { + ...this.instance.defaults, + ...params1, + ...(params2 || {}), + headers: { + ...((method && this.instance.defaults.headers[method.toLowerCase() as keyof HeadersDefaults]) || {}), + ...(params1.headers || {}), + ...((params2 && params2.headers) || {}), + }, + }; + } + + protected stringifyFormItem(formItem: unknown) { + if (typeof formItem === 'object' && formItem !== null) { + return JSON.stringify(formItem); + } else { + return `${formItem}`; + } + } + + protected createFormData(input: Record): FormData { + return Object.keys(input || {}).reduce((formData, key) => { + const property = input[key]; + const propertyContent: any[] = property instanceof Array ? property : [property]; + + for (const formItem of propertyContent) { + const isFileType = formItem instanceof Blob || formItem instanceof File; + formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem)); + } + + return formData; + }, new FormData()); + } + + public request = async ({ + secure, + path, + type, + query, + format, + body, + ...params + }: FullRequestParams): Promise> => { + const secureParams = + ((typeof secure === 'boolean' ? secure : this.secure) && + this.securityWorker && + (await this.securityWorker(this.securityData))) || + {}; + const requestParams = this.mergeRequestParams(params, secureParams); + const responseFormat = format || this.format || undefined; + + if (type === ContentType.FormData && body && body !== null && typeof body === 'object') { + body = this.createFormData(body as Record); + } + + if (type === ContentType.Text && body && body !== null && typeof body !== 'string') { + body = JSON.stringify(body); + } + + return this.instance.request({ + ...requestParams, + headers: { + ...(requestParams.headers || {}), + ...(type && type !== ContentType.FormData ? { 'Content-Type': type } : {}), + }, + params: query, + responseType: responseFormat, + data: body, + url: path, + }); + }; +} diff --git a/src/generated/lcd.ts b/src/generated/lcd.ts deleted file mode 100644 index 0ad0c90a6..000000000 --- a/src/generated/lcd.ts +++ /dev/null @@ -1,27851 +0,0 @@ -/* eslint-disable */ -/* tslint:disable */ -/* - * --------------------------------------------------------------- - * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## - * ## ## - * ## AUTHOR: acacode ## - * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## - * --------------------------------------------------------------- - */ - -export interface CyberGraphV1Beta1QueryGraphStatsResponse { - /** @format uint64 */ - cyberlinks?: string; - /** @format uint64 */ - particles?: string; -} - -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface GoogleProtobufAny { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; -} - -export interface GrpcGatewayRuntimeError { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; -} - -export interface CyberGraphV1Beta1Link { - from?: string; - to?: string; -} - -export type CyberGraphV1Beta1MsgCyberlinkResponse = object; - -export interface CyberBaseQueryV1Beta1PageRequest { - /** @format int64 */ - page?: number; - /** @format int64 */ - per_page?: number; -} - -export interface CyberBaseQueryV1Beta1PageResponse { - /** @format int64 */ - total?: number; -} - -export interface CyberRankV1Beta1Params { - /** @format int64 */ - calculation_period?: string; - damping_factor?: string; - tolerance?: string; -} - -export interface CyberRankV1Beta1QueryKarmaResponse { - /** @format uint64 */ - karma?: string; -} - -export interface CyberRankV1Beta1QueryLinkExistResponse { - /** @format boolean */ - exist?: boolean; -} - -export interface CyberRankV1Beta1QueryNegentropyParticleResponse { - /** @format uint64 */ - entropy?: string; -} - -export interface CyberRankV1Beta1QueryNegentropyResponse { - /** @format uint64 */ - negentropy?: string; -} - -export interface CyberRankV1Beta1QueryParamsResponse { - params?: { - /** @format int64 */ - calculation_period?: string; - damping_factor?: string; - tolerance?: string; - }; -} - -export interface CyberRankV1Beta1QueryRankResponse { - /** @format uint64 */ - rank?: string; -} - -export interface CyberRankV1Beta1QuerySearchResponse { - result?: { - particle?: string; - /** @format uint64 */ - rank?: string; - }[]; - pagination?: { - /** @format int64 */ - total?: number; - }; -} - -export interface CyberRankV1Beta1RankedParticle { - particle?: string; - /** @format uint64 */ - rank?: string; -} - -/** DecProto defines a Protobuf wrapper around a Dec object. */ -export interface CosmosBaseV1Beta1DecProto { - dec?: string; -} - -export interface CyberBandwidthV1Beta1NeuronBandwidth { - neuron?: string; - /** @format uint64 */ - remained_value?: string; - /** @format uint64 */ - last_updated_block?: string; - /** @format uint64 */ - max_value?: string; -} - -export interface CyberBandwidthV1Beta1Params { - /** @format uint64 */ - recovery_period?: string; - /** @format uint64 */ - adjust_price_period?: string; - base_price?: string; - base_load?: string; - /** @format uint64 */ - max_block_bandwidth?: string; -} - -export interface CyberBandwidthV1Beta1QueryLoadResponse { - /** DecProto defines a Protobuf wrapper around a Dec object. */ - load?: { - dec?: string; - }; -} - -export interface CyberBandwidthV1Beta1QueryNeuronBandwidthResponse { - neuron_bandwidth?: { - neuron?: string; - /** @format uint64 */ - remained_value?: string; - /** @format uint64 */ - last_updated_block?: string; - /** @format uint64 */ - max_value?: string; - }; -} - -export interface CyberBandwidthV1Beta1QueryParamsResponse { - params?: { - /** @format uint64 */ - recovery_period?: string; - /** @format uint64 */ - adjust_price_period?: string; - base_price?: string; - base_load?: string; - /** @format uint64 */ - max_block_bandwidth?: string; - }; -} - -export interface CyberBandwidthV1Beta1QueryPriceResponse { - /** DecProto defines a Protobuf wrapper around a Dec object. */ - price?: { - dec?: string; - }; -} - -export interface CyberBandwidthV1Beta1QueryTotalBandwidthResponse { - /** @format uint64 */ - total_bandwidth?: string; -} - -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - */ -export interface CosmosBaseQueryV1Beta1PageRequest { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - key?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - offset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - limit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - * @format boolean - */ - count_total?: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * @format boolean - */ - reverse?: boolean; -} - -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ -export interface CosmosBaseQueryV1Beta1PageResponse { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; -} - -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ -export interface CosmosBaseV1Beta1Coin { - denom?: string; - amount?: string; -} - -export interface CyberGridV1Beta1Params { - /** @format int64 */ - max_routes?: number; -} - -export interface CyberGridV1Beta1QueryParamsResponse { - params?: { - /** @format int64 */ - max_routes?: number; - }; -} - -export interface CyberGridV1Beta1QueryRouteResponse { - route?: { - source?: string; - destination?: string; - name?: string; - value?: { - denom?: string; - amount?: string; - }[]; - }; -} - -export interface CyberGridV1Beta1QueryRoutedEnergyResponse { - value?: { - denom?: string; - amount?: string; - }[]; -} - -export interface CyberGridV1Beta1QueryRoutesResponse { - routes?: { - source?: string; - destination?: string; - name?: string; - value?: { - denom?: string; - amount?: string; - }[]; - }[]; - /** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -export interface CyberGridV1Beta1Route { - source?: string; - destination?: string; - name?: string; - value?: { - denom?: string; - amount?: string; - }[]; -} - -export type CyberGridV1Beta1MsgCreateRouteResponse = object; - -export type CyberGridV1Beta1MsgDeleteRouteResponse = object; - -export type CyberGridV1Beta1MsgEditRouteNameResponse = object; - -export type CyberGridV1Beta1MsgEditRouteResponse = object; - -export interface CyberResourcesV1Beta1Params { - /** @format int64 */ - max_slots?: number; - /** @format int64 */ - halving_period_volt_blocks?: number; - /** @format int64 */ - halving_period_ampere_blocks?: number; - /** @format int64 */ - base_investmint_period_volt?: number; - /** @format int64 */ - base_investmint_period_ampere?: number; - /** @format int64 */ - min_investmint_period?: number; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - base_investmint_amount_volt?: { - denom?: string; - amount?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - base_investmint_amount_ampere?: { - denom?: string; - amount?: string; - }; -} - -export interface CyberResourcesV1Beta1QueryInvestmintResponse { - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - amount?: { - denom?: string; - amount?: string; - }; -} - -export interface CyberResourcesV1Beta1QueryParamsResponse { - params?: { - /** @format int64 */ - max_slots?: number; - /** @format int64 */ - halving_period_volt_blocks?: number; - /** @format int64 */ - halving_period_ampere_blocks?: number; - /** @format int64 */ - base_investmint_period_volt?: number; - /** @format int64 */ - base_investmint_period_ampere?: number; - /** @format int64 */ - min_investmint_period?: number; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - base_investmint_amount_volt?: { - denom?: string; - amount?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - base_investmint_amount_ampere?: { - denom?: string; - amount?: string; - }; - }; -} - -export type CyberResourcesV1Beta1MsgInvestmintResponse = object; - -export interface CyberDmnV1Beta1Load { - input?: string; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - gas_price?: { - denom?: string; - amount?: string; - }; -} - -export interface CyberDmnV1Beta1Params { - /** @format int64 */ - max_slots?: number; - /** @format int64 */ - max_gas?: number; - /** @format int64 */ - fee_ttl?: number; -} - -export interface CyberDmnV1Beta1QueryParamsResponse { - params?: { - /** @format int64 */ - max_slots?: number; - /** @format int64 */ - max_gas?: number; - /** @format int64 */ - fee_ttl?: number; - }; -} - -export interface CyberDmnV1Beta1QueryThoughtResponse { - thought?: { - program?: string; - trigger?: { - /** @format uint64 */ - period?: string; - /** @format uint64 */ - block?: string; - }; - load?: { - input?: string; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - gas_price?: { - denom?: string; - amount?: string; - }; - }; - name?: string; - particle?: string; - }; -} - -export interface CyberDmnV1Beta1QueryThoughtStatsResponse { - thought_stats?: { - program?: string; - name?: string; - /** @format uint64 */ - calls?: string; - /** @format uint64 */ - fees?: string; - /** @format uint64 */ - gas?: string; - /** @format uint64 */ - last_block?: string; - }; -} - -export interface CyberDmnV1Beta1QueryThoughtsResponse { - thoughts?: { - program?: string; - trigger?: { - /** @format uint64 */ - period?: string; - /** @format uint64 */ - block?: string; - }; - load?: { - input?: string; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - gas_price?: { - denom?: string; - amount?: string; - }; - }; - name?: string; - particle?: string; - }[]; -} - -export interface CyberDmnV1Beta1QueryThoughtsStatsResponse { - thoughts_stats?: { - program?: string; - name?: string; - /** @format uint64 */ - calls?: string; - /** @format uint64 */ - fees?: string; - /** @format uint64 */ - gas?: string; - /** @format uint64 */ - last_block?: string; - }[]; -} - -export interface CyberDmnV1Beta1Thought { - program?: string; - trigger?: { - /** @format uint64 */ - period?: string; - /** @format uint64 */ - block?: string; - }; - load?: { - input?: string; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - gas_price?: { - denom?: string; - amount?: string; - }; - }; - name?: string; - particle?: string; -} - -export interface CyberDmnV1Beta1ThoughtStats { - program?: string; - name?: string; - /** @format uint64 */ - calls?: string; - /** @format uint64 */ - fees?: string; - /** @format uint64 */ - gas?: string; - /** @format uint64 */ - last_block?: string; -} - -export interface CyberDmnV1Beta1Trigger { - /** @format uint64 */ - period?: string; - /** @format uint64 */ - block?: string; -} - -export type CyberDmnV1Beta1MsgChangeThoughtBlockResponse = object; - -export type CyberDmnV1Beta1MsgChangeThoughtGasPriceResponse = object; - -export type CyberDmnV1Beta1MsgChangeThoughtInputResponse = object; - -export type CyberDmnV1Beta1MsgChangeThoughtNameResponse = object; - -export type CyberDmnV1Beta1MsgChangeThoughtParticleResponse = object; - -export type CyberDmnV1Beta1MsgChangeThoughtPeriodResponse = object; - -export type CyberDmnV1Beta1MsgCreateThoughtResponse = object; - -export type CyberDmnV1Beta1MsgForgetThoughtResponse = object; - -/** @example {"code":0,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ -export interface CheckTxResult { - code?: number; - data?: string; - gas_used?: number; - gas_wanted?: number; - info?: string; - log?: string; - tags?: { - key?: string; - value?: string; - }[]; -} - -/** @example {"code":5,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ -export interface DeliverTxResult { - code?: number; - data?: string; - gas_used?: number; - gas_wanted?: number; - info?: string; - log?: string; - tags?: { - key?: string; - value?: string; - }[]; -} - -export interface BroadcastTxCommitResult { - /** @example {"code":0,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ - check_tx?: { - code?: number; - data?: string; - gas_used?: number; - gas_wanted?: number; - info?: string; - log?: string; - tags?: { - key?: string; - value?: string; - }[]; - }; - /** @example {"code":5,"data":"data","log":"log","gas_used":5000,"gas_wanted":10000,"info":"info","tags":["",""]} */ - deliver_tx?: { - code?: number; - data?: string; - gas_used?: number; - gas_wanted?: number; - info?: string; - log?: string; - tags?: { - key?: string; - value?: string; - }[]; - }; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - height?: number; -} - -export interface KVPair { - key?: string; - value?: string; -} - -export type Msg = object; - -/** - * bech32 encoded address - * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" - */ -export type Address = string; - -/** - * bech32 encoded address - * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" - */ -export type ValidatorAddress = string; - -export interface Coin { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; -} - -/** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ -export type Hash = string; - -export interface TxQuery { - /** @example "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656" */ - hash?: string; - /** @example 368 */ - height?: number; - tx?: { - msg?: object[]; - fee?: { - gas?: string; - amount?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; - }; - memo?: string; - signature?: { - /** @example "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=" */ - signature?: string; - pub_key?: { - /** @example "tendermint/PubKeySecp256k1" */ - type?: string; - /** @example "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" */ - value?: string; - }; - /** @example "0" */ - account_number?: string; - /** @example "0" */ - sequence?: string; - }; - }; - result?: { - log?: string; - /** @example "200000" */ - gas_wanted?: string; - /** @example "26354" */ - gas_used?: string; - tags?: { - key?: string; - value?: string; - }[]; - }; -} - -export interface PaginatedQueryTxs { - /** @example 1 */ - total_count?: number; - /** @example 1 */ - count?: number; - /** @example 1 */ - page_number?: number; - /** @example 1 */ - page_total?: number; - /** @example 30 */ - limit?: number; - txs?: { - /** @example "D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656" */ - hash?: string; - /** @example 368 */ - height?: number; - tx?: { - msg?: object[]; - fee?: { - gas?: string; - amount?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; - }; - memo?: string; - signature?: { - /** @example "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=" */ - signature?: string; - pub_key?: { - /** @example "tendermint/PubKeySecp256k1" */ - type?: string; - /** @example "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" */ - value?: string; - }; - /** @example "0" */ - account_number?: string; - /** @example "0" */ - sequence?: string; - }; - }; - result?: { - log?: string; - /** @example "200000" */ - gas_wanted?: string; - /** @example "26354" */ - gas_used?: string; - tags?: { - key?: string; - value?: string; - }[]; - }; - }[]; -} - -export interface StdTx { - msg?: object[]; - fee?: { - gas?: string; - amount?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; - }; - memo?: string; - signature?: { - /** @example "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=" */ - signature?: string; - pub_key?: { - /** @example "tendermint/PubKeySecp256k1" */ - type?: string; - /** @example "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" */ - value?: string; - }; - /** @example "0" */ - account_number?: string; - /** @example "0" */ - sequence?: string; - }; -} - -export interface BlockID { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; -} - -export interface BlockHeader { - /** @example "provenance-test-chain" */ - chain_id?: string; - /** @example 1 */ - height?: number; - /** @example "2017-12-30T05:53:09.287+01:00" */ - time?: string; - /** @example 0 */ - num_txs?: number; - last_block_id?: { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; - }; - /** @example 35 */ - total_txs?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - last_commit_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - data_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - validators_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - next_validators_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - consensus_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - app_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - last_results_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - evidence_hash?: string; - /** - * bech32 encoded address - * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" - */ - proposer_address?: string; - version?: { - /** @example 10 */ - block?: string; - /** @example 0 */ - app?: string; - }; -} - -export interface Block { - header?: { - /** @example "provenance-test-chain" */ - chain_id?: string; - /** @example 1 */ - height?: number; - /** @example "2017-12-30T05:53:09.287+01:00" */ - time?: string; - /** @example 0 */ - num_txs?: number; - last_block_id?: { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; - }; - /** @example 35 */ - total_txs?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - last_commit_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - data_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - validators_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - next_validators_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - consensus_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - app_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - last_results_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - evidence_hash?: string; - /** - * bech32 encoded address - * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" - */ - proposer_address?: string; - version?: { - /** @example 10 */ - block?: string; - /** @example 0 */ - app?: string; - }; - }; - txs?: string[]; - evidence?: string[]; - last_commit?: { - block_id?: { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; - }; - precommits?: { - validator_address?: string; - /** @example "0" */ - validator_index?: string; - /** @example "0" */ - height?: string; - /** @example "0" */ - round?: string; - /** @example "2017-12-30T05:53:09.287+01:00" */ - timestamp?: string; - /** @example 2 */ - type?: number; - block_id?: { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; - }; - /** @example "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ==" */ - signature?: string; - }[]; - }; -} - -export interface BlockQuery { - block_meta?: { - header?: { - /** @example "provenance-test-chain" */ - chain_id?: string; - /** @example 1 */ - height?: number; - /** @example "2017-12-30T05:53:09.287+01:00" */ - time?: string; - /** @example 0 */ - num_txs?: number; - last_block_id?: { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; - }; - /** @example 35 */ - total_txs?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - last_commit_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - data_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - validators_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - next_validators_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - consensus_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - app_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - last_results_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - evidence_hash?: string; - /** - * bech32 encoded address - * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" - */ - proposer_address?: string; - version?: { - /** @example 10 */ - block?: string; - /** @example 0 */ - app?: string; - }; - }; - block_id?: { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; - }; - }; - block?: { - header?: { - /** @example "provenance-test-chain" */ - chain_id?: string; - /** @example 1 */ - height?: number; - /** @example "2017-12-30T05:53:09.287+01:00" */ - time?: string; - /** @example 0 */ - num_txs?: number; - last_block_id?: { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; - }; - /** @example 35 */ - total_txs?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - last_commit_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - data_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - validators_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - next_validators_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - consensus_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - app_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - last_results_hash?: string; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - evidence_hash?: string; - /** - * bech32 encoded address - * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" - */ - proposer_address?: string; - version?: { - /** @example 10 */ - block?: string; - /** @example 0 */ - app?: string; - }; - }; - txs?: string[]; - evidence?: string[]; - last_commit?: { - block_id?: { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; - }; - precommits?: { - validator_address?: string; - /** @example "0" */ - validator_index?: string; - /** @example "0" */ - height?: string; - /** @example "0" */ - round?: string; - /** @example "2017-12-30T05:53:09.287+01:00" */ - timestamp?: string; - /** @example 2 */ - type?: number; - block_id?: { - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - parts?: { - /** @example 0 */ - total?: number; - /** @example "EE5F3404034C524501629B56E0DDC38FAD651F04" */ - hash?: string; - }; - }; - /** @example "7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ==" */ - signature?: string; - }[]; - }; - }; -} - -export interface DelegationDelegatorReward { - /** - * bech32 encoded address - * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" - */ - validator_address?: string; - reward?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; -} - -export interface DelegatorTotalRewards { - rewards?: { - /** - * bech32 encoded address - * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" - */ - validator_address?: string; - reward?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; - }[]; - total?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; -} - -export interface BaseReq { - /** - * Sender address or Keybase name to generate a transaction - * @example "pb1ytyfcdj0nymx9afx34mvwj6gyrped0hmfd9qyq" - */ - from?: string; - /** @example "Sent via Provenance API" */ - memo?: string; - /** @example "provenance-test-chain" */ - chain_id?: string; - /** @example "0" */ - account_number?: string; - /** @example "1" */ - sequence?: string; - /** @example "200000" */ - gas?: string; - /** @example "1.2" */ - gas_adjustment?: string; - fees?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; - /** - * Estimate gas for a transaction (cannot be used in conjunction with generate_only) - * @example false - */ - simulate?: boolean; -} - -export interface TendermintValidator { - /** - * bech32 encoded address - * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" - */ - address?: string; - /** @example "pbvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf" */ - pub_key?: string; - /** @example "1000" */ - voting_power?: string; - /** @example "1000" */ - proposer_priority?: string; -} - -export interface TextProposal { - proposal_id?: number; - title?: string; - description?: string; - proposal_type?: string; - proposal_status?: string; - final_tally_result?: { - /** @example "0.0000000000" */ - yes?: string; - /** @example "0.0000000000" */ - abstain?: string; - /** @example "0.0000000000" */ - no?: string; - /** @example "0.0000000000" */ - no_with_veto?: string; - }; - submit_time?: string; - total_deposit?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; - voting_start_time?: string; -} - -export interface Proposer { - proposal_id?: string; - proposer?: string; -} - -export interface Deposit { - amount?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; - proposal_id?: string; - /** - * bech32 encoded address - * @example "pb1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" - */ - depositor?: string; -} - -export interface TallyResult { - /** @example "0.0000000000" */ - yes?: string; - /** @example "0.0000000000" */ - abstain?: string; - /** @example "0.0000000000" */ - no?: string; - /** @example "0.0000000000" */ - no_with_veto?: string; -} - -export interface Vote { - voter?: string; - proposal_id?: string; - option?: string; -} - -export interface Validator { - /** - * bech32 encoded address - * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" - */ - operator_address?: string; - /** @example "pbvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf" */ - consensus_pubkey?: string; - jailed?: boolean; - status?: number; - tokens?: string; - delegator_shares?: string; - description?: { - moniker?: string; - identity?: string; - website?: string; - security_contact?: string; - details?: string; - }; - /** @example "0" */ - bond_height?: string; - /** @example 0 */ - bond_intra_tx_counter?: number; - /** @example "0" */ - unbonding_height?: string; - /** @example "1970-01-01T00:00:00Z" */ - unbonding_time?: string; - commission?: { - /** @example "0" */ - rate?: string; - /** @example "0" */ - max_rate?: string; - /** @example "0" */ - max_change_rate?: string; - /** @example "1970-01-01T00:00:00Z" */ - update_time?: string; - }; -} - -export interface Delegation { - delegator_address?: string; - validator_address?: string; - shares?: string; - balance?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }; -} - -export interface UnbondingDelegationPair { - delegator_address?: string; - validator_address?: string; - entries?: { - initial_balance?: string; - balance?: string; - creation_height?: string; - min_time?: string; - }[]; -} - -export interface UnbondingEntries { - initial_balance?: string; - balance?: string; - creation_height?: string; - min_time?: string; -} - -export interface UnbondingDelegation { - delegator_address?: string; - validator_address?: string; - initial_balance?: string; - balance?: string; - creation_height?: number; - min_time?: number; -} - -export interface Redelegation { - delegator_address?: string; - validator_src_address?: string; - validator_dst_address?: string; - entries?: Redelegation[]; -} - -export interface RedelegationEntry { - creation_height?: number; - completion_time?: number; - initial_balance?: string; - balance?: string; - shares_dst?: string; -} - -export interface ValidatorDistInfo { - /** - * bech32 encoded address - * @example "pbvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l" - */ - operator_address?: string; - self_bond_rewards?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; - val_commission?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; -} - -export interface PublicKey { - type?: string; - value?: string; -} - -export interface SigningInfo { - start_height?: string; - index_offset?: string; - jailed_until?: string; - missed_blocks_counter?: string; -} - -export interface ParamChange { - /** @example "staking" */ - subspace?: string; - /** @example "MaxValidators" */ - key?: string; - /** @example "" */ - subkey?: string; - value?: object; -} - -export interface Supply { - total?: { - /** @example "vspn" */ - denom?: string; - /** @example "5000" */ - amount?: string; - }[]; -} - -/** Params defines the parameters for the auth module. */ -export interface CosmosAuthV1Beta1Params { - /** @format uint64 */ - max_memo_characters?: string; - /** @format uint64 */ - tx_sig_limit?: string; - /** @format uint64 */ - tx_size_cost_per_byte?: string; - /** @format uint64 */ - sig_verify_cost_ed25519?: string; - /** @format uint64 */ - sig_verify_cost_secp256k1?: string; -} - -/** QueryAccountResponse is the response type for the Query/Account RPC method. */ -export interface CosmosAuthV1Beta1QueryAccountResponse { - /** account defines the account of the corresponding address. */ - account?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; -} - -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface CosmosAuthV1Beta1QueryParamsResponse { - /** params defines the parameters of the module. */ - params?: { - /** @format uint64 */ - max_memo_characters?: string; - /** @format uint64 */ - tx_sig_limit?: string; - /** @format uint64 */ - tx_size_cost_per_byte?: string; - /** @format uint64 */ - sig_verify_cost_ed25519?: string; - /** @format uint64 */ - sig_verify_cost_secp256k1?: string; - }; -} - -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - */ -export interface CosmosBankV1Beta1DenomUnit { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom?: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 1^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - * @format int64 - */ - exponent?: number; - /** aliases is a list of string aliases for the given denom */ - aliases?: string[]; -} - -/** - * Metadata represents a struct that describes - * a basic token. - */ -export interface CosmosBankV1Beta1Metadata { - description?: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units?: { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom?: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 1^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - * @format int64 - */ - exponent?: number; - /** aliases is a list of string aliases for the given denom */ - aliases?: string[]; - }[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base?: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display?: string; -} - -/** Params defines the parameters for the bank module. */ -export interface CosmosBankV1Beta1Params { - send_enabled?: { - denom?: string; - enabled?: boolean; - }[]; - default_send_enabled?: boolean; -} - -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - */ -export interface CosmosBankV1Beta1QueryAllBalancesResponse { - /** balances is the balances of all the coins. */ - balances?: { - denom?: string; - amount?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */ -export interface CosmosBankV1Beta1QueryBalanceResponse { - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - balance?: { - denom?: string; - amount?: string; - }; -} - -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - */ -export interface CosmosBankV1Beta1QueryDenomMetadataResponse { - /** - * Metadata represents a struct that describes - * a basic token. - */ - metadata?: { - description?: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units?: { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom?: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 1^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - * @format int64 - */ - exponent?: number; - /** aliases is a list of string aliases for the given denom */ - aliases?: string[]; - }[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base?: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display?: string; - }; -} - -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - */ -export interface CosmosBankV1Beta1QueryDenomsMetadataResponse { - /** metadata provides the client information for all the registered tokens. */ - metadatas?: { - description?: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units?: { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom?: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 1^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - * @format int64 - */ - exponent?: number; - /** aliases is a list of string aliases for the given denom */ - aliases?: string[]; - }[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base?: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** QueryParamsResponse defines the response type for querying x/bank parameters. */ -export interface CosmosBankV1Beta1QueryParamsResponse { - /** Params defines the parameters for the bank module. */ - params?: { - send_enabled?: { - denom?: string; - enabled?: boolean; - }[]; - default_send_enabled?: boolean; - }; -} - -/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */ -export interface CosmosBankV1Beta1QuerySupplyOfResponse { - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - amount?: { - denom?: string; - amount?: string; - }; -} - -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - */ -export interface CosmosBankV1Beta1QueryTotalSupplyResponse { - /** supply is the supply of the coins */ - supply?: { - denom?: string; - amount?: string; - }[]; -} - -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - */ -export interface CosmosBankV1Beta1SendEnabled { - denom?: string; - enabled?: boolean; -} - -/** Input models transaction input. */ -export interface CosmosBankV1Beta1Input { - address?: string; - coins?: { - denom?: string; - amount?: string; - }[]; -} - -/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ -export type CosmosBankV1Beta1MsgMultiSendResponse = object; - -/** MsgSendResponse defines the Msg/Send response type. */ -export type CosmosBankV1Beta1MsgSendResponse = object; - -/** Output models transaction outputs. */ -export interface CosmosBankV1Beta1Output { - address?: string; - coins?: { - denom?: string; - amount?: string; - }[]; -} - -/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */ -export interface CosmosBaseTendermintV1Beta1GetBlockByHeightResponse { - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - block?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Data contains the set of transactions included in the block */ - data?: { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs?: string[]; - }; - evidence?: { - evidence?: { - /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ - duplicate_vote_evidence?: { - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_a?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_b?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** @format int64 */ - total_voting_power?: string; - /** @format int64 */ - validator_power?: string; - /** @format date-time */ - timestamp?: string; - }; - /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ - light_client_attack_evidence?: { - conflicting_block?: { - signed_header?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - validator_set?: { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; - }; - }; - /** @format int64 */ - common_height?: string; - byzantine_validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** @format int64 */ - total_voting_power?: string; - /** @format date-time */ - timestamp?: string; - }; - }[]; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - last_commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; -} - -/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */ -export interface CosmosBaseTendermintV1Beta1GetLatestBlockResponse { - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - block?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Data contains the set of transactions included in the block */ - data?: { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs?: string[]; - }; - evidence?: { - evidence?: { - /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ - duplicate_vote_evidence?: { - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_a?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_b?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** @format int64 */ - total_voting_power?: string; - /** @format int64 */ - validator_power?: string; - /** @format date-time */ - timestamp?: string; - }; - /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ - light_client_attack_evidence?: { - conflicting_block?: { - signed_header?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - validator_set?: { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; - }; - }; - /** @format int64 */ - common_height?: string; - byzantine_validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** @format int64 */ - total_voting_power?: string; - /** @format date-time */ - timestamp?: string; - }; - }[]; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - last_commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; -} - -/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface CosmosBaseTendermintV1Beta1GetLatestValidatorSetResponse { - /** @format int64 */ - block_height?: string; - validators?: { - address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - pub_key?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** pagination defines an pagination for the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method. */ -export interface CosmosBaseTendermintV1Beta1GetNodeInfoResponse { - default_node_info?: { - protocol_version?: { - /** @format uint64 */ - p2p?: string; - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - default_node_id?: string; - listen_addr?: string; - network?: string; - version?: string; - /** @format byte */ - channels?: string; - moniker?: string; - other?: { - tx_index?: string; - rpc_address?: string; - }; - }; - /** VersionInfo is the type for the GetNodeInfoResponse message. */ - application_version?: { - name?: string; - app_name?: string; - version?: string; - git_commit?: string; - build_tags?: string; - go_version?: string; - build_deps?: { - /** module path */ - path?: string; - /** module version */ - version?: string; - /** checksum */ - sum?: string; - }[]; - }; -} - -/** GetSyncingResponse is the response type for the Query/GetSyncing RPC method. */ -export interface CosmosBaseTendermintV1Beta1GetSyncingResponse { - syncing?: boolean; -} - -/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */ -export interface CosmosBaseTendermintV1Beta1GetValidatorSetByHeightResponse { - /** @format int64 */ - block_height?: string; - validators?: { - address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - pub_key?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** pagination defines an pagination for the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** Module is the type for VersionInfo */ -export interface CosmosBaseTendermintV1Beta1Module { - /** module path */ - path?: string; - /** module version */ - version?: string; - /** checksum */ - sum?: string; -} - -/** Validator is the type for the validator-set. */ -export interface CosmosBaseTendermintV1Beta1Validator { - address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - pub_key?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; -} - -/** VersionInfo is the type for the GetNodeInfoResponse message. */ -export interface CosmosBaseTendermintV1Beta1VersionInfo { - name?: string; - app_name?: string; - version?: string; - git_commit?: string; - build_tags?: string; - go_version?: string; - build_deps?: { - /** module path */ - path?: string; - /** module version */ - version?: string; - /** checksum */ - sum?: string; - }[]; -} - -/** PublicKey defines the keys available for use with Tendermint Validators */ -export interface TendermintCryptoPublicKey { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; -} - -export interface TendermintP2PDefaultNodeInfo { - protocol_version?: { - /** @format uint64 */ - p2p?: string; - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - default_node_id?: string; - listen_addr?: string; - network?: string; - version?: string; - /** @format byte */ - channels?: string; - moniker?: string; - other?: { - tx_index?: string; - rpc_address?: string; - }; -} - -export interface TendermintP2PDefaultNodeInfoOther { - tx_index?: string; - rpc_address?: string; -} - -export interface TendermintP2PProtocolVersion { - /** @format uint64 */ - p2p?: string; - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; -} - -export interface TendermintTypesBlock { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Data contains the set of transactions included in the block */ - data?: { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs?: string[]; - }; - evidence?: { - evidence?: { - /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ - duplicate_vote_evidence?: { - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_a?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_b?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** @format int64 */ - total_voting_power?: string; - /** @format int64 */ - validator_power?: string; - /** @format date-time */ - timestamp?: string; - }; - /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ - light_client_attack_evidence?: { - conflicting_block?: { - signed_header?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - validator_set?: { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; - }; - }; - /** @format int64 */ - common_height?: string; - byzantine_validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** @format int64 */ - total_voting_power?: string; - /** @format date-time */ - timestamp?: string; - }; - }[]; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - last_commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; -} - -/** BlockID */ -export interface TendermintTypesBlockID { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; -} - -/** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ -export enum TendermintTypesBlockIDFlag { - BLOCK_ID_FLAG_UNKNOWN = 'BLOCK_ID_FLAG_UNKNOWN', - BLOCK_ID_FLAG_ABSENT = 'BLOCK_ID_FLAG_ABSENT', - BLOCK_ID_FLAG_COMMIT = 'BLOCK_ID_FLAG_COMMIT', - BLOCK_ID_FLAG_NIL = 'BLOCK_ID_FLAG_NIL', -} - -/** Commit contains the evidence that a block was committed by a set of validators. */ -export interface TendermintTypesCommit { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; -} - -/** CommitSig is a part of the Vote included in a Commit. */ -export interface TendermintTypesCommitSig { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; -} - -/** Data contains the set of transactions included in the block */ -export interface TendermintTypesData { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs?: string[]; -} - -/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ -export interface TendermintTypesDuplicateVoteEvidence { - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_a?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_b?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** @format int64 */ - total_voting_power?: string; - /** @format int64 */ - validator_power?: string; - /** @format date-time */ - timestamp?: string; -} - -export interface TendermintTypesEvidence { - /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ - duplicate_vote_evidence?: { - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_a?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_b?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** @format int64 */ - total_voting_power?: string; - /** @format int64 */ - validator_power?: string; - /** @format date-time */ - timestamp?: string; - }; - /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ - light_client_attack_evidence?: { - conflicting_block?: { - signed_header?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - validator_set?: { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; - }; - }; - /** @format int64 */ - common_height?: string; - byzantine_validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** @format int64 */ - total_voting_power?: string; - /** @format date-time */ - timestamp?: string; - }; -} - -export interface TendermintTypesEvidenceList { - evidence?: { - /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ - duplicate_vote_evidence?: { - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_a?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_b?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** @format int64 */ - total_voting_power?: string; - /** @format int64 */ - validator_power?: string; - /** @format date-time */ - timestamp?: string; - }; - /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ - light_client_attack_evidence?: { - conflicting_block?: { - signed_header?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - validator_set?: { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; - }; - }; - /** @format int64 */ - common_height?: string; - byzantine_validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** @format int64 */ - total_voting_power?: string; - /** @format date-time */ - timestamp?: string; - }; - }[]; -} - -/** Header defines the structure of a Tendermint block header. */ -export interface TendermintTypesHeader { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; -} - -export interface TendermintTypesLightBlock { - signed_header?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - validator_set?: { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; - }; -} - -/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ -export interface TendermintTypesLightClientAttackEvidence { - conflicting_block?: { - signed_header?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - validator_set?: { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; - }; - }; - /** @format int64 */ - common_height?: string; - byzantine_validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** @format int64 */ - total_voting_power?: string; - /** @format date-time */ - timestamp?: string; -} - -/** PartsetHeader */ -export interface TendermintTypesPartSetHeader { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; -} - -export interface TendermintTypesSignedHeader { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: 'BLOCK_ID_FLAG_UNKNOWN' | 'BLOCK_ID_FLAG_ABSENT' | 'BLOCK_ID_FLAG_COMMIT' | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; -} - -/** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ -export enum TendermintTypesSignedMsgType { - SIGNED_MSG_TYPE_UNKNOWN = 'SIGNED_MSG_TYPE_UNKNOWN', - SIGNED_MSG_TYPE_PREVOTE = 'SIGNED_MSG_TYPE_PREVOTE', - SIGNED_MSG_TYPE_PRECOMMIT = 'SIGNED_MSG_TYPE_PRECOMMIT', - SIGNED_MSG_TYPE_PROPOSAL = 'SIGNED_MSG_TYPE_PROPOSAL', -} - -export interface TendermintTypesValidator { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; -} - -export interface TendermintTypesValidatorSet { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; -} - -/** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ -export interface TendermintTypesVote { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; -} - -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ -export interface TendermintVersionConsensus { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; -} - -/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */ -export type CosmosCrisisV1Beta1MsgVerifyInvariantResponse = object; - -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - */ -export interface CosmosBaseV1Beta1DecCoin { - denom?: string; - amount?: string; -} - -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - */ -export interface CosmosDistributionV1Beta1DelegationDelegatorReward { - validator_address?: string; - reward?: { - denom?: string; - amount?: string; - }[]; -} - -/** Params defines the set of params for the distribution module. */ -export interface CosmosDistributionV1Beta1Params { - community_tax?: string; - base_proposer_reward?: string; - bonus_proposer_reward?: string; - withdraw_addr_enabled?: boolean; -} - -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - */ -export interface CosmosDistributionV1Beta1QueryCommunityPoolResponse { - /** pool defines community pool's coins. */ - pool?: { - denom?: string; - amount?: string; - }[]; -} - -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - */ -export interface CosmosDistributionV1Beta1QueryDelegationRewardsResponse { - /** rewards defines the rewards accrued by a delegation. */ - rewards?: { - denom?: string; - amount?: string; - }[]; -} - -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - */ -export interface CosmosDistributionV1Beta1QueryDelegationTotalRewardsResponse { - /** rewards defines all the rewards accrued by a delegator. */ - rewards?: { - validator_address?: string; - reward?: { - denom?: string; - amount?: string; - }[]; - }[]; - /** total defines the sum of all the rewards. */ - total?: { - denom?: string; - amount?: string; - }[]; -} - -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - */ -export interface CosmosDistributionV1Beta1QueryDelegatorValidatorsResponse { - /** validators defines the validators a delegator is delegating for. */ - validators?: string[]; -} - -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - */ -export interface CosmosDistributionV1Beta1QueryDelegatorWithdrawAddressResponse { - /** withdraw_address defines the delegator address to query for. */ - withdraw_address?: string; -} - -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface CosmosDistributionV1Beta1QueryParamsResponse { - /** params defines the parameters of the module. */ - params?: { - community_tax?: string; - base_proposer_reward?: string; - bonus_proposer_reward?: string; - withdraw_addr_enabled?: boolean; - }; -} - -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - */ -export interface CosmosDistributionV1Beta1QueryValidatorCommissionResponse { - /** commission defines the commision the validator received. */ - commission?: { - commission?: { - denom?: string; - amount?: string; - }[]; - }; -} - -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - */ -export interface CosmosDistributionV1Beta1QueryValidatorOutstandingRewardsResponse { - /** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ - rewards?: { - rewards?: { - denom?: string; - amount?: string; - }[]; - }; -} - -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - */ -export interface CosmosDistributionV1Beta1QueryValidatorSlashesResponse { - /** slashes defines the slashes the validator received. */ - slashes?: { - /** @format uint64 */ - validator_period?: string; - fraction?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - */ -export interface CosmosDistributionV1Beta1ValidatorAccumulatedCommission { - commission?: { - denom?: string; - amount?: string; - }[]; -} - -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ -export interface CosmosDistributionV1Beta1ValidatorOutstandingRewards { - rewards?: { - denom?: string; - amount?: string; - }[]; -} - -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - */ -export interface CosmosDistributionV1Beta1ValidatorSlashEvent { - /** @format uint64 */ - validator_period?: string; - fraction?: string; -} - -/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ -export type CosmosDistributionV1Beta1MsgFundCommunityPoolResponse = object; - -/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */ -export type CosmosDistributionV1Beta1MsgSetWithdrawAddressResponse = object; - -/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */ -export type CosmosDistributionV1Beta1MsgWithdrawDelegatorRewardResponse = object; - -/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ -export type CosmosDistributionV1Beta1MsgWithdrawValidatorCommissionResponse = object; - -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - */ -export interface CosmosEvidenceV1Beta1QueryAllEvidenceResponse { - /** evidence returns all evidences. */ - evidence?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */ -export interface CosmosEvidenceV1Beta1QueryEvidenceResponse { - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - evidence?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; -} - -/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */ -export interface CosmosEvidenceV1Beta1MsgSubmitEvidenceResponse { - /** - * hash defines the hash of the evidence. - * @format byte - */ - hash?: string; -} - -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ -export interface CosmosGovV1Beta1Deposit { - /** @format uint64 */ - proposal_id?: string; - depositor?: string; - amount?: { - denom?: string; - amount?: string; - }[]; -} - -/** DepositParams defines the params for deposits on governance proposals. */ -export interface CosmosGovV1Beta1DepositParams { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit?: { - denom?: string; - amount?: string; - }[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: string; -} - -/** Proposal defines the core field members of a governance proposal. */ -export interface CosmosGovV1Beta1Proposal { - /** @format uint64 */ - proposal_id?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - content?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * ProposalStatus enumerates the valid statuses of a proposal. - * - * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - * @default "PROPOSAL_STATUS_UNSPECIFIED" - */ - status?: - | 'PROPOSAL_STATUS_UNSPECIFIED' - | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' - | 'PROPOSAL_STATUS_VOTING_PERIOD' - | 'PROPOSAL_STATUS_PASSED' - | 'PROPOSAL_STATUS_REJECTED' - | 'PROPOSAL_STATUS_FAILED'; - /** TallyResult defines a standard tally for a governance proposal. */ - final_tally_result?: { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; - }; - /** @format date-time */ - submit_time?: string; - /** @format date-time */ - deposit_end_time?: string; - total_deposit?: { - denom?: string; - amount?: string; - }[]; - /** @format date-time */ - voting_start_time?: string; - /** @format date-time */ - voting_end_time?: string; -} - -/** - * ProposalStatus enumerates the valid statuses of a proposal. - * - * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - * @default "PROPOSAL_STATUS_UNSPECIFIED" - */ -export enum CosmosGovV1Beta1ProposalStatus { - PROPOSAL_STATUS_UNSPECIFIED = 'PROPOSAL_STATUS_UNSPECIFIED', - PROPOSAL_STATUS_DEPOSIT_PERIOD = 'PROPOSAL_STATUS_DEPOSIT_PERIOD', - PROPOSAL_STATUS_VOTING_PERIOD = 'PROPOSAL_STATUS_VOTING_PERIOD', - PROPOSAL_STATUS_PASSED = 'PROPOSAL_STATUS_PASSED', - PROPOSAL_STATUS_REJECTED = 'PROPOSAL_STATUS_REJECTED', - PROPOSAL_STATUS_FAILED = 'PROPOSAL_STATUS_FAILED', -} - -/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ -export interface CosmosGovV1Beta1QueryDepositResponse { - /** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ - deposit?: { - /** @format uint64 */ - proposal_id?: string; - depositor?: string; - amount?: { - denom?: string; - amount?: string; - }[]; - }; -} - -/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ -export interface CosmosGovV1Beta1QueryDepositsResponse { - deposits?: { - /** @format uint64 */ - proposal_id?: string; - depositor?: string; - amount?: { - denom?: string; - amount?: string; - }[]; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface CosmosGovV1Beta1QueryParamsResponse { - /** voting_params defines the parameters related to voting. */ - voting_params?: { - /** Length of the voting period. */ - voting_period?: string; - }; - /** deposit_params defines the parameters related to deposit. */ - deposit_params?: { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit?: { - denom?: string; - amount?: string; - }[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: string; - }; - /** tally_params defines the parameters related to tally. */ - tally_params?: { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - * @format byte - */ - quorum?: string; - /** - * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. - * @format byte - */ - threshold?: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - * @format byte - */ - veto_threshold?: string; - }; -} - -/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ -export interface CosmosGovV1Beta1QueryProposalResponse { - /** Proposal defines the core field members of a governance proposal. */ - proposal?: { - /** @format uint64 */ - proposal_id?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - content?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * ProposalStatus enumerates the valid statuses of a proposal. - * - * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - * @default "PROPOSAL_STATUS_UNSPECIFIED" - */ - status?: - | 'PROPOSAL_STATUS_UNSPECIFIED' - | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' - | 'PROPOSAL_STATUS_VOTING_PERIOD' - | 'PROPOSAL_STATUS_PASSED' - | 'PROPOSAL_STATUS_REJECTED' - | 'PROPOSAL_STATUS_FAILED'; - /** TallyResult defines a standard tally for a governance proposal. */ - final_tally_result?: { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; - }; - /** @format date-time */ - submit_time?: string; - /** @format date-time */ - deposit_end_time?: string; - total_deposit?: { - denom?: string; - amount?: string; - }[]; - /** @format date-time */ - voting_start_time?: string; - /** @format date-time */ - voting_end_time?: string; - }; -} - -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - */ -export interface CosmosGovV1Beta1QueryProposalsResponse { - proposals?: { - /** @format uint64 */ - proposal_id?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - content?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * ProposalStatus enumerates the valid statuses of a proposal. - * - * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - * @default "PROPOSAL_STATUS_UNSPECIFIED" - */ - status?: - | 'PROPOSAL_STATUS_UNSPECIFIED' - | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' - | 'PROPOSAL_STATUS_VOTING_PERIOD' - | 'PROPOSAL_STATUS_PASSED' - | 'PROPOSAL_STATUS_REJECTED' - | 'PROPOSAL_STATUS_FAILED'; - /** TallyResult defines a standard tally for a governance proposal. */ - final_tally_result?: { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; - }; - /** @format date-time */ - submit_time?: string; - /** @format date-time */ - deposit_end_time?: string; - total_deposit?: { - denom?: string; - amount?: string; - }[]; - /** @format date-time */ - voting_start_time?: string; - /** @format date-time */ - voting_end_time?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ -export interface CosmosGovV1Beta1QueryTallyResultResponse { - /** TallyResult defines a standard tally for a governance proposal. */ - tally?: { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; - }; -} - -/** QueryVoteResponse is the response type for the Query/Vote RPC method. */ -export interface CosmosGovV1Beta1QueryVoteResponse { - /** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ - vote?: { - /** @format uint64 */ - proposal_id?: string; - voter?: string; - /** - * VoteOption enumerates the valid vote options for a given governance proposal. - * - * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - * @default "VOTE_OPTION_UNSPECIFIED" - */ - option?: - | 'VOTE_OPTION_UNSPECIFIED' - | 'VOTE_OPTION_YES' - | 'VOTE_OPTION_ABSTAIN' - | 'VOTE_OPTION_NO' - | 'VOTE_OPTION_NO_WITH_VETO'; - }; -} - -/** QueryVotesResponse is the response type for the Query/Votes RPC method. */ -export interface CosmosGovV1Beta1QueryVotesResponse { - /** votes defined the queried votes. */ - votes?: { - /** @format uint64 */ - proposal_id?: string; - voter?: string; - /** - * VoteOption enumerates the valid vote options for a given governance proposal. - * - * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - * @default "VOTE_OPTION_UNSPECIFIED" - */ - option?: - | 'VOTE_OPTION_UNSPECIFIED' - | 'VOTE_OPTION_YES' - | 'VOTE_OPTION_ABSTAIN' - | 'VOTE_OPTION_NO' - | 'VOTE_OPTION_NO_WITH_VETO'; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** TallyParams defines the params for tallying votes on governance proposals. */ -export interface CosmosGovV1Beta1TallyParams { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - * @format byte - */ - quorum?: string; - /** - * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. - * @format byte - */ - threshold?: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - * @format byte - */ - veto_threshold?: string; -} - -/** TallyResult defines a standard tally for a governance proposal. */ -export interface CosmosGovV1Beta1TallyResult { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; -} - -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ -export interface CosmosGovV1Beta1Vote { - /** @format uint64 */ - proposal_id?: string; - voter?: string; - /** - * VoteOption enumerates the valid vote options for a given governance proposal. - * - * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - * @default "VOTE_OPTION_UNSPECIFIED" - */ - option?: - | 'VOTE_OPTION_UNSPECIFIED' - | 'VOTE_OPTION_YES' - | 'VOTE_OPTION_ABSTAIN' - | 'VOTE_OPTION_NO' - | 'VOTE_OPTION_NO_WITH_VETO'; -} - -/** - * VoteOption enumerates the valid vote options for a given governance proposal. - * - * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - * @default "VOTE_OPTION_UNSPECIFIED" - */ -export enum CosmosGovV1Beta1VoteOption { - VOTE_OPTION_UNSPECIFIED = 'VOTE_OPTION_UNSPECIFIED', - VOTE_OPTION_YES = 'VOTE_OPTION_YES', - VOTE_OPTION_ABSTAIN = 'VOTE_OPTION_ABSTAIN', - VOTE_OPTION_NO = 'VOTE_OPTION_NO', - VOTE_OPTION_NO_WITH_VETO = 'VOTE_OPTION_NO_WITH_VETO', -} - -/** VotingParams defines the params for voting on governance proposals. */ -export interface CosmosGovV1Beta1VotingParams { - /** Length of the voting period. */ - voting_period?: string; -} - -/** MsgDepositResponse defines the Msg/Deposit response type. */ -export type CosmosGovV1Beta1MsgDepositResponse = object; - -/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ -export interface CosmosGovV1Beta1MsgSubmitProposalResponse { - /** @format uint64 */ - proposal_id?: string; -} - -/** MsgVoteResponse defines the Msg/Vote response type. */ -export type CosmosGovV1Beta1MsgVoteResponse = object; - -/** Params holds parameters for the mint module. */ -export interface CosmosMintV1Beta1Params { - /** type of coin to mint */ - mint_denom?: string; - /** maximum annual change in inflation rate */ - inflation_rate_change?: string; - /** maximum inflation rate */ - inflation_max?: string; - /** minimum inflation rate */ - inflation_min?: string; - /** goal of percent bonded atoms */ - goal_bonded?: string; - /** - * expected blocks per year - * @format uint64 - */ - blocks_per_year?: string; -} - -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - */ -export interface CosmosMintV1Beta1QueryAnnualProvisionsResponse { - /** - * annual_provisions is the current minting annual provisions value. - * @format byte - */ - annual_provisions?: string; -} - -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - */ -export interface CosmosMintV1Beta1QueryInflationResponse { - /** - * inflation is the current minting inflation value. - * @format byte - */ - inflation?: string; -} - -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface CosmosMintV1Beta1QueryParamsResponse { - /** params defines the parameters of the module. */ - params?: { - /** type of coin to mint */ - mint_denom?: string; - /** maximum annual change in inflation rate */ - inflation_rate_change?: string; - /** maximum inflation rate */ - inflation_max?: string; - /** minimum inflation rate */ - inflation_min?: string; - /** goal of percent bonded atoms */ - goal_bonded?: string; - /** - * expected blocks per year - * @format uint64 - */ - blocks_per_year?: string; - }; -} - -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - */ -export interface CosmosParamsV1Beta1ParamChange { - subspace?: string; - key?: string; - value?: string; -} - -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface CosmosParamsV1Beta1QueryParamsResponse { - /** param defines the queried parameter. */ - param?: { - subspace?: string; - key?: string; - value?: string; - }; -} - -/** Params represents the parameters used for by the slashing module. */ -export interface CosmosSlashingV1Beta1Params { - /** @format int64 */ - signed_blocks_window?: string; - /** @format byte */ - min_signed_per_window?: string; - downtime_jail_duration?: string; - /** @format byte */ - slash_fraction_double_sign?: string; - /** @format byte */ - slash_fraction_downtime?: string; -} - -/** QueryParamsResponse is the response type for the Query/Params RPC method */ -export interface CosmosSlashingV1Beta1QueryParamsResponse { - /** Params represents the parameters used for by the slashing module. */ - params?: { - /** @format int64 */ - signed_blocks_window?: string; - /** @format byte */ - min_signed_per_window?: string; - downtime_jail_duration?: string; - /** @format byte */ - slash_fraction_double_sign?: string; - /** @format byte */ - slash_fraction_downtime?: string; - }; -} - -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - */ -export interface CosmosSlashingV1Beta1QuerySigningInfoResponse { - /** - * val_signing_info is the signing info of requested val cons address - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ - val_signing_info?: { - address?: string; - /** - * height at which validator was first a candidate OR was unjailed - * @format int64 - */ - start_height?: string; - /** - * index offset into signed block bit array - * @format int64 - */ - index_offset?: string; - /** - * timestamp validator cannot be unjailed until - * @format date-time - */ - jailed_until?: string; - /** - * whether or not a validator has been tombstoned (killed out of validator - * set) - */ - tombstoned?: boolean; - /** - * missed blocks counter (to avoid scanning the array every time) - * @format int64 - */ - missed_blocks_counter?: string; - }; -} - -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - */ -export interface CosmosSlashingV1Beta1QuerySigningInfosResponse { - /** info is the signing info of all validators */ - info?: { - address?: string; - /** - * height at which validator was first a candidate OR was unjailed - * @format int64 - */ - start_height?: string; - /** - * index offset into signed block bit array - * @format int64 - */ - index_offset?: string; - /** - * timestamp validator cannot be unjailed until - * @format date-time - */ - jailed_until?: string; - /** - * whether or not a validator has been tombstoned (killed out of validator - * set) - */ - tombstoned?: boolean; - /** - * missed blocks counter (to avoid scanning the array every time) - * @format int64 - */ - missed_blocks_counter?: string; - }[]; - /** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ -export interface CosmosSlashingV1Beta1ValidatorSigningInfo { - address?: string; - /** - * height at which validator was first a candidate OR was unjailed - * @format int64 - */ - start_height?: string; - /** - * index offset into signed block bit array - * @format int64 - */ - index_offset?: string; - /** - * timestamp validator cannot be unjailed until - * @format date-time - */ - jailed_until?: string; - /** - * whether or not a validator has been tombstoned (killed out of validator - * set) - */ - tombstoned?: boolean; - /** - * missed blocks counter (to avoid scanning the array every time) - * @format int64 - */ - missed_blocks_counter?: string; -} - -/** MsgUnjailResponse defines the Msg/Unjail response type */ -export type CosmosSlashingV1Beta1MsgUnjailResponse = object; - -/** - * BondStatus is the status of a validator. - * - * - BOND_STATUS_UNSPECIFIED: UNSPECIFIED defines an invalid validator status. - * - BOND_STATUS_UNBONDED: UNBONDED defines a validator that is not bonded. - * - BOND_STATUS_UNBONDING: UNBONDING defines a validator that is unbonding. - * - BOND_STATUS_BONDED: BONDED defines a validator that is bonded. - * @default "BOND_STATUS_UNSPECIFIED" - */ -export enum CosmosStakingV1Beta1BondStatus { - BOND_STATUS_UNSPECIFIED = 'BOND_STATUS_UNSPECIFIED', - BOND_STATUS_UNBONDED = 'BOND_STATUS_UNBONDED', - BOND_STATUS_UNBONDING = 'BOND_STATUS_UNBONDING', - BOND_STATUS_BONDED = 'BOND_STATUS_BONDED', -} - -/** Commission defines commission parameters for a given validator. */ -export interface CosmosStakingV1Beta1Commission { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; -} - -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - */ -export interface CosmosStakingV1Beta1CommissionRates { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; -} - -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ -export interface CosmosStakingV1Beta1Delegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; -} - -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ -export interface CosmosStakingV1Beta1DelegationResponse { - /** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ - delegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - balance?: { - denom?: string; - amount?: string; - }; -} - -/** Description defines a validator description. */ -export interface CosmosStakingV1Beta1Description { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; -} - -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - */ -export interface CosmosStakingV1Beta1HistoricalInfo { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** prev block info */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - valset?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }[]; -} - -/** Params defines the parameters for the staking module. */ -export interface CosmosStakingV1Beta1Params { - /** unbonding_time is the time duration of unbonding. */ - unbonding_time?: string; - /** - * max_validators is the maximum number of validators. - * @format int64 - */ - max_validators?: number; - /** - * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). - * @format int64 - */ - max_entries?: number; - /** - * historical_entries is the number of historical entries to persist. - * @format int64 - */ - historical_entries?: number; - /** bond_denom defines the bondable coin denomination. */ - bond_denom?: string; -} - -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - */ -export interface CosmosStakingV1Beta1Pool { - not_bonded_tokens?: string; - bonded_tokens?: string; -} - -/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ -export interface CosmosStakingV1Beta1QueryDelegationResponse { - /** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ - delegation_response?: { - /** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ - delegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - balance?: { - denom?: string; - amount?: string; - }; - }; -} - -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - */ -export interface CosmosStakingV1Beta1QueryDelegatorDelegationsResponse { - /** delegation_responses defines all the delegations' info of a delegator. */ - delegation_responses?: { - /** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ - delegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - balance?: { - denom?: string; - amount?: string; - }; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - */ -export interface CosmosStakingV1Beta1QueryDelegatorUnbondingDelegationsResponse { - unbonding_responses?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: { - /** - * creation_height is the height which the unbonding took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time is the unix time for unbonding completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; - }[]; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - */ -export interface CosmosStakingV1Beta1QueryDelegatorValidatorResponse { - /** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ - validator?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }; -} - -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - */ -export interface CosmosStakingV1Beta1QueryDelegatorValidatorsResponse { - /** validators defines the the validators' info of a delegator. */ - validators?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - */ -export interface CosmosStakingV1Beta1QueryHistoricalInfoResponse { - /** hist defines the historical info at the given height. */ - hist?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** prev block info */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - valset?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }[]; - }; -} - -/** QueryParamsResponse is response type for the Query/Params RPC method. */ -export interface CosmosStakingV1Beta1QueryParamsResponse { - /** params holds all the parameters of this module. */ - params?: { - /** unbonding_time is the time duration of unbonding. */ - unbonding_time?: string; - /** - * max_validators is the maximum number of validators. - * @format int64 - */ - max_validators?: number; - /** - * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). - * @format int64 - */ - max_entries?: number; - /** - * historical_entries is the number of historical entries to persist. - * @format int64 - */ - historical_entries?: number; - /** bond_denom defines the bondable coin denomination. */ - bond_denom?: string; - }; -} - -/** QueryPoolResponse is response type for the Query/Pool RPC method. */ -export interface CosmosStakingV1Beta1QueryPoolResponse { - /** pool defines the pool info. */ - pool?: { - not_bonded_tokens?: string; - bonded_tokens?: string; - }; -} - -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - */ -export interface CosmosStakingV1Beta1QueryRedelegationsResponse { - redelegation_responses?: { - /** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ - redelegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address?: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address?: string; - /** entries are the redelegation entries. */ - entries?: { - /** - * creation_height defines the height which the redelegation took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time defines the unix time for redelegation completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; - }[]; - }; - entries?: { - /** RedelegationEntry defines a redelegation object with relevant metadata. */ - redelegation_entry?: { - /** - * creation_height defines the height which the redelegation took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time defines the unix time for redelegation completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; - }; - balance?: string; - }[]; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - */ -export interface CosmosStakingV1Beta1QueryUnbondingDelegationResponse { - /** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ - unbond?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: { - /** - * creation_height is the height which the unbonding took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time is the unix time for unbonding completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; - }[]; - }; -} - -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - */ -export interface CosmosStakingV1Beta1QueryValidatorDelegationsResponse { - delegation_responses?: { - /** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ - delegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - balance?: { - denom?: string; - amount?: string; - }; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** QueryValidatorResponse is response type for the Query/Validator RPC method */ -export interface CosmosStakingV1Beta1QueryValidatorResponse { - /** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ - validator?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }; -} - -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - */ -export interface CosmosStakingV1Beta1QueryValidatorUnbondingDelegationsResponse { - unbonding_responses?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: { - /** - * creation_height is the height which the unbonding took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time is the unix time for unbonding completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; - }[]; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** QueryValidatorsResponse is response type for the Query/Validators RPC method */ -export interface CosmosStakingV1Beta1QueryValidatorsResponse { - /** validators contains all the queried validators. */ - validators?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ -export interface CosmosStakingV1Beta1Redelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address?: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address?: string; - /** entries are the redelegation entries. */ - entries?: { - /** - * creation_height defines the height which the redelegation took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time defines the unix time for redelegation completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; - }[]; -} - -/** RedelegationEntry defines a redelegation object with relevant metadata. */ -export interface CosmosStakingV1Beta1RedelegationEntry { - /** - * creation_height defines the height which the redelegation took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time defines the unix time for redelegation completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; -} - -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - */ -export interface CosmosStakingV1Beta1RedelegationEntryResponse { - /** RedelegationEntry defines a redelegation object with relevant metadata. */ - redelegation_entry?: { - /** - * creation_height defines the height which the redelegation took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time defines the unix time for redelegation completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; - }; - balance?: string; -} - -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - */ -export interface CosmosStakingV1Beta1RedelegationResponse { - /** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ - redelegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address?: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address?: string; - /** entries are the redelegation entries. */ - entries?: { - /** - * creation_height defines the height which the redelegation took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time defines the unix time for redelegation completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; - }[]; - }; - entries?: { - /** RedelegationEntry defines a redelegation object with relevant metadata. */ - redelegation_entry?: { - /** - * creation_height defines the height which the redelegation took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time defines the unix time for redelegation completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; - }; - balance?: string; - }[]; -} - -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ -export interface CosmosStakingV1Beta1UnbondingDelegation { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: { - /** - * creation_height is the height which the unbonding took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time is the unix time for unbonding completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; - }[]; -} - -/** UnbondingDelegationEntry defines an unbonding object with relevant metadata. */ -export interface CosmosStakingV1Beta1UnbondingDelegationEntry { - /** - * creation_height is the height which the unbonding took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time is the unix time for unbonding completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; -} - -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ -export interface CosmosStakingV1Beta1Validator { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: 'BOND_STATUS_UNSPECIFIED' | 'BOND_STATUS_UNBONDED' | 'BOND_STATUS_UNBONDING' | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; -} - -/** MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. */ -export interface CosmosStakingV1Beta1MsgBeginRedelegateResponse { - /** @format date-time */ - completion_time?: string; -} - -/** MsgCreateValidatorResponse defines the Msg/CreateValidator response type. */ -export type CosmosStakingV1Beta1MsgCreateValidatorResponse = object; - -/** MsgDelegateResponse defines the Msg/Delegate response type. */ -export type CosmosStakingV1Beta1MsgDelegateResponse = object; - -/** MsgEditValidatorResponse defines the Msg/EditValidator response type. */ -export type CosmosStakingV1Beta1MsgEditValidatorResponse = object; - -/** MsgUndelegateResponse defines the Msg/Undelegate response type. */ -export interface CosmosStakingV1Beta1MsgUndelegateResponse { - /** @format date-time */ - completion_time?: string; -} - -/** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ -export interface CosmosBaseAbciV1Beta1ABCIMessageLog { - /** @format int64 */ - msg_index?: number; - log?: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events?: { - type?: string; - attributes?: { - key?: string; - value?: string; - }[]; - }[]; -} - -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - */ -export interface CosmosBaseAbciV1Beta1Attribute { - key?: string; - value?: string; -} - -/** GasInfo defines tx execution gas context. */ -export interface CosmosBaseAbciV1Beta1GasInfo { - /** - * GasWanted is the maximum units of work we allow this tx to perform. - * @format uint64 - */ - gas_wanted?: string; - /** - * GasUsed is the amount of gas actually consumed. - * @format uint64 - */ - gas_used?: string; -} - -/** Result is the union of ResponseFormat and ResponseCheckTx. */ -export interface CosmosBaseAbciV1Beta1Result { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * @format byte - */ - data?: string; - /** Log contains the log information from message or handler execution. */ - log?: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events?: { - type?: string; - attributes?: { - /** @format byte */ - key?: string; - /** @format byte */ - value?: string; - index?: boolean; - }[]; - }[]; -} - -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - */ -export interface CosmosBaseAbciV1Beta1StringEvent { - type?: string; - attributes?: { - key?: string; - value?: string; - }[]; -} - -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ -export interface CosmosBaseAbciV1Beta1TxResponse { - /** - * The block height - * @format int64 - */ - height?: string; - /** The transaction hash. */ - txhash?: string; - /** Namespace for the Code */ - codespace?: string; - /** - * Response code. - * @format int64 - */ - code?: number; - /** Result bytes, if any. */ - data?: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log?: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs?: { - /** @format int64 */ - msg_index?: number; - log?: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events?: { - type?: string; - attributes?: { - key?: string; - value?: string; - }[]; - }[]; - }[]; - /** Additional information. May be non-deterministic. */ - info?: string; - /** - * Amount of gas requested for transaction. - * @format int64 - */ - gas_wanted?: string; - /** - * Amount of gas consumed by transaction. - * @format int64 - */ - gas_used?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - tx?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp?: string; -} - -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ -export interface CosmosCryptoMultisigV1Beta1CompactBitArray { - /** @format int64 */ - extra_bits_stored?: number; - /** @format byte */ - elems?: string; -} - -/** - * SignMode represents a signing mode with its own security guarantees. - * - * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected - * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx - * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some - * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT - * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future - * @default "SIGN_MODE_UNSPECIFIED" - */ -export enum CosmosTxSigningV1Beta1SignMode { - SIGN_MODE_UNSPECIFIED = 'SIGN_MODE_UNSPECIFIED', - SIGN_MODE_DIRECT = 'SIGN_MODE_DIRECT', - SIGN_MODE_TEXTUAL = 'SIGN_MODE_TEXTUAL', - SIGN_MODE_LEGACY_AMINO_JSON = 'SIGN_MODE_LEGACY_AMINO_JSON', -} - -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ -export interface CosmosTxV1Beta1AuthInfo { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - */ - signer_infos?: CosmosTxV1Beta1SignerInfo[]; - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - */ - fee?: { - /** amount is the amount of coins to be paid as a fee */ - amount?: { - denom?: string; - amount?: string; - }[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - * @format uint64 - */ - gas_limit?: string; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer?: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter?: string; - }; -} - -/** - * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. - * - * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - * @default "BROADCAST_MODE_UNSPECIFIED" - */ -export enum CosmosTxV1Beta1BroadcastMode { - BROADCAST_MODE_UNSPECIFIED = 'BROADCAST_MODE_UNSPECIFIED', - BROADCAST_MODE_BLOCK = 'BROADCAST_MODE_BLOCK', - BROADCAST_MODE_SYNC = 'BROADCAST_MODE_SYNC', - BROADCAST_MODE_ASYNC = 'BROADCAST_MODE_ASYNC', -} - -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - */ -export interface CosmosTxV1Beta1BroadcastTxRequest { - /** - * tx_bytes is the raw transaction. - * @format byte - */ - tx_bytes?: string; - /** - * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. - * - * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - * @default "BROADCAST_MODE_UNSPECIFIED" - */ - mode?: 'BROADCAST_MODE_UNSPECIFIED' | 'BROADCAST_MODE_BLOCK' | 'BROADCAST_MODE_SYNC' | 'BROADCAST_MODE_ASYNC'; -} - -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - */ -export interface CosmosTxV1Beta1BroadcastTxResponse { - /** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ - tx_response?: { - /** - * The block height - * @format int64 - */ - height?: string; - /** The transaction hash. */ - txhash?: string; - /** Namespace for the Code */ - codespace?: string; - /** - * Response code. - * @format int64 - */ - code?: number; - /** Result bytes, if any. */ - data?: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log?: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs?: { - /** @format int64 */ - msg_index?: number; - log?: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events?: { - type?: string; - attributes?: { - key?: string; - value?: string; - }[]; - }[]; - }[]; - /** Additional information. May be non-deterministic. */ - info?: string; - /** - * Amount of gas requested for transaction. - * @format int64 - */ - gas_wanted?: string; - /** - * Amount of gas consumed by transaction. - * @format int64 - */ - gas_used?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - tx?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp?: string; - }; -} - -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - */ -export interface CosmosTxV1Beta1Fee { - /** amount is the amount of coins to be paid as a fee */ - amount?: { - denom?: string; - amount?: string; - }[]; - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - * @format uint64 - */ - gas_limit?: string; - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - */ - payer?: string; - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - */ - granter?: string; -} - -/** GetTxResponse is the response type for the Service.GetTx method. */ -export interface CosmosTxV1Beta1GetTxResponse { - /** tx is the queried transaction. */ - tx?: CosmosTxV1Beta1Tx; - /** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ - tx_response?: { - /** - * The block height - * @format int64 - */ - height?: string; - /** The transaction hash. */ - txhash?: string; - /** Namespace for the Code */ - codespace?: string; - /** - * Response code. - * @format int64 - */ - code?: number; - /** Result bytes, if any. */ - data?: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log?: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs?: { - /** @format int64 */ - msg_index?: number; - log?: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events?: { - type?: string; - attributes?: { - key?: string; - value?: string; - }[]; - }[]; - }[]; - /** Additional information. May be non-deterministic. */ - info?: string; - /** - * Amount of gas requested for transaction. - * @format int64 - */ - gas_wanted?: string; - /** - * Amount of gas consumed by transaction. - * @format int64 - */ - gas_used?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - tx?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp?: string; - }; -} - -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - */ -export interface CosmosTxV1Beta1GetTxsEventResponse { - /** txs is the list of queried transactions. */ - txs?: CosmosTxV1Beta1Tx[]; - /** tx_responses is the list of queried TxResponses. */ - tx_responses?: { - /** - * The block height - * @format int64 - */ - height?: string; - /** The transaction hash. */ - txhash?: string; - /** Namespace for the Code */ - codespace?: string; - /** - * Response code. - * @format int64 - */ - code?: number; - /** Result bytes, if any. */ - data?: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log?: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs?: { - /** @format int64 */ - msg_index?: number; - log?: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events?: { - type?: string; - attributes?: { - key?: string; - value?: string; - }[]; - }[]; - }[]; - /** Additional information. May be non-deterministic. */ - info?: string; - /** - * Amount of gas requested for transaction. - * @format int64 - */ - gas_wanted?: string; - /** - * Amount of gas consumed by transaction. - * @format int64 - */ - gas_used?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - tx?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp?: string; - }[]; - /** pagination defines an pagination for the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** ModeInfo describes the signing mode of a single or nested multisig signer. */ -export interface CosmosTxV1Beta1ModeInfo { - /** single represents a single signer */ - single?: { - /** - * mode is the signing mode of the single signer - * SignMode represents a signing mode with its own security guarantees. - * - * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected - * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx - * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some - * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT - * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future - * @default "SIGN_MODE_UNSPECIFIED" - */ - mode?: 'SIGN_MODE_UNSPECIFIED' | 'SIGN_MODE_DIRECT' | 'SIGN_MODE_TEXTUAL' | 'SIGN_MODE_LEGACY_AMINO_JSON'; - }; - /** multi represents a nested multisig signer */ - multi?: CosmosTxV1Beta1ModeInfoMulti; -} - -/** Multi is the mode info for a multisig public key */ -export interface CosmosTxV1Beta1ModeInfoMulti { - /** - * bitarray specifies which keys within the multisig are signing - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - */ - bitarray?: { - /** @format int64 */ - extra_bits_stored?: number; - /** @format byte */ - elems?: string; - }; - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - */ - mode_infos?: CosmosTxV1Beta1ModeInfo[]; -} - -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - */ -export interface CosmosTxV1Beta1ModeInfoSingle { - /** - * mode is the signing mode of the single signer - * SignMode represents a signing mode with its own security guarantees. - * - * - SIGN_MODE_UNSPECIFIED: SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected - * - SIGN_MODE_DIRECT: SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx - * - SIGN_MODE_TEXTUAL: SIGN_MODE_TEXTUAL is a future signing mode that will verify some - * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT - * - SIGN_MODE_LEGACY_AMINO_JSON: SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future - * @default "SIGN_MODE_UNSPECIFIED" - */ - mode?: 'SIGN_MODE_UNSPECIFIED' | 'SIGN_MODE_DIRECT' | 'SIGN_MODE_TEXTUAL' | 'SIGN_MODE_LEGACY_AMINO_JSON'; -} - -/** - * OrderBy defines the sorting order - * - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. - * - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order - * - ORDER_BY_DESC: ORDER_BY_DESC defines descending order - * @default "ORDER_BY_UNSPECIFIED" - */ -export enum CosmosTxV1Beta1OrderBy { - ORDER_BY_UNSPECIFIED = 'ORDER_BY_UNSPECIFIED', - ORDER_BY_ASC = 'ORDER_BY_ASC', - ORDER_BY_DESC = 'ORDER_BY_DESC', -} - -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - */ -export interface CosmosTxV1Beta1SignerInfo { - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - public_key?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - * ModeInfo describes the signing mode of a single or nested multisig signer. - */ - mode_info?: CosmosTxV1Beta1ModeInfo; - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - * @format uint64 - */ - sequence?: string; -} - -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - */ -export interface CosmosTxV1Beta1SimulateRequest { - /** tx is the transaction to simulate. */ - tx?: CosmosTxV1Beta1Tx; -} - -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - */ -export interface CosmosTxV1Beta1SimulateResponse { - /** gas_info is the information about gas used in the simulation. */ - gas_info?: { - /** - * GasWanted is the maximum units of work we allow this tx to perform. - * @format uint64 - */ - gas_wanted?: string; - /** - * GasUsed is the amount of gas actually consumed. - * @format uint64 - */ - gas_used?: string; - }; - /** result is the result of the simulation. */ - result?: { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * @format byte - */ - data?: string; - /** Log contains the log information from message or handler execution. */ - log?: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events?: { - type?: string; - attributes?: { - /** @format byte */ - key?: string; - /** @format byte */ - value?: string; - index?: boolean; - }[]; - }[]; - }; -} - -/** Tx is the standard type used for broadcasting transactions. */ -export interface CosmosTxV1Beta1Tx { - /** - * body is the processable content of the transaction - * TxBody is the body of a transaction that all signers sign over. - */ - body?: { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - /** memo is any arbitrary memo to be added to the transaction */ - memo?: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - * @format uint64 - */ - timeout_height?: string; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extension_options?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - non_critical_extension_options?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - }; - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - */ - auth_info?: CosmosTxV1Beta1AuthInfo; - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - */ - signatures?: string[]; -} - -/** TxBody is the body of a transaction that all signers sign over. */ -export interface CosmosTxV1Beta1TxBody { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - */ - messages?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - /** memo is any arbitrary memo to be added to the transaction */ - memo?: string; - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - * @format uint64 - */ - timeout_height?: string; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - */ - extension_options?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - */ - non_critical_extension_options?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; -} - -/** - * Event allows application developers to attach additional information to - * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. - * Later, transactions may be queried using these events. - */ -export interface TendermintAbciEvent { - type?: string; - attributes?: { - /** @format byte */ - key?: string; - /** @format byte */ - value?: string; - index?: boolean; - }[]; -} - -/** EventAttribute is a single key-value pair, associated with an event. */ -export interface TendermintAbciEventAttribute { - /** @format byte */ - key?: string; - /** @format byte */ - value?: string; - index?: boolean; -} - -/** Plan specifies information about a planned upgrade and when it should occur. */ -export interface CosmosUpgradeV1Beta1Plan { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name?: string; - /** - * The time after which the upgrade must be performed. - * Leave set to its zero value to use a pre-defined Height instead. - * @format date-time - */ - time?: string; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - * @format int64 - */ - height?: string; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info?: string; - /** - * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan - * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, - * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the - * previous version of the chain. - * This will allow IBC connections to persist smoothly across planned chain upgrades - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - upgraded_client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; -} - -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - */ -export interface CosmosUpgradeV1Beta1QueryAppliedPlanResponse { - /** - * height is the block height at which the plan was applied. - * @format int64 - */ - height?: string; -} - -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - */ -export interface CosmosUpgradeV1Beta1QueryCurrentPlanResponse { - /** plan is the current upgrade plan. */ - plan?: { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name?: string; - /** - * The time after which the upgrade must be performed. - * Leave set to its zero value to use a pre-defined Height instead. - * @format date-time - */ - time?: string; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - * @format int64 - */ - height?: string; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info?: string; - /** - * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan - * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, - * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the - * previous version of the chain. - * This will allow IBC connections to persist smoothly across planned chain upgrades - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - upgraded_client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }; -} - -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - */ -export interface CosmosUpgradeV1Beta1QueryUpgradedConsensusStateResponse { - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - upgraded_consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; -} - -/** MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. */ -export type CosmosVestingV1Beta1MsgCreateVestingAccountResponse = object; - -/** - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ -export interface CosmwasmWasmV1Beta1AbsoluteTxPosition { - /** - * BlockHeight is the block the contract was created at - * @format uint64 - */ - block_height?: string; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - * @format uint64 - */ - tx_index?: string; -} - -/** CodeInfoResponse contains code meta data from CodeInfo */ -export interface CosmwasmWasmV1Beta1CodeInfoResponse { - /** @format uint64 */ - code_id?: string; - creator?: string; - /** @format byte */ - data_hash?: string; - source?: string; - builder?: string; -} - -/** ContractCodeHistoryEntry metadata to a contract. */ -export interface CosmwasmWasmV1Beta1ContractCodeHistoryEntry { - /** - * ContractCodeHistoryOperationType actions that caused a code change - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data - * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" - */ - operation?: - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'; - /** - * CodeID is the reference to the stored WASM code - * @format uint64 - */ - code_id?: string; - /** Updated Tx position when the operation was executed. */ - updated?: { - /** - * BlockHeight is the block the contract was created at - * @format uint64 - */ - block_height?: string; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - * @format uint64 - */ - tx_index?: string; - }; - /** @format byte */ - msg?: string; -} - -/** - * ContractCodeHistoryOperationType actions that caused a code change - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data - * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" - */ -export enum CosmwasmWasmV1Beta1ContractCodeHistoryOperationType { - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED', - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT', - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE', - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS', -} - -/** ContractInfo stores a WASM contract instance */ -export interface CosmwasmWasmV1Beta1ContractInfo { - /** - * CodeID is the reference to the stored Wasm code - * @format uint64 - */ - code_id?: string; - /** Creator address who initially instantiated the contract */ - creator?: string; - /** Admin is an optional address that can execute migrations */ - admin?: string; - /** Label is optional metadata to be stored with a contract instance. */ - label?: string; - /** - * Created Tx position when the contract was instantiated. - * This data should kept internal and not be exposed via query results. Just - * use for sorting - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ - created?: { - /** - * BlockHeight is the block the contract was created at - * @format uint64 - */ - block_height?: string; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - * @format uint64 - */ - tx_index?: string; - }; - ibc_port_id?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - extension?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; -} - -/** Model is a struct that holds a KV pair */ -export interface CosmwasmWasmV1Beta1Model { - /** - * hex-encode key to read it better (this is often ascii) - * @format byte - */ - key?: string; - /** - * base64-encode raw value - * @format byte - */ - value?: string; -} - -/** - * QueryAllContractStateResponse is the response type for the - * Query/AllContractState RPC method - */ -export interface CosmwasmWasmV1Beta1QueryAllContractStateResponse { - models?: { - /** - * hex-encode key to read it better (this is often ascii) - * @format byte - */ - key?: string; - /** - * base64-encode raw value - * @format byte - */ - value?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** QueryCodeResponse is the response type for the Query/Code RPC method */ -export interface CosmwasmWasmV1Beta1QueryCodeResponse { - /** CodeInfoResponse contains code meta data from CodeInfo */ - code_info?: { - /** @format uint64 */ - code_id?: string; - creator?: string; - /** @format byte */ - data_hash?: string; - source?: string; - builder?: string; - }; - /** @format byte */ - data?: string; -} - -/** QueryCodesResponse is the response type for the Query/Codes RPC method */ -export interface CosmwasmWasmV1Beta1QueryCodesResponse { - code_infos?: { - /** @format uint64 */ - code_id?: string; - creator?: string; - /** @format byte */ - data_hash?: string; - source?: string; - builder?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * QueryContractHistoryResponse is the response type for the - * Query/ContractHistory RPC method - */ -export interface CosmwasmWasmV1Beta1QueryContractHistoryResponse { - entries?: { - /** - * ContractCodeHistoryOperationType actions that caused a code change - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data - * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" - */ - operation?: - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'; - /** - * CodeID is the reference to the stored WASM code - * @format uint64 - */ - code_id?: string; - /** Updated Tx position when the operation was executed. */ - updated?: { - /** - * BlockHeight is the block the contract was created at - * @format uint64 - */ - block_height?: string; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - * @format uint64 - */ - tx_index?: string; - }; - /** @format byte */ - msg?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * QueryContractInfoResponse is the response type for the Query/ContractInfo RPC - * method - */ -export interface CosmwasmWasmV1Beta1QueryContractInfoResponse { - /** address is the address of the contract */ - address?: string; - /** ContractInfo stores a WASM contract instance */ - contract_info?: { - /** - * CodeID is the reference to the stored Wasm code - * @format uint64 - */ - code_id?: string; - /** Creator address who initially instantiated the contract */ - creator?: string; - /** Admin is an optional address that can execute migrations */ - admin?: string; - /** Label is optional metadata to be stored with a contract instance. */ - label?: string; - /** - * Created Tx position when the contract was instantiated. - * This data should kept internal and not be exposed via query results. Just - * use for sorting - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ - created?: { - /** - * BlockHeight is the block the contract was created at - * @format uint64 - */ - block_height?: string; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - * @format uint64 - */ - tx_index?: string; - }; - ibc_port_id?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - extension?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }; -} - -/** - * QueryContractsByCodeResponse is the response type for the - * Query/ContractsByCode RPC method - */ -export interface CosmwasmWasmV1Beta1QueryContractsByCodeResponse { - /** contracts are a set of contract addresses */ - contracts?: string[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * QueryRawContractStateResponse is the response type for the - * Query/RawContractState RPC method - */ -export interface CosmwasmWasmV1Beta1QueryRawContractStateResponse { - /** - * Data contains the raw store data - * @format byte - */ - data?: string; -} - -/** - * QuerySmartContractStateResponse is the response type for the - * Query/SmartContractState RPC method - */ -export interface CosmwasmWasmV1Beta1QuerySmartContractStateResponse { - /** - * Data contains the json data returned from the smart contract - * @format byte - */ - data?: string; -} - -/** AccessConfig access control type. */ -export interface CosmwasmWasmV1Beta1AccessConfig { - /** - * AccessType permission types - * - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - * - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - * - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to an address - * - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - * @default "ACCESS_TYPE_UNSPECIFIED" - */ - permission?: 'ACCESS_TYPE_UNSPECIFIED' | 'ACCESS_TYPE_NOBODY' | 'ACCESS_TYPE_ONLY_ADDRESS' | 'ACCESS_TYPE_EVERYBODY'; - address?: string; -} - -/** - * AccessType permission types - * - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - * - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - * - ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to an address - * - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - * @default "ACCESS_TYPE_UNSPECIFIED" - */ -export enum CosmwasmWasmV1Beta1AccessType { - ACCESS_TYPE_UNSPECIFIED = 'ACCESS_TYPE_UNSPECIFIED', - ACCESS_TYPE_NOBODY = 'ACCESS_TYPE_NOBODY', - ACCESS_TYPE_ONLY_ADDRESS = 'ACCESS_TYPE_ONLY_ADDRESS', - ACCESS_TYPE_EVERYBODY = 'ACCESS_TYPE_EVERYBODY', -} - -/** MsgClearAdminResponse returns empty data */ -export type CosmwasmWasmV1Beta1MsgClearAdminResponse = object; - -/** MsgExecuteContractResponse returns execution result data. */ -export interface CosmwasmWasmV1Beta1MsgExecuteContractResponse { - /** - * Data contains base64-encoded bytes to returned from the contract - * @format byte - */ - data?: string; -} - -/** MsgInstantiateContractResponse return instantiation result data */ -export interface CosmwasmWasmV1Beta1MsgInstantiateContractResponse { - /** Address is the bech32 address of the new contract instance. */ - address?: string; - /** - * Data contains base64-encoded bytes to returned from the contract - * @format byte - */ - data?: string; -} - -/** MsgMigrateContractResponse returns contract migration result data. */ -export interface CosmwasmWasmV1Beta1MsgMigrateContractResponse { - /** - * Data contains same raw bytes returned as data from the wasm contract. - * (May be empty) - * @format byte - */ - data?: string; -} - -/** MsgStoreCodeResponse returns store result data. */ -export interface CosmwasmWasmV1Beta1MsgStoreCodeResponse { - /** - * CodeID is the reference to the stored WASM code - * @format uint64 - */ - code_id?: string; -} - -/** MsgUpdateAdminResponse returns empty data */ -export type CosmwasmWasmV1Beta1MsgUpdateAdminResponse = object; - -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ -export interface IbcApplicationsTransferV1DenomTrace { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path?: string; - /** base denomination of the relayed fungible token. */ - base_denom?: string; -} - -/** - * Params defines the set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - */ -export interface IbcApplicationsTransferV1Params { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - send_enabled?: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receive_enabled?: boolean; -} - -/** - * QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC - * method. - */ -export interface IbcApplicationsTransferV1QueryDenomTraceResponse { - /** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ - denom_trace?: { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path?: string; - /** base denomination of the relayed fungible token. */ - base_denom?: string; - }; -} - -/** - * QueryConnectionsResponse is the response type for the Query/DenomTraces RPC - * method. - */ -export interface IbcApplicationsTransferV1QueryDenomTracesResponse { - /** denom_traces returns all denominations trace information. */ - denom_traces?: { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path?: string; - /** base denomination of the relayed fungible token. */ - base_denom?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** QueryParamsResponse is the response type for the Query/Params RPC method. */ -export interface IbcApplicationsTransferV1QueryParamsResponse { - /** params defines the parameters of the module. */ - params?: { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - send_enabled?: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receive_enabled?: boolean; - }; -} - -/** MsgTransferResponse defines the Msg/Transfer response type. */ -export type IbcApplicationsTransferV1MsgTransferResponse = object; - -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ -export interface IbcCoreClientV1Height { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; -} - -/** - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - */ -export interface IbcCoreChannelV1Channel { - /** - * current state of the channel end - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A channel has just started the opening handshake. - * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - * - STATE_OPEN: A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - * packets. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; - /** - * whether the channel is ordered or unordered - * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - * @default "ORDER_NONE_UNSPECIFIED" - */ - ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; - /** counterparty channel end */ - counterparty?: { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id?: string; - /** channel end on the counterparty chain */ - channel_id?: string; - }; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops?: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version?: string; -} - -/** Counterparty defines a channel end counterparty */ -export interface IbcCoreChannelV1Counterparty { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id?: string; - /** channel end on the counterparty chain */ - channel_id?: string; -} - -/** - * IdentifiedChannel defines a channel with additional port and channel - * identifier fields. - */ -export interface IbcCoreChannelV1IdentifiedChannel { - /** - * current state of the channel end - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A channel has just started the opening handshake. - * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - * - STATE_OPEN: A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - * packets. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; - /** - * whether the channel is ordered or unordered - * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - * @default "ORDER_NONE_UNSPECIFIED" - */ - ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; - /** counterparty channel end */ - counterparty?: { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id?: string; - /** channel end on the counterparty chain */ - channel_id?: string; - }; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops?: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version?: string; - /** port identifier */ - port_id?: string; - /** channel identifier */ - channel_id?: string; -} - -/** - * Order defines if a channel is ORDERED or UNORDERED - * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - * @default "ORDER_NONE_UNSPECIFIED" - */ -export enum IbcCoreChannelV1Order { - ORDER_NONE_UNSPECIFIED = 'ORDER_NONE_UNSPECIFIED', - ORDER_UNORDERED = 'ORDER_UNORDERED', - ORDER_ORDERED = 'ORDER_ORDERED', -} - -/** - * PacketState defines the generic type necessary to retrieve and store - * packet commitments, acknowledgements, and receipts. - * Caller is responsible for knowing the context necessary to interpret this - * state as a commitment, acknowledgement, or a receipt. - */ -export interface IbcCoreChannelV1PacketState { - /** channel port identifier. */ - port_id?: string; - /** channel unique identifier. */ - channel_id?: string; - /** - * packet sequence. - * @format uint64 - */ - sequence?: string; - /** - * embedded data that represents packet state. - * @format byte - */ - data?: string; -} - -/** - * QueryChannelClientStateResponse is the Response type for the - * Query/QueryChannelClientState RPC method - */ -export interface IbcCoreChannelV1QueryChannelClientStateResponse { - /** - * client state associated with the channel - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ - identified_client_state?: { - /** client identifier */ - client_id?: string; - /** - * client state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryChannelClientStateResponse is the Response type for the - * Query/QueryChannelClientState RPC method - */ -export interface IbcCoreChannelV1QueryChannelConsensusStateResponse { - /** - * consensus state associated with the channel - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** client ID associated with the consensus state */ - client_id?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryChannelResponse is the response type for the Query/Channel RPC method. - * Besides the Channel end, it includes a proof and the height from which the - * proof was retrieved. - */ -export interface IbcCoreChannelV1QueryChannelResponse { - /** - * channel associated with the request identifiers - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - */ - channel?: { - /** - * current state of the channel end - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A channel has just started the opening handshake. - * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - * - STATE_OPEN: A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - * packets. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; - /** - * whether the channel is ordered or unordered - * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - * @default "ORDER_NONE_UNSPECIFIED" - */ - ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; - /** counterparty channel end */ - counterparty?: { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id?: string; - /** channel end on the counterparty chain */ - channel_id?: string; - }; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops?: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version?: string; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** QueryChannelsResponse is the response type for the Query/Channels RPC method. */ -export interface IbcCoreChannelV1QueryChannelsResponse { - /** list of stored channels of the chain. */ - channels?: { - /** - * current state of the channel end - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A channel has just started the opening handshake. - * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - * - STATE_OPEN: A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - * packets. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; - /** - * whether the channel is ordered or unordered - * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - * @default "ORDER_NONE_UNSPECIFIED" - */ - ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; - /** counterparty channel end */ - counterparty?: { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id?: string; - /** channel end on the counterparty chain */ - channel_id?: string; - }; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops?: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version?: string; - /** port identifier */ - port_id?: string; - /** channel identifier */ - channel_id?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryConnectionChannelsResponse is the Response type for the - * Query/QueryConnectionChannels RPC method - */ -export interface IbcCoreChannelV1QueryConnectionChannelsResponse { - /** list of channels associated with a connection. */ - channels?: { - /** - * current state of the channel end - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A channel has just started the opening handshake. - * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - * - STATE_OPEN: A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - * packets. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; - /** - * whether the channel is ordered or unordered - * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - * @default "ORDER_NONE_UNSPECIFIED" - */ - ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; - /** counterparty channel end */ - counterparty?: { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id?: string; - /** channel end on the counterparty chain */ - channel_id?: string; - }; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops?: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version?: string; - /** port identifier */ - port_id?: string; - /** channel identifier */ - channel_id?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QuerySequenceResponse is the request type for the - * Query/QueryNextSequenceReceiveResponse RPC method - */ -export interface IbcCoreChannelV1QueryNextSequenceReceiveResponse { - /** - * next sequence receive number - * @format uint64 - */ - next_sequence_receive?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryPacketAcknowledgementResponse defines the client query response for a - * packet which also includes a proof and the height from which the - * proof was retrieved - */ -export interface IbcCoreChannelV1QueryPacketAcknowledgementResponse { - /** - * packet associated with the request fields - * @format byte - */ - acknowledgement?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryPacketAcknowledgemetsResponse is the request type for the - * Query/QueryPacketAcknowledgements RPC method - */ -export interface IbcCoreChannelV1QueryPacketAcknowledgementsResponse { - acknowledgements?: { - /** channel port identifier. */ - port_id?: string; - /** channel unique identifier. */ - channel_id?: string; - /** - * packet sequence. - * @format uint64 - */ - sequence?: string; - /** - * embedded data that represents packet state. - * @format byte - */ - data?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryPacketCommitmentResponse defines the client query response for a packet - * which also includes a proof and the height from which the proof was - * retrieved - */ -export interface IbcCoreChannelV1QueryPacketCommitmentResponse { - /** - * packet associated with the request fields - * @format byte - */ - commitment?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryPacketCommitmentsResponse is the request type for the - * Query/QueryPacketCommitments RPC method - */ -export interface IbcCoreChannelV1QueryPacketCommitmentsResponse { - commitments?: { - /** channel port identifier. */ - port_id?: string; - /** channel unique identifier. */ - channel_id?: string; - /** - * packet sequence. - * @format uint64 - */ - sequence?: string; - /** - * embedded data that represents packet state. - * @format byte - */ - data?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryPacketReceiptResponse defines the client query response for a packet receipt - * which also includes a proof, and the height from which the proof was - * retrieved - */ -export interface IbcCoreChannelV1QueryPacketReceiptResponse { - /** success flag for if receipt exists */ - received?: boolean; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryUnreceivedAcksResponse is the response type for the - * Query/UnreceivedAcks RPC method - */ -export interface IbcCoreChannelV1QueryUnreceivedAcksResponse { - /** list of unreceived acknowledgement sequences */ - sequences?: string[]; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryUnreceivedPacketsResponse is the response type for the - * Query/UnreceivedPacketCommitments RPC method - */ -export interface IbcCoreChannelV1QueryUnreceivedPacketsResponse { - /** list of unreceived packet sequences */ - sequences?: string[]; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A channel has just started the opening handshake. - * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - * - STATE_OPEN: A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - * packets. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ -export enum IbcCoreChannelV1State { - STATE_UNINITIALIZED_UNSPECIFIED = 'STATE_UNINITIALIZED_UNSPECIFIED', - STATE_INIT = 'STATE_INIT', - STATE_TRYOPEN = 'STATE_TRYOPEN', - STATE_OPEN = 'STATE_OPEN', - STATE_CLOSED = 'STATE_CLOSED', -} - -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ -export interface IbcCoreClientV1IdentifiedClientState { - /** client identifier */ - client_id?: string; - /** - * client state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; -} - -/** MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. */ -export type IbcCoreChannelV1MsgAcknowledgementResponse = object; - -/** MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response type. */ -export type IbcCoreChannelV1MsgChannelCloseConfirmResponse = object; - -/** MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. */ -export type IbcCoreChannelV1MsgChannelCloseInitResponse = object; - -/** MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. */ -export type IbcCoreChannelV1MsgChannelOpenAckResponse = object; - -/** MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response type. */ -export type IbcCoreChannelV1MsgChannelOpenConfirmResponse = object; - -/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */ -export type IbcCoreChannelV1MsgChannelOpenInitResponse = object; - -/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */ -export type IbcCoreChannelV1MsgChannelOpenTryResponse = object; - -/** MsgRecvPacketResponse defines the Msg/RecvPacket response type. */ -export type IbcCoreChannelV1MsgRecvPacketResponse = object; - -/** MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. */ -export type IbcCoreChannelV1MsgTimeoutOnCloseResponse = object; - -/** MsgTimeoutResponse defines the Msg/Timeout response type. */ -export type IbcCoreChannelV1MsgTimeoutResponse = object; - -/** Packet defines a type that carries data across different chains through IBC */ -export interface IbcCoreChannelV1Packet { - /** - * number corresponds to the order of sends and receives, where a Packet - * with an earlier sequence number must be sent and received before a Packet - * with a later sequence number. - * @format uint64 - */ - sequence?: string; - /** identifies the port on the sending chain. */ - source_port?: string; - /** identifies the channel end on the sending chain. */ - source_channel?: string; - /** identifies the port on the receiving chain. */ - destination_port?: string; - /** identifies the channel end on the receiving chain. */ - destination_channel?: string; - /** - * actual opaque bytes transferred directly to the application module - * @format byte - */ - data?: string; - /** - * block height after which the packet times out - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - timeout_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - /** - * block timestamp (in nanoseconds) after which the packet times out - * @format uint64 - */ - timeout_timestamp?: string; -} - -/** ConsensusStateWithHeight defines a consensus state with an additional height field. */ -export interface IbcCoreClientV1ConsensusStateWithHeight { - /** - * consensus state height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - /** - * consensus state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; -} - -/** Params defines the set of IBC light client parameters. */ -export interface IbcCoreClientV1Params { - /** allowed_clients defines the list of allowed client state types. */ - allowed_clients?: string[]; -} - -/** QueryClientParamsResponse is the response type for the Query/ClientParams RPC method. */ -export interface IbcCoreClientV1QueryClientParamsResponse { - /** params defines the parameters of the module. */ - params?: { - /** allowed_clients defines the list of allowed client state types. */ - allowed_clients?: string[]; - }; -} - -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface IbcCoreClientV1QueryClientStateResponse { - /** - * client state associated with the request identifier - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - */ -export interface IbcCoreClientV1QueryClientStatesResponse { - /** list of stored ClientStates of the chain. */ - client_states?: { - /** client identifier */ - client_id?: string; - /** - * client state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - */ -export interface IbcCoreClientV1QueryConsensusStateResponse { - /** - * consensus state associated with the client identifier at the given height - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - */ -export interface IbcCoreClientV1QueryConsensusStatesResponse { - /** consensus states associated with the identifier */ - consensus_states?: { - /** - * consensus state height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - /** - * consensus state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; -} - -/** MsgCreateClientResponse defines the Msg/CreateClient response type. */ -export type IbcCoreClientV1MsgCreateClientResponse = object; - -/** MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response type. */ -export type IbcCoreClientV1MsgSubmitMisbehaviourResponse = object; - -/** MsgUpdateClientResponse defines the Msg/UpdateClient response type. */ -export type IbcCoreClientV1MsgUpdateClientResponse = object; - -/** MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. */ -export type IbcCoreClientV1MsgUpgradeClientResponse = object; - -/** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - */ -export interface IbcCoreCommitmentV1MerklePrefix { - /** @format byte */ - key_prefix?: string; -} - -/** - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - */ -export interface IbcCoreConnectionV1ConnectionEnd { - /** client associated with this connection. */ - client_id?: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection. - */ - versions?: { - /** unique version identifier */ - identifier?: string; - /** list of features compatible with the specified identifier */ - features?: string[]; - }[]; - /** - * current state of the connection end. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; - /** counterparty chain associated with this connection. */ - counterparty?: { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - client_id?: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connection_id?: string; - /** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - * commitment merkle prefix of the counterparty chain. - */ - prefix?: { - /** @format byte */ - key_prefix?: string; - }; - }; - /** - * delay period that must pass before a consensus state can be used for packet-verification - * NOTE: delay period logic is only implemented by some clients. - * @format uint64 - */ - delay_period?: string; -} - -/** Counterparty defines the counterparty chain associated with a connection end. */ -export interface IbcCoreConnectionV1Counterparty { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - client_id?: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connection_id?: string; - /** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - * commitment merkle prefix of the counterparty chain. - */ - prefix?: { - /** @format byte */ - key_prefix?: string; - }; -} - -/** - * IdentifiedConnection defines a connection with additional connection - * identifier field. - */ -export interface IbcCoreConnectionV1IdentifiedConnection { - /** connection identifier. */ - id?: string; - /** client associated with this connection. */ - client_id?: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection - */ - versions?: { - /** unique version identifier */ - identifier?: string; - /** list of features compatible with the specified identifier */ - features?: string[]; - }[]; - /** - * current state of the connection end. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; - /** counterparty chain associated with this connection. */ - counterparty?: { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - client_id?: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connection_id?: string; - /** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - * commitment merkle prefix of the counterparty chain. - */ - prefix?: { - /** @format byte */ - key_prefix?: string; - }; - }; - /** - * delay period associated with this connection. - * @format uint64 - */ - delay_period?: string; -} - -/** - * QueryClientConnectionsResponse is the response type for the - * Query/ClientConnections RPC method - */ -export interface IbcCoreConnectionV1QueryClientConnectionsResponse { - /** slice of all the connection paths associated with a client. */ - connection_paths?: string[]; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was generated - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryConnectionClientStateResponse is the response type for the - * Query/ConnectionClientState RPC method - */ -export interface IbcCoreConnectionV1QueryConnectionClientStateResponse { - /** - * client state associated with the channel - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ - identified_client_state?: { - /** client identifier */ - client_id?: string; - /** - * client state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryConnectionConsensusStateResponse is the response type for the - * Query/ConnectionConsensusState RPC method - */ -export interface IbcCoreConnectionV1QueryConnectionConsensusStateResponse { - /** - * consensus state associated with the channel - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** client ID associated with the consensus state */ - client_id?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryConnectionResponse is the response type for the Query/Connection RPC - * method. Besides the connection end, it includes a proof and the height from - * which the proof was retrieved. - */ -export interface IbcCoreConnectionV1QueryConnectionResponse { - /** - * connection associated with the request identifier - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - */ - connection?: { - /** client associated with this connection. */ - client_id?: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection. - */ - versions?: { - /** unique version identifier */ - identifier?: string; - /** list of features compatible with the specified identifier */ - features?: string[]; - }[]; - /** - * current state of the connection end. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; - /** counterparty chain associated with this connection. */ - counterparty?: { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - client_id?: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connection_id?: string; - /** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - * commitment merkle prefix of the counterparty chain. - */ - prefix?: { - /** @format byte */ - key_prefix?: string; - }; - }; - /** - * delay period that must pass before a consensus state can be used for packet-verification - * NOTE: delay period logic is only implemented by some clients. - * @format uint64 - */ - delay_period?: string; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * QueryConnectionsResponse is the response type for the Query/Connections RPC - * method. - */ -export interface IbcCoreConnectionV1QueryConnectionsResponse { - /** list of stored connections of the chain. */ - connections?: { - /** connection identifier. */ - id?: string; - /** client associated with this connection. */ - client_id?: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection - */ - versions?: { - /** unique version identifier */ - identifier?: string; - /** list of features compatible with the specified identifier */ - features?: string[]; - }[]; - /** - * current state of the connection end. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; - /** counterparty chain associated with this connection. */ - counterparty?: { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - client_id?: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connection_id?: string; - /** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - * commitment merkle prefix of the counterparty chain. - */ - prefix?: { - /** @format byte */ - key_prefix?: string; - }; - }; - /** - * delay period associated with this connection. - * @format uint64 - */ - delay_period?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; -} - -/** - * State defines if a connection is in one of the following states: - * INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A connection end has just started the opening handshake. - * - STATE_TRYOPEN: A connection end has acknowledged the handshake step on the counterparty - * chain. - * - STATE_OPEN: A connection end has completed the handshake. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ -export enum IbcCoreConnectionV1State { - STATE_UNINITIALIZED_UNSPECIFIED = 'STATE_UNINITIALIZED_UNSPECIFIED', - STATE_INIT = 'STATE_INIT', - STATE_TRYOPEN = 'STATE_TRYOPEN', - STATE_OPEN = 'STATE_OPEN', -} - -/** - * Version defines the versioning scheme used to negotiate the IBC verison in - * the connection handshake. - */ -export interface IbcCoreConnectionV1Version { - /** unique version identifier */ - identifier?: string; - /** list of features compatible with the specified identifier */ - features?: string[]; -} - -/** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ -export type IbcCoreConnectionV1MsgConnectionOpenAckResponse = object; - -/** MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm response type. */ -export type IbcCoreConnectionV1MsgConnectionOpenConfirmResponse = object; - -/** MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response type. */ -export type IbcCoreConnectionV1MsgConnectionOpenInitResponse = object; - -/** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ -export type IbcCoreConnectionV1MsgConnectionOpenTryResponse = object; - -import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, HeadersDefaults, ResponseType } from 'axios'; -import axios from 'axios'; - -export type QueryParamsType = Record; - -export interface FullRequestParams extends Omit { - /** set parameter to `true` for call `securityWorker` for this request */ - secure?: boolean; - /** request path */ - path: string; - /** content type of request body */ - type?: ContentType; - /** query params */ - query?: QueryParamsType; - /** format of response (i.e. response.json() -> format: "json") */ - format?: ResponseType; - /** request body */ - body?: unknown; -} - -export type RequestParams = Omit; - -export interface ApiConfig extends Omit { - securityWorker?: ( - securityData: SecurityDataType | null - ) => Promise | AxiosRequestConfig | void; - secure?: boolean; - format?: ResponseType; -} - -export enum ContentType { - Json = 'application/json', - FormData = 'multipart/form-data', - UrlEncoded = 'application/x-www-form-urlencoded', - Text = 'text/plain', -} - -export class HttpClient { - public instance: AxiosInstance; - private securityData: SecurityDataType | null = null; - private securityWorker?: ApiConfig['securityWorker']; - private secure?: boolean; - private format?: ResponseType; - - constructor({ securityWorker, secure, format, ...axiosConfig }: ApiConfig = {}) { - this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || '' }); - this.secure = secure; - this.format = format; - this.securityWorker = securityWorker; - } - - public setSecurityData = (data: SecurityDataType | null) => { - this.securityData = data; - }; - - protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig { - const method = params1.method || (params2 && params2.method); - - return { - ...this.instance.defaults, - ...params1, - ...(params2 || {}), - headers: { - ...((method && this.instance.defaults.headers[method.toLowerCase() as keyof HeadersDefaults]) || {}), - ...(params1.headers || {}), - ...((params2 && params2.headers) || {}), - }, - }; - } - - protected stringifyFormItem(formItem: unknown) { - if (typeof formItem === 'object' && formItem !== null) { - return JSON.stringify(formItem); - } else { - return `${formItem}`; - } - } - - protected createFormData(input: Record): FormData { - return Object.keys(input || {}).reduce((formData, key) => { - const property = input[key]; - const propertyContent: any[] = property instanceof Array ? property : [property]; - - for (const formItem of propertyContent) { - const isFileType = formItem instanceof Blob || formItem instanceof File; - formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem)); - } - - return formData; - }, new FormData()); - } - - public request = async ({ - secure, - path, - type, - query, - format, - body, - ...params - }: FullRequestParams): Promise> => { - const secureParams = - ((typeof secure === 'boolean' ? secure : this.secure) && - this.securityWorker && - (await this.securityWorker(this.securityData))) || - {}; - const requestParams = this.mergeRequestParams(params, secureParams); - const responseFormat = format || this.format || undefined; - - if (type === ContentType.FormData && body && body !== null && typeof body === 'object') { - body = this.createFormData(body as Record); - } - - if (type === ContentType.Text && body && body !== null && typeof body !== 'string') { - body = JSON.stringify(body); - } - - return this.instance.request({ - ...requestParams, - headers: { - ...(requestParams.headers || {}), - ...(type && type !== ContentType.FormData ? { 'Content-Type': type } : {}), - }, - params: query, - responseType: responseFormat, - data: body, - url: path, - }); - }; -} - -/** - * @title Cyber - * @version 0.2.0 - * - * Bostrom Bootloader Hub - */ -export class Api extends HttpClient { - cyber = { - /** - * No description - * - * @tags Query - * @name GraphStats - * @request GET:/cyber/graph/v1beta1/graph_stats - */ - graphStats: (params: RequestParams = {}) => - this.request< - { - /** @format uint64 */ - cyberlinks?: string; - /** @format uint64 */ - particles?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/graph/v1beta1/graph_stats`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name IsAnyLinkExist - * @request GET:/cyber/rank/v1beta1/is_any_link_exist - */ - isAnyLinkExist: ( - query?: { - from?: string; - to?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - /** @format boolean */ - exist?: boolean; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/is_any_link_exist`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name IsLinkExist - * @request GET:/cyber/rank/v1beta1/is_link_exist - */ - isLinkExist: ( - query?: { - from?: string; - to?: string; - address?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - /** @format boolean */ - exist?: boolean; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/is_link_exist`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Karma - * @request GET:/cyber/rank/v1beta1/karma/{neuron} - */ - karma: (neuron: string, params: RequestParams = {}) => - this.request< - { - /** @format uint64 */ - karma?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/karma/${neuron}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Negentropy - * @request GET:/cyber/rank/v1beta1/negentropy - */ - negentropy: (params: RequestParams = {}) => - this.request< - { - /** @format uint64 */ - negentropy?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/negentropy`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ParticleNegentropy - * @request GET:/cyber/rank/v1beta1/negentropy/{particle} - */ - particleNegentropy: (particle: string, params: RequestParams = {}) => - this.request< - { - /** @format uint64 */ - entropy?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/negentropy/${particle}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Backlinks - * @request GET:/cyber/rank/v1beta1/rank/backlinks/{particle} - */ - backlinks: ( - particle: string, - query?: { - /** @format int64 */ - paginationPage?: number; - /** @format int64 */ - paginationPerPage?: number; - }, - params: RequestParams = {} - ) => - this.request< - { - result?: { - particle?: string; - /** @format uint64 */ - rank?: string; - }[]; - pagination?: { - /** @format int64 */ - total?: number; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/rank/backlinks/${particle}`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name RankParams - * @request GET:/cyber/rank/v1beta1/rank/params - */ - rankParams: (params: RequestParams = {}) => - this.request< - { - params?: { - /** @format int64 */ - calculation_period?: string; - damping_factor?: string; - tolerance?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/rank/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Rank - * @request GET:/cyber/rank/v1beta1/rank/rank/{particle} - */ - rank: (particle: string, params: RequestParams = {}) => - this.request< - { - /** @format uint64 */ - rank?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/rank/rank/${particle}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Search - * @request GET:/cyber/rank/v1beta1/rank/search/{particle} - */ - search: ( - particle: string, - query?: { - /** @format int64 */ - paginationPage?: number; - /** @format int64 */ - paginationPerPage?: number; - }, - params: RequestParams = {} - ) => - this.request< - { - result?: { - particle?: string; - /** @format uint64 */ - rank?: string; - }[]; - pagination?: { - /** @format int64 */ - total?: number; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/rank/search/${particle}`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Top - * @request GET:/cyber/rank/v1beta1/rank/top - */ - top: ( - query?: { - /** @format int64 */ - page?: number; - /** @format int64 */ - per_page?: number; - }, - params: RequestParams = {} - ) => - this.request< - { - result?: { - particle?: string; - /** @format uint64 */ - rank?: string; - }[]; - pagination?: { - /** @format int64 */ - total?: number; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/rank/v1beta1/rank/top`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Load - * @request GET:/cyber/bandwidth/v1beta1/bandwidth/load - */ - load: (params: RequestParams = {}) => - this.request< - { - /** DecProto defines a Protobuf wrapper around a Dec object. */ - load?: { - dec?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/bandwidth/v1beta1/bandwidth/load`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name NeuronBandwidth - * @request GET:/cyber/bandwidth/v1beta1/bandwidth/neuron/{neuron} - */ - neuronBandwidth: (neuron: string, params: RequestParams = {}) => - this.request< - { - neuron_bandwidth?: { - neuron?: string; - /** @format uint64 */ - remained_value?: string; - /** @format uint64 */ - last_updated_block?: string; - /** @format uint64 */ - max_value?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/bandwidth/v1beta1/bandwidth/neuron/${neuron}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name BandwidthParams - * @request GET:/cyber/bandwidth/v1beta1/bandwidth/params - */ - bandwidthParams: (params: RequestParams = {}) => - this.request< - { - params?: { - /** @format uint64 */ - recovery_period?: string; - /** @format uint64 */ - adjust_price_period?: string; - base_price?: string; - base_load?: string; - /** @format uint64 */ - max_block_bandwidth?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/bandwidth/v1beta1/bandwidth/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Price - * @request GET:/cyber/bandwidth/v1beta1/bandwidth/price - */ - price: (params: RequestParams = {}) => - this.request< - { - /** DecProto defines a Protobuf wrapper around a Dec object. */ - price?: { - dec?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/bandwidth/v1beta1/bandwidth/price`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name TotalBandwidth - * @request GET:/cyber/bandwidth/v1beta1/bandwidth/total - */ - totalBandwidth: (params: RequestParams = {}) => - this.request< - { - /** @format uint64 */ - total_bandwidth?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/bandwidth/v1beta1/bandwidth/total`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DestinationRoutedEnergy - * @request GET:/cyber/grid/v1beta1/grid/destination_routed_energy - */ - destinationRoutedEnergy: ( - query?: { - destination?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - value?: { - denom?: string; - amount?: string; - }[]; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/grid/v1beta1/grid/destination_routed_energy`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DestinationRoutes - * @request GET:/cyber/grid/v1beta1/grid/destination_routes - */ - destinationRoutes: ( - query?: { - destination?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - routes?: { - source?: string; - destination?: string; - name?: string; - value?: { - denom?: string; - amount?: string; - }[]; - }[]; - /** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/grid/v1beta1/grid/destination_routes`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name GridParams - * @request GET:/cyber/grid/v1beta1/grid/params - */ - gridParams: (params: RequestParams = {}) => - this.request< - { - params?: { - /** @format int64 */ - max_routes?: number; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/grid/v1beta1/grid/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Route - * @request GET:/cyber/grid/v1beta1/grid/route - */ - route: ( - query?: { - source?: string; - destination?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - route?: { - source?: string; - destination?: string; - name?: string; - value?: { - denom?: string; - amount?: string; - }[]; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/grid/v1beta1/grid/route`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Routes - * @request GET:/cyber/grid/v1beta1/grid/routes - */ - routes: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - * @format boolean - */ - paginationCountTotal?: boolean; - /** - * reverse is set to true if results are to be returned in the descending order. - * @format boolean - */ - paginationReverse?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - routes?: { - source?: string; - destination?: string; - name?: string; - value?: { - denom?: string; - amount?: string; - }[]; - }[]; - /** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/grid/v1beta1/grid/routes`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name SourceRoutedEnergy - * @request GET:/cyber/grid/v1beta1/grid/source_routed_energy - */ - sourceRoutedEnergy: ( - query?: { - source?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - value?: { - denom?: string; - amount?: string; - }[]; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/grid/v1beta1/grid/source_routed_energy`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name SourceRoutes - * @request GET:/cyber/grid/v1beta1/grid/source_routes - */ - sourceRoutes: ( - query?: { - source?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - routes?: { - source?: string; - destination?: string; - name?: string; - value?: { - denom?: string; - amount?: string; - }[]; - }[]; - /** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/grid/v1beta1/grid/source_routes`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Investmint - * @request GET:/cyber/resources/v1beta1/resources/investmint - */ - investmint: ( - query?: { - amountDenom?: string; - amountAmount?: string; - resource?: string; - /** @format uint64 */ - length?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - amount?: { - denom?: string; - amount?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/resources/v1beta1/resources/investmint`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ResourcesParams - * @request GET:/cyber/resources/v1beta1/resources/params - */ - resourcesParams: (params: RequestParams = {}) => - this.request< - { - params?: { - /** @format int64 */ - max_slots?: number; - /** @format int64 */ - halving_period_volt_blocks?: number; - /** @format int64 */ - halving_period_ampere_blocks?: number; - /** @format int64 */ - base_investmint_period_volt?: number; - /** @format int64 */ - base_investmint_period_ampere?: number; - /** @format int64 */ - min_investmint_period?: number; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - base_investmint_amount_volt?: { - denom?: string; - amount?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - base_investmint_amount_ampere?: { - denom?: string; - amount?: string; - }; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/resources/v1beta1/resources/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DmnParams - * @request GET:/cyber/dmn/v1beta1/dmn/params - */ - dmnParams: (params: RequestParams = {}) => - this.request< - { - params?: { - /** @format int64 */ - max_slots?: number; - /** @format int64 */ - max_gas?: number; - /** @format int64 */ - fee_ttl?: number; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/dmn/v1beta1/dmn/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Thought - * @request GET:/cyber/dmn/v1beta1/dmn/thought - */ - thought: ( - query?: { - program?: string; - name?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - thought?: { - program?: string; - trigger?: { - /** @format uint64 */ - period?: string; - /** @format uint64 */ - block?: string; - }; - load?: { - input?: string; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - gas_price?: { - denom?: string; - amount?: string; - }; - }; - name?: string; - particle?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/dmn/v1beta1/dmn/thought`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ThoughtStats - * @request GET:/cyber/dmn/v1beta1/dmn/thought_stats - */ - thoughtStats: ( - query?: { - program?: string; - name?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - thought_stats?: { - program?: string; - name?: string; - /** @format uint64 */ - calls?: string; - /** @format uint64 */ - fees?: string; - /** @format uint64 */ - gas?: string; - /** @format uint64 */ - last_block?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/dmn/v1beta1/dmn/thought_stats`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Thoughts - * @request GET:/cyber/dmn/v1beta1/dmn/thoughts - */ - thoughts: (params: RequestParams = {}) => - this.request< - { - thoughts?: { - program?: string; - trigger?: { - /** @format uint64 */ - period?: string; - /** @format uint64 */ - block?: string; - }; - load?: { - input?: string; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - gas_price?: { - denom?: string; - amount?: string; - }; - }; - name?: string; - particle?: string; - }[]; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/dmn/v1beta1/dmn/thoughts`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ThoughtsStats - * @request GET:/cyber/dmn/v1beta1/dmn/thoughts_stats - */ - thoughtsStats: (params: RequestParams = {}) => - this.request< - { - thoughts_stats?: { - program?: string; - name?: string; - /** @format uint64 */ - calls?: string; - /** @format uint64 */ - fees?: string; - /** @format uint64 */ - gas?: string; - /** @format uint64 */ - last_block?: string; - }[]; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cyber/dmn/v1beta1/dmn/thoughts_stats`, - method: 'GET', - ...params, - }), - }; - cosmos = { - /** - * No description - * - * @tags Query - * @name Account - * @summary Account returns account details based on address. - * @request GET:/cosmos/auth/v1beta1/accounts/{address} - */ - account: (address: string, params: RequestParams = {}) => - this.request< - { - /** account defines the account of the corresponding address. */ - account?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/auth/v1beta1/accounts/${address}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name AuthParams - * @summary Params queries all parameters. - * @request GET:/cosmos/auth/v1beta1/params - */ - authParams: (params: RequestParams = {}) => - this.request< - { - /** params defines the parameters of the module. */ - params?: { - /** @format uint64 */ - max_memo_characters?: string; - /** @format uint64 */ - tx_sig_limit?: string; - /** @format uint64 */ - tx_size_cost_per_byte?: string; - /** @format uint64 */ - sig_verify_cost_ed25519?: string; - /** @format uint64 */ - sig_verify_cost_secp256k1?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/auth/v1beta1/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name AllBalances - * @summary AllBalances queries the balance of all coins for a single account. - * @request GET:/cosmos/bank/v1beta1/balances/{address} - */ - allBalances: ( - address: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** balances is the balances of all the coins. */ - balances?: { - denom?: string; - amount?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/bank/v1beta1/balances/${address}`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Balance - * @summary Balance queries the balance of a single coin for a single account. - * @request GET:/cosmos/bank/v1beta1/balances/{address}/{denom} - */ - balance: (address: string, denom: string, params: RequestParams = {}) => - this.request< - { - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - balance?: { - denom?: string; - amount?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/bank/v1beta1/balances/${address}/${denom}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DenomsMetadata - * @summary DenomsMetadata queries the client metadata for all registered coin denominations. - * @request GET:/cosmos/bank/v1beta1/denoms_metadata - */ - denomsMetadata: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** metadata provides the client information for all the registered tokens. */ - metadatas?: { - description?: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units?: { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom?: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 1^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - * @format int64 - */ - exponent?: number; - /** aliases is a list of string aliases for the given denom */ - aliases?: string[]; - }[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base?: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/bank/v1beta1/denoms_metadata`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DenomMetadata - * @summary DenomsMetadata queries the client metadata of a given coin denomination. - * @request GET:/cosmos/bank/v1beta1/denoms_metadata/{denom} - */ - denomMetadata: (denom: string, params: RequestParams = {}) => - this.request< - { - /** - * Metadata represents a struct that describes - * a basic token. - */ - metadata?: { - description?: string; - /** denom_units represents the list of DenomUnit's for a given coin */ - denom_units?: { - /** denom represents the string name of the given denom unit (e.g uatom). */ - denom?: string; - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 1^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - * @format int64 - */ - exponent?: number; - /** aliases is a list of string aliases for the given denom */ - aliases?: string[]; - }[]; - /** base represents the base denom (should be the DenomUnit with exponent = 0). */ - base?: string; - /** - * display indicates the suggested denom that should be - * displayed in clients. - */ - display?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/bank/v1beta1/denoms_metadata/${denom}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name BankParams - * @summary Params queries the parameters of x/bank module. - * @request GET:/cosmos/bank/v1beta1/params - */ - bankParams: (params: RequestParams = {}) => - this.request< - { - /** Params defines the parameters for the bank module. */ - params?: { - send_enabled?: { - denom?: string; - enabled?: boolean; - }[]; - default_send_enabled?: boolean; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/bank/v1beta1/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name TotalSupply - * @summary TotalSupply queries the total supply of all coins. - * @request GET:/cosmos/bank/v1beta1/supply - */ - totalSupply: (params: RequestParams = {}) => - this.request< - { - /** supply is the supply of the coins */ - supply?: { - denom?: string; - amount?: string; - }[]; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/bank/v1beta1/supply`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name SupplyOf - * @summary SupplyOf queries the supply of a single coin. - * @request GET:/cosmos/bank/v1beta1/supply/{denom} - */ - supplyOf: (denom: string, params: RequestParams = {}) => - this.request< - { - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - amount?: { - denom?: string; - amount?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/bank/v1beta1/supply/${denom}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Service - * @name GetLatestBlock - * @summary GetLatestBlock returns the latest block. - * @request GET:/cosmos/base/tendermint/v1beta1/blocks/latest - */ - getLatestBlock: (params: RequestParams = {}) => - this.request< - { - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - block?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Data contains the set of transactions included in the block */ - data?: { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs?: string[]; - }; - evidence?: { - evidence?: { - /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ - duplicate_vote_evidence?: { - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_a?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_b?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** @format int64 */ - total_voting_power?: string; - /** @format int64 */ - validator_power?: string; - /** @format date-time */ - timestamp?: string; - }; - /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ - light_client_attack_evidence?: { - conflicting_block?: { - signed_header?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - validator_set?: { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; - }; - }; - /** @format int64 */ - common_height?: string; - byzantine_validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** @format int64 */ - total_voting_power?: string; - /** @format date-time */ - timestamp?: string; - }; - }[]; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - last_commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/base/tendermint/v1beta1/blocks/latest`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Service - * @name GetBlockByHeight - * @summary GetBlockByHeight queries block for given height. - * @request GET:/cosmos/base/tendermint/v1beta1/blocks/{height} - */ - getBlockByHeight: (height: string, params: RequestParams = {}) => - this.request< - { - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - block?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Data contains the set of transactions included in the block */ - data?: { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - */ - txs?: string[]; - }; - evidence?: { - evidence?: { - /** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */ - duplicate_vote_evidence?: { - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_a?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** - * Vote represents a prevote, precommit, or commit vote from validators for - * consensus. - */ - vote_b?: { - /** - * SignedMsgType is a type of signed message in the consensus. - * - * - SIGNED_MSG_TYPE_PREVOTE: Votes - * - SIGNED_MSG_TYPE_PROPOSAL: Proposals - * @default "SIGNED_MSG_TYPE_UNKNOWN" - */ - type?: - | 'SIGNED_MSG_TYPE_UNKNOWN' - | 'SIGNED_MSG_TYPE_PREVOTE' - | 'SIGNED_MSG_TYPE_PRECOMMIT' - | 'SIGNED_MSG_TYPE_PROPOSAL'; - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - validator_address?: string; - /** @format int32 */ - validator_index?: number; - /** @format byte */ - signature?: string; - }; - /** @format int64 */ - total_voting_power?: string; - /** @format int64 */ - validator_power?: string; - /** @format date-time */ - timestamp?: string; - }; - /** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */ - light_client_attack_evidence?: { - conflicting_block?: { - signed_header?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** BlockID */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - validator_set?: { - validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - proposer?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }; - /** @format int64 */ - total_voting_power?: string; - }; - }; - /** @format int64 */ - common_height?: string; - byzantine_validators?: { - /** @format byte */ - address?: string; - /** PublicKey defines the keys available for use with Tendermint Validators */ - pub_key?: { - /** @format byte */ - ed25519?: string; - /** @format byte */ - secp256k1?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** @format int64 */ - total_voting_power?: string; - /** @format date-time */ - timestamp?: string; - }; - }[]; - }; - /** Commit contains the evidence that a block was committed by a set of validators. */ - last_commit?: { - /** @format int64 */ - height?: string; - /** @format int32 */ - round?: number; - /** BlockID */ - block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - signatures?: { - /** - * BlockIdFlag indicates which BlcokID the signature is for - * @default "BLOCK_ID_FLAG_UNKNOWN" - */ - block_id_flag?: - | 'BLOCK_ID_FLAG_UNKNOWN' - | 'BLOCK_ID_FLAG_ABSENT' - | 'BLOCK_ID_FLAG_COMMIT' - | 'BLOCK_ID_FLAG_NIL'; - /** @format byte */ - validator_address?: string; - /** @format date-time */ - timestamp?: string; - /** @format byte */ - signature?: string; - }[]; - }; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/base/tendermint/v1beta1/blocks/${height}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Service - * @name GetNodeInfo - * @summary GetNodeInfo queries the current node info. - * @request GET:/cosmos/base/tendermint/v1beta1/node_info - */ - getNodeInfo: (params: RequestParams = {}) => - this.request< - { - default_node_info?: { - protocol_version?: { - /** @format uint64 */ - p2p?: string; - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - default_node_id?: string; - listen_addr?: string; - network?: string; - version?: string; - /** @format byte */ - channels?: string; - moniker?: string; - other?: { - tx_index?: string; - rpc_address?: string; - }; - }; - /** VersionInfo is the type for the GetNodeInfoResponse message. */ - application_version?: { - name?: string; - app_name?: string; - version?: string; - git_commit?: string; - build_tags?: string; - go_version?: string; - build_deps?: { - /** module path */ - path?: string; - /** module version */ - version?: string; - /** checksum */ - sum?: string; - }[]; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/base/tendermint/v1beta1/node_info`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Service - * @name GetSyncing - * @summary GetSyncing queries node syncing. - * @request GET:/cosmos/base/tendermint/v1beta1/syncing - */ - getSyncing: (params: RequestParams = {}) => - this.request< - { - syncing?: boolean; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/base/tendermint/v1beta1/syncing`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Service - * @name GetLatestValidatorSet - * @summary GetLatestValidatorSet queries latest validator-set. - * @request GET:/cosmos/base/tendermint/v1beta1/validatorsets/latest - */ - getLatestValidatorSet: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** @format int64 */ - block_height?: string; - validators?: { - address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - pub_key?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** pagination defines an pagination for the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/base/tendermint/v1beta1/validatorsets/latest`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Service - * @name GetValidatorSetByHeight - * @summary GetValidatorSetByHeight queries validator-set at a given height. - * @request GET:/cosmos/base/tendermint/v1beta1/validatorsets/{height} - */ - getValidatorSetByHeight: ( - height: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** @format int64 */ - block_height?: string; - validators?: { - address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - pub_key?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** @format int64 */ - voting_power?: string; - /** @format int64 */ - proposer_priority?: string; - }[]; - /** pagination defines an pagination for the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/base/tendermint/v1beta1/validatorsets/${height}`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name CommunityPool - * @summary CommunityPool queries the community pool coins. - * @request GET:/cosmos/distribution/v1beta1/community_pool - */ - communityPool: (params: RequestParams = {}) => - this.request< - { - /** pool defines community pool's coins. */ - pool?: { - denom?: string; - amount?: string; - }[]; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/distribution/v1beta1/community_pool`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DelegationTotalRewards - * @summary DelegationTotalRewards queries the total rewards accrued by a each -validator. - * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards - */ - delegationTotalRewards: (delegatorAddress: string, params: RequestParams = {}) => - this.request< - { - /** rewards defines all the rewards accrued by a delegator. */ - rewards?: { - validator_address?: string; - reward?: { - denom?: string; - amount?: string; - }[]; - }[]; - /** total defines the sum of all the rewards. */ - total?: { - denom?: string; - amount?: string; - }[]; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DelegationRewards - * @summary DelegationRewards queries the total rewards accrued by a delegation. - * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address} - */ - delegationRewards: (delegatorAddress: string, validatorAddress: string, params: RequestParams = {}) => - this.request< - { - /** rewards defines the rewards accrued by a delegation. */ - rewards?: { - denom?: string; - amount?: string; - }[]; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/rewards/${validatorAddress}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DelegatorValidators - * @summary DelegatorValidators queries the validators of a delegator. - * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/validators - */ - delegatorValidators: (delegatorAddress: string, params: RequestParams = {}) => - this.request< - { - /** validators defines the validators a delegator is delegating for. */ - validators?: string[]; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/validators`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DelegatorWithdrawAddress - * @summary DelegatorWithdrawAddress queries withdraw address of a delegator. - * @request GET:/cosmos/distribution/v1beta1/delegators/{delegator_address}/withdraw_address - */ - delegatorWithdrawAddress: (delegatorAddress: string, params: RequestParams = {}) => - this.request< - { - /** withdraw_address defines the delegator address to query for. */ - withdraw_address?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/distribution/v1beta1/delegators/${delegatorAddress}/withdraw_address`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DistributionParams - * @summary Params queries params of the distribution module. - * @request GET:/cosmos/distribution/v1beta1/params - */ - distributionParams: (params: RequestParams = {}) => - this.request< - { - /** params defines the parameters of the module. */ - params?: { - community_tax?: string; - base_proposer_reward?: string; - bonus_proposer_reward?: string; - withdraw_addr_enabled?: boolean; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/distribution/v1beta1/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ValidatorCommission - * @summary ValidatorCommission queries accumulated commission for a validator. - * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/commission - */ - validatorCommission: (validatorAddress: string, params: RequestParams = {}) => - this.request< - { - /** commission defines the commision the validator received. */ - commission?: { - commission?: { - denom?: string; - amount?: string; - }[]; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/commission`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ValidatorOutstandingRewards - * @summary ValidatorOutstandingRewards queries rewards of a validator address. - * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards - */ - validatorOutstandingRewards: (validatorAddress: string, params: RequestParams = {}) => - this.request< - { - /** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - */ - rewards?: { - rewards?: { - denom?: string; - amount?: string; - }[]; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/outstanding_rewards`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ValidatorSlashes - * @summary ValidatorSlashes queries slash events of a validator. - * @request GET:/cosmos/distribution/v1beta1/validators/{validator_address}/slashes - */ - validatorSlashes: ( - validatorAddress: string, - query?: { - /** - * starting_height defines the optional starting height to query the slashes. - * @format uint64 - */ - starting_height?: string; - /** - * starting_height defines the optional ending height to query the slashes. - * @format uint64 - */ - ending_height?: string; - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** slashes defines the slashes the validator received. */ - slashes?: { - /** @format uint64 */ - validator_period?: string; - fraction?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/distribution/v1beta1/validators/${validatorAddress}/slashes`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name AllEvidence - * @summary AllEvidence queries all evidence. - * @request GET:/cosmos/evidence/v1beta1/evidence - */ - allEvidence: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** evidence returns all evidences. */ - evidence?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/evidence/v1beta1/evidence`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Evidence - * @summary Evidence queries evidence based on evidence hash. - * @request GET:/cosmos/evidence/v1beta1/evidence/{evidence_hash} - */ - evidence: (evidenceHash: string, params: RequestParams = {}) => - this.request< - { - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - evidence?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/evidence/v1beta1/evidence/${evidenceHash}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name GovParams - * @summary Params queries all parameters of the gov module. - * @request GET:/cosmos/gov/v1beta1/params/{params_type} - */ - govParams: (paramsType: string, params: RequestParams = {}) => - this.request< - { - /** voting_params defines the parameters related to voting. */ - voting_params?: { - /** Length of the voting period. */ - voting_period?: string; - }; - /** deposit_params defines the parameters related to deposit. */ - deposit_params?: { - /** Minimum deposit for a proposal to enter voting period. */ - min_deposit?: { - denom?: string; - amount?: string; - }[]; - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - */ - max_deposit_period?: string; - }; - /** tally_params defines the parameters related to tally. */ - tally_params?: { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - * @format byte - */ - quorum?: string; - /** - * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. - * @format byte - */ - threshold?: string; - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - * @format byte - */ - veto_threshold?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/gov/v1beta1/params/${paramsType}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Proposals - * @summary Proposals queries all proposals based on given status. - * @request GET:/cosmos/gov/v1beta1/proposals - */ - proposals: ( - query?: { - /** - * proposal_status defines the status of the proposals. - * - * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - * @default "PROPOSAL_STATUS_UNSPECIFIED" - */ - proposal_status?: - | 'PROPOSAL_STATUS_UNSPECIFIED' - | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' - | 'PROPOSAL_STATUS_VOTING_PERIOD' - | 'PROPOSAL_STATUS_PASSED' - | 'PROPOSAL_STATUS_REJECTED' - | 'PROPOSAL_STATUS_FAILED'; - /** voter defines the voter address for the proposals. */ - voter?: string; - /** depositor defines the deposit addresses from the proposals. */ - depositor?: string; - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - proposals?: { - /** @format uint64 */ - proposal_id?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - content?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * ProposalStatus enumerates the valid statuses of a proposal. - * - * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - * @default "PROPOSAL_STATUS_UNSPECIFIED" - */ - status?: - | 'PROPOSAL_STATUS_UNSPECIFIED' - | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' - | 'PROPOSAL_STATUS_VOTING_PERIOD' - | 'PROPOSAL_STATUS_PASSED' - | 'PROPOSAL_STATUS_REJECTED' - | 'PROPOSAL_STATUS_FAILED'; - /** TallyResult defines a standard tally for a governance proposal. */ - final_tally_result?: { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; - }; - /** @format date-time */ - submit_time?: string; - /** @format date-time */ - deposit_end_time?: string; - total_deposit?: { - denom?: string; - amount?: string; - }[]; - /** @format date-time */ - voting_start_time?: string; - /** @format date-time */ - voting_end_time?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/gov/v1beta1/proposals`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Proposal - * @summary Proposal queries proposal details based on ProposalID. - * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id} - */ - proposal: (proposalId: string, params: RequestParams = {}) => - this.request< - { - /** Proposal defines the core field members of a governance proposal. */ - proposal?: { - /** @format uint64 */ - proposal_id?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - content?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * ProposalStatus enumerates the valid statuses of a proposal. - * - * - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - * - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - * - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - * - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - * - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - * - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - * @default "PROPOSAL_STATUS_UNSPECIFIED" - */ - status?: - | 'PROPOSAL_STATUS_UNSPECIFIED' - | 'PROPOSAL_STATUS_DEPOSIT_PERIOD' - | 'PROPOSAL_STATUS_VOTING_PERIOD' - | 'PROPOSAL_STATUS_PASSED' - | 'PROPOSAL_STATUS_REJECTED' - | 'PROPOSAL_STATUS_FAILED'; - /** TallyResult defines a standard tally for a governance proposal. */ - final_tally_result?: { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; - }; - /** @format date-time */ - submit_time?: string; - /** @format date-time */ - deposit_end_time?: string; - total_deposit?: { - denom?: string; - amount?: string; - }[]; - /** @format date-time */ - voting_start_time?: string; - /** @format date-time */ - voting_end_time?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/gov/v1beta1/proposals/${proposalId}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Deposits - * @summary Deposits queries all deposits of a single proposal. - * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits - */ - deposits: ( - proposalId: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - deposits?: { - /** @format uint64 */ - proposal_id?: string; - depositor?: string; - amount?: { - denom?: string; - amount?: string; - }[]; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Deposit - * @summary Deposit queries single deposit information based proposalID, depositAddr. - * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/deposits/{depositor} - */ - deposit: (proposalId: string, depositor: string, params: RequestParams = {}) => - this.request< - { - /** - * Deposit defines an amount deposited by an account address to an active - * proposal. - */ - deposit?: { - /** @format uint64 */ - proposal_id?: string; - depositor?: string; - amount?: { - denom?: string; - amount?: string; - }[]; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/gov/v1beta1/proposals/${proposalId}/deposits/${depositor}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name TallyResult - * @summary TallyResult queries the tally of a proposal vote. - * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/tally - */ - tallyResult: (proposalId: string, params: RequestParams = {}) => - this.request< - { - /** TallyResult defines a standard tally for a governance proposal. */ - tally?: { - yes?: string; - abstain?: string; - no?: string; - no_with_veto?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/gov/v1beta1/proposals/${proposalId}/tally`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Votes - * @summary Votes queries votes of a given proposal. - * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes - */ - votes: ( - proposalId: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** votes defined the queried votes. */ - votes?: { - /** @format uint64 */ - proposal_id?: string; - voter?: string; - /** - * VoteOption enumerates the valid vote options for a given governance proposal. - * - * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - * @default "VOTE_OPTION_UNSPECIFIED" - */ - option?: - | 'VOTE_OPTION_UNSPECIFIED' - | 'VOTE_OPTION_YES' - | 'VOTE_OPTION_ABSTAIN' - | 'VOTE_OPTION_NO' - | 'VOTE_OPTION_NO_WITH_VETO'; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Vote - * @summary Vote queries voted information based on proposalID, voterAddr. - * @request GET:/cosmos/gov/v1beta1/proposals/{proposal_id}/votes/{voter} - */ - vote: (proposalId: string, voter: string, params: RequestParams = {}) => - this.request< - { - /** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - */ - vote?: { - /** @format uint64 */ - proposal_id?: string; - voter?: string; - /** - * VoteOption enumerates the valid vote options for a given governance proposal. - * - * - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - * - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - * - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - * - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - * - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - * @default "VOTE_OPTION_UNSPECIFIED" - */ - option?: - | 'VOTE_OPTION_UNSPECIFIED' - | 'VOTE_OPTION_YES' - | 'VOTE_OPTION_ABSTAIN' - | 'VOTE_OPTION_NO' - | 'VOTE_OPTION_NO_WITH_VETO'; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/gov/v1beta1/proposals/${proposalId}/votes/${voter}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name AnnualProvisions - * @summary AnnualProvisions current minting annual provisions value. - * @request GET:/cosmos/mint/v1beta1/annual_provisions - */ - annualProvisions: (params: RequestParams = {}) => - this.request< - { - /** - * annual_provisions is the current minting annual provisions value. - * @format byte - */ - annual_provisions?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/mint/v1beta1/annual_provisions`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Inflation - * @summary Inflation returns the current minting inflation value. - * @request GET:/cosmos/mint/v1beta1/inflation - */ - inflation: (params: RequestParams = {}) => - this.request< - { - /** - * inflation is the current minting inflation value. - * @format byte - */ - inflation?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/mint/v1beta1/inflation`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name MintParams - * @summary Params returns the total set of minting parameters. - * @request GET:/cosmos/mint/v1beta1/params - */ - mintParams: (params: RequestParams = {}) => - this.request< - { - /** params defines the parameters of the module. */ - params?: { - /** type of coin to mint */ - mint_denom?: string; - /** maximum annual change in inflation rate */ - inflation_rate_change?: string; - /** maximum inflation rate */ - inflation_max?: string; - /** minimum inflation rate */ - inflation_min?: string; - /** goal of percent bonded atoms */ - goal_bonded?: string; - /** - * expected blocks per year - * @format uint64 - */ - blocks_per_year?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/mint/v1beta1/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Params - * @summary Params queries a specific parameter of a module, given its subspace and -key. - * @request GET:/cosmos/params/v1beta1/params - */ - params: ( - query?: { - /** subspace defines the module to query the parameter for. */ - subspace?: string; - /** key defines the key of the parameter in the subspace. */ - key?: string; - }, - params: RequestParams = {} - ) => - this.request< - { - /** param defines the queried parameter. */ - param?: { - subspace?: string; - key?: string; - value?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/params/v1beta1/params`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name SlashingParams - * @summary Params queries the parameters of slashing module - * @request GET:/cosmos/slashing/v1beta1/params - */ - slashingParams: (params: RequestParams = {}) => - this.request< - { - /** Params represents the parameters used for by the slashing module. */ - params?: { - /** @format int64 */ - signed_blocks_window?: string; - /** @format byte */ - min_signed_per_window?: string; - downtime_jail_duration?: string; - /** @format byte */ - slash_fraction_double_sign?: string; - /** @format byte */ - slash_fraction_downtime?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/slashing/v1beta1/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name SigningInfos - * @summary SigningInfos queries signing info of all validators - * @request GET:/cosmos/slashing/v1beta1/signing_infos - */ - signingInfos: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** info is the signing info of all validators */ - info?: { - address?: string; - /** - * height at which validator was first a candidate OR was unjailed - * @format int64 - */ - start_height?: string; - /** - * index offset into signed block bit array - * @format int64 - */ - index_offset?: string; - /** - * timestamp validator cannot be unjailed until - * @format date-time - */ - jailed_until?: string; - /** - * whether or not a validator has been tombstoned (killed out of validator - * set) - */ - tombstoned?: boolean; - /** - * missed blocks counter (to avoid scanning the array every time) - * @format int64 - */ - missed_blocks_counter?: string; - }[]; - /** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/slashing/v1beta1/signing_infos`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name SigningInfo - * @summary SigningInfo queries the signing info of given cons address - * @request GET:/cosmos/slashing/v1beta1/signing_infos/{cons_address} - */ - signingInfo: (consAddress: string, params: RequestParams = {}) => - this.request< - { - /** - * val_signing_info is the signing info of requested val cons address - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - */ - val_signing_info?: { - address?: string; - /** - * height at which validator was first a candidate OR was unjailed - * @format int64 - */ - start_height?: string; - /** - * index offset into signed block bit array - * @format int64 - */ - index_offset?: string; - /** - * timestamp validator cannot be unjailed until - * @format date-time - */ - jailed_until?: string; - /** - * whether or not a validator has been tombstoned (killed out of validator - * set) - */ - tombstoned?: boolean; - /** - * missed blocks counter (to avoid scanning the array every time) - * @format int64 - */ - missed_blocks_counter?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/cosmos/slashing/v1beta1/signing_infos/${consAddress}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DelegatorDelegations - * @summary DelegatorDelegations queries all delegations of a given delegator address. - * @request GET:/cosmos/staking/v1beta1/delegations/{delegator_addr} - */ - delegatorDelegations: ( - delegatorAddr: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** delegation_responses defines all the delegations' info of a delegator. */ - delegation_responses?: { - /** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ - delegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - balance?: { - denom?: string; - amount?: string; - }; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/delegations/${delegatorAddr}`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Redelegations - * @summary Redelegations queries redelegations of given address. - * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations - */ - redelegations: ( - delegatorAddr: string, - query?: { - /** src_validator_addr defines the validator address to redelegate from. */ - src_validator_addr?: string; - /** dst_validator_addr defines the validator address to redelegate to. */ - dst_validator_addr?: string; - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - redelegation_responses?: { - /** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - */ - redelegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_src_address is the validator redelegation source operator address. */ - validator_src_address?: string; - /** validator_dst_address is the validator redelegation destination operator address. */ - validator_dst_address?: string; - /** entries are the redelegation entries. */ - entries?: { - /** - * creation_height defines the height which the redelegation took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time defines the unix time for redelegation completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; - }[]; - }; - entries?: { - /** RedelegationEntry defines a redelegation object with relevant metadata. */ - redelegation_entry?: { - /** - * creation_height defines the height which the redelegation took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time defines the unix time for redelegation completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the initial balance when redelegation started. */ - initial_balance?: string; - /** shares_dst is the amount of destination-validator shares created by redelegation. */ - shares_dst?: string; - }; - balance?: string; - }[]; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/redelegations`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DelegatorUnbondingDelegations - * @summary DelegatorUnbondingDelegations queries all unbonding delegations of a given -delegator address. - * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations - */ - delegatorUnbondingDelegations: ( - delegatorAddr: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - unbonding_responses?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: { - /** - * creation_height is the height which the unbonding took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time is the unix time for unbonding completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; - }[]; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/unbonding_delegations`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name StakingDelegatorValidators - * @summary DelegatorValidators queries all validators info for given delegator -address. - * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators - */ - stakingDelegatorValidators: ( - delegatorAddr: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** validators defines the the validators' info of a delegator. */ - validators?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: - | 'BOND_STATUS_UNSPECIFIED' - | 'BOND_STATUS_UNBONDED' - | 'BOND_STATUS_UNBONDING' - | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/validators`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DelegatorValidator - * @summary DelegatorValidator queries validator info for given delegator validator -pair. - * @request GET:/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr} - */ - delegatorValidator: (delegatorAddr: string, validatorAddr: string, params: RequestParams = {}) => - this.request< - { - /** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ - validator?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: - | 'BOND_STATUS_UNSPECIFIED' - | 'BOND_STATUS_UNBONDED' - | 'BOND_STATUS_UNBONDING' - | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/delegators/${delegatorAddr}/validators/${validatorAddr}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name HistoricalInfo - * @summary HistoricalInfo queries the historical info for given height. - * @request GET:/cosmos/staking/v1beta1/historical_info/{height} - */ - historicalInfo: (height: string, params: RequestParams = {}) => - this.request< - { - /** hist defines the historical info at the given height. */ - hist?: { - /** Header defines the structure of a Tendermint block header. */ - header?: { - /** - * basic block info - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - */ - version?: { - /** @format uint64 */ - block?: string; - /** @format uint64 */ - app?: string; - }; - chain_id?: string; - /** @format int64 */ - height?: string; - /** @format date-time */ - time?: string; - /** prev block info */ - last_block_id?: { - /** @format byte */ - hash?: string; - /** PartsetHeader */ - part_set_header?: { - /** @format int64 */ - total?: number; - /** @format byte */ - hash?: string; - }; - }; - /** - * hashes of block data - * @format byte - */ - last_commit_hash?: string; - /** @format byte */ - data_hash?: string; - /** - * hashes from the app output from the prev block - * @format byte - */ - validators_hash?: string; - /** @format byte */ - next_validators_hash?: string; - /** @format byte */ - consensus_hash?: string; - /** @format byte */ - app_hash?: string; - /** @format byte */ - last_results_hash?: string; - /** - * consensus info - * @format byte - */ - evidence_hash?: string; - /** @format byte */ - proposer_address?: string; - }; - valset?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: - | 'BOND_STATUS_UNSPECIFIED' - | 'BOND_STATUS_UNBONDED' - | 'BOND_STATUS_UNBONDING' - | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }[]; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/historical_info/${height}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name StakingParams - * @summary Parameters queries the staking parameters. - * @request GET:/cosmos/staking/v1beta1/params - */ - stakingParams: (params: RequestParams = {}) => - this.request< - { - /** params holds all the parameters of this module. */ - params?: { - /** unbonding_time is the time duration of unbonding. */ - unbonding_time?: string; - /** - * max_validators is the maximum number of validators. - * @format int64 - */ - max_validators?: number; - /** - * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). - * @format int64 - */ - max_entries?: number; - /** - * historical_entries is the number of historical entries to persist. - * @format int64 - */ - historical_entries?: number; - /** bond_denom defines the bondable coin denomination. */ - bond_denom?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Pool - * @summary Pool queries the pool info. - * @request GET:/cosmos/staking/v1beta1/pool - */ - pool: (params: RequestParams = {}) => - this.request< - { - /** pool defines the pool info. */ - pool?: { - not_bonded_tokens?: string; - bonded_tokens?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/pool`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Validators - * @summary Validators queries all validators that match the given status. - * @request GET:/cosmos/staking/v1beta1/validators - */ - validators: ( - query?: { - /** status enables to query for validators matching a given status. */ - status?: string; - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** validators contains all the queried validators. */ - validators?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: - | 'BOND_STATUS_UNSPECIFIED' - | 'BOND_STATUS_UNBONDED' - | 'BOND_STATUS_UNBONDING' - | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/validators`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Validator - * @summary Validator queries validator info for given validator address. - * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr} - */ - validator: (validatorAddr: string, params: RequestParams = {}) => - this.request< - { - /** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - */ - validator?: { - /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ - operator_address?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_pubkey?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** jailed defined whether the validator has been jailed from bonded status or not. */ - jailed?: boolean; - /** - * status is the validator status (bonded/unbonding/unbonded). - * @default "BOND_STATUS_UNSPECIFIED" - */ - status?: - | 'BOND_STATUS_UNSPECIFIED' - | 'BOND_STATUS_UNBONDED' - | 'BOND_STATUS_UNBONDING' - | 'BOND_STATUS_BONDED'; - /** tokens define the delegated tokens (incl. self-delegation). */ - tokens?: string; - /** delegator_shares defines total shares issued to a validator's delegators. */ - delegator_shares?: string; - /** description defines the description terms for the validator. */ - description?: { - /** moniker defines a human-readable name for the validator. */ - moniker?: string; - /** identity defines an optional identity signature (ex. UPort or Keybase). */ - identity?: string; - /** website defines an optional website link. */ - website?: string; - /** security_contact defines an optional email for security contact. */ - security_contact?: string; - /** details define other optional details. */ - details?: string; - }; - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * @format int64 - */ - unbonding_height?: string; - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * @format date-time - */ - unbonding_time?: string; - /** commission defines the commission parameters. */ - commission?: { - /** commission_rates defines the initial commission rates to be used for creating a validator. */ - commission_rates?: { - /** rate is the commission rate charged to delegators, as a fraction. */ - rate?: string; - /** max_rate defines the maximum commission rate which validator can ever charge, as a fraction. */ - max_rate?: string; - /** max_change_rate defines the maximum daily increase of the validator commission, as a fraction. */ - max_change_rate?: string; - }; - /** - * update_time is the last time the commission rate was changed. - * @format date-time - */ - update_time?: string; - }; - /** min_self_delegation is the validator's self declared minimum self delegation. */ - min_self_delegation?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/validators/${validatorAddr}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ValidatorDelegations - * @summary ValidatorDelegations queries delegate info for given validator. - * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations - */ - validatorDelegations: ( - validatorAddr: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - delegation_responses?: { - /** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ - delegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - balance?: { - denom?: string; - amount?: string; - }; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Delegation - * @summary Delegation queries delegate info for given validator delegator pair. - * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr} - */ - delegation: (validatorAddr: string, delegatorAddr: string, params: RequestParams = {}) => - this.request< - { - /** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - */ - delegation_response?: { - /** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - */ - delegation?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** shares define the delegation shares received. */ - shares?: string; - }; - /** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - */ - balance?: { - denom?: string; - amount?: string; - }; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations/${delegatorAddr}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name UnbondingDelegation - * @summary UnbondingDelegation queries unbonding info for given validator delegator -pair. - * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation - */ - unbondingDelegation: (validatorAddr: string, delegatorAddr: string, params: RequestParams = {}) => - this.request< - { - /** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - */ - unbond?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: { - /** - * creation_height is the height which the unbonding took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time is the unix time for unbonding completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; - }[]; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/delegations/${delegatorAddr}/unbonding_delegation`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ValidatorUnbondingDelegations - * @summary ValidatorUnbondingDelegations queries unbonding delegations of a validator. - * @request GET:/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations - */ - validatorUnbondingDelegations: ( - validatorAddr: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - unbonding_responses?: { - /** delegator_address is the bech32-encoded address of the delegator. */ - delegator_address?: string; - /** validator_address is the bech32-encoded address of the validator. */ - validator_address?: string; - /** entries are the unbonding delegation entries. */ - entries?: { - /** - * creation_height is the height which the unbonding took place. - * @format int64 - */ - creation_height?: string; - /** - * completion_time is the unix time for unbonding completion. - * @format date-time - */ - completion_time?: string; - /** initial_balance defines the tokens initially scheduled to receive at completion. */ - initial_balance?: string; - /** balance defines the tokens to receive at completion. */ - balance?: string; - }[]; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/staking/v1beta1/validators/${validatorAddr}/unbonding_delegations`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Service - * @name Simulate - * @summary Simulate simulates executing a transaction for estimating gas usage. - * @request POST:/cosmos/tx/v1beta1/simulate - */ - simulate: (body: CosmosTxV1Beta1SimulateRequest, params: RequestParams = {}) => - this.request< - { - /** gas_info is the information about gas used in the simulation. */ - gas_info?: { - /** - * GasWanted is the maximum units of work we allow this tx to perform. - * @format uint64 - */ - gas_wanted?: string; - /** - * GasUsed is the amount of gas actually consumed. - * @format uint64 - */ - gas_used?: string; - }; - /** result is the result of the simulation. */ - result?: { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * @format byte - */ - data?: string; - /** Log contains the log information from message or handler execution. */ - log?: string; - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - */ - events?: { - type?: string; - attributes?: { - /** @format byte */ - key?: string; - /** @format byte */ - value?: string; - index?: boolean; - }[]; - }[]; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/tx/v1beta1/simulate`, - method: 'POST', - body: body, - type: ContentType.Json, - ...params, - }), - - /** - * No description - * - * @tags Service - * @name GetTxsEvent - * @summary GetTxsEvent fetches txs by event. - * @request GET:/cosmos/tx/v1beta1/txs - */ - getTxsEvent: ( - query?: { - /** events is the list of transaction event type. */ - events?: string[]; - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - /** - * - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. - * - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order - * - ORDER_BY_DESC: ORDER_BY_DESC defines descending order - * @default "ORDER_BY_UNSPECIFIED" - */ - order_by?: 'ORDER_BY_UNSPECIFIED' | 'ORDER_BY_ASC' | 'ORDER_BY_DESC'; - }, - params: RequestParams = {} - ) => - this.request< - CosmosTxV1Beta1GetTxsEventResponse, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/tx/v1beta1/txs`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Service - * @name BroadcastTx - * @summary BroadcastTx broadcast transaction. - * @request POST:/cosmos/tx/v1beta1/txs - */ - broadcastTx: ( - body: { - /** - * tx_bytes is the raw transaction. - * @format byte - */ - tx_bytes?: string; - /** - * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. - * - * - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - * - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - * the tx to be committed in a block. - * - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - * a CheckTx execution response only. - * - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - * immediately. - * @default "BROADCAST_MODE_UNSPECIFIED" - */ - mode?: 'BROADCAST_MODE_UNSPECIFIED' | 'BROADCAST_MODE_BLOCK' | 'BROADCAST_MODE_SYNC' | 'BROADCAST_MODE_ASYNC'; - }, - params: RequestParams = {} - ) => - this.request< - { - /** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - */ - tx_response?: { - /** - * The block height - * @format int64 - */ - height?: string; - /** The transaction hash. */ - txhash?: string; - /** Namespace for the Code */ - codespace?: string; - /** - * Response code. - * @format int64 - */ - code?: number; - /** Result bytes, if any. */ - data?: string; - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - */ - raw_log?: string; - /** The output of the application's logger (typed). May be non-deterministic. */ - logs?: { - /** @format int64 */ - msg_index?: number; - log?: string; - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - */ - events?: { - type?: string; - attributes?: { - key?: string; - value?: string; - }[]; - }[]; - }[]; - /** Additional information. May be non-deterministic. */ - info?: string; - /** - * Amount of gas requested for transaction. - * @format int64 - */ - gas_wanted?: string; - /** - * Amount of gas consumed by transaction. - * @format int64 - */ - gas_used?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - tx?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - */ - timestamp?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/tx/v1beta1/txs`, - method: 'POST', - body: body, - type: ContentType.Json, - ...params, - }), - - /** - * No description - * - * @tags Service - * @name GetTx - * @summary GetTx fetches a tx by hash. - * @request GET:/cosmos/tx/v1beta1/txs/{hash} - */ - getTx: (hash: string, params: RequestParams = {}) => - this.request< - CosmosTxV1Beta1GetTxResponse, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/tx/v1beta1/txs/${hash}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name AppliedPlan - * @summary AppliedPlan queries a previously applied upgrade plan by its name. - * @request GET:/cosmos/upgrade/v1beta1/applied_plan/{name} - */ - appliedPlan: (name: string, params: RequestParams = {}) => - this.request< - { - /** - * height is the block height at which the plan was applied. - * @format int64 - */ - height?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/upgrade/v1beta1/applied_plan/${name}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name CurrentPlan - * @summary CurrentPlan queries the current upgrade plan. - * @request GET:/cosmos/upgrade/v1beta1/current_plan - */ - currentPlan: (params: RequestParams = {}) => - this.request< - { - /** plan is the current upgrade plan. */ - plan?: { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - */ - name?: string; - /** - * The time after which the upgrade must be performed. - * Leave set to its zero value to use a pre-defined Height instead. - * @format date-time - */ - time?: string; - /** - * The height at which the upgrade must be performed. - * Only used if Time is not set. - * @format int64 - */ - height?: string; - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - */ - info?: string; - /** - * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan - * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, - * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the - * previous version of the chain. - * This will allow IBC connections to persist smoothly across planned chain upgrades - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - upgraded_client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/upgrade/v1beta1/current_plan`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name UpgradedConsensusState - * @summary UpgradedConsensusState queries the consensus state that will serve -as a trusted kernel for the next version of this chain. It will only be -stored at the last height of this chain. -UpgradedConsensusState RPC not supported with legacy querier - * @request GET:/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height} - */ - upgradedConsensusState: (lastHeight: string, params: RequestParams = {}) => - this.request< - { - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - upgraded_consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/cosmos/upgrade/v1beta1/upgraded_consensus_state/${lastHeight}`, - method: 'GET', - ...params, - }), - }; - wasm = { - /** - * No description - * - * @tags Query - * @name Codes - * @summary Codes gets the metadata for all stored wasm codes - * @request GET:/wasm/v1beta1/code - */ - codes: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - code_infos?: { - /** @format uint64 */ - code_id?: string; - creator?: string; - /** @format byte */ - data_hash?: string; - source?: string; - builder?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/wasm/v1beta1/code`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Code - * @summary Code gets the binary code and metadata for a singe wasm code - * @request GET:/wasm/v1beta1/code/{code_id} - */ - code: (codeId: string, params: RequestParams = {}) => - this.request< - { - /** CodeInfoResponse contains code meta data from CodeInfo */ - code_info?: { - /** @format uint64 */ - code_id?: string; - creator?: string; - /** @format byte */ - data_hash?: string; - source?: string; - builder?: string; - }; - /** @format byte */ - data?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/wasm/v1beta1/code/${codeId}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ContractsByCode - * @summary ContractsByCode lists all smart contracts for a code id - * @request GET:/wasm/v1beta1/code/{code_id}/contracts - */ - contractsByCode: ( - codeId: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** contracts are a set of contract addresses */ - contracts?: string[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/wasm/v1beta1/code/${codeId}/contracts`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ContractInfo - * @summary ContractInfo gets the contract meta data - * @request GET:/wasm/v1beta1/contract/{address} - */ - contractInfo: (address: string, params: RequestParams = {}) => - this.request< - { - /** address is the address of the contract */ - address?: string; - /** ContractInfo stores a WASM contract instance */ - contract_info?: { - /** - * CodeID is the reference to the stored Wasm code - * @format uint64 - */ - code_id?: string; - /** Creator address who initially instantiated the contract */ - creator?: string; - /** Admin is an optional address that can execute migrations */ - admin?: string; - /** Label is optional metadata to be stored with a contract instance. */ - label?: string; - /** - * Created Tx position when the contract was instantiated. - * This data should kept internal and not be exposed via query results. Just - * use for sorting - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - */ - created?: { - /** - * BlockHeight is the block the contract was created at - * @format uint64 - */ - block_height?: string; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - * @format uint64 - */ - tx_index?: string; - }; - ibc_port_id?: string; - /** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - extension?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/wasm/v1beta1/contract/${address}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ContractHistory - * @summary ContractHistory gets the contract code history - * @request GET:/wasm/v1beta1/contract/{address}/history - */ - contractHistory: ( - address: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - entries?: { - /** - * ContractCodeHistoryOperationType actions that caused a code change - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: ContractCodeHistoryOperationTypeUnspecified placeholder for empty value - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: ContractCodeHistoryOperationTypeInit on chain contract instantiation - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration - * - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data - * @default "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" - */ - operation?: - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' - | 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'; - /** - * CodeID is the reference to the stored WASM code - * @format uint64 - */ - code_id?: string; - /** Updated Tx position when the operation was executed. */ - updated?: { - /** - * BlockHeight is the block the contract was created at - * @format uint64 - */ - block_height?: string; - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - * @format uint64 - */ - tx_index?: string; - }; - /** @format byte */ - msg?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/wasm/v1beta1/contract/${address}/history`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name RawContractState - * @summary RawContractState gets single key from the raw store data of a contract - * @request GET:/wasm/v1beta1/contract/{address}/raw/{query_data} - */ - rawContractState: (address: string, queryData: string, params: RequestParams = {}) => - this.request< - { - /** - * Data contains the raw store data - * @format byte - */ - data?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/wasm/v1beta1/contract/${address}/raw/${queryData}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name SmartContractState - * @summary SmartContractState get smart query result from the contract - * @request GET:/wasm/v1beta1/contract/{address}/smart/{query_data} - */ - smartContractState: (address: string, queryData: string, params: RequestParams = {}) => - this.request< - { - /** - * Data contains the json data returned from the smart contract - * @format byte - */ - data?: string; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/wasm/v1beta1/contract/${address}/smart/${queryData}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name AllContractState - * @summary AllContractState gets all raw store data for a single contract - * @request GET:/wasm/v1beta1/contract/{address}/state - */ - allContractState: ( - address: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - models?: { - /** - * hex-encode key to read it better (this is often ascii) - * @format byte - */ - key?: string; - /** - * base64-encode raw value - * @format byte - */ - value?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/wasm/v1beta1/contract/${address}/state`, - method: 'GET', - query: query, - ...params, - }), - }; - ibc = { - /** - * No description - * - * @tags Query - * @name DenomTraces - * @summary DenomTraces queries all denomination traces. - * @request GET:/ibc/applications/transfer/v1beta1/denom_traces - */ - denomTraces: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** denom_traces returns all denominations trace information. */ - denom_traces?: { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path?: string; - /** base denomination of the relayed fungible token. */ - base_denom?: string; - }[]; - /** pagination defines the pagination in the response. */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/ibc/applications/transfer/v1beta1/denom_traces`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name DenomTrace - * @summary DenomTrace queries a denomination trace information. - * @request GET:/ibc/applications/transfer/v1beta1/denom_traces/{hash} - */ - denomTrace: (hash: string, params: RequestParams = {}) => - this.request< - { - /** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - */ - denom_trace?: { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - */ - path?: string; - /** base denomination of the relayed fungible token. */ - base_denom?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/ibc/applications/transfer/v1beta1/denom_traces/${hash}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name IbcTransferParams - * @summary Params queries all parameters of the ibc-transfer module. - * @request GET:/ibc/applications/transfer/v1beta1/params - */ - ibcTransferParams: (params: RequestParams = {}) => - this.request< - { - /** params defines the parameters of the module. */ - params?: { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - */ - send_enabled?: boolean; - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - */ - receive_enabled?: boolean; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - type_url?: string; - /** @format byte */ - value?: string; - }[]; - } - >({ - path: `/ibc/applications/transfer/v1beta1/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Channels - * @summary Channels queries all the IBC channels of a chain. - * @request GET:/ibc/core/channel/v1beta1/channels - */ - channels: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** list of stored channels of the chain. */ - channels?: { - /** - * current state of the channel end - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A channel has just started the opening handshake. - * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - * - STATE_OPEN: A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - * packets. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; - /** - * whether the channel is ordered or unordered - * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - * @default "ORDER_NONE_UNSPECIFIED" - */ - ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; - /** counterparty channel end */ - counterparty?: { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id?: string; - /** channel end on the counterparty chain */ - channel_id?: string; - }; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops?: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version?: string; - /** port identifier */ - port_id?: string; - /** channel identifier */ - channel_id?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Channel - * @summary Channel queries an IBC Channel. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id} - */ - channel: (channelId: string, portId: string, params: RequestParams = {}) => - this.request< - { - /** - * channel associated with the request identifiers - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - */ - channel?: { - /** - * current state of the channel end - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A channel has just started the opening handshake. - * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - * - STATE_OPEN: A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - * packets. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; - /** - * whether the channel is ordered or unordered - * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - * @default "ORDER_NONE_UNSPECIFIED" - */ - ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; - /** counterparty channel end */ - counterparty?: { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id?: string; - /** channel end on the counterparty chain */ - channel_id?: string; - }; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops?: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version?: string; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ChannelClientState - * @summary ChannelClientState queries for the client state for the channel associated -with the provided channel identifiers. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/client_state - */ - channelClientState: (channelId: string, portId: string, params: RequestParams = {}) => - this.request< - { - /** - * client state associated with the channel - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ - identified_client_state?: { - /** client identifier */ - client_id?: string; - /** - * client state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/client_state`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ChannelConsensusState - * @summary ChannelConsensusState queries for the consensus state for the channel -associated with the provided channel identifiers. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height} - */ - channelConsensusState: ( - channelId: string, - portId: string, - revisionNumber: string, - revisionHeight: string, - params: RequestParams = {} - ) => - this.request< - { - /** - * consensus state associated with the channel - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** client ID associated with the consensus state */ - client_id?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/consensus_state/revision/${revisionNumber}/height/${revisionHeight}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name NextSequenceReceive - * @summary NextSequenceReceive returns the next receive sequence for a given channel. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/next_sequence - */ - nextSequenceReceive: (channelId: string, portId: string, params: RequestParams = {}) => - this.request< - { - /** - * next sequence receive number - * @format uint64 - */ - next_sequence_receive?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/next_sequence`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name PacketAcknowledgements - * @summary PacketAcknowledgements returns all the packet acknowledgements associated -with a channel. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements - */ - packetAcknowledgements: ( - channelId: string, - portId: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - acknowledgements?: { - /** channel port identifier. */ - port_id?: string; - /** channel unique identifier. */ - channel_id?: string; - /** - * packet sequence. - * @format uint64 - */ - sequence?: string; - /** - * embedded data that represents packet state. - * @format byte - */ - data?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_acknowledgements`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name PacketAcknowledgement - * @summary PacketAcknowledgement queries a stored packet acknowledgement hash. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence} - */ - packetAcknowledgement: (channelId: string, portId: string, sequence: string, params: RequestParams = {}) => - this.request< - { - /** - * packet associated with the request fields - * @format byte - */ - acknowledgement?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_acks/${sequence}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name PacketCommitments - * @summary PacketCommitments returns all the packet commitments hashes associated -with a channel. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments - */ - packetCommitments: ( - channelId: string, - portId: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - commitments?: { - /** channel port identifier. */ - port_id?: string; - /** channel unique identifier. */ - channel_id?: string; - /** - * packet sequence. - * @format uint64 - */ - sequence?: string; - /** - * embedded data that represents packet state. - * @format byte - */ - data?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name UnreceivedAcks - * @summary UnreceivedAcks returns all the unreceived IBC acknowledgements associated with a -channel and sequences. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks - */ - unreceivedAcks: (channelId: string, portId: string, packetAckSequences: string[], params: RequestParams = {}) => - this.request< - { - /** list of unreceived acknowledgement sequences */ - sequences?: string[]; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments/${packetAckSequences}/unreceived_acks`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name UnreceivedPackets - * @summary UnreceivedPackets returns all the unreceived IBC packets associated with a -channel and sequences. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets - */ - unreceivedPackets: ( - channelId: string, - portId: string, - packetCommitmentSequences: string[], - params: RequestParams = {} - ) => - this.request< - { - /** list of unreceived packet sequences */ - sequences?: string[]; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments/${packetCommitmentSequences}/unreceived_packets`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name PacketCommitment - * @summary PacketCommitment queries a stored packet commitment hash. - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence} - */ - packetCommitment: (channelId: string, portId: string, sequence: string, params: RequestParams = {}) => - this.request< - { - /** - * packet associated with the request fields - * @format byte - */ - commitment?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_commitments/${sequence}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name PacketReceipt - * @summary PacketReceipt queries if a given packet sequence has been received on the queried chain - * @request GET:/ibc/core/channel/v1beta1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence} - */ - packetReceipt: (channelId: string, portId: string, sequence: string, params: RequestParams = {}) => - this.request< - { - /** success flag for if receipt exists */ - received?: boolean; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/channels/${channelId}/ports/${portId}/packet_receipts/${sequence}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ConnectionChannels - * @summary ConnectionChannels queries all the channels associated with a connection -end. - * @request GET:/ibc/core/channel/v1beta1/connections/{connection}/channels - */ - connectionChannels: ( - connection: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** list of channels associated with a connection. */ - channels?: { - /** - * current state of the channel end - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * - STATE_UNINITIALIZED_UNSPECIFIED: Default State - * - STATE_INIT: A channel has just started the opening handshake. - * - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - * - STATE_OPEN: A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - * packets. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN' | 'STATE_CLOSED'; - /** - * whether the channel is ordered or unordered - * - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - * - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - * @default "ORDER_NONE_UNSPECIFIED" - */ - ordering?: 'ORDER_NONE_UNSPECIFIED' | 'ORDER_UNORDERED' | 'ORDER_ORDERED'; - /** counterparty channel end */ - counterparty?: { - /** port on the counterparty chain which owns the other end of the channel. */ - port_id?: string; - /** channel end on the counterparty chain */ - channel_id?: string; - }; - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - */ - connection_hops?: string[]; - /** opaque channel version, which is agreed upon during the handshake */ - version?: string; - /** port identifier */ - port_id?: string; - /** channel identifier */ - channel_id?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/channel/v1beta1/connections/${connection}/channels`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ClientParams - * @summary ClientParams queries all parameters of the ibc client. - * @request GET:/ibc/client/v1beta1/params - */ - clientParams: (params: RequestParams = {}) => - this.request< - { - /** params defines the parameters of the module. */ - params?: { - /** allowed_clients defines the list of allowed client state types. */ - allowed_clients?: string[]; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/client/v1beta1/params`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ClientStates - * @summary ClientStates queries all the IBC light clients of a chain. - * @request GET:/ibc/core/client/v1beta1/client_states - */ - clientStates: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** list of stored ClientStates of the chain. */ - client_states?: { - /** client identifier */ - client_id?: string; - /** - * client state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/client/v1beta1/client_states`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ClientState - * @summary ClientState queries an IBC light client. - * @request GET:/ibc/core/client/v1beta1/client_states/{client_id} - */ - clientState: (clientId: string, params: RequestParams = {}) => - this.request< - { - /** - * client state associated with the request identifier - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/client/v1beta1/client_states/${clientId}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ConsensusStates - * @summary ConsensusStates queries all the consensus state associated with a given -client. - * @request GET:/ibc/core/client/v1beta1/consensus_states/{client_id} - */ - consensusStates: ( - clientId: string, - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** consensus states associated with the identifier */ - consensus_states?: { - /** - * consensus state height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - /** - * consensus state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/client/v1beta1/consensus_states/${clientId}`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ConsensusState - * @summary ConsensusState queries a consensus state associated with a client state at -a given height. - * @request GET:/ibc/core/client/v1beta1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height} - */ - consensusState: ( - clientId: string, - revisionNumber: string, - revisionHeight: string, - query?: { - /** - * latest_height overrrides the height field and queries the latest stored - * ConsensusState. - */ - latest_height?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** - * consensus state associated with the client identifier at the given height - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/client/v1beta1/consensus_states/${clientId}/revision/${revisionNumber}/height/${revisionHeight}`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ClientConnections - * @summary ClientConnections queries the connection paths associated with a client -state. - * @request GET:/ibc/core/connection/v1beta1/client_connections/{client_id} - */ - clientConnections: (clientId: string, params: RequestParams = {}) => - this.request< - { - /** slice of all the connection paths associated with a client. */ - connection_paths?: string[]; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was generated - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/connection/v1beta1/client_connections/${clientId}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Connections - * @summary Connections queries all the IBC connections of a chain. - * @request GET:/ibc/core/connection/v1beta1/connections - */ - connections: ( - query?: { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * @format byte - */ - paginationKey?: string; - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * @format uint64 - */ - paginationOffset?: string; - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * @format uint64 - */ - paginationLimit?: string; - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - */ - paginationCountTotal?: boolean; - }, - params: RequestParams = {} - ) => - this.request< - { - /** list of stored connections of the chain. */ - connections?: { - /** connection identifier. */ - id?: string; - /** client associated with this connection. */ - client_id?: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection - */ - versions?: { - /** unique version identifier */ - identifier?: string; - /** list of features compatible with the specified identifier */ - features?: string[]; - }[]; - /** - * current state of the connection end. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; - /** counterparty chain associated with this connection. */ - counterparty?: { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - client_id?: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connection_id?: string; - /** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - * commitment merkle prefix of the counterparty chain. - */ - prefix?: { - /** @format byte */ - key_prefix?: string; - }; - }; - /** - * delay period associated with this connection. - * @format uint64 - */ - delay_period?: string; - }[]; - /** - * pagination response - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - */ - pagination?: { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently - * @format byte - */ - next_key?: string; - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * @format uint64 - */ - total?: string; - }; - /** - * query block height - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/connection/v1beta1/connections`, - method: 'GET', - query: query, - ...params, - }), - - /** - * No description - * - * @tags Query - * @name Connection - * @summary Connection queries an IBC connection end. - * @request GET:/ibc/core/connection/v1beta1/connections/{connection_id} - */ - connection: (connectionId: string, params: RequestParams = {}) => - this.request< - { - /** - * connection associated with the request identifier - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - */ - connection?: { - /** client associated with this connection. */ - client_id?: string; - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection. - */ - versions?: { - /** unique version identifier */ - identifier?: string; - /** list of features compatible with the specified identifier */ - features?: string[]; - }[]; - /** - * current state of the connection end. - * @default "STATE_UNINITIALIZED_UNSPECIFIED" - */ - state?: 'STATE_UNINITIALIZED_UNSPECIFIED' | 'STATE_INIT' | 'STATE_TRYOPEN' | 'STATE_OPEN'; - /** counterparty chain associated with this connection. */ - counterparty?: { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - */ - client_id?: string; - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - */ - connection_id?: string; - /** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - * commitment merkle prefix of the counterparty chain. - */ - prefix?: { - /** @format byte */ - key_prefix?: string; - }; - }; - /** - * delay period that must pass before a consensus state can be used for packet-verification - * NOTE: delay period logic is only implemented by some clients. - * @format uint64 - */ - delay_period?: string; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/connection/v1beta1/connections/${connectionId}`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ConnectionClientState - * @summary ConnectionClientState queries the client state associated with the -connection. - * @request GET:/ibc/core/connection/v1beta1/connections/{connection_id}/client_state - */ - connectionClientState: (connectionId: string, params: RequestParams = {}) => - this.request< - { - /** - * client state associated with the channel - * IdentifiedClientState defines a client state with an additional client - * identifier field. - */ - identified_client_state?: { - /** client identifier */ - client_id?: string; - /** - * client state - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - client_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - }; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/connection/v1beta1/connections/${connectionId}/client_state`, - method: 'GET', - ...params, - }), - - /** - * No description - * - * @tags Query - * @name ConnectionConsensusState - * @summary ConnectionConsensusState queries the consensus state associated with the -connection. - * @request GET:/ibc/core/connection/v1beta1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height} - */ - connectionConsensusState: ( - connectionId: string, - revisionNumber: string, - revisionHeight: string, - params: RequestParams = {} - ) => - this.request< - { - /** - * consensus state associated with the channel - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := ptypes.MarshalAny(foo) - * ... - * foo := &pb.Foo{} - * if err := ptypes.UnmarshalAny(any, foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * - * JSON - * ==== - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ - consensus_state?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }; - /** client ID associated with the consensus state */ - client_id?: string; - /** - * merkle proof of existence - * @format byte - */ - proof?: string; - /** - * height at which the proof was retrieved - * Normally the RevisionHeight is incremented at each height while keeping RevisionNumber - * the same. However some consensus algorithms may choose to reset the - * height in certain conditions e.g. hard forks, state-machine breaking changes - * In these cases, the RevisionNumber is incremented so that height continues to - * be monitonically increasing even as the RevisionHeight gets reset - */ - proof_height?: { - /** - * the revision that the client is currently on - * @format uint64 - */ - revision_number?: string; - /** - * the height within the given revision - * @format uint64 - */ - revision_height?: string; - }; - }, - { - error?: string; - /** @format int32 */ - code?: number; - message?: string; - details?: { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - type_url?: string; - /** - * Must be a valid serialized protocol buffer of the above specified type. - * @format byte - */ - value?: string; - }[]; - } - >({ - path: `/ibc/core/connection/v1beta1/connections/${connectionId}/consensus_state/revision/${revisionNumber}/height/${revisionHeight}`, - method: 'GET', - ...params, - }), - }; -} diff --git a/src/pages/teleport/hooks/utils.tsx b/src/pages/teleport/hooks/utils.tsx index 231c11025..9a9c1cfe9 100644 --- a/src/pages/teleport/hooks/utils.tsx +++ b/src/pages/teleport/hooks/utils.tsx @@ -74,6 +74,7 @@ export const parseEventsTxsSwap = (log: Log[]) => { if (event.type === 'swap_within_batch') { const { attributes } = event; + // REFACTOR: CREATE HELPER <<<< const demandCoinDenomAttr = attributes.find( (attr) => attr.key === 'demand_coin_denom' ); @@ -81,6 +82,8 @@ export const parseEventsTxsSwap = (log: Log[]) => { ? demandCoinDenomAttr.value : undefined; + // >>>>> REFACTOR: CREATE HELPER + const offerCoinDenomAttr = attributes.find( (attr) => attr.key === 'offer_coin_denom' ); diff --git a/src/services/QueueManager/QueueManager.ts b/src/services/QueueManager/QueueManager.ts index eba3f83f7..e89434887 100644 --- a/src/services/QueueManager/QueueManager.ts +++ b/src/services/QueueManager/QueueManager.ts @@ -21,7 +21,7 @@ import { fetchIpfsContent } from 'src/services/ipfs/utils/utils-ipfs'; import { CybIpfsNode, IpfsContentSource } from 'src/services/ipfs/ipfs'; import { ParticleCid } from 'src/types/base'; -import { promiseToObservable } from '../../utils/helpers'; +import { promiseToObservable } from '../../utils/rxjs/helpers'; import type { QueueItem, diff --git a/src/services/QueueManager/q.test.ts b/src/services/QueueManager/q.test.ts deleted file mode 100644 index 8ef149deb..000000000 --- a/src/services/QueueManager/q.test.ts +++ /dev/null @@ -1,265 +0,0 @@ -import rxjsOperators from 'rxjs'; - -import QueueManager from './QueueManager'; -import { BehaviorSubject, of } from 'rxjs'; -import { CybIpfsNode } from '../ipfs/ipfs'; -import { QueueStrategy } from './QueueStrategy'; -import { IDeferredDbSaver } from './types'; -import { valuesExpected } from 'src/utils/test-utils/test-utils'; -import { fetchIpfsContent } from 'src/services/ipfs/utils/utils-ipfs'; - -// const mockTimeout = () => (source) => { -// console.log('TIMEOUT'); -// return source; -// }; - -// Replace the real timeout with the mock -// rxjsOperators.timeout = mockTimeout; - -jest.mock('rxjs', () => { - const originalOperators = jest.requireActual('rxjs'); - return { - ...originalOperators, - debounceTime: jest.fn().mockImplementation(() => (source$) => source$), - // timeout: jest.fn().mockImplementation(() => (source$) => source$), - - // timeout: jest.fn().mockImplementation( - // (config) => (source$) => - // new originalOperators.Observable((subscriber) => { - // console.log('______TTTTTTTT'); - // // Implement the mock logic here - // // This is a simplified example: - // // const timeout = setTimeout(() => { - // // subscriber.error(new Error('Timeout has occurred')); - // // }, config); - - // return source$.subscribe({ - // next(value) { - // // clearTimeout(timeout); - // subscriber.next(value); - // }, - // error(err) { - // // clearTimeout(timeout); - // subscriber.error(err); - // }, - // complete() { - // // clearTimeout(timeout); - // subscriber.complete(); - // }, - // }); - // }) - // ), - }; -}); - -// const mockDebounceTime = jest.fn(() => (source) => source); - -// jest.mock('rxjs', () => { -// const originalRxjs = jest.requireActual('rxjs/operators'); -// return { -// ...originalRxjs, -// debounceTime: mockDebounceTime, -// }; -// }); - -jest.mock('../backend/services/DeferredDbSaver/DeferredDbSaver'); // adjust the path as needed -// jest.mock('./QueueStrategy'); // adjust the path as needed -jest.mock('../ipfs/utils/ipfsCacheDb'); - -jest.mock('src/services/ipfs/utils/cluster.ts', () => ({ add: jest.fn() })); -jest.mock('src/services/backend/channels/BroadcastChannelSender'); - -// jest.mock('src/services/ipfs/utils/utils-ipfs.ts'); -const mockFetchIpfsContent = jest.fn(); -jest.mock('src/services/ipfs/utils/utils-ipfs.ts', () => ({ - // getMimeFromUint8Array: jest.fn(), - // toAsyncIterableWithMime: jest.fn(), - ipfsCacheDb: jest.fn(), - cyberCluster: jest.fn(), - // contentToUint8Array: jest.fn(), - // createTextPreview: jest.fn(), - // catIPFSContentFromNode: jest.fn(), - // fetchIpfsContent: async (...args) => { - // console.log('-----fetchIpfsContent', args); - // return mockFetchIpfsContent(); - // }, - fetchIpfsContent: jest.fn(), - // fetchIpfsContent: mockFetchIpfsContent, - addContenToIpfs: jest.fn(), -})); - -const TIMEOUT_MS = 300; - -const queueStrategy = new QueueStrategy( - { - db: { timeout: TIMEOUT_MS, maxConcurrentExecutions: 2 }, - node: { timeout: TIMEOUT_MS, maxConcurrentExecutions: 2 }, - gateway: { timeout: TIMEOUT_MS, maxConcurrentExecutions: 2 }, - }, - ['db', 'node', 'gateway'] -); - -const cid1 = 'cid1'; -const cid2 = 'cid1'; -const cid3 = 'cid1'; - -const nextTick = () => { - return new Promise((resolve) => { - setTimeout(resolve, 0); - }); -}; - -function wrapPromiseWithSignal( - promise: Promise, - signal?: AbortSignal -): Promise { - return new Promise((resolve, reject) => { - promise.then((result) => { - resolve(result); - }); - - signal?.addEventListener('abort', (e) => { - // @ts-ignore - if (e?.target?.reason !== 'timeout') { - reject(new DOMException('canceled', 'AbortError')); - } - }); - }); -} - -const getPromise = ( - result = 'result', - timeout = 500, - signal?: AbortSignal -): Promise => - wrapPromiseWithSignal( - new Promise((resolve) => { - setTimeout(() => resolve(`result ${result}`), timeout); - }), - signal - ); - -const mockNode: jest.Mocked = { - nodeType: 'helia', - reconnectToSwarm: jest.fn(), -}; -jest.useFakeTimers(); - -describe('QueueManager without timers', () => { - let queueManager: QueueManager; - - beforeEach(() => { - // setup QueueManager instance before each test - const deferredDbSaverMock: IDeferredDbSaver = { - enqueueIpfsContent: jest.fn(), - enqueueLinks: jest.fn(), - }; - queueManager = new QueueManager(of(mockNode), { - strategy: queueStrategy, - queueDebounceMs: 1, - defferedDbSaver: deferredDbSaverMock, - }); - }); - - afterEach(() => { - jest.clearAllTimers(); - }); - - test('should instantiate without errors', () => { - expect(queueManager).toBeInstanceOf(QueueManager); - }); - - test('should keep in pending items thats is out of maxConcurrentExecutions', () => { - (fetchIpfsContent as jest.Mock).mockResolvedValue(undefined); - - queueManager.enqueue('1', jest.fn); - queueManager.enqueue('2', jest.fn); - queueManager.enqueue('3', jest.fn); - const itemList = queueManager.getQueueList(); - expect(itemList[0].status).toEqual('executing'); - expect(itemList[1].status).toEqual('executing'); - expect(itemList[2].status).toEqual('pending'); - }); - - test('should cancel queue items', (done) => { - const statuses = valuesExpected(['pending', 'executing', 'cancelled']); - // (fetchIpfsContent as jest.Mock).mockReturnValue(Promise.resolve('aaaaa')); - (fetchIpfsContent as jest.Mock).mockReturnValue( - new Promise((resolve) => { - setTimeout(resolve, 500); - }) - ); - // async (cid: string, source: string, { controller }) => - // wrapPromiseWithSignal(getPromise('result', 1000), controller.signal) - // ); - - queueManager.enqueue(cid1, (cid, status) => { - console.log(`----${cid1} - enqueue cb()`, cid, status); - expect(cid).toBe(cid1); - expect(status).toBe(statuses.next().value); - - if (status === 'cancelled') { - expect(queueManager.getQueueList()[0]?.controller?.signal.aborted).toBe( - true - ); - } - }); - console.log('----queueList()', queueManager.getQueueList()); - jest.runOnlyPendingTimers(); - queueManager.cancel(cid1); - jest.runOnlyPendingTimers(); - expect(queueManager.getQueueList().length).toEqual(0); - // waitUtilQueueDebounce(() => { - // expect(queueManager.getQueueList().length).toEqual(0); - // done(); - // }); - }); - - // test('should enqueue item, try to resolve all sources and return not_found', (done) => { - - // queueManager.enqueue(cid1, (cid, status, source, result) => { - // expect(cid).toBe(cid1); - - // const [statusExpected, sourceExpected] = responsesExpected.next().value; - // expect(status).toBe(statusExpected); - // expect(source).toBe(sourceExpected); - // jest.runOnlyPendingTimers(); - // if (statusExpected === 'not_found') { - // console.log('---res', statusExpected, cid, source, status, result); - // done(); - // } - // }); - // }); - - test('should enqueue item, try to resolve all sources and return not_found', (done) => { - (fetchIpfsContent as jest.Mock).mockResolvedValue(undefined); - const responsesExpected = valuesExpected([ - ['pending', 'db'], - ['executing', 'db'], - ['error', 'db'], - ['pending', 'node'], - ['executing', 'node'], - ['error', 'node'], - ['pending', 'gateway'], - ['executing', 'gateway'], - ['error', 'gateway'], - ['not_found', 'gateway'], - ]); - - queueManager.enqueue(cid1, (cid, status, source, result) => { - expect(cid).toBe(cid1); - - const [statusExpected, sourceExpected] = responsesExpected.next().value; - expect(status).toBe(statusExpected); - expect(source).toBe(sourceExpected); - jest.runOnlyPendingTimers(); - if (statusExpected === 'not_found') { - console.log('---res', statusExpected, cid, source, status, result); - // jest.clearAllTimers(); - done(); - } - // expect(source).toBe('db'); - // done(); - }); - }); -}); diff --git a/src/services/ipfs/utils/utils-ipfs.ts b/src/services/ipfs/utils/utils-ipfs.ts index d6a077c48..ccbb990d9 100644 --- a/src/services/ipfs/utils/utils-ipfs.ts +++ b/src/services/ipfs/utils/utils-ipfs.ts @@ -18,34 +18,7 @@ import cyberCluster from './cluster'; import { contentToUint8Array, createTextPreview } from './content'; -import { - // CYBERNODE_SWARM_ADDR_WSS, - // CYBERNODE_SWARM_ADDR_TCP, - // CYBER_NODE_SWARM_PEER_ID, - CYBER_GATEWAY_URL, - FILE_SIZE_DOWNLOAD, -} from '../config'; - -// import { convertTimeToMilliseconds } from '../helpers'; -// import { CYBER } from '../config'; - -// TODO: fix to get working inside web worker, REFACTOR - -// Get IPFS node from local storage -// TODO: refactor -// const getIpfsUserGatewanAndNode = (): getIpfsUserGatewanAndNodeType => { -// const LS_IPFS_STATE = localStorage.getItem('ipfsState'); - -// if (LS_IPFS_STATE !== null) { -// const lsTypeIpfsData = JSON.parse(LS_IPFS_STATE); -// if (lsTypeIpfsData?.userGateway) { -// const { userGateway, ipfsNodeType } = lsTypeIpfsData; -// return { userGateway, ipfsNodeType }; -// } -// } - -// return { ipfsNodeType: undefined, userGateway: undefined }; -// }; +import { CYBER_GATEWAY_URL, FILE_SIZE_DOWNLOAD } from '../config'; // Get data by CID from local storage const loadIPFSContentFromDb = async ( @@ -183,9 +156,6 @@ const fetchIPFSContentFromGateway = async ( node?: IpfsNode, controller?: AbortController ): Promise => { - // TODO: Should we use Cyber Gateway? - // const { userGateway } = getIpfsUserGatewanAndNode(); - // fetch META only from external node(toooo slow), TODO: fetch meta from cybernode const isExternalNode = node?.nodeType === 'external'; const meta = isExternalNode @@ -354,125 +324,16 @@ const addContenToIpfs = async ( if (node) { cid = await node.add(content); } - // TODO: TMP solution make cluster call non-awaitable + // TODO: WARN - TMP solution make cluster call non-awaitable cyberCluster.add(content); - // const pinResponse = await cyberCluster.add(content); - // cid = cid || pinResponse?.cid; - + // Save to local cache cid && (await ipfsCacheDb.add(cid, await contentToUint8Array(content))); return cid; }; -// '/dns4/swarm.io.cybernode.ai/tcp/4001/p2p/QmUgmRxoLtGERot7Y6G7UyF6fwvnusQZfGR15PuE6pY3aB'; - -// const connectToSwarm = async (node, address) => { -// const multiaddrSwarm = multiaddr(address); -// // console.log(`Connecting to swarm ${address}`, node); -// if (node.nodeType === 'helia') { -// // node.libp2p.bootstrap.add(multiaddrSwarm); -// node.libp2p.dial(multiaddrSwarm); -// return; -// } - -// await node.bootstrap.add(multiaddrSwarm); - -// node?.swarm -// .connect(multiaddrSwarm) -// .then((resp) => { -// console.log(`Welcome to swarm ${address} 🐝🐝🐝`); -// // node.swarm.peers().then((peers) => console.log('---peeers', peers)); -// }) -// .catch((err) => { -// console.log( -// 'Error object properties:', -// Object.getOwnPropertyNames(err), -// err.stack, -// err.errors, -// err.message -// ); -// console.log(`Can't connect to swarm ${address}: ${err.message}`); -// }); -// }; - -// const connectToCyberSwarm = async (node: AppIPFS) => { -// const cyberNodeAddr = -// node.nodeType === 'embedded' -// ? CYBERNODE_SWARM_ADDR_WSS -// : CYBERNODE_SWARM_ADDR_TCP; -// await connectToSwarm(node, cyberNodeAddr); -// }; - -// const reconnectToCyberSwarm = async (node?: IpfsNode, lastCallTime: 0) => { -// if (!node) { -// return; -// } -// const isHelia = node.nodeType === 'helia'; -// const cyberNodeAddr = -// node.nodeType !== 'external' -// ? CYBERNODE_SWARM_ADDR_WSS -// : CYBERNODE_SWARM_ADDR_TCP; - -// const isSwarmConnected = isHelia -// ? node!.libp2p -// .getConnections() -// .find((c) => c.remotePeer.toString() === CYBER_NODE_SWARM_PEER_ID) -// : (await node!.swarm.peers()).find( -// (p) => p.peer.toString() === CYBER_NODE_SWARM_PEER_ID -// ); - -// // console.log('autoDialTime', await getNodeAutoDialInterval(node)); -// // console.log('lastCallTime', lastCallTime, Date.now() - lastCallTime); - -// // console.log('---isConnected', true, peers.length); - -// if (!isSwarmConnected) { -// // TODO: refactor using timeout for node -// const needToReconnect = -// Date.now() - lastCallTime < (node.connMgrGracePeriod || 20); -// if (needToReconnect) { -// await connectToSwarm(node, cyberNodeAddr); -// } -// } -// }; - -// const DEFAULT_AUTO_DIAL_INTERVAL = 10000; -// const GET_CONFIG_TIMEOUT = 3000; -// TODO: REFACTOR -// const getNodeAutoDialInterval = async (node: IpfsNode) => { -// try { -// const autoDialTime = convertTimeToMilliseconds( -// ((await node.config.get('Swarm.ConnMgr.GracePeriod', { -// timeout: GET_CONFIG_TIMEOUT, -// })) as string) || DEFAULT_AUTO_DIAL_INTERVAL -// ); - -// return autoDialTime; -// } catch { -// return DEFAULT_AUTO_DIAL_INTERVAL; -// } -// }; - -// const getIpfsGatewayUrl = async (node: IpfsNode, cid: string) => { -// if (node.nodeType !== 'external') { -// return `${CYBER_GATEWAY_URL}/ipfs/${cid}`; -// } - -// const response = await node.config.get('Addresses.Gateway'); -// const address = multiaddr(response).nodeAddress(); - -// try { -// return `http://${address.address}:${address.port}/ipfs/${cid}`; -// } catch (error) { -// return `${CYBER_GATEWAY_URL}/ipfs/${cid}`; -// } -// }; - export { getIPFSContent, catIPFSContentFromNode, fetchIpfsContent, addContenToIpfs, - // reconnectToCyberSwarm, - // getIpfsGatewayUrl, - // getNodeAutoDialInterval, }; diff --git a/src/utils/__tests__/date.test.ts b/src/utils/__tests__/date.test.ts index c3faa1b4c..299f47643 100644 --- a/src/utils/__tests__/date.test.ts +++ b/src/utils/__tests__/date.test.ts @@ -1,9 +1,4 @@ -import { - numberToUtcDate, - dateToUtcNumber, - roundMilliseconds, - numberToDateWithTimezone, -} from '../date'; +import { numberToUtcDate, dateToUtcNumber, roundMilliseconds } from '../date'; test('numberToDate should convert timestamp to formatted date string', () => { const timestamp = 0; @@ -29,11 +24,3 @@ test('roundMilliseconds should round the milliseconds of a date-time string', () const result = roundMilliseconds(dateTimeString); expect(result).toBe('2022-01-01T12:00:00.000'); }); - -test('numberToDateWithTimezone should convert number to date with specified timezone', () => { - const timestamp = 1640995200000; - const timezoneOffset = 5.5; - const result = numberToDateWithTimezone(timestamp, timezoneOffset); - - expect(result).toBe('2022-01-01 05:30:00'); -}); diff --git a/src/utils/async/promise.ts b/src/utils/async/promise.ts index 5f90cf5ff..6f87922aa 100644 --- a/src/utils/async/promise.ts +++ b/src/utils/async/promise.ts @@ -21,19 +21,6 @@ export async function waitUntil(cond: () => boolean, timeoutDuration = 60000) { return Promise.race([waitPromise, timeoutPromise]); } -export function executeSequentially( - promiseFunctions: (() => Promise)[] -): Promise { - return promiseFunctions.reduce((promiseChain, currentFunction) => { - return promiseChain.then((chainResults) => - currentFunction().then((currentResult) => [ - ...chainResults, - currentResult, - ]) - ); - }, Promise.resolve([] as T[])); -} - // eslint-disable-next-line import/no-unused-modules export function makeCancellable Promise>( func: T, @@ -75,3 +62,29 @@ export function throwIfAborted Promise>( return func(...args); }; } + +/** + * Promise will be rejected after timeout. + * + * @param promise + * @param timeout ms + * @param abortController trigger abort + * @returns + */ +// eslint-disable-next-line import/no-unused-modules +export async function withTimeout( + promise: Promise, + timeout: number, + abortController?: AbortController +): Promise { + return Promise.race([ + promise, + new Promise((_, reject) => { + const timer = setTimeout(() => { + abortController?.abort('timeout'); + clearTimeout(timer); + reject(new DOMException('timeout', 'AbortError')); + }, timeout); + }), + ]); +} diff --git a/src/utils/date.ts b/src/utils/date.ts index d3c34f878..abe447407 100644 --- a/src/utils/date.ts +++ b/src/utils/date.ts @@ -6,10 +6,8 @@ export const numberToUtcDate = (timestamp: number) => export const dateToUtcNumber = (isoString: string) => Date.parse(isoString.endsWith('Z') ? isoString : `${isoString}Z`); -export const getNowUtcNumber = (): number => { - return Date.now(); //dateToUtcNumber(new Date().toISOString()); -}; -// +export const getNowUtcNumber = () => Date.now(); + function roundMilliseconds(dateTimeString: string) { const date = new Date(dateTimeString); const roundedMilliseconds = Math.round(date.getMilliseconds() / 1000) * 1000; @@ -21,23 +19,6 @@ function getCurrentTimezoneOffset() { return -now.getTimezoneOffset() / 60; } -function numberToDateWithTimezone(timestamp: number, timezoneOffset?: number) { - // Convert timestamp from milliseconds to a Date object - const date = new Date(timestamp); - - const tzOffset = timezoneOffset || getCurrentTimezoneOffset(); - console.log('---tzOffset', tzOffset); - // Adjust the date for the timezone offset - // The timezoneOffset is in hours for the target timezone relative to UTC - const localTime = date.getTime(); - const localOffset = date.getTimezoneOffset() * 60000; // in milliseconds - const utc = localTime + localOffset; - const timezoneDate = new Date(utc + 3600000 * tzOffset); - - // Format the date using dateFormat - return dateFormat(timezoneDate, 'yyyy-mm-dd HH:MM:ss'); -} - function pluralizeUnit(quantity: number, unit: string): string { return quantity === 1 ? unit : `${unit}s`; } diff --git a/src/utils/helpers.ts b/src/utils/helpers.ts deleted file mode 100644 index 722bcb473..000000000 --- a/src/utils/helpers.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { Observable } from 'rxjs'; - -/** - * Promise will be rejected after timeout. - * - * @param promise - * @param timeout ms - * @param abortController trigger abort - * @returns - */ -async function withTimeout( - promise: Promise, - timeout: number, - abortController?: AbortController -): Promise { - return Promise.race([ - promise, - new Promise((_, reject) => { - const timer = setTimeout(() => { - abortController?.abort('timeout'); - clearTimeout(timer); - reject(new DOMException('timeout', 'AbortError')); - }, timeout); - }), - ]); -} - -/** - * Convert promise to observable - * @param promiseFactory - * @returns - */ -export function promiseToObservable(promiseFactory: () => Promise) { - return new Observable((observer) => { - promiseFactory() - .then((response) => { - observer.next(response); - observer.complete(); - }) - .catch((error) => { - console.debug('----promiseToObservable error', error); //, error - observer.error(error); - }); - }); -} - -export function convertTimeToMilliseconds(timeValue: string | number): number { - if (typeof timeValue === 'number') { - return timeValue; - } - const numericValue = parseFloat(timeValue); - - const unit = timeValue - .replace(numericValue.toString(), '') - .trim() - .toLowerCase(); - - switch (unit) { - case 'ms': - case '': - return numericValue; - case 's': - return numericValue * 1000; - case 'm': - return numericValue * 60 * 1000; - case 'h': - return numericValue * 60 * 60 * 1000; - case 'd': - return numericValue * 24 * 60 * 60 * 1000; - default: - throw new Error(`Invalid time unit: ${unit}`); - } -} - -export function debounce(func, timeout = 300) { - let timer; - return (...args) => { - clearTimeout(timer); - timer = setTimeout(() => { - func.apply(this, args); - }, timeout); - }; -} diff --git a/src/utils/rxjs/helpers.ts b/src/utils/rxjs/helpers.ts new file mode 100644 index 000000000..b678c6a45 --- /dev/null +++ b/src/utils/rxjs/helpers.ts @@ -0,0 +1,20 @@ +import { Observable } from 'rxjs'; + +/** + * Convert promise to observable + * @param promiseFactory + * @returns + */ +export function promiseToObservable(promiseFactory: () => Promise) { + return new Observable((observer) => { + promiseFactory() + .then((response) => { + observer.next(response); + observer.complete(); + }) + .catch((error) => { + console.debug('----promiseToObservable error', error); //, error + observer.error(error); + }); + }); +} diff --git a/src/utils/test-utils/test-utils.ts b/src/utils/test-utils/test-utils.ts deleted file mode 100644 index 90929d5c3..000000000 --- a/src/utils/test-utils/test-utils.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function* valuesExpected(values: T[]): Generator { - for (let i = 0; i < values.length; i++) { - yield values[i]; - } -} From d2cfdbed7b17d52ff1fb031dd1d95396d7f5ff1e Mon Sep 17 00:00:00 2001 From: dasein Date: Sun, 24 Mar 2024 16:18:00 +0530 Subject: [PATCH 25/40] refactor(backend): add graphql types, remove unused, restruct --- codegen.ts | 11 +- src/contexts/backend/backend.tsx | 2 +- src/contexts/backend/services/senseApi.ts | 2 +- src/generated/graphql.ts | 7182 +++++++++-------- src/services/CozoDb/mapping.ts | 4 +- .../dbApiWrapper.ts => DbApi/DbApi.ts} | 6 +- .../__mocks__/dbApiWrapperMock.ts | 0 .../DeferredDbSaver/DeferredDbSaver.test.ts | 2 +- .../DeferredDbSaver/DeferredDbSaver.ts | 2 +- .../blockchain/__tests__/indexer.test.ts | 106 - .../blockchain/__tests__/lcd.test.ts | 16 - .../blockchain/__tests__/utils.test.ts | 39 - .../services/dataSource/blockchain/indexer.ts | 183 - .../services/dataSource/blockchain/lcd.ts | 131 - .../dataSource/blockchain/utils/fetch.ts | 19 - .../blockchain => indexer}/consts.ts | 0 .../backend/services/indexer/cyberlinks.ts | 141 + .../graphql/cyberlinksByParticle.graphql | 19 + .../graphql/cyberlinksCountByNeuron.graphql | 19 + .../graphql/messagesByAddressCount.graphql | 10 + .../messagesByAddressSense/query.graphql | 27 + .../subscription.graphql | 27 + .../backend/services/indexer/transactions.ts | 101 +- .../backend/services/indexer/types.ts | 9 - .../{utils.ts => utils/graphqlClient.ts} | 6 +- .../services/lcd/__tests__/utils.test.ts | 64 - src/services/backend/services/lcd/types.ts | 4 - src/services/backend/services/lcd/utils.ts | 37 - .../sync/services/BaseSyncLoop/BaseSync.ts | 2 +- .../ParticlesResolverQueue.ts | 2 +- .../SyncIpfsLoop/SyncIpfsLoop.test.ts | 2 +- .../services/SyncIpfsLoop/SyncIpfsLoop.ts | 4 +- .../services/SyncIpfsLoop/services.ts} | 2 +- .../SyncMyFriendsLoop/SyncMyFriendsLoop.ts | 4 +- .../SyncParticlesLoop.test.ts | 2 +- .../SyncParticlesLoop/SyncParticlesLoop.ts | 4 +- .../SyncTransactionsLoop.test.ts | 2 +- .../SyncTransactionsLoop.ts | 37 +- .../SyncTransactionsLoop/services/chat.ts | 2 +- .../backend/services/sync/services/types.ts | 2 +- .../services/sync/services/utils/links.ts | 2 +- src/services/backend/services/sync/utils.ts | 12 - .../backend/workers/background/worker.ts | 2 +- src/services/community/community.test.ts | 4 +- src/services/community/community.ts | 4 +- .../services/lcd => community}/lcd.ts | 6 - src/utils/async/iterable.ts | 20 + 47 files changed, 4080 insertions(+), 4204 deletions(-) rename src/services/backend/services/{dataSource/indexedDb/dbApiWrapper.ts => DbApi/DbApi.ts} (98%) rename src/services/backend/services/{dataSource/indexedDb => DbApi}/__mocks__/dbApiWrapperMock.ts (100%) delete mode 100644 src/services/backend/services/dataSource/blockchain/__tests__/indexer.test.ts delete mode 100644 src/services/backend/services/dataSource/blockchain/__tests__/lcd.test.ts delete mode 100644 src/services/backend/services/dataSource/blockchain/__tests__/utils.test.ts delete mode 100644 src/services/backend/services/dataSource/blockchain/indexer.ts delete mode 100644 src/services/backend/services/dataSource/blockchain/lcd.ts delete mode 100644 src/services/backend/services/dataSource/blockchain/utils/fetch.ts rename src/services/backend/services/{dataSource/blockchain => indexer}/consts.ts (100%) create mode 100644 src/services/backend/services/indexer/cyberlinks.ts create mode 100644 src/services/backend/services/indexer/graphql/cyberlinksByParticle.graphql create mode 100644 src/services/backend/services/indexer/graphql/cyberlinksCountByNeuron.graphql create mode 100644 src/services/backend/services/indexer/graphql/messagesByAddressCount.graphql create mode 100644 src/services/backend/services/indexer/graphql/messagesByAddressSense/query.graphql create mode 100644 src/services/backend/services/indexer/graphql/messagesByAddressSense/subscription.graphql rename src/services/backend/services/indexer/{utils.ts => utils/graphqlClient.ts} (94%) delete mode 100644 src/services/backend/services/lcd/__tests__/utils.test.ts delete mode 100644 src/services/backend/services/lcd/types.ts delete mode 100644 src/services/backend/services/lcd/utils.ts rename src/services/backend/services/{dataSource/ipfs/ipfsSource.ts => sync/services/SyncIpfsLoop/services.ts} (95%) rename src/services/{backend/services/lcd => community}/lcd.ts (84%) diff --git a/codegen.ts b/codegen.ts index 84ddcfd54..2af3e5fe1 100644 --- a/codegen.ts +++ b/codegen.ts @@ -8,20 +8,11 @@ const config: CodegenConfig = { documents: ['src/**/*.graphql'], config: { withHooks: true, - namingConvention: { - transformUnderscore: true, - }, }, generates: { 'src/generated/graphql.ts': { plugins: [ - { - typescript: { - namingConvention: { - transformUnderscore: true, - }, - }, - }, + 'typescript', 'typescript-operations', 'typescript-react-apollo', ], diff --git a/src/contexts/backend/backend.tsx b/src/contexts/backend/backend.tsx index 2e1034cf5..ed7ac6240 100644 --- a/src/contexts/backend/backend.tsx +++ b/src/contexts/backend/backend.tsx @@ -8,7 +8,7 @@ import RxBroadcastChannelListener from 'src/services/backend/channels/RxBroadcas import { CybIpfsNode } from 'src/services/ipfs/ipfs'; import { getIpfsOpts } from 'src/services/ipfs/config'; import { selectCurrentAddress } from 'src/redux/features/pocket'; -import DbApiWrapper from 'src/services/backend/services/dataSource/indexedDb/dbApiWrapper'; +import DbApiWrapper from 'src/services/backend/services/DbApi/DbApi'; import { CozoDbWorker } from 'src/services/backend/workers/db/worker'; import { BackgroundWorker } from 'src/services/backend/workers/background/worker'; import { SenseApi, createSenseApi } from './services/senseApi'; diff --git a/src/contexts/backend/services/senseApi.ts b/src/contexts/backend/services/senseApi.ts index b771f4903..056f09ba3 100644 --- a/src/contexts/backend/services/senseApi.ts +++ b/src/contexts/backend/services/senseApi.ts @@ -8,7 +8,7 @@ import { } from 'src/services/CozoDb/types/dto'; import { EntryType } from 'src/services/CozoDb/types/entities'; import BroadcastChannelSender from 'src/services/backend/channels/BroadcastChannelSender'; -import DbApiWrapper from 'src/services/backend/services/dataSource/indexedDb/dbApiWrapper'; +import DbApiWrapper from 'src/services/backend/services/DbApi/DbApi'; import { CYBER_LINK_TRANSACTION_TYPE, CyberLinkValue, diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index afd98ce0f..b1729e233 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -28,7 +28,7 @@ export type Scalars = { }; /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ -export type BooleanComparisonExp = { +export type Boolean_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -41,7 +41,7 @@ export type BooleanComparisonExp = { }; /** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */ -export type IntComparisonExp = { +export type Int_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -54,7 +54,7 @@ export type IntComparisonExp = { }; /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ -export type StringComparisonExp = { +export type String_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -87,7 +87,7 @@ export type StringComparisonExp = { }; /** Boolean expression to compare columns of type "_coin". All fields are combined with logical 'AND'. */ -export type CoinComparisonExp = { +export type _Coin_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -100,7 +100,7 @@ export type CoinComparisonExp = { }; /** Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. */ -export type TextComparisonExp = { +export type _Text_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -113,7 +113,7 @@ export type TextComparisonExp = { }; /** columns and relationships of "_transaction" */ -export type Transaction = { +export type _Transaction = { __typename?: '_transaction'; fee?: Maybe; gas_used?: Maybe; @@ -138,66 +138,66 @@ export type Transaction = { /** columns and relationships of "_transaction" */ -export type TransactionFeeArgs = { +export type _TransactionFeeArgs = { path?: InputMaybe; }; /** columns and relationships of "_transaction" */ -export type TransactionLogsArgs = { +export type _TransactionLogsArgs = { path?: InputMaybe; }; /** columns and relationships of "_transaction" */ -export type TransactionMessagesArgs = { +export type _TransactionMessagesArgs = { path?: InputMaybe; }; /** columns and relationships of "_transaction" */ -export type TransactionSignerInfosArgs = { +export type _TransactionSigner_InfosArgs = { path?: InputMaybe; }; /** columns and relationships of "_transaction" */ -export type TransactionValueArgs = { +export type _TransactionValueArgs = { path?: InputMaybe; }; /** aggregated selection of "_transaction" */ -export type TransactionAggregate = { +export type _Transaction_Aggregate = { __typename?: '_transaction_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe<_Transaction_Aggregate_Fields>; + nodes: Array<_Transaction>; }; /** aggregate fields of "_transaction" */ -export type TransactionAggregateFields = { +export type _Transaction_Aggregate_Fields = { __typename?: '_transaction_aggregate_fields'; - avg?: Maybe; + avg?: Maybe<_Transaction_Avg_Fields>; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe<_Transaction_Max_Fields>; + min?: Maybe<_Transaction_Min_Fields>; + stddev?: Maybe<_Transaction_Stddev_Fields>; + stddev_pop?: Maybe<_Transaction_Stddev_Pop_Fields>; + stddev_samp?: Maybe<_Transaction_Stddev_Samp_Fields>; + sum?: Maybe<_Transaction_Sum_Fields>; + var_pop?: Maybe<_Transaction_Var_Pop_Fields>; + var_samp?: Maybe<_Transaction_Var_Samp_Fields>; + variance?: Maybe<_Transaction_Variance_Fields>; }; /** aggregate fields of "_transaction" */ -export type TransactionAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type _Transaction_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type TransactionAvgFields = { +export type _Transaction_Avg_Fields = { __typename?: '_transaction_avg_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -206,33 +206,33 @@ export type TransactionAvgFields = { }; /** Boolean expression to filter rows from the table "_transaction". All fields are combined with a logical 'AND'. */ -export type TransactionBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - fee?: InputMaybe; - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - index?: InputMaybe; - involved_accounts_addresses?: InputMaybe; - logs?: InputMaybe; - memo?: InputMaybe; - messages?: InputMaybe; - raw_log?: InputMaybe; - signatures?: InputMaybe; - signer_infos?: InputMaybe; - subject1?: InputMaybe; - subject2?: InputMaybe; - success?: InputMaybe; - transaction_hash?: InputMaybe; - type?: InputMaybe; - value?: InputMaybe; +export type _Transaction_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe<_Transaction_Bool_Exp>; + _or?: InputMaybe>; + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe<_Text_Comparison_Exp>; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + raw_log?: InputMaybe; + signatures?: InputMaybe<_Text_Comparison_Exp>; + signer_infos?: InputMaybe; + subject1?: InputMaybe; + subject2?: InputMaybe; + success?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; }; /** aggregate max on columns */ -export type TransactionMaxFields = { +export type _Transaction_Max_Fields = { __typename?: '_transaction_max_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -248,7 +248,7 @@ export type TransactionMaxFields = { }; /** aggregate min on columns */ -export type TransactionMinFields = { +export type _Transaction_Min_Fields = { __typename?: '_transaction_min_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -264,30 +264,30 @@ export type TransactionMinFields = { }; /** Ordering options when selecting data from "_transaction". */ -export type TransactionOrderBy = { - fee?: InputMaybe; - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - index?: InputMaybe; - involved_accounts_addresses?: InputMaybe; - logs?: InputMaybe; - memo?: InputMaybe; - messages?: InputMaybe; - raw_log?: InputMaybe; - signatures?: InputMaybe; - signer_infos?: InputMaybe; - subject1?: InputMaybe; - subject2?: InputMaybe; - success?: InputMaybe; - transaction_hash?: InputMaybe; - type?: InputMaybe; - value?: InputMaybe; +export type _Transaction_Order_By = { + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + raw_log?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + subject1?: InputMaybe; + subject2?: InputMaybe; + success?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; }; /** select columns of table "_transaction" */ -export enum TransactionSelectColumn { +export enum _Transaction_Select_Column { /** column name */ Fee = 'fee', /** column name */ @@ -329,7 +329,7 @@ export enum TransactionSelectColumn { } /** aggregate stddev on columns */ -export type TransactionStddevFields = { +export type _Transaction_Stddev_Fields = { __typename?: '_transaction_stddev_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -338,7 +338,7 @@ export type TransactionStddevFields = { }; /** aggregate stddev_pop on columns */ -export type TransactionStddevPopFields = { +export type _Transaction_Stddev_Pop_Fields = { __typename?: '_transaction_stddev_pop_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -347,7 +347,7 @@ export type TransactionStddevPopFields = { }; /** aggregate stddev_samp on columns */ -export type TransactionStddevSampFields = { +export type _Transaction_Stddev_Samp_Fields = { __typename?: '_transaction_stddev_samp_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -356,7 +356,7 @@ export type TransactionStddevSampFields = { }; /** aggregate sum on columns */ -export type TransactionSumFields = { +export type _Transaction_Sum_Fields = { __typename?: '_transaction_sum_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -365,7 +365,7 @@ export type TransactionSumFields = { }; /** aggregate var_pop on columns */ -export type TransactionVarPopFields = { +export type _Transaction_Var_Pop_Fields = { __typename?: '_transaction_var_pop_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -374,7 +374,7 @@ export type TransactionVarPopFields = { }; /** aggregate var_samp on columns */ -export type TransactionVarSampFields = { +export type _Transaction_Var_Samp_Fields = { __typename?: '_transaction_var_samp_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -383,7 +383,7 @@ export type TransactionVarSampFields = { }; /** aggregate variance on columns */ -export type TransactionVarianceFields = { +export type _Transaction_Variance_Fields = { __typename?: '_transaction_variance_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -392,79 +392,79 @@ export type TransactionVarianceFields = { }; /** columns and relationships of "_uptime_temp" */ -export type UptimeTemp = { +export type _Uptime_Temp = { __typename?: '_uptime_temp'; pre_commits?: Maybe; validator_address?: Maybe; }; /** aggregated selection of "_uptime_temp" */ -export type UptimeTempAggregate = { +export type _Uptime_Temp_Aggregate = { __typename?: '_uptime_temp_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe<_Uptime_Temp_Aggregate_Fields>; + nodes: Array<_Uptime_Temp>; }; /** aggregate fields of "_uptime_temp" */ -export type UptimeTempAggregateFields = { +export type _Uptime_Temp_Aggregate_Fields = { __typename?: '_uptime_temp_aggregate_fields'; - avg?: Maybe; + avg?: Maybe<_Uptime_Temp_Avg_Fields>; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe<_Uptime_Temp_Max_Fields>; + min?: Maybe<_Uptime_Temp_Min_Fields>; + stddev?: Maybe<_Uptime_Temp_Stddev_Fields>; + stddev_pop?: Maybe<_Uptime_Temp_Stddev_Pop_Fields>; + stddev_samp?: Maybe<_Uptime_Temp_Stddev_Samp_Fields>; + sum?: Maybe<_Uptime_Temp_Sum_Fields>; + var_pop?: Maybe<_Uptime_Temp_Var_Pop_Fields>; + var_samp?: Maybe<_Uptime_Temp_Var_Samp_Fields>; + variance?: Maybe<_Uptime_Temp_Variance_Fields>; }; /** aggregate fields of "_uptime_temp" */ -export type UptimeTempAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type _Uptime_Temp_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type UptimeTempAvgFields = { +export type _Uptime_Temp_Avg_Fields = { __typename?: '_uptime_temp_avg_fields'; pre_commits?: Maybe; }; /** Boolean expression to filter rows from the table "_uptime_temp". All fields are combined with a logical 'AND'. */ -export type UptimeTempBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - pre_commits?: InputMaybe; - validator_address?: InputMaybe; +export type _Uptime_Temp_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe<_Uptime_Temp_Bool_Exp>; + _or?: InputMaybe>; + pre_commits?: InputMaybe; + validator_address?: InputMaybe; }; /** aggregate max on columns */ -export type UptimeTempMaxFields = { +export type _Uptime_Temp_Max_Fields = { __typename?: '_uptime_temp_max_fields'; pre_commits?: Maybe; validator_address?: Maybe; }; /** aggregate min on columns */ -export type UptimeTempMinFields = { +export type _Uptime_Temp_Min_Fields = { __typename?: '_uptime_temp_min_fields'; pre_commits?: Maybe; validator_address?: Maybe; }; /** Ordering options when selecting data from "_uptime_temp". */ -export type UptimeTempOrderBy = { - pre_commits?: InputMaybe; - validator_address?: InputMaybe; +export type _Uptime_Temp_Order_By = { + pre_commits?: InputMaybe; + validator_address?: InputMaybe; }; /** select columns of table "_uptime_temp" */ -export enum UptimeTempSelectColumn { +export enum _Uptime_Temp_Select_Column { /** column name */ PreCommits = 'pre_commits', /** column name */ @@ -472,43 +472,43 @@ export enum UptimeTempSelectColumn { } /** aggregate stddev on columns */ -export type UptimeTempStddevFields = { +export type _Uptime_Temp_Stddev_Fields = { __typename?: '_uptime_temp_stddev_fields'; pre_commits?: Maybe; }; /** aggregate stddev_pop on columns */ -export type UptimeTempStddevPopFields = { +export type _Uptime_Temp_Stddev_Pop_Fields = { __typename?: '_uptime_temp_stddev_pop_fields'; pre_commits?: Maybe; }; /** aggregate stddev_samp on columns */ -export type UptimeTempStddevSampFields = { +export type _Uptime_Temp_Stddev_Samp_Fields = { __typename?: '_uptime_temp_stddev_samp_fields'; pre_commits?: Maybe; }; /** aggregate sum on columns */ -export type UptimeTempSumFields = { +export type _Uptime_Temp_Sum_Fields = { __typename?: '_uptime_temp_sum_fields'; pre_commits?: Maybe; }; /** aggregate var_pop on columns */ -export type UptimeTempVarPopFields = { +export type _Uptime_Temp_Var_Pop_Fields = { __typename?: '_uptime_temp_var_pop_fields'; pre_commits?: Maybe; }; /** aggregate var_samp on columns */ -export type UptimeTempVarSampFields = { +export type _Uptime_Temp_Var_Samp_Fields = { __typename?: '_uptime_temp_var_samp_fields'; pre_commits?: Maybe; }; /** aggregate variance on columns */ -export type UptimeTempVarianceFields = { +export type _Uptime_Temp_Variance_Fields = { __typename?: '_uptime_temp_variance_fields'; pre_commits?: Maybe; }; @@ -517,154 +517,154 @@ export type UptimeTempVarianceFields = { export type Account = { __typename?: 'account'; /** An object relationship */ - account_balance?: Maybe; + account_balance?: Maybe; address: Scalars['String']['output']; /** fetch data from the table: "cyberlinks" */ cyberlinks: Array; /** An aggregate relationship */ - cyberlinks_aggregate: CyberlinksAggregate; + cyberlinks_aggregate: Cyberlinks_Aggregate; /** An array relationship */ investmints: Array; /** An aggregate relationship */ - investmints_aggregate: InvestmintsAggregate; + investmints_aggregate: Investmints_Aggregate; /** An array relationship */ particles: Array; /** An aggregate relationship */ - particles_aggregate: ParticlesAggregate; + particles_aggregate: Particles_Aggregate; /** An array relationship */ routes: Array; /** An array relationship */ routesBySource: Array; /** An aggregate relationship */ - routesBySource_aggregate: RoutesAggregate; + routesBySource_aggregate: Routes_Aggregate; /** An aggregate relationship */ - routes_aggregate: RoutesAggregate; + routes_aggregate: Routes_Aggregate; }; /** columns and relationships of "account" */ export type AccountCyberlinksArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "account" */ -export type AccountCyberlinksAggregateArgs = { - distinct_on?: InputMaybe>; +export type AccountCyberlinks_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "account" */ export type AccountInvestmintsArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "account" */ -export type AccountInvestmintsAggregateArgs = { - distinct_on?: InputMaybe>; +export type AccountInvestmints_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "account" */ export type AccountParticlesArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "account" */ -export type AccountParticlesAggregateArgs = { - distinct_on?: InputMaybe>; +export type AccountParticles_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "account" */ export type AccountRoutesArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "account" */ export type AccountRoutesBySourceArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "account" */ -export type AccountRoutesBySourceAggregateArgs = { - distinct_on?: InputMaybe>; +export type AccountRoutesBySource_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "account" */ -export type AccountRoutesAggregateArgs = { - distinct_on?: InputMaybe>; +export type AccountRoutes_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** aggregated selection of "account" */ -export type AccountAggregate = { +export type Account_Aggregate = { __typename?: 'account_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "account" */ -export type AccountAggregateFields = { +export type Account_Aggregate_Fields = { __typename?: 'account_aggregate_fields'; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; + max?: Maybe; + min?: Maybe; }; /** aggregate fields of "account" */ -export type AccountAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Account_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** columns and relationships of "account_balance" */ -export type AccountBalance = { +export type Account_Balance = { __typename?: 'account_balance'; /** An object relationship */ account: Account; @@ -674,76 +674,76 @@ export type AccountBalance = { }; /** aggregated selection of "account_balance" */ -export type AccountBalanceAggregate = { +export type Account_Balance_Aggregate = { __typename?: 'account_balance_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "account_balance" */ -export type AccountBalanceAggregateFields = { +export type Account_Balance_Aggregate_Fields = { __typename?: 'account_balance_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "account_balance" */ -export type AccountBalanceAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Account_Balance_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type AccountBalanceAvgFields = { +export type Account_Balance_Avg_Fields = { __typename?: 'account_balance_avg_fields'; height?: Maybe; }; /** Boolean expression to filter rows from the table "account_balance". All fields are combined with a logical 'AND'. */ -export type AccountBalanceBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - account?: InputMaybe; - address?: InputMaybe; - coins?: InputMaybe; - height?: InputMaybe; +export type Account_Balance_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + address?: InputMaybe; + coins?: InputMaybe<_Coin_Comparison_Exp>; + height?: InputMaybe; }; /** aggregate max on columns */ -export type AccountBalanceMaxFields = { +export type Account_Balance_Max_Fields = { __typename?: 'account_balance_max_fields'; address?: Maybe; height?: Maybe; }; /** aggregate min on columns */ -export type AccountBalanceMinFields = { +export type Account_Balance_Min_Fields = { __typename?: 'account_balance_min_fields'; address?: Maybe; height?: Maybe; }; /** Ordering options when selecting data from "account_balance". */ -export type AccountBalanceOrderBy = { - account?: InputMaybe; - address?: InputMaybe; - coins?: InputMaybe; - height?: InputMaybe; +export type Account_Balance_Order_By = { + account?: InputMaybe; + address?: InputMaybe; + coins?: InputMaybe; + height?: InputMaybe; }; /** select columns of table "account_balance" */ -export enum AccountBalanceSelectColumn { +export enum Account_Balance_Select_Column { /** column name */ Address = 'address', /** column name */ @@ -753,92 +753,92 @@ export enum AccountBalanceSelectColumn { } /** aggregate stddev on columns */ -export type AccountBalanceStddevFields = { +export type Account_Balance_Stddev_Fields = { __typename?: 'account_balance_stddev_fields'; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type AccountBalanceStddevPopFields = { +export type Account_Balance_Stddev_Pop_Fields = { __typename?: 'account_balance_stddev_pop_fields'; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type AccountBalanceStddevSampFields = { +export type Account_Balance_Stddev_Samp_Fields = { __typename?: 'account_balance_stddev_samp_fields'; height?: Maybe; }; /** aggregate sum on columns */ -export type AccountBalanceSumFields = { +export type Account_Balance_Sum_Fields = { __typename?: 'account_balance_sum_fields'; height?: Maybe; }; /** aggregate var_pop on columns */ -export type AccountBalanceVarPopFields = { +export type Account_Balance_Var_Pop_Fields = { __typename?: 'account_balance_var_pop_fields'; height?: Maybe; }; /** aggregate var_samp on columns */ -export type AccountBalanceVarSampFields = { +export type Account_Balance_Var_Samp_Fields = { __typename?: 'account_balance_var_samp_fields'; height?: Maybe; }; /** aggregate variance on columns */ -export type AccountBalanceVarianceFields = { +export type Account_Balance_Variance_Fields = { __typename?: 'account_balance_variance_fields'; height?: Maybe; }; /** Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'. */ -export type AccountBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - account_balance?: InputMaybe; - address?: InputMaybe; - cyberlinks?: InputMaybe; - investmints?: InputMaybe; - particles?: InputMaybe; - routes?: InputMaybe; - routesBySource?: InputMaybe; +export type Account_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account_balance?: InputMaybe; + address?: InputMaybe; + cyberlinks?: InputMaybe; + investmints?: InputMaybe; + particles?: InputMaybe; + routes?: InputMaybe; + routesBySource?: InputMaybe; }; /** aggregate max on columns */ -export type AccountMaxFields = { +export type Account_Max_Fields = { __typename?: 'account_max_fields'; address?: Maybe; }; /** aggregate min on columns */ -export type AccountMinFields = { +export type Account_Min_Fields = { __typename?: 'account_min_fields'; address?: Maybe; }; /** Ordering options when selecting data from "account". */ -export type AccountOrderBy = { - account_balance?: InputMaybe; - address?: InputMaybe; - cyberlinks_aggregate?: InputMaybe; - investmints_aggregate?: InputMaybe; - particles_aggregate?: InputMaybe; - routesBySource_aggregate?: InputMaybe; - routes_aggregate?: InputMaybe; +export type Account_Order_By = { + account_balance?: InputMaybe; + address?: InputMaybe; + cyberlinks_aggregate?: InputMaybe; + investmints_aggregate?: InputMaybe; + particles_aggregate?: InputMaybe; + routesBySource_aggregate?: InputMaybe; + routes_aggregate?: InputMaybe; }; /** select columns of table "account" */ -export enum AccountSelectColumn { +export enum Account_Select_Column { /** column name */ Address = 'address' } /** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */ -export type BigintComparisonExp = { +export type Bigint_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -856,29 +856,29 @@ export type Block = { /** fetch data from the table: "cyberlinks" */ cyberlinks: Array; /** An aggregate relationship */ - cyberlinks_aggregate: CyberlinksAggregate; + cyberlinks_aggregate: Cyberlinks_Aggregate; hash: Scalars['String']['output']; height: Scalars['bigint']['output']; /** An array relationship */ investmints: Array; /** An aggregate relationship */ - investmints_aggregate: InvestmintsAggregate; + investmints_aggregate: Investmints_Aggregate; num_txs?: Maybe; /** An array relationship */ particles: Array; /** An aggregate relationship */ - particles_aggregate: ParticlesAggregate; + particles_aggregate: Particles_Aggregate; proposer_address?: Maybe; /** An array relationship */ routes: Array; /** An aggregate relationship */ - routes_aggregate: RoutesAggregate; + routes_aggregate: Routes_Aggregate; timestamp: Scalars['timestamp']['output']; total_gas?: Maybe; /** An array relationship */ transactions: Array; /** An aggregate relationship */ - transactions_aggregate: TransactionAggregate; + transactions_aggregate: Transaction_Aggregate; /** An object relationship */ validator?: Maybe; }; @@ -886,150 +886,150 @@ export type Block = { /** columns and relationships of "block" */ export type BlockCyberlinksArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "block" */ -export type BlockCyberlinksAggregateArgs = { - distinct_on?: InputMaybe>; +export type BlockCyberlinks_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "block" */ export type BlockInvestmintsArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "block" */ -export type BlockInvestmintsAggregateArgs = { - distinct_on?: InputMaybe>; +export type BlockInvestmints_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "block" */ export type BlockParticlesArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "block" */ -export type BlockParticlesAggregateArgs = { - distinct_on?: InputMaybe>; +export type BlockParticles_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "block" */ export type BlockRoutesArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "block" */ -export type BlockRoutesAggregateArgs = { - distinct_on?: InputMaybe>; +export type BlockRoutes_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "block" */ export type BlockTransactionsArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "block" */ -export type BlockTransactionsAggregateArgs = { - distinct_on?: InputMaybe>; +export type BlockTransactions_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** aggregated selection of "block" */ -export type BlockAggregate = { +export type Block_Aggregate = { __typename?: 'block_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "block" */ -export type BlockAggregateFields = { +export type Block_Aggregate_Fields = { __typename?: 'block_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "block" */ -export type BlockAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Block_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** order by aggregate values of table "block" */ -export type BlockAggregateOrderBy = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; +export type Block_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; }; /** aggregate avg on columns */ -export type BlockAvgFields = { +export type Block_Avg_Fields = { __typename?: 'block_avg_fields'; height?: Maybe; num_txs?: Maybe; @@ -1037,33 +1037,33 @@ export type BlockAvgFields = { }; /** order by avg() on columns of table "block" */ -export type BlockAvgOrderBy = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Avg_Order_By = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; }; /** Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'. */ -export type BlockBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - cyberlinks?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - investmints?: InputMaybe; - num_txs?: InputMaybe; - particles?: InputMaybe; - proposer_address?: InputMaybe; - routes?: InputMaybe; - timestamp?: InputMaybe; - total_gas?: InputMaybe; - transactions?: InputMaybe; - validator?: InputMaybe; +export type Block_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlinks?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints?: InputMaybe; + num_txs?: InputMaybe; + particles?: InputMaybe; + proposer_address?: InputMaybe; + routes?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; + transactions?: InputMaybe; + validator?: InputMaybe; }; /** aggregate max on columns */ -export type BlockMaxFields = { +export type Block_Max_Fields = { __typename?: 'block_max_fields'; hash?: Maybe; height?: Maybe; @@ -1074,17 +1074,17 @@ export type BlockMaxFields = { }; /** order by max() on columns of table "block" */ -export type BlockMaxOrderBy = { - hash?: InputMaybe; - height?: InputMaybe; - num_txs?: InputMaybe; - proposer_address?: InputMaybe; - timestamp?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Max_Order_By = { + hash?: InputMaybe; + height?: InputMaybe; + num_txs?: InputMaybe; + proposer_address?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; }; /** aggregate min on columns */ -export type BlockMinFields = { +export type Block_Min_Fields = { __typename?: 'block_min_fields'; hash?: Maybe; height?: Maybe; @@ -1095,33 +1095,33 @@ export type BlockMinFields = { }; /** order by min() on columns of table "block" */ -export type BlockMinOrderBy = { - hash?: InputMaybe; - height?: InputMaybe; - num_txs?: InputMaybe; - proposer_address?: InputMaybe; - timestamp?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Min_Order_By = { + hash?: InputMaybe; + height?: InputMaybe; + num_txs?: InputMaybe; + proposer_address?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; }; /** Ordering options when selecting data from "block". */ -export type BlockOrderBy = { - cyberlinks_aggregate?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - investmints_aggregate?: InputMaybe; - num_txs?: InputMaybe; - particles_aggregate?: InputMaybe; - proposer_address?: InputMaybe; - routes_aggregate?: InputMaybe; - timestamp?: InputMaybe; - total_gas?: InputMaybe; - transactions_aggregate?: InputMaybe; - validator?: InputMaybe; +export type Block_Order_By = { + cyberlinks_aggregate?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints_aggregate?: InputMaybe; + num_txs?: InputMaybe; + particles_aggregate?: InputMaybe; + proposer_address?: InputMaybe; + routes_aggregate?: InputMaybe; + timestamp?: InputMaybe; + total_gas?: InputMaybe; + transactions_aggregate?: InputMaybe; + validator?: InputMaybe; }; /** select columns of table "block" */ -export enum BlockSelectColumn { +export enum Block_Select_Column { /** column name */ Hash = 'hash', /** column name */ @@ -1137,7 +1137,7 @@ export enum BlockSelectColumn { } /** aggregate stddev on columns */ -export type BlockStddevFields = { +export type Block_Stddev_Fields = { __typename?: 'block_stddev_fields'; height?: Maybe; num_txs?: Maybe; @@ -1145,14 +1145,14 @@ export type BlockStddevFields = { }; /** order by stddev() on columns of table "block" */ -export type BlockStddevOrderBy = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Stddev_Order_By = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; }; /** aggregate stddev_pop on columns */ -export type BlockStddevPopFields = { +export type Block_Stddev_Pop_Fields = { __typename?: 'block_stddev_pop_fields'; height?: Maybe; num_txs?: Maybe; @@ -1160,14 +1160,14 @@ export type BlockStddevPopFields = { }; /** order by stddev_pop() on columns of table "block" */ -export type BlockStddevPopOrderBy = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Stddev_Pop_Order_By = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; }; /** aggregate stddev_samp on columns */ -export type BlockStddevSampFields = { +export type Block_Stddev_Samp_Fields = { __typename?: 'block_stddev_samp_fields'; height?: Maybe; num_txs?: Maybe; @@ -1175,14 +1175,14 @@ export type BlockStddevSampFields = { }; /** order by stddev_samp() on columns of table "block" */ -export type BlockStddevSampOrderBy = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Stddev_Samp_Order_By = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; }; /** aggregate sum on columns */ -export type BlockSumFields = { +export type Block_Sum_Fields = { __typename?: 'block_sum_fields'; height?: Maybe; num_txs?: Maybe; @@ -1190,14 +1190,14 @@ export type BlockSumFields = { }; /** order by sum() on columns of table "block" */ -export type BlockSumOrderBy = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Sum_Order_By = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; }; /** aggregate var_pop on columns */ -export type BlockVarPopFields = { +export type Block_Var_Pop_Fields = { __typename?: 'block_var_pop_fields'; height?: Maybe; num_txs?: Maybe; @@ -1205,14 +1205,14 @@ export type BlockVarPopFields = { }; /** order by var_pop() on columns of table "block" */ -export type BlockVarPopOrderBy = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Var_Pop_Order_By = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; }; /** aggregate var_samp on columns */ -export type BlockVarSampFields = { +export type Block_Var_Samp_Fields = { __typename?: 'block_var_samp_fields'; height?: Maybe; num_txs?: Maybe; @@ -1220,14 +1220,14 @@ export type BlockVarSampFields = { }; /** order by var_samp() on columns of table "block" */ -export type BlockVarSampOrderBy = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Var_Samp_Order_By = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; }; /** aggregate variance on columns */ -export type BlockVarianceFields = { +export type Block_Variance_Fields = { __typename?: 'block_variance_fields'; height?: Maybe; num_txs?: Maybe; @@ -1235,14 +1235,14 @@ export type BlockVarianceFields = { }; /** order by variance() on columns of table "block" */ -export type BlockVarianceOrderBy = { - height?: InputMaybe; - num_txs?: InputMaybe; - total_gas?: InputMaybe; +export type Block_Variance_Order_By = { + height?: InputMaybe; + num_txs?: InputMaybe; + total_gas?: InputMaybe; }; /** Boolean expression to compare columns of type "coin". All fields are combined with logical 'AND'. */ -export type CoinComparisonExp = { +export type Coin_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -1270,37 +1270,37 @@ export type Contracts = { }; /** aggregated selection of "contracts" */ -export type ContractsAggregate = { +export type Contracts_Aggregate = { __typename?: 'contracts_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "contracts" */ -export type ContractsAggregateFields = { +export type Contracts_Aggregate_Fields = { __typename?: 'contracts_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "contracts" */ -export type ContractsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Contracts_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type ContractsAvgFields = { +export type Contracts_Avg_Fields = { __typename?: 'contracts_avg_fields'; code_id?: Maybe; fees?: Maybe; @@ -1310,24 +1310,24 @@ export type ContractsAvgFields = { }; /** Boolean expression to filter rows from the table "contracts". All fields are combined with a logical 'AND'. */ -export type ContractsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - address?: InputMaybe; - admin?: InputMaybe; - code_id?: InputMaybe; - creation_time?: InputMaybe; - creator?: InputMaybe; - fees?: InputMaybe; - gas?: InputMaybe; - height?: InputMaybe; - label?: InputMaybe; - tx?: InputMaybe; +export type Contracts_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + admin?: InputMaybe; + code_id?: InputMaybe; + creation_time?: InputMaybe; + creator?: InputMaybe; + fees?: InputMaybe; + gas?: InputMaybe; + height?: InputMaybe; + label?: InputMaybe; + tx?: InputMaybe; }; /** aggregate max on columns */ -export type ContractsMaxFields = { +export type Contracts_Max_Fields = { __typename?: 'contracts_max_fields'; address?: Maybe; admin?: Maybe; @@ -1342,7 +1342,7 @@ export type ContractsMaxFields = { }; /** aggregate min on columns */ -export type ContractsMinFields = { +export type Contracts_Min_Fields = { __typename?: 'contracts_min_fields'; address?: Maybe; admin?: Maybe; @@ -1357,21 +1357,21 @@ export type ContractsMinFields = { }; /** Ordering options when selecting data from "contracts". */ -export type ContractsOrderBy = { - address?: InputMaybe; - admin?: InputMaybe; - code_id?: InputMaybe; - creation_time?: InputMaybe; - creator?: InputMaybe; - fees?: InputMaybe; - gas?: InputMaybe; - height?: InputMaybe; - label?: InputMaybe; - tx?: InputMaybe; +export type Contracts_Order_By = { + address?: InputMaybe; + admin?: InputMaybe; + code_id?: InputMaybe; + creation_time?: InputMaybe; + creator?: InputMaybe; + fees?: InputMaybe; + gas?: InputMaybe; + height?: InputMaybe; + label?: InputMaybe; + tx?: InputMaybe; }; /** select columns of table "contracts" */ -export enum ContractsSelectColumn { +export enum Contracts_Select_Column { /** column name */ Address = 'address', /** column name */ @@ -1395,7 +1395,7 @@ export enum ContractsSelectColumn { } /** aggregate stddev on columns */ -export type ContractsStddevFields = { +export type Contracts_Stddev_Fields = { __typename?: 'contracts_stddev_fields'; code_id?: Maybe; fees?: Maybe; @@ -1405,7 +1405,7 @@ export type ContractsStddevFields = { }; /** aggregate stddev_pop on columns */ -export type ContractsStddevPopFields = { +export type Contracts_Stddev_Pop_Fields = { __typename?: 'contracts_stddev_pop_fields'; code_id?: Maybe; fees?: Maybe; @@ -1415,7 +1415,7 @@ export type ContractsStddevPopFields = { }; /** aggregate stddev_samp on columns */ -export type ContractsStddevSampFields = { +export type Contracts_Stddev_Samp_Fields = { __typename?: 'contracts_stddev_samp_fields'; code_id?: Maybe; fees?: Maybe; @@ -1425,7 +1425,7 @@ export type ContractsStddevSampFields = { }; /** aggregate sum on columns */ -export type ContractsSumFields = { +export type Contracts_Sum_Fields = { __typename?: 'contracts_sum_fields'; code_id?: Maybe; fees?: Maybe; @@ -1435,7 +1435,7 @@ export type ContractsSumFields = { }; /** aggregate var_pop on columns */ -export type ContractsVarPopFields = { +export type Contracts_Var_Pop_Fields = { __typename?: 'contracts_var_pop_fields'; code_id?: Maybe; fees?: Maybe; @@ -1445,7 +1445,7 @@ export type ContractsVarPopFields = { }; /** aggregate var_samp on columns */ -export type ContractsVarSampFields = { +export type Contracts_Var_Samp_Fields = { __typename?: 'contracts_var_samp_fields'; code_id?: Maybe; fees?: Maybe; @@ -1455,7 +1455,7 @@ export type ContractsVarSampFields = { }; /** aggregate variance on columns */ -export type ContractsVarianceFields = { +export type Contracts_Variance_Fields = { __typename?: 'contracts_variance_fields'; code_id?: Maybe; fees?: Maybe; @@ -1465,7 +1465,7 @@ export type ContractsVarianceFields = { }; /** columns and relationships of "cyb_cohort" */ -export type CybCohort = { +export type Cyb_Cohort = { __typename?: 'cyb_cohort'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1480,37 +1480,37 @@ export type CybCohort = { }; /** aggregated selection of "cyb_cohort" */ -export type CybCohortAggregate = { +export type Cyb_Cohort_Aggregate = { __typename?: 'cyb_cohort_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "cyb_cohort" */ -export type CybCohortAggregateFields = { +export type Cyb_Cohort_Aggregate_Fields = { __typename?: 'cyb_cohort_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "cyb_cohort" */ -export type CybCohortAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Cyb_Cohort_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type CybCohortAvgFields = { +export type Cyb_Cohort_Avg_Fields = { __typename?: 'cyb_cohort_avg_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1524,24 +1524,24 @@ export type CybCohortAvgFields = { }; /** Boolean expression to filter rows from the table "cyb_cohort". All fields are combined with a logical 'AND'. */ -export type CybCohortBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - cyberlink_10_percent?: InputMaybe; - cyberlink_100_percent?: InputMaybe; - cyberlink_percent?: InputMaybe; - hero_hired_percent?: InputMaybe; - investmint_percent?: InputMaybe; - neurons_activated?: InputMaybe; - redelegation_percent?: InputMaybe; - swap_percent?: InputMaybe; - undelegation_percent?: InputMaybe; - week?: InputMaybe; +export type Cyb_Cohort_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neurons_activated?: InputMaybe; + redelegation_percent?: InputMaybe; + swap_percent?: InputMaybe; + undelegation_percent?: InputMaybe; + week?: InputMaybe; }; /** aggregate max on columns */ -export type CybCohortMaxFields = { +export type Cyb_Cohort_Max_Fields = { __typename?: 'cyb_cohort_max_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1556,7 +1556,7 @@ export type CybCohortMaxFields = { }; /** aggregate min on columns */ -export type CybCohortMinFields = { +export type Cyb_Cohort_Min_Fields = { __typename?: 'cyb_cohort_min_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1571,21 +1571,21 @@ export type CybCohortMinFields = { }; /** Ordering options when selecting data from "cyb_cohort". */ -export type CybCohortOrderBy = { - cyberlink_10_percent?: InputMaybe; - cyberlink_100_percent?: InputMaybe; - cyberlink_percent?: InputMaybe; - hero_hired_percent?: InputMaybe; - investmint_percent?: InputMaybe; - neurons_activated?: InputMaybe; - redelegation_percent?: InputMaybe; - swap_percent?: InputMaybe; - undelegation_percent?: InputMaybe; - week?: InputMaybe; +export type Cyb_Cohort_Order_By = { + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neurons_activated?: InputMaybe; + redelegation_percent?: InputMaybe; + swap_percent?: InputMaybe; + undelegation_percent?: InputMaybe; + week?: InputMaybe; }; /** select columns of table "cyb_cohort" */ -export enum CybCohortSelectColumn { +export enum Cyb_Cohort_Select_Column { /** column name */ Cyberlink_10Percent = 'cyberlink_10_percent', /** column name */ @@ -1609,7 +1609,7 @@ export enum CybCohortSelectColumn { } /** aggregate stddev on columns */ -export type CybCohortStddevFields = { +export type Cyb_Cohort_Stddev_Fields = { __typename?: 'cyb_cohort_stddev_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1623,7 +1623,7 @@ export type CybCohortStddevFields = { }; /** aggregate stddev_pop on columns */ -export type CybCohortStddevPopFields = { +export type Cyb_Cohort_Stddev_Pop_Fields = { __typename?: 'cyb_cohort_stddev_pop_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1637,7 +1637,7 @@ export type CybCohortStddevPopFields = { }; /** aggregate stddev_samp on columns */ -export type CybCohortStddevSampFields = { +export type Cyb_Cohort_Stddev_Samp_Fields = { __typename?: 'cyb_cohort_stddev_samp_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1651,7 +1651,7 @@ export type CybCohortStddevSampFields = { }; /** aggregate sum on columns */ -export type CybCohortSumFields = { +export type Cyb_Cohort_Sum_Fields = { __typename?: 'cyb_cohort_sum_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1665,7 +1665,7 @@ export type CybCohortSumFields = { }; /** aggregate var_pop on columns */ -export type CybCohortVarPopFields = { +export type Cyb_Cohort_Var_Pop_Fields = { __typename?: 'cyb_cohort_var_pop_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1679,7 +1679,7 @@ export type CybCohortVarPopFields = { }; /** aggregate var_samp on columns */ -export type CybCohortVarSampFields = { +export type Cyb_Cohort_Var_Samp_Fields = { __typename?: 'cyb_cohort_var_samp_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1693,7 +1693,7 @@ export type CybCohortVarSampFields = { }; /** aggregate variance on columns */ -export type CybCohortVarianceFields = { +export type Cyb_Cohort_Variance_Fields = { __typename?: 'cyb_cohort_variance_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1707,7 +1707,7 @@ export type CybCohortVarianceFields = { }; /** columns and relationships of "cyb_new_cohort" */ -export type CybNewCohort = { +export type Cyb_New_Cohort = { __typename?: 'cyb_new_cohort'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1720,37 +1720,37 @@ export type CybNewCohort = { }; /** aggregated selection of "cyb_new_cohort" */ -export type CybNewCohortAggregate = { +export type Cyb_New_Cohort_Aggregate = { __typename?: 'cyb_new_cohort_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "cyb_new_cohort" */ -export type CybNewCohortAggregateFields = { +export type Cyb_New_Cohort_Aggregate_Fields = { __typename?: 'cyb_new_cohort_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "cyb_new_cohort" */ -export type CybNewCohortAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Cyb_New_Cohort_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type CybNewCohortAvgFields = { +export type Cyb_New_Cohort_Avg_Fields = { __typename?: 'cyb_new_cohort_avg_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1762,22 +1762,22 @@ export type CybNewCohortAvgFields = { }; /** Boolean expression to filter rows from the table "cyb_new_cohort". All fields are combined with a logical 'AND'. */ -export type CybNewCohortBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - cyberlink_10_percent?: InputMaybe; - cyberlink_100_percent?: InputMaybe; - cyberlink_percent?: InputMaybe; - hero_hired_percent?: InputMaybe; - investmint_percent?: InputMaybe; - neuron_activation?: InputMaybe; - swap_percent?: InputMaybe; - week?: InputMaybe; +export type Cyb_New_Cohort_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neuron_activation?: InputMaybe; + swap_percent?: InputMaybe; + week?: InputMaybe; }; /** aggregate max on columns */ -export type CybNewCohortMaxFields = { +export type Cyb_New_Cohort_Max_Fields = { __typename?: 'cyb_new_cohort_max_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1790,7 +1790,7 @@ export type CybNewCohortMaxFields = { }; /** aggregate min on columns */ -export type CybNewCohortMinFields = { +export type Cyb_New_Cohort_Min_Fields = { __typename?: 'cyb_new_cohort_min_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1803,19 +1803,19 @@ export type CybNewCohortMinFields = { }; /** Ordering options when selecting data from "cyb_new_cohort". */ -export type CybNewCohortOrderBy = { - cyberlink_10_percent?: InputMaybe; - cyberlink_100_percent?: InputMaybe; - cyberlink_percent?: InputMaybe; - hero_hired_percent?: InputMaybe; - investmint_percent?: InputMaybe; - neuron_activation?: InputMaybe; - swap_percent?: InputMaybe; - week?: InputMaybe; +export type Cyb_New_Cohort_Order_By = { + cyberlink_10_percent?: InputMaybe; + cyberlink_100_percent?: InputMaybe; + cyberlink_percent?: InputMaybe; + hero_hired_percent?: InputMaybe; + investmint_percent?: InputMaybe; + neuron_activation?: InputMaybe; + swap_percent?: InputMaybe; + week?: InputMaybe; }; /** select columns of table "cyb_new_cohort" */ -export enum CybNewCohortSelectColumn { +export enum Cyb_New_Cohort_Select_Column { /** column name */ Cyberlink_10Percent = 'cyberlink_10_percent', /** column name */ @@ -1835,7 +1835,7 @@ export enum CybNewCohortSelectColumn { } /** aggregate stddev on columns */ -export type CybNewCohortStddevFields = { +export type Cyb_New_Cohort_Stddev_Fields = { __typename?: 'cyb_new_cohort_stddev_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1847,7 +1847,7 @@ export type CybNewCohortStddevFields = { }; /** aggregate stddev_pop on columns */ -export type CybNewCohortStddevPopFields = { +export type Cyb_New_Cohort_Stddev_Pop_Fields = { __typename?: 'cyb_new_cohort_stddev_pop_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1859,7 +1859,7 @@ export type CybNewCohortStddevPopFields = { }; /** aggregate stddev_samp on columns */ -export type CybNewCohortStddevSampFields = { +export type Cyb_New_Cohort_Stddev_Samp_Fields = { __typename?: 'cyb_new_cohort_stddev_samp_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1871,7 +1871,7 @@ export type CybNewCohortStddevSampFields = { }; /** aggregate sum on columns */ -export type CybNewCohortSumFields = { +export type Cyb_New_Cohort_Sum_Fields = { __typename?: 'cyb_new_cohort_sum_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1883,7 +1883,7 @@ export type CybNewCohortSumFields = { }; /** aggregate var_pop on columns */ -export type CybNewCohortVarPopFields = { +export type Cyb_New_Cohort_Var_Pop_Fields = { __typename?: 'cyb_new_cohort_var_pop_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1895,7 +1895,7 @@ export type CybNewCohortVarPopFields = { }; /** aggregate var_samp on columns */ -export type CybNewCohortVarSampFields = { +export type Cyb_New_Cohort_Var_Samp_Fields = { __typename?: 'cyb_new_cohort_var_samp_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1907,7 +1907,7 @@ export type CybNewCohortVarSampFields = { }; /** aggregate variance on columns */ -export type CybNewCohortVarianceFields = { +export type Cyb_New_Cohort_Variance_Fields = { __typename?: 'cyb_new_cohort_variance_fields'; cyberlink_10_percent?: Maybe; cyberlink_100_percent?: Maybe; @@ -1919,7 +1919,7 @@ export type CybNewCohortVarianceFields = { }; /** columns and relationships of "cyber_gift" */ -export type CyberGift = { +export type Cyber_Gift = { __typename?: 'cyber_gift'; address: Scalars['String']['output']; audience: Scalars['String']['output']; @@ -1929,56 +1929,56 @@ export type CyberGift = { }; /** aggregated selection of "cyber_gift" */ -export type CyberGiftAggregate = { +export type Cyber_Gift_Aggregate = { __typename?: 'cyber_gift_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "cyber_gift" */ -export type CyberGiftAggregateFields = { +export type Cyber_Gift_Aggregate_Fields = { __typename?: 'cyber_gift_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "cyber_gift" */ -export type CyberGiftAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Cyber_Gift_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type CyberGiftAvgFields = { +export type Cyber_Gift_Avg_Fields = { __typename?: 'cyber_gift_avg_fields'; gift?: Maybe; grade?: Maybe; }; /** Boolean expression to filter rows from the table "cyber_gift". All fields are combined with a logical 'AND'. */ -export type CyberGiftBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - address?: InputMaybe; - audience?: InputMaybe; - gift?: InputMaybe; - grade?: InputMaybe; - segment?: InputMaybe; +export type Cyber_Gift_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + audience?: InputMaybe; + gift?: InputMaybe; + grade?: InputMaybe; + segment?: InputMaybe; }; /** aggregate max on columns */ -export type CyberGiftMaxFields = { +export type Cyber_Gift_Max_Fields = { __typename?: 'cyber_gift_max_fields'; address?: Maybe; audience?: Maybe; @@ -1988,7 +1988,7 @@ export type CyberGiftMaxFields = { }; /** aggregate min on columns */ -export type CyberGiftMinFields = { +export type Cyber_Gift_Min_Fields = { __typename?: 'cyber_gift_min_fields'; address?: Maybe; audience?: Maybe; @@ -1998,16 +1998,16 @@ export type CyberGiftMinFields = { }; /** Ordering options when selecting data from "cyber_gift". */ -export type CyberGiftOrderBy = { - address?: InputMaybe; - audience?: InputMaybe; - gift?: InputMaybe; - grade?: InputMaybe; - segment?: InputMaybe; +export type Cyber_Gift_Order_By = { + address?: InputMaybe; + audience?: InputMaybe; + gift?: InputMaybe; + grade?: InputMaybe; + segment?: InputMaybe; }; /** columns and relationships of "cyber_gift_proofs" */ -export type CyberGiftProofs = { +export type Cyber_Gift_Proofs = { __typename?: 'cyber_gift_proofs'; address?: Maybe; amount?: Maybe; @@ -2017,59 +2017,59 @@ export type CyberGiftProofs = { /** columns and relationships of "cyber_gift_proofs" */ -export type CyberGiftProofsDetailsArgs = { +export type Cyber_Gift_ProofsDetailsArgs = { path?: InputMaybe; }; /** aggregated selection of "cyber_gift_proofs" */ -export type CyberGiftProofsAggregate = { +export type Cyber_Gift_Proofs_Aggregate = { __typename?: 'cyber_gift_proofs_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "cyber_gift_proofs" */ -export type CyberGiftProofsAggregateFields = { +export type Cyber_Gift_Proofs_Aggregate_Fields = { __typename?: 'cyber_gift_proofs_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "cyber_gift_proofs" */ -export type CyberGiftProofsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Cyber_Gift_Proofs_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type CyberGiftProofsAvgFields = { +export type Cyber_Gift_Proofs_Avg_Fields = { __typename?: 'cyber_gift_proofs_avg_fields'; amount?: Maybe; }; /** Boolean expression to filter rows from the table "cyber_gift_proofs". All fields are combined with a logical 'AND'. */ -export type CyberGiftProofsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - address?: InputMaybe; - amount?: InputMaybe; - details?: InputMaybe; - proof?: InputMaybe; +export type Cyber_Gift_Proofs_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; }; /** aggregate max on columns */ -export type CyberGiftProofsMaxFields = { +export type Cyber_Gift_Proofs_Max_Fields = { __typename?: 'cyber_gift_proofs_max_fields'; address?: Maybe; amount?: Maybe; @@ -2077,7 +2077,7 @@ export type CyberGiftProofsMaxFields = { }; /** aggregate min on columns */ -export type CyberGiftProofsMinFields = { +export type Cyber_Gift_Proofs_Min_Fields = { __typename?: 'cyber_gift_proofs_min_fields'; address?: Maybe; amount?: Maybe; @@ -2085,15 +2085,15 @@ export type CyberGiftProofsMinFields = { }; /** Ordering options when selecting data from "cyber_gift_proofs". */ -export type CyberGiftProofsOrderBy = { - address?: InputMaybe; - amount?: InputMaybe; - details?: InputMaybe; - proof?: InputMaybe; +export type Cyber_Gift_Proofs_Order_By = { + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; }; /** select columns of table "cyber_gift_proofs" */ -export enum CyberGiftProofsSelectColumn { +export enum Cyber_Gift_Proofs_Select_Column { /** column name */ Address = 'address', /** column name */ @@ -2105,49 +2105,49 @@ export enum CyberGiftProofsSelectColumn { } /** aggregate stddev on columns */ -export type CyberGiftProofsStddevFields = { +export type Cyber_Gift_Proofs_Stddev_Fields = { __typename?: 'cyber_gift_proofs_stddev_fields'; amount?: Maybe; }; /** aggregate stddev_pop on columns */ -export type CyberGiftProofsStddevPopFields = { +export type Cyber_Gift_Proofs_Stddev_Pop_Fields = { __typename?: 'cyber_gift_proofs_stddev_pop_fields'; amount?: Maybe; }; /** aggregate stddev_samp on columns */ -export type CyberGiftProofsStddevSampFields = { +export type Cyber_Gift_Proofs_Stddev_Samp_Fields = { __typename?: 'cyber_gift_proofs_stddev_samp_fields'; amount?: Maybe; }; /** aggregate sum on columns */ -export type CyberGiftProofsSumFields = { +export type Cyber_Gift_Proofs_Sum_Fields = { __typename?: 'cyber_gift_proofs_sum_fields'; amount?: Maybe; }; /** aggregate var_pop on columns */ -export type CyberGiftProofsVarPopFields = { +export type Cyber_Gift_Proofs_Var_Pop_Fields = { __typename?: 'cyber_gift_proofs_var_pop_fields'; amount?: Maybe; }; /** aggregate var_samp on columns */ -export type CyberGiftProofsVarSampFields = { +export type Cyber_Gift_Proofs_Var_Samp_Fields = { __typename?: 'cyber_gift_proofs_var_samp_fields'; amount?: Maybe; }; /** aggregate variance on columns */ -export type CyberGiftProofsVarianceFields = { +export type Cyber_Gift_Proofs_Variance_Fields = { __typename?: 'cyber_gift_proofs_variance_fields'; amount?: Maybe; }; /** select columns of table "cyber_gift" */ -export enum CyberGiftSelectColumn { +export enum Cyber_Gift_Select_Column { /** column name */ Address = 'address', /** column name */ @@ -2161,49 +2161,49 @@ export enum CyberGiftSelectColumn { } /** aggregate stddev on columns */ -export type CyberGiftStddevFields = { +export type Cyber_Gift_Stddev_Fields = { __typename?: 'cyber_gift_stddev_fields'; gift?: Maybe; grade?: Maybe; }; /** aggregate stddev_pop on columns */ -export type CyberGiftStddevPopFields = { +export type Cyber_Gift_Stddev_Pop_Fields = { __typename?: 'cyber_gift_stddev_pop_fields'; gift?: Maybe; grade?: Maybe; }; /** aggregate stddev_samp on columns */ -export type CyberGiftStddevSampFields = { +export type Cyber_Gift_Stddev_Samp_Fields = { __typename?: 'cyber_gift_stddev_samp_fields'; gift?: Maybe; grade?: Maybe; }; /** aggregate sum on columns */ -export type CyberGiftSumFields = { +export type Cyber_Gift_Sum_Fields = { __typename?: 'cyber_gift_sum_fields'; gift?: Maybe; grade?: Maybe; }; /** aggregate var_pop on columns */ -export type CyberGiftVarPopFields = { +export type Cyber_Gift_Var_Pop_Fields = { __typename?: 'cyber_gift_var_pop_fields'; gift?: Maybe; grade?: Maybe; }; /** aggregate var_samp on columns */ -export type CyberGiftVarSampFields = { +export type Cyber_Gift_Var_Samp_Fields = { __typename?: 'cyber_gift_var_samp_fields'; gift?: Maybe; grade?: Maybe; }; /** aggregate variance on columns */ -export type CyberGiftVarianceFields = { +export type Cyber_Gift_Variance_Fields = { __typename?: 'cyber_gift_variance_fields'; gift?: Maybe; grade?: Maybe; @@ -2232,84 +2232,84 @@ export type Cyberlinks = { }; /** aggregated selection of "cyberlinks" */ -export type CyberlinksAggregate = { +export type Cyberlinks_Aggregate = { __typename?: 'cyberlinks_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "cyberlinks" */ -export type CyberlinksAggregateFields = { +export type Cyberlinks_Aggregate_Fields = { __typename?: 'cyberlinks_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "cyberlinks" */ -export type CyberlinksAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Cyberlinks_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** order by aggregate values of table "cyberlinks" */ -export type CyberlinksAggregateOrderBy = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; +export type Cyberlinks_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; }; /** aggregate avg on columns */ -export type CyberlinksAvgFields = { +export type Cyberlinks_Avg_Fields = { __typename?: 'cyberlinks_avg_fields'; height?: Maybe; id?: Maybe; }; /** order by avg() on columns of table "cyberlinks" */ -export type CyberlinksAvgOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Cyberlinks_Avg_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** Boolean expression to filter rows from the table "cyberlinks". All fields are combined with a logical 'AND'. */ -export type CyberlinksBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - account?: InputMaybe; - block?: InputMaybe; - from?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - neuron?: InputMaybe; - particle_from?: InputMaybe; - particle_to?: InputMaybe; - timestamp?: InputMaybe; - to?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; +export type Cyberlinks_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + block?: InputMaybe; + from?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; }; /** aggregate max on columns */ -export type CyberlinksMaxFields = { +export type Cyberlinks_Max_Fields = { __typename?: 'cyberlinks_max_fields'; height?: Maybe; id?: Maybe; @@ -2321,18 +2321,18 @@ export type CyberlinksMaxFields = { }; /** order by max() on columns of table "cyberlinks" */ -export type CyberlinksMaxOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - neuron?: InputMaybe; - particle_from?: InputMaybe; - particle_to?: InputMaybe; - timestamp?: InputMaybe; - transaction_hash?: InputMaybe; +export type Cyberlinks_Max_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** aggregate min on columns */ -export type CyberlinksMinFields = { +export type Cyberlinks_Min_Fields = { __typename?: 'cyberlinks_min_fields'; height?: Maybe; id?: Maybe; @@ -2344,34 +2344,34 @@ export type CyberlinksMinFields = { }; /** order by min() on columns of table "cyberlinks" */ -export type CyberlinksMinOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - neuron?: InputMaybe; - particle_from?: InputMaybe; - particle_to?: InputMaybe; - timestamp?: InputMaybe; - transaction_hash?: InputMaybe; +export type Cyberlinks_Min_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** Ordering options when selecting data from "cyberlinks". */ -export type CyberlinksOrderBy = { - account?: InputMaybe; - block?: InputMaybe; - from?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - neuron?: InputMaybe; - particle_from?: InputMaybe; - particle_to?: InputMaybe; - timestamp?: InputMaybe; - to?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; +export type Cyberlinks_Order_By = { + account?: InputMaybe; + block?: InputMaybe; + from?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle_from?: InputMaybe; + particle_to?: InputMaybe; + timestamp?: InputMaybe; + to?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; }; /** select columns of table "cyberlinks" */ -export enum CyberlinksSelectColumn { +export enum Cyberlinks_Select_Column { /** column name */ Height = 'height', /** column name */ @@ -2389,7 +2389,7 @@ export enum CyberlinksSelectColumn { } /** columns and relationships of "cyberlinks_stats" */ -export type CyberlinksStats = { +export type Cyberlinks_Stats = { __typename?: 'cyberlinks_stats'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; @@ -2397,54 +2397,54 @@ export type CyberlinksStats = { }; /** aggregated selection of "cyberlinks_stats" */ -export type CyberlinksStatsAggregate = { +export type Cyberlinks_Stats_Aggregate = { __typename?: 'cyberlinks_stats_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "cyberlinks_stats" */ -export type CyberlinksStatsAggregateFields = { +export type Cyberlinks_Stats_Aggregate_Fields = { __typename?: 'cyberlinks_stats_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "cyberlinks_stats" */ -export type CyberlinksStatsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Cyberlinks_Stats_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type CyberlinksStatsAvgFields = { +export type Cyberlinks_Stats_Avg_Fields = { __typename?: 'cyberlinks_stats_avg_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; }; /** Boolean expression to filter rows from the table "cyberlinks_stats". All fields are combined with a logical 'AND'. */ -export type CyberlinksStatsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - cyberlinks?: InputMaybe; - cyberlinks_per_day?: InputMaybe; - date?: InputMaybe; +export type Cyberlinks_Stats_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlinks?: InputMaybe; + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; }; /** aggregate max on columns */ -export type CyberlinksStatsMaxFields = { +export type Cyberlinks_Stats_Max_Fields = { __typename?: 'cyberlinks_stats_max_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; @@ -2452,7 +2452,7 @@ export type CyberlinksStatsMaxFields = { }; /** aggregate min on columns */ -export type CyberlinksStatsMinFields = { +export type Cyberlinks_Stats_Min_Fields = { __typename?: 'cyberlinks_stats_min_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; @@ -2460,14 +2460,14 @@ export type CyberlinksStatsMinFields = { }; /** Ordering options when selecting data from "cyberlinks_stats". */ -export type CyberlinksStatsOrderBy = { - cyberlinks?: InputMaybe; - cyberlinks_per_day?: InputMaybe; - date?: InputMaybe; +export type Cyberlinks_Stats_Order_By = { + cyberlinks?: InputMaybe; + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; }; /** select columns of table "cyberlinks_stats" */ -export enum CyberlinksStatsSelectColumn { +export enum Cyberlinks_Stats_Select_Column { /** column name */ Cyberlinks = 'cyberlinks', /** column name */ @@ -2477,219 +2477,219 @@ export enum CyberlinksStatsSelectColumn { } /** aggregate stddev on columns */ -export type CyberlinksStatsStddevFields = { +export type Cyberlinks_Stats_Stddev_Fields = { __typename?: 'cyberlinks_stats_stddev_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; }; /** aggregate stddev_pop on columns */ -export type CyberlinksStatsStddevPopFields = { +export type Cyberlinks_Stats_Stddev_Pop_Fields = { __typename?: 'cyberlinks_stats_stddev_pop_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; }; /** aggregate stddev_samp on columns */ -export type CyberlinksStatsStddevSampFields = { +export type Cyberlinks_Stats_Stddev_Samp_Fields = { __typename?: 'cyberlinks_stats_stddev_samp_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; }; /** aggregate sum on columns */ -export type CyberlinksStatsSumFields = { +export type Cyberlinks_Stats_Sum_Fields = { __typename?: 'cyberlinks_stats_sum_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; }; /** aggregate var_pop on columns */ -export type CyberlinksStatsVarPopFields = { +export type Cyberlinks_Stats_Var_Pop_Fields = { __typename?: 'cyberlinks_stats_var_pop_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; }; /** aggregate var_samp on columns */ -export type CyberlinksStatsVarSampFields = { +export type Cyberlinks_Stats_Var_Samp_Fields = { __typename?: 'cyberlinks_stats_var_samp_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; }; /** aggregate variance on columns */ -export type CyberlinksStatsVarianceFields = { +export type Cyberlinks_Stats_Variance_Fields = { __typename?: 'cyberlinks_stats_variance_fields'; cyberlinks?: Maybe; cyberlinks_per_day?: Maybe; }; /** aggregate stddev on columns */ -export type CyberlinksStddevFields = { +export type Cyberlinks_Stddev_Fields = { __typename?: 'cyberlinks_stddev_fields'; height?: Maybe; id?: Maybe; }; /** order by stddev() on columns of table "cyberlinks" */ -export type CyberlinksStddevOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Cyberlinks_Stddev_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate stddev_pop on columns */ -export type CyberlinksStddevPopFields = { +export type Cyberlinks_Stddev_Pop_Fields = { __typename?: 'cyberlinks_stddev_pop_fields'; height?: Maybe; id?: Maybe; }; /** order by stddev_pop() on columns of table "cyberlinks" */ -export type CyberlinksStddevPopOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Cyberlinks_Stddev_Pop_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate stddev_samp on columns */ -export type CyberlinksStddevSampFields = { +export type Cyberlinks_Stddev_Samp_Fields = { __typename?: 'cyberlinks_stddev_samp_fields'; height?: Maybe; id?: Maybe; }; /** order by stddev_samp() on columns of table "cyberlinks" */ -export type CyberlinksStddevSampOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Cyberlinks_Stddev_Samp_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate sum on columns */ -export type CyberlinksSumFields = { +export type Cyberlinks_Sum_Fields = { __typename?: 'cyberlinks_sum_fields'; height?: Maybe; id?: Maybe; }; /** order by sum() on columns of table "cyberlinks" */ -export type CyberlinksSumOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Cyberlinks_Sum_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate var_pop on columns */ -export type CyberlinksVarPopFields = { +export type Cyberlinks_Var_Pop_Fields = { __typename?: 'cyberlinks_var_pop_fields'; height?: Maybe; id?: Maybe; }; /** order by var_pop() on columns of table "cyberlinks" */ -export type CyberlinksVarPopOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Cyberlinks_Var_Pop_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate var_samp on columns */ -export type CyberlinksVarSampFields = { +export type Cyberlinks_Var_Samp_Fields = { __typename?: 'cyberlinks_var_samp_fields'; height?: Maybe; id?: Maybe; }; /** order by var_samp() on columns of table "cyberlinks" */ -export type CyberlinksVarSampOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Cyberlinks_Var_Samp_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate variance on columns */ -export type CyberlinksVarianceFields = { +export type Cyberlinks_Variance_Fields = { __typename?: 'cyberlinks_variance_fields'; height?: Maybe; id?: Maybe; }; /** order by variance() on columns of table "cyberlinks" */ -export type CyberlinksVarianceOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Cyberlinks_Variance_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** columns and relationships of "daily_amount_of_active_neurons" */ -export type DailyAmountOfActiveNeurons = { +export type Daily_Amount_Of_Active_Neurons = { __typename?: 'daily_amount_of_active_neurons'; count?: Maybe; date?: Maybe; }; /** aggregated selection of "daily_amount_of_active_neurons" */ -export type DailyAmountOfActiveNeuronsAggregate = { +export type Daily_Amount_Of_Active_Neurons_Aggregate = { __typename?: 'daily_amount_of_active_neurons_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "daily_amount_of_active_neurons" */ -export type DailyAmountOfActiveNeuronsAggregateFields = { +export type Daily_Amount_Of_Active_Neurons_Aggregate_Fields = { __typename?: 'daily_amount_of_active_neurons_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "daily_amount_of_active_neurons" */ -export type DailyAmountOfActiveNeuronsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Daily_Amount_Of_Active_Neurons_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type DailyAmountOfActiveNeuronsAvgFields = { +export type Daily_Amount_Of_Active_Neurons_Avg_Fields = { __typename?: 'daily_amount_of_active_neurons_avg_fields'; count?: Maybe; }; /** Boolean expression to filter rows from the table "daily_amount_of_active_neurons". All fields are combined with a logical 'AND'. */ -export type DailyAmountOfActiveNeuronsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - count?: InputMaybe; - date?: InputMaybe; +export type Daily_Amount_Of_Active_Neurons_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + date?: InputMaybe; }; /** aggregate max on columns */ -export type DailyAmountOfActiveNeuronsMaxFields = { +export type Daily_Amount_Of_Active_Neurons_Max_Fields = { __typename?: 'daily_amount_of_active_neurons_max_fields'; count?: Maybe; date?: Maybe; }; /** aggregate min on columns */ -export type DailyAmountOfActiveNeuronsMinFields = { +export type Daily_Amount_Of_Active_Neurons_Min_Fields = { __typename?: 'daily_amount_of_active_neurons_min_fields'; count?: Maybe; date?: Maybe; }; /** Ordering options when selecting data from "daily_amount_of_active_neurons". */ -export type DailyAmountOfActiveNeuronsOrderBy = { - count?: InputMaybe; - date?: InputMaybe; +export type Daily_Amount_Of_Active_Neurons_Order_By = { + count?: InputMaybe; + date?: InputMaybe; }; /** select columns of table "daily_amount_of_active_neurons" */ -export enum DailyAmountOfActiveNeuronsSelectColumn { +export enum Daily_Amount_Of_Active_Neurons_Select_Column { /** column name */ Count = 'count', /** column name */ @@ -2697,49 +2697,49 @@ export enum DailyAmountOfActiveNeuronsSelectColumn { } /** aggregate stddev on columns */ -export type DailyAmountOfActiveNeuronsStddevFields = { +export type Daily_Amount_Of_Active_Neurons_Stddev_Fields = { __typename?: 'daily_amount_of_active_neurons_stddev_fields'; count?: Maybe; }; /** aggregate stddev_pop on columns */ -export type DailyAmountOfActiveNeuronsStddevPopFields = { +export type Daily_Amount_Of_Active_Neurons_Stddev_Pop_Fields = { __typename?: 'daily_amount_of_active_neurons_stddev_pop_fields'; count?: Maybe; }; /** aggregate stddev_samp on columns */ -export type DailyAmountOfActiveNeuronsStddevSampFields = { +export type Daily_Amount_Of_Active_Neurons_Stddev_Samp_Fields = { __typename?: 'daily_amount_of_active_neurons_stddev_samp_fields'; count?: Maybe; }; /** aggregate sum on columns */ -export type DailyAmountOfActiveNeuronsSumFields = { +export type Daily_Amount_Of_Active_Neurons_Sum_Fields = { __typename?: 'daily_amount_of_active_neurons_sum_fields'; count?: Maybe; }; /** aggregate var_pop on columns */ -export type DailyAmountOfActiveNeuronsVarPopFields = { +export type Daily_Amount_Of_Active_Neurons_Var_Pop_Fields = { __typename?: 'daily_amount_of_active_neurons_var_pop_fields'; count?: Maybe; }; /** aggregate var_samp on columns */ -export type DailyAmountOfActiveNeuronsVarSampFields = { +export type Daily_Amount_Of_Active_Neurons_Var_Samp_Fields = { __typename?: 'daily_amount_of_active_neurons_var_samp_fields'; count?: Maybe; }; /** aggregate variance on columns */ -export type DailyAmountOfActiveNeuronsVarianceFields = { +export type Daily_Amount_Of_Active_Neurons_Variance_Fields = { __typename?: 'daily_amount_of_active_neurons_variance_fields'; count?: Maybe; }; /** columns and relationships of "daily_amount_of_used_gas" */ -export type DailyAmountOfUsedGas = { +export type Daily_Amount_Of_Used_Gas = { __typename?: 'daily_amount_of_used_gas'; daily_gas?: Maybe; date?: Maybe; @@ -2747,54 +2747,54 @@ export type DailyAmountOfUsedGas = { }; /** aggregated selection of "daily_amount_of_used_gas" */ -export type DailyAmountOfUsedGasAggregate = { +export type Daily_Amount_Of_Used_Gas_Aggregate = { __typename?: 'daily_amount_of_used_gas_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "daily_amount_of_used_gas" */ -export type DailyAmountOfUsedGasAggregateFields = { +export type Daily_Amount_Of_Used_Gas_Aggregate_Fields = { __typename?: 'daily_amount_of_used_gas_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "daily_amount_of_used_gas" */ -export type DailyAmountOfUsedGasAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Daily_Amount_Of_Used_Gas_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type DailyAmountOfUsedGasAvgFields = { +export type Daily_Amount_Of_Used_Gas_Avg_Fields = { __typename?: 'daily_amount_of_used_gas_avg_fields'; daily_gas?: Maybe; gas_total?: Maybe; }; /** Boolean expression to filter rows from the table "daily_amount_of_used_gas". All fields are combined with a logical 'AND'. */ -export type DailyAmountOfUsedGasBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - daily_gas?: InputMaybe; - date?: InputMaybe; - gas_total?: InputMaybe; +export type Daily_Amount_Of_Used_Gas_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + daily_gas?: InputMaybe; + date?: InputMaybe; + gas_total?: InputMaybe; }; /** aggregate max on columns */ -export type DailyAmountOfUsedGasMaxFields = { +export type Daily_Amount_Of_Used_Gas_Max_Fields = { __typename?: 'daily_amount_of_used_gas_max_fields'; daily_gas?: Maybe; date?: Maybe; @@ -2802,7 +2802,7 @@ export type DailyAmountOfUsedGasMaxFields = { }; /** aggregate min on columns */ -export type DailyAmountOfUsedGasMinFields = { +export type Daily_Amount_Of_Used_Gas_Min_Fields = { __typename?: 'daily_amount_of_used_gas_min_fields'; daily_gas?: Maybe; date?: Maybe; @@ -2810,14 +2810,14 @@ export type DailyAmountOfUsedGasMinFields = { }; /** Ordering options when selecting data from "daily_amount_of_used_gas". */ -export type DailyAmountOfUsedGasOrderBy = { - daily_gas?: InputMaybe; - date?: InputMaybe; - gas_total?: InputMaybe; +export type Daily_Amount_Of_Used_Gas_Order_By = { + daily_gas?: InputMaybe; + date?: InputMaybe; + gas_total?: InputMaybe; }; /** select columns of table "daily_amount_of_used_gas" */ -export enum DailyAmountOfUsedGasSelectColumn { +export enum Daily_Amount_Of_Used_Gas_Select_Column { /** column name */ DailyGas = 'daily_gas', /** column name */ @@ -2827,56 +2827,56 @@ export enum DailyAmountOfUsedGasSelectColumn { } /** aggregate stddev on columns */ -export type DailyAmountOfUsedGasStddevFields = { +export type Daily_Amount_Of_Used_Gas_Stddev_Fields = { __typename?: 'daily_amount_of_used_gas_stddev_fields'; daily_gas?: Maybe; gas_total?: Maybe; }; /** aggregate stddev_pop on columns */ -export type DailyAmountOfUsedGasStddevPopFields = { +export type Daily_Amount_Of_Used_Gas_Stddev_Pop_Fields = { __typename?: 'daily_amount_of_used_gas_stddev_pop_fields'; daily_gas?: Maybe; gas_total?: Maybe; }; /** aggregate stddev_samp on columns */ -export type DailyAmountOfUsedGasStddevSampFields = { +export type Daily_Amount_Of_Used_Gas_Stddev_Samp_Fields = { __typename?: 'daily_amount_of_used_gas_stddev_samp_fields'; daily_gas?: Maybe; gas_total?: Maybe; }; /** aggregate sum on columns */ -export type DailyAmountOfUsedGasSumFields = { +export type Daily_Amount_Of_Used_Gas_Sum_Fields = { __typename?: 'daily_amount_of_used_gas_sum_fields'; daily_gas?: Maybe; gas_total?: Maybe; }; /** aggregate var_pop on columns */ -export type DailyAmountOfUsedGasVarPopFields = { +export type Daily_Amount_Of_Used_Gas_Var_Pop_Fields = { __typename?: 'daily_amount_of_used_gas_var_pop_fields'; daily_gas?: Maybe; gas_total?: Maybe; }; /** aggregate var_samp on columns */ -export type DailyAmountOfUsedGasVarSampFields = { +export type Daily_Amount_Of_Used_Gas_Var_Samp_Fields = { __typename?: 'daily_amount_of_used_gas_var_samp_fields'; daily_gas?: Maybe; gas_total?: Maybe; }; /** aggregate variance on columns */ -export type DailyAmountOfUsedGasVarianceFields = { +export type Daily_Amount_Of_Used_Gas_Variance_Fields = { __typename?: 'daily_amount_of_used_gas_variance_fields'; daily_gas?: Maybe; gas_total?: Maybe; }; /** columns and relationships of "daily_number_of_transactions" */ -export type DailyNumberOfTransactions = { +export type Daily_Number_Of_Transactions = { __typename?: 'daily_number_of_transactions'; date?: Maybe; txs_per_day?: Maybe; @@ -2884,54 +2884,54 @@ export type DailyNumberOfTransactions = { }; /** aggregated selection of "daily_number_of_transactions" */ -export type DailyNumberOfTransactionsAggregate = { +export type Daily_Number_Of_Transactions_Aggregate = { __typename?: 'daily_number_of_transactions_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "daily_number_of_transactions" */ -export type DailyNumberOfTransactionsAggregateFields = { +export type Daily_Number_Of_Transactions_Aggregate_Fields = { __typename?: 'daily_number_of_transactions_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "daily_number_of_transactions" */ -export type DailyNumberOfTransactionsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Daily_Number_Of_Transactions_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type DailyNumberOfTransactionsAvgFields = { +export type Daily_Number_Of_Transactions_Avg_Fields = { __typename?: 'daily_number_of_transactions_avg_fields'; txs_per_day?: Maybe; txs_total?: Maybe; }; /** Boolean expression to filter rows from the table "daily_number_of_transactions". All fields are combined with a logical 'AND'. */ -export type DailyNumberOfTransactionsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - date?: InputMaybe; - txs_per_day?: InputMaybe; - txs_total?: InputMaybe; +export type Daily_Number_Of_Transactions_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + txs_per_day?: InputMaybe; + txs_total?: InputMaybe; }; /** aggregate max on columns */ -export type DailyNumberOfTransactionsMaxFields = { +export type Daily_Number_Of_Transactions_Max_Fields = { __typename?: 'daily_number_of_transactions_max_fields'; date?: Maybe; txs_per_day?: Maybe; @@ -2939,7 +2939,7 @@ export type DailyNumberOfTransactionsMaxFields = { }; /** aggregate min on columns */ -export type DailyNumberOfTransactionsMinFields = { +export type Daily_Number_Of_Transactions_Min_Fields = { __typename?: 'daily_number_of_transactions_min_fields'; date?: Maybe; txs_per_day?: Maybe; @@ -2947,14 +2947,14 @@ export type DailyNumberOfTransactionsMinFields = { }; /** Ordering options when selecting data from "daily_number_of_transactions". */ -export type DailyNumberOfTransactionsOrderBy = { - date?: InputMaybe; - txs_per_day?: InputMaybe; - txs_total?: InputMaybe; +export type Daily_Number_Of_Transactions_Order_By = { + date?: InputMaybe; + txs_per_day?: InputMaybe; + txs_total?: InputMaybe; }; /** select columns of table "daily_number_of_transactions" */ -export enum DailyNumberOfTransactionsSelectColumn { +export enum Daily_Number_Of_Transactions_Select_Column { /** column name */ Date = 'date', /** column name */ @@ -2964,56 +2964,56 @@ export enum DailyNumberOfTransactionsSelectColumn { } /** aggregate stddev on columns */ -export type DailyNumberOfTransactionsStddevFields = { +export type Daily_Number_Of_Transactions_Stddev_Fields = { __typename?: 'daily_number_of_transactions_stddev_fields'; txs_per_day?: Maybe; txs_total?: Maybe; }; /** aggregate stddev_pop on columns */ -export type DailyNumberOfTransactionsStddevPopFields = { +export type Daily_Number_Of_Transactions_Stddev_Pop_Fields = { __typename?: 'daily_number_of_transactions_stddev_pop_fields'; txs_per_day?: Maybe; txs_total?: Maybe; }; /** aggregate stddev_samp on columns */ -export type DailyNumberOfTransactionsStddevSampFields = { +export type Daily_Number_Of_Transactions_Stddev_Samp_Fields = { __typename?: 'daily_number_of_transactions_stddev_samp_fields'; txs_per_day?: Maybe; txs_total?: Maybe; }; /** aggregate sum on columns */ -export type DailyNumberOfTransactionsSumFields = { +export type Daily_Number_Of_Transactions_Sum_Fields = { __typename?: 'daily_number_of_transactions_sum_fields'; txs_per_day?: Maybe; txs_total?: Maybe; }; /** aggregate var_pop on columns */ -export type DailyNumberOfTransactionsVarPopFields = { +export type Daily_Number_Of_Transactions_Var_Pop_Fields = { __typename?: 'daily_number_of_transactions_var_pop_fields'; txs_per_day?: Maybe; txs_total?: Maybe; }; /** aggregate var_samp on columns */ -export type DailyNumberOfTransactionsVarSampFields = { +export type Daily_Number_Of_Transactions_Var_Samp_Fields = { __typename?: 'daily_number_of_transactions_var_samp_fields'; txs_per_day?: Maybe; txs_total?: Maybe; }; /** aggregate variance on columns */ -export type DailyNumberOfTransactionsVarianceFields = { +export type Daily_Number_Of_Transactions_Variance_Fields = { __typename?: 'daily_number_of_transactions_variance_fields'; txs_per_day?: Maybe; txs_total?: Maybe; }; /** Boolean expression to compare columns of type "date". All fields are combined with logical 'AND'. */ -export type DateComparisonExp = { +export type Date_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -3026,7 +3026,7 @@ export type DateComparisonExp = { }; /** Boolean expression to compare columns of type "float8". All fields are combined with logical 'AND'. */ -export type Float8ComparisonExp = { +export type Float8_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -3039,7 +3039,7 @@ export type Float8ComparisonExp = { }; /** columns and relationships of "follow_stats" */ -export type FollowStats = { +export type Follow_Stats = { __typename?: 'follow_stats'; date?: Maybe; follow_total?: Maybe; @@ -3047,54 +3047,54 @@ export type FollowStats = { }; /** aggregated selection of "follow_stats" */ -export type FollowStatsAggregate = { +export type Follow_Stats_Aggregate = { __typename?: 'follow_stats_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "follow_stats" */ -export type FollowStatsAggregateFields = { +export type Follow_Stats_Aggregate_Fields = { __typename?: 'follow_stats_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "follow_stats" */ -export type FollowStatsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Follow_Stats_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type FollowStatsAvgFields = { +export type Follow_Stats_Avg_Fields = { __typename?: 'follow_stats_avg_fields'; follow_total?: Maybe; follows_per_day?: Maybe; }; /** Boolean expression to filter rows from the table "follow_stats". All fields are combined with a logical 'AND'. */ -export type FollowStatsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - date?: InputMaybe; - follow_total?: InputMaybe; - follows_per_day?: InputMaybe; +export type Follow_Stats_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + follow_total?: InputMaybe; + follows_per_day?: InputMaybe; }; /** aggregate max on columns */ -export type FollowStatsMaxFields = { +export type Follow_Stats_Max_Fields = { __typename?: 'follow_stats_max_fields'; date?: Maybe; follow_total?: Maybe; @@ -3102,7 +3102,7 @@ export type FollowStatsMaxFields = { }; /** aggregate min on columns */ -export type FollowStatsMinFields = { +export type Follow_Stats_Min_Fields = { __typename?: 'follow_stats_min_fields'; date?: Maybe; follow_total?: Maybe; @@ -3110,14 +3110,14 @@ export type FollowStatsMinFields = { }; /** Ordering options when selecting data from "follow_stats". */ -export type FollowStatsOrderBy = { - date?: InputMaybe; - follow_total?: InputMaybe; - follows_per_day?: InputMaybe; +export type Follow_Stats_Order_By = { + date?: InputMaybe; + follow_total?: InputMaybe; + follows_per_day?: InputMaybe; }; /** select columns of table "follow_stats" */ -export enum FollowStatsSelectColumn { +export enum Follow_Stats_Select_Column { /** column name */ Date = 'date', /** column name */ @@ -3127,128 +3127,128 @@ export enum FollowStatsSelectColumn { } /** aggregate stddev on columns */ -export type FollowStatsStddevFields = { +export type Follow_Stats_Stddev_Fields = { __typename?: 'follow_stats_stddev_fields'; follow_total?: Maybe; follows_per_day?: Maybe; }; /** aggregate stddev_pop on columns */ -export type FollowStatsStddevPopFields = { +export type Follow_Stats_Stddev_Pop_Fields = { __typename?: 'follow_stats_stddev_pop_fields'; follow_total?: Maybe; follows_per_day?: Maybe; }; /** aggregate stddev_samp on columns */ -export type FollowStatsStddevSampFields = { +export type Follow_Stats_Stddev_Samp_Fields = { __typename?: 'follow_stats_stddev_samp_fields'; follow_total?: Maybe; follows_per_day?: Maybe; }; /** aggregate sum on columns */ -export type FollowStatsSumFields = { +export type Follow_Stats_Sum_Fields = { __typename?: 'follow_stats_sum_fields'; follow_total?: Maybe; follows_per_day?: Maybe; }; /** aggregate var_pop on columns */ -export type FollowStatsVarPopFields = { +export type Follow_Stats_Var_Pop_Fields = { __typename?: 'follow_stats_var_pop_fields'; follow_total?: Maybe; follows_per_day?: Maybe; }; /** aggregate var_samp on columns */ -export type FollowStatsVarSampFields = { +export type Follow_Stats_Var_Samp_Fields = { __typename?: 'follow_stats_var_samp_fields'; follow_total?: Maybe; follows_per_day?: Maybe; }; /** aggregate variance on columns */ -export type FollowStatsVarianceFields = { +export type Follow_Stats_Variance_Fields = { __typename?: 'follow_stats_variance_fields'; follow_total?: Maybe; follows_per_day?: Maybe; }; /** columns and relationships of "genesis_neurons_activation" */ -export type GenesisNeuronsActivation = { +export type Genesis_Neurons_Activation = { __typename?: 'genesis_neurons_activation'; count?: Maybe; neurons?: Maybe; }; /** aggregated selection of "genesis_neurons_activation" */ -export type GenesisNeuronsActivationAggregate = { +export type Genesis_Neurons_Activation_Aggregate = { __typename?: 'genesis_neurons_activation_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "genesis_neurons_activation" */ -export type GenesisNeuronsActivationAggregateFields = { +export type Genesis_Neurons_Activation_Aggregate_Fields = { __typename?: 'genesis_neurons_activation_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "genesis_neurons_activation" */ -export type GenesisNeuronsActivationAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Genesis_Neurons_Activation_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type GenesisNeuronsActivationAvgFields = { +export type Genesis_Neurons_Activation_Avg_Fields = { __typename?: 'genesis_neurons_activation_avg_fields'; count?: Maybe; }; /** Boolean expression to filter rows from the table "genesis_neurons_activation". All fields are combined with a logical 'AND'. */ -export type GenesisNeuronsActivationBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - count?: InputMaybe; - neurons?: InputMaybe; +export type Genesis_Neurons_Activation_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + neurons?: InputMaybe; }; /** aggregate max on columns */ -export type GenesisNeuronsActivationMaxFields = { +export type Genesis_Neurons_Activation_Max_Fields = { __typename?: 'genesis_neurons_activation_max_fields'; count?: Maybe; neurons?: Maybe; }; /** aggregate min on columns */ -export type GenesisNeuronsActivationMinFields = { +export type Genesis_Neurons_Activation_Min_Fields = { __typename?: 'genesis_neurons_activation_min_fields'; count?: Maybe; neurons?: Maybe; }; /** Ordering options when selecting data from "genesis_neurons_activation". */ -export type GenesisNeuronsActivationOrderBy = { - count?: InputMaybe; - neurons?: InputMaybe; +export type Genesis_Neurons_Activation_Order_By = { + count?: InputMaybe; + neurons?: InputMaybe; }; /** select columns of table "genesis_neurons_activation" */ -export enum GenesisNeuronsActivationSelectColumn { +export enum Genesis_Neurons_Activation_Select_Column { /** column name */ Count = 'count', /** column name */ @@ -3256,43 +3256,43 @@ export enum GenesisNeuronsActivationSelectColumn { } /** aggregate stddev on columns */ -export type GenesisNeuronsActivationStddevFields = { +export type Genesis_Neurons_Activation_Stddev_Fields = { __typename?: 'genesis_neurons_activation_stddev_fields'; count?: Maybe; }; /** aggregate stddev_pop on columns */ -export type GenesisNeuronsActivationStddevPopFields = { +export type Genesis_Neurons_Activation_Stddev_Pop_Fields = { __typename?: 'genesis_neurons_activation_stddev_pop_fields'; count?: Maybe; }; /** aggregate stddev_samp on columns */ -export type GenesisNeuronsActivationStddevSampFields = { +export type Genesis_Neurons_Activation_Stddev_Samp_Fields = { __typename?: 'genesis_neurons_activation_stddev_samp_fields'; count?: Maybe; }; /** aggregate sum on columns */ -export type GenesisNeuronsActivationSumFields = { +export type Genesis_Neurons_Activation_Sum_Fields = { __typename?: 'genesis_neurons_activation_sum_fields'; count?: Maybe; }; /** aggregate var_pop on columns */ -export type GenesisNeuronsActivationVarPopFields = { +export type Genesis_Neurons_Activation_Var_Pop_Fields = { __typename?: 'genesis_neurons_activation_var_pop_fields'; count?: Maybe; }; /** aggregate var_samp on columns */ -export type GenesisNeuronsActivationVarSampFields = { +export type Genesis_Neurons_Activation_Var_Samp_Fields = { __typename?: 'genesis_neurons_activation_var_samp_fields'; count?: Maybe; }; /** aggregate variance on columns */ -export type GenesisNeuronsActivationVarianceFields = { +export type Genesis_Neurons_Activation_Variance_Fields = { __typename?: 'genesis_neurons_activation_variance_fields'; count?: Maybe; }; @@ -3317,52 +3317,52 @@ export type Investmints = { }; /** aggregated selection of "investmints" */ -export type InvestmintsAggregate = { +export type Investmints_Aggregate = { __typename?: 'investmints_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "investmints" */ -export type InvestmintsAggregateFields = { +export type Investmints_Aggregate_Fields = { __typename?: 'investmints_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "investmints" */ -export type InvestmintsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Investmints_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** order by aggregate values of table "investmints" */ -export type InvestmintsAggregateOrderBy = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; +export type Investmints_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; }; /** aggregate avg on columns */ -export type InvestmintsAvgFields = { +export type Investmints_Avg_Fields = { __typename?: 'investmints_avg_fields'; height?: Maybe; id?: Maybe; @@ -3370,32 +3370,32 @@ export type InvestmintsAvgFields = { }; /** order by avg() on columns of table "investmints" */ -export type InvestmintsAvgOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; +export type Investmints_Avg_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; }; /** Boolean expression to filter rows from the table "investmints". All fields are combined with a logical 'AND'. */ -export type InvestmintsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - account?: InputMaybe; - amount?: InputMaybe; - block?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; - neuron?: InputMaybe; - resource?: InputMaybe; - timestamp?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; +export type Investmints_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + amount?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; }; /** aggregate max on columns */ -export type InvestmintsMaxFields = { +export type Investmints_Max_Fields = { __typename?: 'investmints_max_fields'; height?: Maybe; id?: Maybe; @@ -3407,18 +3407,18 @@ export type InvestmintsMaxFields = { }; /** order by max() on columns of table "investmints" */ -export type InvestmintsMaxOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; - neuron?: InputMaybe; - resource?: InputMaybe; - timestamp?: InputMaybe; - transaction_hash?: InputMaybe; +export type Investmints_Max_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** aggregate min on columns */ -export type InvestmintsMinFields = { +export type Investmints_Min_Fields = { __typename?: 'investmints_min_fields'; height?: Maybe; id?: Maybe; @@ -3430,33 +3430,33 @@ export type InvestmintsMinFields = { }; /** order by min() on columns of table "investmints" */ -export type InvestmintsMinOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; - neuron?: InputMaybe; - resource?: InputMaybe; - timestamp?: InputMaybe; - transaction_hash?: InputMaybe; +export type Investmints_Min_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** Ordering options when selecting data from "investmints". */ -export type InvestmintsOrderBy = { - account?: InputMaybe; - amount?: InputMaybe; - block?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; - neuron?: InputMaybe; - resource?: InputMaybe; - timestamp?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; +export type Investmints_Order_By = { + account?: InputMaybe; + amount?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; + neuron?: InputMaybe; + resource?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; }; /** select columns of table "investmints" */ -export enum InvestmintsSelectColumn { +export enum Investmints_Select_Column { /** column name */ Amount = 'amount', /** column name */ @@ -3476,7 +3476,7 @@ export enum InvestmintsSelectColumn { } /** aggregate stddev on columns */ -export type InvestmintsStddevFields = { +export type Investmints_Stddev_Fields = { __typename?: 'investmints_stddev_fields'; height?: Maybe; id?: Maybe; @@ -3484,14 +3484,14 @@ export type InvestmintsStddevFields = { }; /** order by stddev() on columns of table "investmints" */ -export type InvestmintsStddevOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; +export type Investmints_Stddev_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; }; /** aggregate stddev_pop on columns */ -export type InvestmintsStddevPopFields = { +export type Investmints_Stddev_Pop_Fields = { __typename?: 'investmints_stddev_pop_fields'; height?: Maybe; id?: Maybe; @@ -3499,14 +3499,14 @@ export type InvestmintsStddevPopFields = { }; /** order by stddev_pop() on columns of table "investmints" */ -export type InvestmintsStddevPopOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; +export type Investmints_Stddev_Pop_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; }; /** aggregate stddev_samp on columns */ -export type InvestmintsStddevSampFields = { +export type Investmints_Stddev_Samp_Fields = { __typename?: 'investmints_stddev_samp_fields'; height?: Maybe; id?: Maybe; @@ -3514,14 +3514,14 @@ export type InvestmintsStddevSampFields = { }; /** order by stddev_samp() on columns of table "investmints" */ -export type InvestmintsStddevSampOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; +export type Investmints_Stddev_Samp_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; }; /** aggregate sum on columns */ -export type InvestmintsSumFields = { +export type Investmints_Sum_Fields = { __typename?: 'investmints_sum_fields'; height?: Maybe; id?: Maybe; @@ -3529,14 +3529,14 @@ export type InvestmintsSumFields = { }; /** order by sum() on columns of table "investmints" */ -export type InvestmintsSumOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; +export type Investmints_Sum_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; }; /** aggregate var_pop on columns */ -export type InvestmintsVarPopFields = { +export type Investmints_Var_Pop_Fields = { __typename?: 'investmints_var_pop_fields'; height?: Maybe; id?: Maybe; @@ -3544,14 +3544,14 @@ export type InvestmintsVarPopFields = { }; /** order by var_pop() on columns of table "investmints" */ -export type InvestmintsVarPopOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; +export type Investmints_Var_Pop_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; }; /** aggregate var_samp on columns */ -export type InvestmintsVarSampFields = { +export type Investmints_Var_Samp_Fields = { __typename?: 'investmints_var_samp_fields'; height?: Maybe; id?: Maybe; @@ -3559,14 +3559,14 @@ export type InvestmintsVarSampFields = { }; /** order by var_samp() on columns of table "investmints" */ -export type InvestmintsVarSampOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; +export type Investmints_Var_Samp_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; }; /** aggregate variance on columns */ -export type InvestmintsVarianceFields = { +export type Investmints_Variance_Fields = { __typename?: 'investmints_variance_fields'; height?: Maybe; id?: Maybe; @@ -3574,14 +3574,14 @@ export type InvestmintsVarianceFields = { }; /** order by variance() on columns of table "investmints" */ -export type InvestmintsVarianceOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - length?: InputMaybe; +export type Investmints_Variance_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + length?: InputMaybe; }; /** Boolean expression to compare columns of type "json". All fields are combined with logical 'AND'. */ -export type JsonComparisonExp = { +export type Json_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -3594,7 +3594,7 @@ export type JsonComparisonExp = { }; /** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */ -export type JsonbComparisonExp = { +export type Jsonb_Comparison_Exp = { /** is the column contained in the given json value */ _contained_in?: InputMaybe; /** does the column contain the given json value at the top level */ @@ -3635,76 +3635,76 @@ export type MessageValueArgs = { }; /** aggregated selection of "message" */ -export type MessageAggregate = { +export type Message_Aggregate = { __typename?: 'message_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "message" */ -export type MessageAggregateFields = { +export type Message_Aggregate_Fields = { __typename?: 'message_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "message" */ -export type MessageAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Message_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** order by aggregate values of table "message" */ -export type MessageAggregateOrderBy = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; +export type Message_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; }; /** aggregate avg on columns */ -export type MessageAvgFields = { +export type Message_Avg_Fields = { __typename?: 'message_avg_fields'; index?: Maybe; }; /** order by avg() on columns of table "message" */ -export type MessageAvgOrderBy = { - index?: InputMaybe; +export type Message_Avg_Order_By = { + index?: InputMaybe; }; /** Boolean expression to filter rows from the table "message". All fields are combined with a logical 'AND'. */ -export type MessageBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - index?: InputMaybe; - involved_accounts_addresses?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; - type?: InputMaybe; - value?: InputMaybe; +export type Message_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe<_Text_Comparison_Exp>; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; }; /** aggregate max on columns */ -export type MessageMaxFields = { +export type Message_Max_Fields = { __typename?: 'message_max_fields'; index?: Maybe; transaction_hash?: Maybe; @@ -3712,14 +3712,14 @@ export type MessageMaxFields = { }; /** order by max() on columns of table "message" */ -export type MessageMaxOrderBy = { - index?: InputMaybe; - transaction_hash?: InputMaybe; - type?: InputMaybe; +export type Message_Max_Order_By = { + index?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; }; /** aggregate min on columns */ -export type MessageMinFields = { +export type Message_Min_Fields = { __typename?: 'message_min_fields'; index?: Maybe; transaction_hash?: Maybe; @@ -3727,24 +3727,24 @@ export type MessageMinFields = { }; /** order by min() on columns of table "message" */ -export type MessageMinOrderBy = { - index?: InputMaybe; - transaction_hash?: InputMaybe; - type?: InputMaybe; +export type Message_Min_Order_By = { + index?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; }; /** Ordering options when selecting data from "message". */ -export type MessageOrderBy = { - index?: InputMaybe; - involved_accounts_addresses?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; - type?: InputMaybe; - value?: InputMaybe; +export type Message_Order_By = { + index?: InputMaybe; + involved_accounts_addresses?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + type?: InputMaybe; + value?: InputMaybe; }; /** select columns of table "message" */ -export enum MessageSelectColumn { +export enum Message_Select_Column { /** column name */ Index = 'index', /** column name */ @@ -3758,83 +3758,83 @@ export enum MessageSelectColumn { } /** aggregate stddev on columns */ -export type MessageStddevFields = { +export type Message_Stddev_Fields = { __typename?: 'message_stddev_fields'; index?: Maybe; }; /** order by stddev() on columns of table "message" */ -export type MessageStddevOrderBy = { - index?: InputMaybe; +export type Message_Stddev_Order_By = { + index?: InputMaybe; }; /** aggregate stddev_pop on columns */ -export type MessageStddevPopFields = { +export type Message_Stddev_Pop_Fields = { __typename?: 'message_stddev_pop_fields'; index?: Maybe; }; /** order by stddev_pop() on columns of table "message" */ -export type MessageStddevPopOrderBy = { - index?: InputMaybe; +export type Message_Stddev_Pop_Order_By = { + index?: InputMaybe; }; /** aggregate stddev_samp on columns */ -export type MessageStddevSampFields = { +export type Message_Stddev_Samp_Fields = { __typename?: 'message_stddev_samp_fields'; index?: Maybe; }; /** order by stddev_samp() on columns of table "message" */ -export type MessageStddevSampOrderBy = { - index?: InputMaybe; +export type Message_Stddev_Samp_Order_By = { + index?: InputMaybe; }; /** aggregate sum on columns */ -export type MessageSumFields = { +export type Message_Sum_Fields = { __typename?: 'message_sum_fields'; index?: Maybe; }; /** order by sum() on columns of table "message" */ -export type MessageSumOrderBy = { - index?: InputMaybe; +export type Message_Sum_Order_By = { + index?: InputMaybe; }; /** aggregate var_pop on columns */ -export type MessageVarPopFields = { +export type Message_Var_Pop_Fields = { __typename?: 'message_var_pop_fields'; index?: Maybe; }; /** order by var_pop() on columns of table "message" */ -export type MessageVarPopOrderBy = { - index?: InputMaybe; +export type Message_Var_Pop_Order_By = { + index?: InputMaybe; }; /** aggregate var_samp on columns */ -export type MessageVarSampFields = { +export type Message_Var_Samp_Fields = { __typename?: 'message_var_samp_fields'; index?: Maybe; }; /** order by var_samp() on columns of table "message" */ -export type MessageVarSampOrderBy = { - index?: InputMaybe; +export type Message_Var_Samp_Order_By = { + index?: InputMaybe; }; /** aggregate variance on columns */ -export type MessageVarianceFields = { +export type Message_Variance_Fields = { __typename?: 'message_variance_fields'; index?: Maybe; }; /** order by variance() on columns of table "message" */ -export type MessageVarianceOrderBy = { - index?: InputMaybe; +export type Message_Variance_Order_By = { + index?: InputMaybe; }; -export type MessagesByAddressArgs = { +export type Messages_By_Address_Args = { addresses?: InputMaybe; limit?: InputMaybe; offset?: InputMaybe; @@ -3848,60 +3848,60 @@ export type Modules = { }; /** aggregated selection of "modules" */ -export type ModulesAggregate = { +export type Modules_Aggregate = { __typename?: 'modules_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "modules" */ -export type ModulesAggregateFields = { +export type Modules_Aggregate_Fields = { __typename?: 'modules_aggregate_fields'; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; + max?: Maybe; + min?: Maybe; }; /** aggregate fields of "modules" */ -export type ModulesAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Modules_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** Boolean expression to filter rows from the table "modules". All fields are combined with a logical 'AND'. */ -export type ModulesBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - module_name?: InputMaybe; +export type Modules_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + module_name?: InputMaybe; }; /** aggregate max on columns */ -export type ModulesMaxFields = { +export type Modules_Max_Fields = { __typename?: 'modules_max_fields'; module_name?: Maybe; }; /** aggregate min on columns */ -export type ModulesMinFields = { +export type Modules_Min_Fields = { __typename?: 'modules_min_fields'; module_name?: Maybe; }; /** Ordering options when selecting data from "modules". */ -export type ModulesOrderBy = { - module_name?: InputMaybe; +export type Modules_Order_By = { + module_name?: InputMaybe; }; /** select columns of table "modules" */ -export enum ModulesSelectColumn { +export enum Modules_Select_Column { /** column name */ ModuleName = 'module_name' } /** columns and relationships of "neuron_activation_source" */ -export type NeuronActivationSource = { +export type Neuron_Activation_Source = { __typename?: 'neuron_activation_source'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -3911,37 +3911,37 @@ export type NeuronActivationSource = { }; /** aggregated selection of "neuron_activation_source" */ -export type NeuronActivationSourceAggregate = { +export type Neuron_Activation_Source_Aggregate = { __typename?: 'neuron_activation_source_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "neuron_activation_source" */ -export type NeuronActivationSourceAggregateFields = { +export type Neuron_Activation_Source_Aggregate_Fields = { __typename?: 'neuron_activation_source_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "neuron_activation_source" */ -export type NeuronActivationSourceAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Neuron_Activation_Source_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type NeuronActivationSourceAvgFields = { +export type Neuron_Activation_Source_Avg_Fields = { __typename?: 'neuron_activation_source_avg_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -3950,19 +3950,19 @@ export type NeuronActivationSourceAvgFields = { }; /** Boolean expression to filter rows from the table "neuron_activation_source". All fields are combined with a logical 'AND'. */ -export type NeuronActivationSourceBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - genesis_percent?: InputMaybe; - ibc_receive_percent?: InputMaybe; - neuron_activated?: InputMaybe; - recieve_percent?: InputMaybe; - week?: InputMaybe; +export type Neuron_Activation_Source_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + genesis_percent?: InputMaybe; + ibc_receive_percent?: InputMaybe; + neuron_activated?: InputMaybe; + recieve_percent?: InputMaybe; + week?: InputMaybe; }; /** aggregate max on columns */ -export type NeuronActivationSourceMaxFields = { +export type Neuron_Activation_Source_Max_Fields = { __typename?: 'neuron_activation_source_max_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -3972,7 +3972,7 @@ export type NeuronActivationSourceMaxFields = { }; /** aggregate min on columns */ -export type NeuronActivationSourceMinFields = { +export type Neuron_Activation_Source_Min_Fields = { __typename?: 'neuron_activation_source_min_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -3982,16 +3982,16 @@ export type NeuronActivationSourceMinFields = { }; /** Ordering options when selecting data from "neuron_activation_source". */ -export type NeuronActivationSourceOrderBy = { - genesis_percent?: InputMaybe; - ibc_receive_percent?: InputMaybe; - neuron_activated?: InputMaybe; - recieve_percent?: InputMaybe; - week?: InputMaybe; +export type Neuron_Activation_Source_Order_By = { + genesis_percent?: InputMaybe; + ibc_receive_percent?: InputMaybe; + neuron_activated?: InputMaybe; + recieve_percent?: InputMaybe; + week?: InputMaybe; }; /** select columns of table "neuron_activation_source" */ -export enum NeuronActivationSourceSelectColumn { +export enum Neuron_Activation_Source_Select_Column { /** column name */ GenesisPercent = 'genesis_percent', /** column name */ @@ -4005,7 +4005,7 @@ export enum NeuronActivationSourceSelectColumn { } /** aggregate stddev on columns */ -export type NeuronActivationSourceStddevFields = { +export type Neuron_Activation_Source_Stddev_Fields = { __typename?: 'neuron_activation_source_stddev_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -4014,7 +4014,7 @@ export type NeuronActivationSourceStddevFields = { }; /** aggregate stddev_pop on columns */ -export type NeuronActivationSourceStddevPopFields = { +export type Neuron_Activation_Source_Stddev_Pop_Fields = { __typename?: 'neuron_activation_source_stddev_pop_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -4023,7 +4023,7 @@ export type NeuronActivationSourceStddevPopFields = { }; /** aggregate stddev_samp on columns */ -export type NeuronActivationSourceStddevSampFields = { +export type Neuron_Activation_Source_Stddev_Samp_Fields = { __typename?: 'neuron_activation_source_stddev_samp_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -4032,7 +4032,7 @@ export type NeuronActivationSourceStddevSampFields = { }; /** aggregate sum on columns */ -export type NeuronActivationSourceSumFields = { +export type Neuron_Activation_Source_Sum_Fields = { __typename?: 'neuron_activation_source_sum_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -4041,7 +4041,7 @@ export type NeuronActivationSourceSumFields = { }; /** aggregate var_pop on columns */ -export type NeuronActivationSourceVarPopFields = { +export type Neuron_Activation_Source_Var_Pop_Fields = { __typename?: 'neuron_activation_source_var_pop_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -4050,7 +4050,7 @@ export type NeuronActivationSourceVarPopFields = { }; /** aggregate var_samp on columns */ -export type NeuronActivationSourceVarSampFields = { +export type Neuron_Activation_Source_Var_Samp_Fields = { __typename?: 'neuron_activation_source_var_samp_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -4059,7 +4059,7 @@ export type NeuronActivationSourceVarSampFields = { }; /** aggregate variance on columns */ -export type NeuronActivationSourceVarianceFields = { +export type Neuron_Activation_Source_Variance_Fields = { __typename?: 'neuron_activation_source_variance_fields'; genesis_percent?: Maybe; ibc_receive_percent?: Maybe; @@ -4068,7 +4068,7 @@ export type NeuronActivationSourceVarianceFields = { }; /** columns and relationships of "number_of_new_neurons" */ -export type NumberOfNewNeurons = { +export type Number_Of_New_Neurons = { __typename?: 'number_of_new_neurons'; date?: Maybe; new_neurons_daily?: Maybe; @@ -4076,54 +4076,54 @@ export type NumberOfNewNeurons = { }; /** aggregated selection of "number_of_new_neurons" */ -export type NumberOfNewNeuronsAggregate = { +export type Number_Of_New_Neurons_Aggregate = { __typename?: 'number_of_new_neurons_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "number_of_new_neurons" */ -export type NumberOfNewNeuronsAggregateFields = { +export type Number_Of_New_Neurons_Aggregate_Fields = { __typename?: 'number_of_new_neurons_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "number_of_new_neurons" */ -export type NumberOfNewNeuronsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Number_Of_New_Neurons_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type NumberOfNewNeuronsAvgFields = { +export type Number_Of_New_Neurons_Avg_Fields = { __typename?: 'number_of_new_neurons_avg_fields'; new_neurons_daily?: Maybe; new_neurons_total?: Maybe; }; /** Boolean expression to filter rows from the table "number_of_new_neurons". All fields are combined with a logical 'AND'. */ -export type NumberOfNewNeuronsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - date?: InputMaybe; - new_neurons_daily?: InputMaybe; - new_neurons_total?: InputMaybe; +export type Number_Of_New_Neurons_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + new_neurons_daily?: InputMaybe; + new_neurons_total?: InputMaybe; }; /** aggregate max on columns */ -export type NumberOfNewNeuronsMaxFields = { +export type Number_Of_New_Neurons_Max_Fields = { __typename?: 'number_of_new_neurons_max_fields'; date?: Maybe; new_neurons_daily?: Maybe; @@ -4131,7 +4131,7 @@ export type NumberOfNewNeuronsMaxFields = { }; /** aggregate min on columns */ -export type NumberOfNewNeuronsMinFields = { +export type Number_Of_New_Neurons_Min_Fields = { __typename?: 'number_of_new_neurons_min_fields'; date?: Maybe; new_neurons_daily?: Maybe; @@ -4139,14 +4139,14 @@ export type NumberOfNewNeuronsMinFields = { }; /** Ordering options when selecting data from "number_of_new_neurons". */ -export type NumberOfNewNeuronsOrderBy = { - date?: InputMaybe; - new_neurons_daily?: InputMaybe; - new_neurons_total?: InputMaybe; +export type Number_Of_New_Neurons_Order_By = { + date?: InputMaybe; + new_neurons_daily?: InputMaybe; + new_neurons_total?: InputMaybe; }; /** select columns of table "number_of_new_neurons" */ -export enum NumberOfNewNeuronsSelectColumn { +export enum Number_Of_New_Neurons_Select_Column { /** column name */ Date = 'date', /** column name */ @@ -4156,56 +4156,56 @@ export enum NumberOfNewNeuronsSelectColumn { } /** aggregate stddev on columns */ -export type NumberOfNewNeuronsStddevFields = { +export type Number_Of_New_Neurons_Stddev_Fields = { __typename?: 'number_of_new_neurons_stddev_fields'; new_neurons_daily?: Maybe; new_neurons_total?: Maybe; }; /** aggregate stddev_pop on columns */ -export type NumberOfNewNeuronsStddevPopFields = { +export type Number_Of_New_Neurons_Stddev_Pop_Fields = { __typename?: 'number_of_new_neurons_stddev_pop_fields'; new_neurons_daily?: Maybe; new_neurons_total?: Maybe; }; /** aggregate stddev_samp on columns */ -export type NumberOfNewNeuronsStddevSampFields = { +export type Number_Of_New_Neurons_Stddev_Samp_Fields = { __typename?: 'number_of_new_neurons_stddev_samp_fields'; new_neurons_daily?: Maybe; new_neurons_total?: Maybe; }; /** aggregate sum on columns */ -export type NumberOfNewNeuronsSumFields = { +export type Number_Of_New_Neurons_Sum_Fields = { __typename?: 'number_of_new_neurons_sum_fields'; new_neurons_daily?: Maybe; new_neurons_total?: Maybe; }; /** aggregate var_pop on columns */ -export type NumberOfNewNeuronsVarPopFields = { +export type Number_Of_New_Neurons_Var_Pop_Fields = { __typename?: 'number_of_new_neurons_var_pop_fields'; new_neurons_daily?: Maybe; new_neurons_total?: Maybe; }; /** aggregate var_samp on columns */ -export type NumberOfNewNeuronsVarSampFields = { +export type Number_Of_New_Neurons_Var_Samp_Fields = { __typename?: 'number_of_new_neurons_var_samp_fields'; new_neurons_daily?: Maybe; new_neurons_total?: Maybe; }; /** aggregate variance on columns */ -export type NumberOfNewNeuronsVarianceFields = { +export type Number_Of_New_Neurons_Variance_Fields = { __typename?: 'number_of_new_neurons_variance_fields'; new_neurons_daily?: Maybe; new_neurons_total?: Maybe; }; /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ -export type NumericComparisonExp = { +export type Numeric_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -4218,7 +4218,7 @@ export type NumericComparisonExp = { }; /** columns and relationships of "old_precommits" */ -export type OldPrecommits = { +export type Old_Precommits = { __typename?: 'old_precommits'; consensus_address: Scalars['String']['output']; consensus_pubkey: Scalars['String']['output']; @@ -4226,53 +4226,53 @@ export type OldPrecommits = { }; /** aggregated selection of "old_precommits" */ -export type OldPrecommitsAggregate = { +export type Old_Precommits_Aggregate = { __typename?: 'old_precommits_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "old_precommits" */ -export type OldPrecommitsAggregateFields = { +export type Old_Precommits_Aggregate_Fields = { __typename?: 'old_precommits_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "old_precommits" */ -export type OldPrecommitsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Old_Precommits_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type OldPrecommitsAvgFields = { +export type Old_Precommits_Avg_Fields = { __typename?: 'old_precommits_avg_fields'; precommits?: Maybe; }; /** Boolean expression to filter rows from the table "old_precommits". All fields are combined with a logical 'AND'. */ -export type OldPrecommitsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - precommits?: InputMaybe; +export type Old_Precommits_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; }; /** aggregate max on columns */ -export type OldPrecommitsMaxFields = { +export type Old_Precommits_Max_Fields = { __typename?: 'old_precommits_max_fields'; consensus_address?: Maybe; consensus_pubkey?: Maybe; @@ -4280,7 +4280,7 @@ export type OldPrecommitsMaxFields = { }; /** aggregate min on columns */ -export type OldPrecommitsMinFields = { +export type Old_Precommits_Min_Fields = { __typename?: 'old_precommits_min_fields'; consensus_address?: Maybe; consensus_pubkey?: Maybe; @@ -4288,14 +4288,14 @@ export type OldPrecommitsMinFields = { }; /** Ordering options when selecting data from "old_precommits". */ -export type OldPrecommitsOrderBy = { - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - precommits?: InputMaybe; +export type Old_Precommits_Order_By = { + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; }; /** select columns of table "old_precommits" */ -export enum OldPrecommitsSelectColumn { +export enum Old_Precommits_Select_Column { /** column name */ ConsensusAddress = 'consensus_address', /** column name */ @@ -4305,49 +4305,49 @@ export enum OldPrecommitsSelectColumn { } /** aggregate stddev on columns */ -export type OldPrecommitsStddevFields = { +export type Old_Precommits_Stddev_Fields = { __typename?: 'old_precommits_stddev_fields'; precommits?: Maybe; }; /** aggregate stddev_pop on columns */ -export type OldPrecommitsStddevPopFields = { +export type Old_Precommits_Stddev_Pop_Fields = { __typename?: 'old_precommits_stddev_pop_fields'; precommits?: Maybe; }; /** aggregate stddev_samp on columns */ -export type OldPrecommitsStddevSampFields = { +export type Old_Precommits_Stddev_Samp_Fields = { __typename?: 'old_precommits_stddev_samp_fields'; precommits?: Maybe; }; /** aggregate sum on columns */ -export type OldPrecommitsSumFields = { +export type Old_Precommits_Sum_Fields = { __typename?: 'old_precommits_sum_fields'; precommits?: Maybe; }; /** aggregate var_pop on columns */ -export type OldPrecommitsVarPopFields = { +export type Old_Precommits_Var_Pop_Fields = { __typename?: 'old_precommits_var_pop_fields'; precommits?: Maybe; }; /** aggregate var_samp on columns */ -export type OldPrecommitsVarSampFields = { +export type Old_Precommits_Var_Samp_Fields = { __typename?: 'old_precommits_var_samp_fields'; precommits?: Maybe; }; /** aggregate variance on columns */ -export type OldPrecommitsVarianceFields = { +export type Old_Precommits_Variance_Fields = { __typename?: 'old_precommits_variance_fields'; precommits?: Maybe; }; /** column ordering options */ -export enum OrderBy { +export enum Order_By { /** in ascending order, nulls last */ Asc = 'asc', /** in ascending order, nulls first */ @@ -4374,12 +4374,12 @@ export type Particles = { /** An array relationship */ in: Array; /** An aggregate relationship */ - in_aggregate: CyberlinksAggregate; + in_aggregate: Cyberlinks_Aggregate; neuron: Scalars['String']['output']; /** An array relationship */ out: Array; /** An aggregate relationship */ - out_aggregate: CyberlinksAggregate; + out_aggregate: Cyberlinks_Aggregate; particle: Scalars['String']['output']; timestamp: Scalars['timestamp']['output']; /** An object relationship */ @@ -4390,121 +4390,121 @@ export type Particles = { /** columns and relationships of "particles" */ export type ParticlesInArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "particles" */ -export type ParticlesInAggregateArgs = { - distinct_on?: InputMaybe>; +export type ParticlesIn_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "particles" */ export type ParticlesOutArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "particles" */ -export type ParticlesOutAggregateArgs = { - distinct_on?: InputMaybe>; +export type ParticlesOut_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** aggregated selection of "particles" */ -export type ParticlesAggregate = { +export type Particles_Aggregate = { __typename?: 'particles_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "particles" */ -export type ParticlesAggregateFields = { +export type Particles_Aggregate_Fields = { __typename?: 'particles_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "particles" */ -export type ParticlesAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Particles_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** order by aggregate values of table "particles" */ -export type ParticlesAggregateOrderBy = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; +export type Particles_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; }; /** aggregate avg on columns */ -export type ParticlesAvgFields = { +export type Particles_Avg_Fields = { __typename?: 'particles_avg_fields'; height?: Maybe; id?: Maybe; }; /** order by avg() on columns of table "particles" */ -export type ParticlesAvgOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Particles_Avg_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** Boolean expression to filter rows from the table "particles". All fields are combined with a logical 'AND'. */ -export type ParticlesBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - account?: InputMaybe; - block?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - in?: InputMaybe; - neuron?: InputMaybe; - out?: InputMaybe; - particle?: InputMaybe; - timestamp?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; +export type Particles_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + in?: InputMaybe; + neuron?: InputMaybe; + out?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; }; /** aggregate max on columns */ -export type ParticlesMaxFields = { +export type Particles_Max_Fields = { __typename?: 'particles_max_fields'; height?: Maybe; id?: Maybe; @@ -4515,17 +4515,17 @@ export type ParticlesMaxFields = { }; /** order by max() on columns of table "particles" */ -export type ParticlesMaxOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - neuron?: InputMaybe; - particle?: InputMaybe; - timestamp?: InputMaybe; - transaction_hash?: InputMaybe; +export type Particles_Max_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** aggregate min on columns */ -export type ParticlesMinFields = { +export type Particles_Min_Fields = { __typename?: 'particles_min_fields'; height?: Maybe; id?: Maybe; @@ -4536,32 +4536,32 @@ export type ParticlesMinFields = { }; /** order by min() on columns of table "particles" */ -export type ParticlesMinOrderBy = { - height?: InputMaybe; - id?: InputMaybe; - neuron?: InputMaybe; - particle?: InputMaybe; - timestamp?: InputMaybe; - transaction_hash?: InputMaybe; +export type Particles_Min_Order_By = { + height?: InputMaybe; + id?: InputMaybe; + neuron?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** Ordering options when selecting data from "particles". */ -export type ParticlesOrderBy = { - account?: InputMaybe; - block?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - in_aggregate?: InputMaybe; - neuron?: InputMaybe; - out_aggregate?: InputMaybe; - particle?: InputMaybe; - timestamp?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; +export type Particles_Order_By = { + account?: InputMaybe; + block?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + in_aggregate?: InputMaybe; + neuron?: InputMaybe; + out_aggregate?: InputMaybe; + particle?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; }; /** select columns of table "particles" */ -export enum ParticlesSelectColumn { +export enum Particles_Select_Column { /** column name */ Height = 'height', /** column name */ @@ -4577,98 +4577,98 @@ export enum ParticlesSelectColumn { } /** aggregate stddev on columns */ -export type ParticlesStddevFields = { +export type Particles_Stddev_Fields = { __typename?: 'particles_stddev_fields'; height?: Maybe; id?: Maybe; }; /** order by stddev() on columns of table "particles" */ -export type ParticlesStddevOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Particles_Stddev_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate stddev_pop on columns */ -export type ParticlesStddevPopFields = { +export type Particles_Stddev_Pop_Fields = { __typename?: 'particles_stddev_pop_fields'; height?: Maybe; id?: Maybe; }; /** order by stddev_pop() on columns of table "particles" */ -export type ParticlesStddevPopOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Particles_Stddev_Pop_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate stddev_samp on columns */ -export type ParticlesStddevSampFields = { +export type Particles_Stddev_Samp_Fields = { __typename?: 'particles_stddev_samp_fields'; height?: Maybe; id?: Maybe; }; /** order by stddev_samp() on columns of table "particles" */ -export type ParticlesStddevSampOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Particles_Stddev_Samp_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate sum on columns */ -export type ParticlesSumFields = { +export type Particles_Sum_Fields = { __typename?: 'particles_sum_fields'; height?: Maybe; id?: Maybe; }; /** order by sum() on columns of table "particles" */ -export type ParticlesSumOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Particles_Sum_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate var_pop on columns */ -export type ParticlesVarPopFields = { +export type Particles_Var_Pop_Fields = { __typename?: 'particles_var_pop_fields'; height?: Maybe; id?: Maybe; }; /** order by var_pop() on columns of table "particles" */ -export type ParticlesVarPopOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Particles_Var_Pop_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate var_samp on columns */ -export type ParticlesVarSampFields = { +export type Particles_Var_Samp_Fields = { __typename?: 'particles_var_samp_fields'; height?: Maybe; id?: Maybe; }; /** order by var_samp() on columns of table "particles" */ -export type ParticlesVarSampOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Particles_Var_Samp_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate variance on columns */ -export type ParticlesVarianceFields = { +export type Particles_Variance_Fields = { __typename?: 'particles_variance_fields'; height?: Maybe; id?: Maybe; }; /** order by variance() on columns of table "particles" */ -export type ParticlesVarianceOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Particles_Variance_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** columns and relationships of "pre_commit" */ -export type PreCommit = { +export type Pre_Commit = { __typename?: 'pre_commit'; height: Scalars['bigint']['output']; proposer_priority: Scalars['bigint']['output']; @@ -4680,52 +4680,52 @@ export type PreCommit = { }; /** aggregated selection of "pre_commit" */ -export type PreCommitAggregate = { +export type Pre_Commit_Aggregate = { __typename?: 'pre_commit_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "pre_commit" */ -export type PreCommitAggregateFields = { +export type Pre_Commit_Aggregate_Fields = { __typename?: 'pre_commit_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "pre_commit" */ -export type PreCommitAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Pre_Commit_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** order by aggregate values of table "pre_commit" */ -export type PreCommitAggregateOrderBy = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; +export type Pre_Commit_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; }; /** aggregate avg on columns */ -export type PreCommitAvgFields = { +export type Pre_Commit_Avg_Fields = { __typename?: 'pre_commit_avg_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4733,27 +4733,27 @@ export type PreCommitAvgFields = { }; /** order by avg() on columns of table "pre_commit" */ -export type PreCommitAvgOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Avg_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; }; /** Boolean expression to filter rows from the table "pre_commit". All fields are combined with a logical 'AND'. */ -export type PreCommitBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - proposer_priority?: InputMaybe; - timestamp?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; }; /** aggregate max on columns */ -export type PreCommitMaxFields = { +export type Pre_Commit_Max_Fields = { __typename?: 'pre_commit_max_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4763,16 +4763,16 @@ export type PreCommitMaxFields = { }; /** order by max() on columns of table "pre_commit" */ -export type PreCommitMaxOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - timestamp?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Max_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; }; /** aggregate min on columns */ -export type PreCommitMinFields = { +export type Pre_Commit_Min_Fields = { __typename?: 'pre_commit_min_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4782,26 +4782,26 @@ export type PreCommitMinFields = { }; /** order by min() on columns of table "pre_commit" */ -export type PreCommitMinOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - timestamp?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Min_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; }; /** Ordering options when selecting data from "pre_commit". */ -export type PreCommitOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - timestamp?: InputMaybe; - validator?: InputMaybe; - validator_address?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + timestamp?: InputMaybe; + validator?: InputMaybe; + validator_address?: InputMaybe; + voting_power?: InputMaybe; }; /** select columns of table "pre_commit" */ -export enum PreCommitSelectColumn { +export enum Pre_Commit_Select_Column { /** column name */ Height = 'height', /** column name */ @@ -4815,7 +4815,7 @@ export enum PreCommitSelectColumn { } /** aggregate stddev on columns */ -export type PreCommitStddevFields = { +export type Pre_Commit_Stddev_Fields = { __typename?: 'pre_commit_stddev_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4823,14 +4823,14 @@ export type PreCommitStddevFields = { }; /** order by stddev() on columns of table "pre_commit" */ -export type PreCommitStddevOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Stddev_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; }; /** aggregate stddev_pop on columns */ -export type PreCommitStddevPopFields = { +export type Pre_Commit_Stddev_Pop_Fields = { __typename?: 'pre_commit_stddev_pop_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4838,14 +4838,14 @@ export type PreCommitStddevPopFields = { }; /** order by stddev_pop() on columns of table "pre_commit" */ -export type PreCommitStddevPopOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Stddev_Pop_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; }; /** aggregate stddev_samp on columns */ -export type PreCommitStddevSampFields = { +export type Pre_Commit_Stddev_Samp_Fields = { __typename?: 'pre_commit_stddev_samp_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4853,14 +4853,14 @@ export type PreCommitStddevSampFields = { }; /** order by stddev_samp() on columns of table "pre_commit" */ -export type PreCommitStddevSampOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Stddev_Samp_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; }; /** aggregate sum on columns */ -export type PreCommitSumFields = { +export type Pre_Commit_Sum_Fields = { __typename?: 'pre_commit_sum_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4868,14 +4868,14 @@ export type PreCommitSumFields = { }; /** order by sum() on columns of table "pre_commit" */ -export type PreCommitSumOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Sum_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; }; /** aggregate var_pop on columns */ -export type PreCommitVarPopFields = { +export type Pre_Commit_Var_Pop_Fields = { __typename?: 'pre_commit_var_pop_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4883,14 +4883,14 @@ export type PreCommitVarPopFields = { }; /** order by var_pop() on columns of table "pre_commit" */ -export type PreCommitVarPopOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Var_Pop_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; }; /** aggregate var_samp on columns */ -export type PreCommitVarSampFields = { +export type Pre_Commit_Var_Samp_Fields = { __typename?: 'pre_commit_var_samp_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4898,14 +4898,14 @@ export type PreCommitVarSampFields = { }; /** order by var_samp() on columns of table "pre_commit" */ -export type PreCommitVarSampOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Var_Samp_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; }; /** aggregate variance on columns */ -export type PreCommitVarianceFields = { +export type Pre_Commit_Variance_Fields = { __typename?: 'pre_commit_variance_fields'; height?: Maybe; proposer_priority?: Maybe; @@ -4913,14 +4913,14 @@ export type PreCommitVarianceFields = { }; /** order by variance() on columns of table "pre_commit" */ -export type PreCommitVarianceOrderBy = { - height?: InputMaybe; - proposer_priority?: InputMaybe; - voting_power?: InputMaybe; +export type Pre_Commit_Variance_Order_By = { + height?: InputMaybe; + proposer_priority?: InputMaybe; + voting_power?: InputMaybe; }; /** columns and relationships of "pre_commits_rewards_view" */ -export type PreCommitsRewardsView = { +export type Pre_Commits_Rewards_View = { __typename?: 'pre_commits_rewards_view'; consensus_pubkey?: Maybe; max_block?: Maybe; @@ -4930,37 +4930,37 @@ export type PreCommitsRewardsView = { }; /** aggregated selection of "pre_commits_rewards_view" */ -export type PreCommitsRewardsViewAggregate = { +export type Pre_Commits_Rewards_View_Aggregate = { __typename?: 'pre_commits_rewards_view_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "pre_commits_rewards_view" */ -export type PreCommitsRewardsViewAggregateFields = { +export type Pre_Commits_Rewards_View_Aggregate_Fields = { __typename?: 'pre_commits_rewards_view_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "pre_commits_rewards_view" */ -export type PreCommitsRewardsViewAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Pre_Commits_Rewards_View_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type PreCommitsRewardsViewAvgFields = { +export type Pre_Commits_Rewards_View_Avg_Fields = { __typename?: 'pre_commits_rewards_view_avg_fields'; max_block?: Maybe; pre_commit_rewards?: Maybe; @@ -4969,19 +4969,19 @@ export type PreCommitsRewardsViewAvgFields = { }; /** Boolean expression to filter rows from the table "pre_commits_rewards_view". All fields are combined with a logical 'AND'. */ -export type PreCommitsRewardsViewBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - consensus_pubkey?: InputMaybe; - max_block?: InputMaybe; - pre_commit_rewards?: InputMaybe; - precommits?: InputMaybe; - sum_precommits?: InputMaybe; +export type Pre_Commits_Rewards_View_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_pubkey?: InputMaybe; + max_block?: InputMaybe; + pre_commit_rewards?: InputMaybe; + precommits?: InputMaybe; + sum_precommits?: InputMaybe; }; /** aggregate max on columns */ -export type PreCommitsRewardsViewMaxFields = { +export type Pre_Commits_Rewards_View_Max_Fields = { __typename?: 'pre_commits_rewards_view_max_fields'; consensus_pubkey?: Maybe; max_block?: Maybe; @@ -4991,7 +4991,7 @@ export type PreCommitsRewardsViewMaxFields = { }; /** aggregate min on columns */ -export type PreCommitsRewardsViewMinFields = { +export type Pre_Commits_Rewards_View_Min_Fields = { __typename?: 'pre_commits_rewards_view_min_fields'; consensus_pubkey?: Maybe; max_block?: Maybe; @@ -5001,16 +5001,16 @@ export type PreCommitsRewardsViewMinFields = { }; /** Ordering options when selecting data from "pre_commits_rewards_view". */ -export type PreCommitsRewardsViewOrderBy = { - consensus_pubkey?: InputMaybe; - max_block?: InputMaybe; - pre_commit_rewards?: InputMaybe; - precommits?: InputMaybe; - sum_precommits?: InputMaybe; +export type Pre_Commits_Rewards_View_Order_By = { + consensus_pubkey?: InputMaybe; + max_block?: InputMaybe; + pre_commit_rewards?: InputMaybe; + precommits?: InputMaybe; + sum_precommits?: InputMaybe; }; /** select columns of table "pre_commits_rewards_view" */ -export enum PreCommitsRewardsViewSelectColumn { +export enum Pre_Commits_Rewards_View_Select_Column { /** column name */ ConsensusPubkey = 'consensus_pubkey', /** column name */ @@ -5024,7 +5024,7 @@ export enum PreCommitsRewardsViewSelectColumn { } /** aggregate stddev on columns */ -export type PreCommitsRewardsViewStddevFields = { +export type Pre_Commits_Rewards_View_Stddev_Fields = { __typename?: 'pre_commits_rewards_view_stddev_fields'; max_block?: Maybe; pre_commit_rewards?: Maybe; @@ -5033,7 +5033,7 @@ export type PreCommitsRewardsViewStddevFields = { }; /** aggregate stddev_pop on columns */ -export type PreCommitsRewardsViewStddevPopFields = { +export type Pre_Commits_Rewards_View_Stddev_Pop_Fields = { __typename?: 'pre_commits_rewards_view_stddev_pop_fields'; max_block?: Maybe; pre_commit_rewards?: Maybe; @@ -5042,7 +5042,7 @@ export type PreCommitsRewardsViewStddevPopFields = { }; /** aggregate stddev_samp on columns */ -export type PreCommitsRewardsViewStddevSampFields = { +export type Pre_Commits_Rewards_View_Stddev_Samp_Fields = { __typename?: 'pre_commits_rewards_view_stddev_samp_fields'; max_block?: Maybe; pre_commit_rewards?: Maybe; @@ -5051,7 +5051,7 @@ export type PreCommitsRewardsViewStddevSampFields = { }; /** aggregate sum on columns */ -export type PreCommitsRewardsViewSumFields = { +export type Pre_Commits_Rewards_View_Sum_Fields = { __typename?: 'pre_commits_rewards_view_sum_fields'; max_block?: Maybe; pre_commit_rewards?: Maybe; @@ -5060,7 +5060,7 @@ export type PreCommitsRewardsViewSumFields = { }; /** aggregate var_pop on columns */ -export type PreCommitsRewardsViewVarPopFields = { +export type Pre_Commits_Rewards_View_Var_Pop_Fields = { __typename?: 'pre_commits_rewards_view_var_pop_fields'; max_block?: Maybe; pre_commit_rewards?: Maybe; @@ -5069,7 +5069,7 @@ export type PreCommitsRewardsViewVarPopFields = { }; /** aggregate var_samp on columns */ -export type PreCommitsRewardsViewVarSampFields = { +export type Pre_Commits_Rewards_View_Var_Samp_Fields = { __typename?: 'pre_commits_rewards_view_var_samp_fields'; max_block?: Maybe; pre_commit_rewards?: Maybe; @@ -5078,7 +5078,7 @@ export type PreCommitsRewardsViewVarSampFields = { }; /** aggregate variance on columns */ -export type PreCommitsRewardsViewVarianceFields = { +export type Pre_Commits_Rewards_View_Variance_Fields = { __typename?: 'pre_commits_rewards_view_variance_fields'; max_block?: Maybe; pre_commit_rewards?: Maybe; @@ -5087,79 +5087,79 @@ export type PreCommitsRewardsViewVarianceFields = { }; /** columns and relationships of "pre_commits_total" */ -export type PreCommitsTotal = { +export type Pre_Commits_Total = { __typename?: 'pre_commits_total'; consensus_pubkey?: Maybe; pre_commits?: Maybe; }; /** aggregated selection of "pre_commits_total" */ -export type PreCommitsTotalAggregate = { +export type Pre_Commits_Total_Aggregate = { __typename?: 'pre_commits_total_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "pre_commits_total" */ -export type PreCommitsTotalAggregateFields = { +export type Pre_Commits_Total_Aggregate_Fields = { __typename?: 'pre_commits_total_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "pre_commits_total" */ -export type PreCommitsTotalAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Pre_Commits_Total_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type PreCommitsTotalAvgFields = { +export type Pre_Commits_Total_Avg_Fields = { __typename?: 'pre_commits_total_avg_fields'; pre_commits?: Maybe; }; /** Boolean expression to filter rows from the table "pre_commits_total". All fields are combined with a logical 'AND'. */ -export type PreCommitsTotalBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - consensus_pubkey?: InputMaybe; - pre_commits?: InputMaybe; +export type Pre_Commits_Total_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; }; /** aggregate max on columns */ -export type PreCommitsTotalMaxFields = { +export type Pre_Commits_Total_Max_Fields = { __typename?: 'pre_commits_total_max_fields'; consensus_pubkey?: Maybe; pre_commits?: Maybe; }; /** aggregate min on columns */ -export type PreCommitsTotalMinFields = { +export type Pre_Commits_Total_Min_Fields = { __typename?: 'pre_commits_total_min_fields'; consensus_pubkey?: Maybe; pre_commits?: Maybe; }; /** Ordering options when selecting data from "pre_commits_total". */ -export type PreCommitsTotalOrderBy = { - consensus_pubkey?: InputMaybe; - pre_commits?: InputMaybe; +export type Pre_Commits_Total_Order_By = { + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; }; /** select columns of table "pre_commits_total" */ -export enum PreCommitsTotalSelectColumn { +export enum Pre_Commits_Total_Select_Column { /** column name */ ConsensusPubkey = 'consensus_pubkey', /** column name */ @@ -5167,49 +5167,49 @@ export enum PreCommitsTotalSelectColumn { } /** aggregate stddev on columns */ -export type PreCommitsTotalStddevFields = { +export type Pre_Commits_Total_Stddev_Fields = { __typename?: 'pre_commits_total_stddev_fields'; pre_commits?: Maybe; }; /** aggregate stddev_pop on columns */ -export type PreCommitsTotalStddevPopFields = { +export type Pre_Commits_Total_Stddev_Pop_Fields = { __typename?: 'pre_commits_total_stddev_pop_fields'; pre_commits?: Maybe; }; /** aggregate stddev_samp on columns */ -export type PreCommitsTotalStddevSampFields = { +export type Pre_Commits_Total_Stddev_Samp_Fields = { __typename?: 'pre_commits_total_stddev_samp_fields'; pre_commits?: Maybe; }; /** aggregate sum on columns */ -export type PreCommitsTotalSumFields = { +export type Pre_Commits_Total_Sum_Fields = { __typename?: 'pre_commits_total_sum_fields'; pre_commits?: Maybe; }; /** aggregate var_pop on columns */ -export type PreCommitsTotalVarPopFields = { +export type Pre_Commits_Total_Var_Pop_Fields = { __typename?: 'pre_commits_total_var_pop_fields'; pre_commits?: Maybe; }; /** aggregate var_samp on columns */ -export type PreCommitsTotalVarSampFields = { +export type Pre_Commits_Total_Var_Samp_Fields = { __typename?: 'pre_commits_total_var_samp_fields'; pre_commits?: Maybe; }; /** aggregate variance on columns */ -export type PreCommitsTotalVarianceFields = { +export type Pre_Commits_Total_Variance_Fields = { __typename?: 'pre_commits_total_variance_fields'; pre_commits?: Maybe; }; /** columns and relationships of "pre_commits_view" */ -export type PreCommitsView = { +export type Pre_Commits_View = { __typename?: 'pre_commits_view'; consensus_address?: Maybe; consensus_pubkey?: Maybe; @@ -5217,53 +5217,53 @@ export type PreCommitsView = { }; /** aggregated selection of "pre_commits_view" */ -export type PreCommitsViewAggregate = { +export type Pre_Commits_View_Aggregate = { __typename?: 'pre_commits_view_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "pre_commits_view" */ -export type PreCommitsViewAggregateFields = { +export type Pre_Commits_View_Aggregate_Fields = { __typename?: 'pre_commits_view_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "pre_commits_view" */ -export type PreCommitsViewAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Pre_Commits_View_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type PreCommitsViewAvgFields = { +export type Pre_Commits_View_Avg_Fields = { __typename?: 'pre_commits_view_avg_fields'; precommits?: Maybe; }; /** Boolean expression to filter rows from the table "pre_commits_view". All fields are combined with a logical 'AND'. */ -export type PreCommitsViewBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - precommits?: InputMaybe; +export type Pre_Commits_View_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; }; /** aggregate max on columns */ -export type PreCommitsViewMaxFields = { +export type Pre_Commits_View_Max_Fields = { __typename?: 'pre_commits_view_max_fields'; consensus_address?: Maybe; consensus_pubkey?: Maybe; @@ -5271,7 +5271,7 @@ export type PreCommitsViewMaxFields = { }; /** aggregate min on columns */ -export type PreCommitsViewMinFields = { +export type Pre_Commits_View_Min_Fields = { __typename?: 'pre_commits_view_min_fields'; consensus_address?: Maybe; consensus_pubkey?: Maybe; @@ -5279,14 +5279,14 @@ export type PreCommitsViewMinFields = { }; /** Ordering options when selecting data from "pre_commits_view". */ -export type PreCommitsViewOrderBy = { - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - precommits?: InputMaybe; +export type Pre_Commits_View_Order_By = { + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + precommits?: InputMaybe; }; /** select columns of table "pre_commits_view" */ -export enum PreCommitsViewSelectColumn { +export enum Pre_Commits_View_Select_Column { /** column name */ ConsensusAddress = 'consensus_address', /** column name */ @@ -5296,43 +5296,43 @@ export enum PreCommitsViewSelectColumn { } /** aggregate stddev on columns */ -export type PreCommitsViewStddevFields = { +export type Pre_Commits_View_Stddev_Fields = { __typename?: 'pre_commits_view_stddev_fields'; precommits?: Maybe; }; /** aggregate stddev_pop on columns */ -export type PreCommitsViewStddevPopFields = { +export type Pre_Commits_View_Stddev_Pop_Fields = { __typename?: 'pre_commits_view_stddev_pop_fields'; precommits?: Maybe; }; /** aggregate stddev_samp on columns */ -export type PreCommitsViewStddevSampFields = { +export type Pre_Commits_View_Stddev_Samp_Fields = { __typename?: 'pre_commits_view_stddev_samp_fields'; precommits?: Maybe; }; /** aggregate sum on columns */ -export type PreCommitsViewSumFields = { +export type Pre_Commits_View_Sum_Fields = { __typename?: 'pre_commits_view_sum_fields'; precommits?: Maybe; }; /** aggregate var_pop on columns */ -export type PreCommitsViewVarPopFields = { +export type Pre_Commits_View_Var_Pop_Fields = { __typename?: 'pre_commits_view_var_pop_fields'; precommits?: Maybe; }; /** aggregate var_samp on columns */ -export type PreCommitsViewVarSampFields = { +export type Pre_Commits_View_Var_Samp_Fields = { __typename?: 'pre_commits_view_var_samp_fields'; precommits?: Maybe; }; /** aggregate variance on columns */ -export type PreCommitsViewVarianceFields = { +export type Pre_Commits_View_Variance_Fields = { __typename?: 'pre_commits_view_variance_fields'; precommits?: Maybe; }; @@ -5344,116 +5344,116 @@ export type Pruning = { }; /** aggregated selection of "pruning" */ -export type PruningAggregate = { +export type Pruning_Aggregate = { __typename?: 'pruning_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "pruning" */ -export type PruningAggregateFields = { +export type Pruning_Aggregate_Fields = { __typename?: 'pruning_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "pruning" */ -export type PruningAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Pruning_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type PruningAvgFields = { +export type Pruning_Avg_Fields = { __typename?: 'pruning_avg_fields'; last_pruned_height?: Maybe; }; /** Boolean expression to filter rows from the table "pruning". All fields are combined with a logical 'AND'. */ -export type PruningBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - last_pruned_height?: InputMaybe; +export type Pruning_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + last_pruned_height?: InputMaybe; }; /** aggregate max on columns */ -export type PruningMaxFields = { +export type Pruning_Max_Fields = { __typename?: 'pruning_max_fields'; last_pruned_height?: Maybe; }; /** aggregate min on columns */ -export type PruningMinFields = { +export type Pruning_Min_Fields = { __typename?: 'pruning_min_fields'; last_pruned_height?: Maybe; }; /** Ordering options when selecting data from "pruning". */ -export type PruningOrderBy = { - last_pruned_height?: InputMaybe; +export type Pruning_Order_By = { + last_pruned_height?: InputMaybe; }; /** select columns of table "pruning" */ -export enum PruningSelectColumn { +export enum Pruning_Select_Column { /** column name */ LastPrunedHeight = 'last_pruned_height' } /** aggregate stddev on columns */ -export type PruningStddevFields = { +export type Pruning_Stddev_Fields = { __typename?: 'pruning_stddev_fields'; last_pruned_height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type PruningStddevPopFields = { +export type Pruning_Stddev_Pop_Fields = { __typename?: 'pruning_stddev_pop_fields'; last_pruned_height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type PruningStddevSampFields = { +export type Pruning_Stddev_Samp_Fields = { __typename?: 'pruning_stddev_samp_fields'; last_pruned_height?: Maybe; }; /** aggregate sum on columns */ -export type PruningSumFields = { +export type Pruning_Sum_Fields = { __typename?: 'pruning_sum_fields'; last_pruned_height?: Maybe; }; /** aggregate var_pop on columns */ -export type PruningVarPopFields = { +export type Pruning_Var_Pop_Fields = { __typename?: 'pruning_var_pop_fields'; last_pruned_height?: Maybe; }; /** aggregate var_samp on columns */ -export type PruningVarSampFields = { +export type Pruning_Var_Samp_Fields = { __typename?: 'pruning_var_samp_fields'; last_pruned_height?: Maybe; }; /** aggregate variance on columns */ -export type PruningVarianceFields = { +export type Pruning_Variance_Fields = { __typename?: 'pruning_variance_fields'; last_pruned_height?: Maybe; }; /** columns and relationships of "pussy_gift_proofs" */ -export type PussyGiftProofs = { +export type Pussy_Gift_Proofs = { __typename?: 'pussy_gift_proofs'; address?: Maybe; amount?: Maybe; @@ -5462,54 +5462,54 @@ export type PussyGiftProofs = { }; /** aggregated selection of "pussy_gift_proofs" */ -export type PussyGiftProofsAggregate = { +export type Pussy_Gift_Proofs_Aggregate = { __typename?: 'pussy_gift_proofs_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "pussy_gift_proofs" */ -export type PussyGiftProofsAggregateFields = { +export type Pussy_Gift_Proofs_Aggregate_Fields = { __typename?: 'pussy_gift_proofs_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "pussy_gift_proofs" */ -export type PussyGiftProofsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Pussy_Gift_Proofs_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type PussyGiftProofsAvgFields = { +export type Pussy_Gift_Proofs_Avg_Fields = { __typename?: 'pussy_gift_proofs_avg_fields'; amount?: Maybe; }; /** Boolean expression to filter rows from the table "pussy_gift_proofs". All fields are combined with a logical 'AND'. */ -export type PussyGiftProofsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - address?: InputMaybe; - amount?: InputMaybe; - details?: InputMaybe; - proof?: InputMaybe; +export type Pussy_Gift_Proofs_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; }; /** aggregate max on columns */ -export type PussyGiftProofsMaxFields = { +export type Pussy_Gift_Proofs_Max_Fields = { __typename?: 'pussy_gift_proofs_max_fields'; address?: Maybe; amount?: Maybe; @@ -5518,7 +5518,7 @@ export type PussyGiftProofsMaxFields = { }; /** aggregate min on columns */ -export type PussyGiftProofsMinFields = { +export type Pussy_Gift_Proofs_Min_Fields = { __typename?: 'pussy_gift_proofs_min_fields'; address?: Maybe; amount?: Maybe; @@ -5527,15 +5527,15 @@ export type PussyGiftProofsMinFields = { }; /** Ordering options when selecting data from "pussy_gift_proofs". */ -export type PussyGiftProofsOrderBy = { - address?: InputMaybe; - amount?: InputMaybe; - details?: InputMaybe; - proof?: InputMaybe; +export type Pussy_Gift_Proofs_Order_By = { + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; }; /** select columns of table "pussy_gift_proofs" */ -export enum PussyGiftProofsSelectColumn { +export enum Pussy_Gift_Proofs_Select_Column { /** column name */ Address = 'address', /** column name */ @@ -5547,1165 +5547,1165 @@ export enum PussyGiftProofsSelectColumn { } /** aggregate stddev on columns */ -export type PussyGiftProofsStddevFields = { +export type Pussy_Gift_Proofs_Stddev_Fields = { __typename?: 'pussy_gift_proofs_stddev_fields'; amount?: Maybe; }; /** aggregate stddev_pop on columns */ -export type PussyGiftProofsStddevPopFields = { +export type Pussy_Gift_Proofs_Stddev_Pop_Fields = { __typename?: 'pussy_gift_proofs_stddev_pop_fields'; amount?: Maybe; }; /** aggregate stddev_samp on columns */ -export type PussyGiftProofsStddevSampFields = { +export type Pussy_Gift_Proofs_Stddev_Samp_Fields = { __typename?: 'pussy_gift_proofs_stddev_samp_fields'; amount?: Maybe; }; /** aggregate sum on columns */ -export type PussyGiftProofsSumFields = { +export type Pussy_Gift_Proofs_Sum_Fields = { __typename?: 'pussy_gift_proofs_sum_fields'; amount?: Maybe; }; /** aggregate var_pop on columns */ -export type PussyGiftProofsVarPopFields = { +export type Pussy_Gift_Proofs_Var_Pop_Fields = { __typename?: 'pussy_gift_proofs_var_pop_fields'; amount?: Maybe; }; /** aggregate var_samp on columns */ -export type PussyGiftProofsVarSampFields = { +export type Pussy_Gift_Proofs_Var_Samp_Fields = { __typename?: 'pussy_gift_proofs_var_samp_fields'; amount?: Maybe; }; /** aggregate variance on columns */ -export type PussyGiftProofsVarianceFields = { +export type Pussy_Gift_Proofs_Variance_Fields = { __typename?: 'pussy_gift_proofs_variance_fields'; amount?: Maybe; }; -export type QueryRoot = { +export type Query_Root = { __typename?: 'query_root'; /** fetch data from the table: "_transaction" */ - _transaction: Array; + _transaction: Array<_Transaction>; /** fetch aggregated fields from the table: "_transaction" */ - _transaction_aggregate: TransactionAggregate; + _transaction_aggregate: _Transaction_Aggregate; /** fetch data from the table: "_uptime_temp" */ - _uptime_temp: Array; + _uptime_temp: Array<_Uptime_Temp>; /** fetch aggregated fields from the table: "_uptime_temp" */ - _uptime_temp_aggregate: UptimeTempAggregate; + _uptime_temp_aggregate: _Uptime_Temp_Aggregate; /** fetch data from the table: "account" */ account: Array; /** fetch aggregated fields from the table: "account" */ - account_aggregate: AccountAggregate; + account_aggregate: Account_Aggregate; /** fetch data from the table: "account_balance" */ - account_balance: Array; + account_balance: Array; /** fetch aggregated fields from the table: "account_balance" */ - account_balance_aggregate: AccountBalanceAggregate; + account_balance_aggregate: Account_Balance_Aggregate; /** fetch data from the table: "account_balance" using primary key columns */ - account_balance_by_pk?: Maybe; + account_balance_by_pk?: Maybe; /** fetch data from the table: "account" using primary key columns */ account_by_pk?: Maybe; /** fetch data from the table: "block" */ block: Array; /** fetch aggregated fields from the table: "block" */ - block_aggregate: BlockAggregate; + block_aggregate: Block_Aggregate; /** fetch data from the table: "block" using primary key columns */ block_by_pk?: Maybe; /** fetch data from the table: "contracts" */ contracts: Array; /** fetch aggregated fields from the table: "contracts" */ - contracts_aggregate: ContractsAggregate; + contracts_aggregate: Contracts_Aggregate; /** fetch data from the table: "contracts" using primary key columns */ contracts_by_pk?: Maybe; /** fetch data from the table: "cyb_cohort" */ - cyb_cohort: Array; + cyb_cohort: Array; /** fetch aggregated fields from the table: "cyb_cohort" */ - cyb_cohort_aggregate: CybCohortAggregate; + cyb_cohort_aggregate: Cyb_Cohort_Aggregate; /** fetch data from the table: "cyb_new_cohort" */ - cyb_new_cohort: Array; + cyb_new_cohort: Array; /** fetch aggregated fields from the table: "cyb_new_cohort" */ - cyb_new_cohort_aggregate: CybNewCohortAggregate; + cyb_new_cohort_aggregate: Cyb_New_Cohort_Aggregate; /** fetch data from the table: "cyber_gift" */ - cyber_gift: Array; + cyber_gift: Array; /** fetch aggregated fields from the table: "cyber_gift" */ - cyber_gift_aggregate: CyberGiftAggregate; + cyber_gift_aggregate: Cyber_Gift_Aggregate; /** fetch data from the table: "cyber_gift_proofs" */ - cyber_gift_proofs: Array; + cyber_gift_proofs: Array; /** fetch aggregated fields from the table: "cyber_gift_proofs" */ - cyber_gift_proofs_aggregate: CyberGiftProofsAggregate; + cyber_gift_proofs_aggregate: Cyber_Gift_Proofs_Aggregate; /** fetch data from the table: "cyberlinks" */ cyberlinks: Array; /** An aggregate relationship */ - cyberlinks_aggregate: CyberlinksAggregate; + cyberlinks_aggregate: Cyberlinks_Aggregate; /** fetch data from the table: "cyberlinks" using primary key columns */ cyberlinks_by_pk?: Maybe; /** fetch data from the table: "cyberlinks_stats" */ - cyberlinks_stats: Array; + cyberlinks_stats: Array; /** fetch aggregated fields from the table: "cyberlinks_stats" */ - cyberlinks_stats_aggregate: CyberlinksStatsAggregate; + cyberlinks_stats_aggregate: Cyberlinks_Stats_Aggregate; /** fetch data from the table: "daily_amount_of_active_neurons" */ - daily_amount_of_active_neurons: Array; + daily_amount_of_active_neurons: Array; /** fetch aggregated fields from the table: "daily_amount_of_active_neurons" */ - daily_amount_of_active_neurons_aggregate: DailyAmountOfActiveNeuronsAggregate; + daily_amount_of_active_neurons_aggregate: Daily_Amount_Of_Active_Neurons_Aggregate; /** fetch data from the table: "daily_amount_of_used_gas" */ - daily_amount_of_used_gas: Array; + daily_amount_of_used_gas: Array; /** fetch aggregated fields from the table: "daily_amount_of_used_gas" */ - daily_amount_of_used_gas_aggregate: DailyAmountOfUsedGasAggregate; + daily_amount_of_used_gas_aggregate: Daily_Amount_Of_Used_Gas_Aggregate; /** fetch data from the table: "daily_number_of_transactions" */ - daily_number_of_transactions: Array; + daily_number_of_transactions: Array; /** fetch aggregated fields from the table: "daily_number_of_transactions" */ - daily_number_of_transactions_aggregate: DailyNumberOfTransactionsAggregate; + daily_number_of_transactions_aggregate: Daily_Number_Of_Transactions_Aggregate; /** fetch data from the table: "follow_stats" */ - follow_stats: Array; + follow_stats: Array; /** fetch aggregated fields from the table: "follow_stats" */ - follow_stats_aggregate: FollowStatsAggregate; + follow_stats_aggregate: Follow_Stats_Aggregate; /** fetch data from the table: "genesis_neurons_activation" */ - genesis_neurons_activation: Array; + genesis_neurons_activation: Array; /** fetch aggregated fields from the table: "genesis_neurons_activation" */ - genesis_neurons_activation_aggregate: GenesisNeuronsActivationAggregate; + genesis_neurons_activation_aggregate: Genesis_Neurons_Activation_Aggregate; /** An array relationship */ investmints: Array; /** An aggregate relationship */ - investmints_aggregate: InvestmintsAggregate; + investmints_aggregate: Investmints_Aggregate; /** fetch data from the table: "investmints" using primary key columns */ investmints_by_pk?: Maybe; /** fetch data from the table: "message" */ message: Array; /** fetch aggregated fields from the table: "message" */ - message_aggregate: MessageAggregate; + message_aggregate: Message_Aggregate; /** execute function "messages_by_address" which returns "message" */ messages_by_address: Array; /** execute function "messages_by_address" and query aggregates on result of table type "message" */ - messages_by_address_aggregate: MessageAggregate; + messages_by_address_aggregate: Message_Aggregate; /** fetch data from the table: "modules" */ modules: Array; /** fetch aggregated fields from the table: "modules" */ - modules_aggregate: ModulesAggregate; + modules_aggregate: Modules_Aggregate; /** fetch data from the table: "modules" using primary key columns */ modules_by_pk?: Maybe; /** fetch data from the table: "neuron_activation_source" */ - neuron_activation_source: Array; + neuron_activation_source: Array; /** fetch aggregated fields from the table: "neuron_activation_source" */ - neuron_activation_source_aggregate: NeuronActivationSourceAggregate; + neuron_activation_source_aggregate: Neuron_Activation_Source_Aggregate; /** fetch data from the table: "number_of_new_neurons" */ - number_of_new_neurons: Array; + number_of_new_neurons: Array; /** fetch aggregated fields from the table: "number_of_new_neurons" */ - number_of_new_neurons_aggregate: NumberOfNewNeuronsAggregate; + number_of_new_neurons_aggregate: Number_Of_New_Neurons_Aggregate; /** fetch data from the table: "old_precommits" */ - old_precommits: Array; + old_precommits: Array; /** fetch aggregated fields from the table: "old_precommits" */ - old_precommits_aggregate: OldPrecommitsAggregate; + old_precommits_aggregate: Old_Precommits_Aggregate; /** fetch data from the table: "old_precommits" using primary key columns */ - old_precommits_by_pk?: Maybe; + old_precommits_by_pk?: Maybe; /** An array relationship */ particles: Array; /** An aggregate relationship */ - particles_aggregate: ParticlesAggregate; + particles_aggregate: Particles_Aggregate; /** fetch data from the table: "particles" using primary key columns */ particles_by_pk?: Maybe; /** fetch data from the table: "pre_commit" */ - pre_commit: Array; + pre_commit: Array; /** fetch aggregated fields from the table: "pre_commit" */ - pre_commit_aggregate: PreCommitAggregate; + pre_commit_aggregate: Pre_Commit_Aggregate; /** fetch data from the table: "pre_commits_rewards_view" */ - pre_commits_rewards_view: Array; + pre_commits_rewards_view: Array; /** fetch aggregated fields from the table: "pre_commits_rewards_view" */ - pre_commits_rewards_view_aggregate: PreCommitsRewardsViewAggregate; + pre_commits_rewards_view_aggregate: Pre_Commits_Rewards_View_Aggregate; /** fetch data from the table: "pre_commits_total" */ - pre_commits_total: Array; + pre_commits_total: Array; /** fetch aggregated fields from the table: "pre_commits_total" */ - pre_commits_total_aggregate: PreCommitsTotalAggregate; + pre_commits_total_aggregate: Pre_Commits_Total_Aggregate; /** fetch data from the table: "pre_commits_view" */ - pre_commits_view: Array; + pre_commits_view: Array; /** fetch aggregated fields from the table: "pre_commits_view" */ - pre_commits_view_aggregate: PreCommitsViewAggregate; + pre_commits_view_aggregate: Pre_Commits_View_Aggregate; /** fetch data from the table: "pruning" */ pruning: Array; /** fetch aggregated fields from the table: "pruning" */ - pruning_aggregate: PruningAggregate; + pruning_aggregate: Pruning_Aggregate; /** fetch data from the table: "pussy_gift_proofs" */ - pussy_gift_proofs: Array; + pussy_gift_proofs: Array; /** fetch aggregated fields from the table: "pussy_gift_proofs" */ - pussy_gift_proofs_aggregate: PussyGiftProofsAggregate; + pussy_gift_proofs_aggregate: Pussy_Gift_Proofs_Aggregate; /** An array relationship */ routes: Array; /** An aggregate relationship */ - routes_aggregate: RoutesAggregate; + routes_aggregate: Routes_Aggregate; /** fetch data from the table: "routes" using primary key columns */ routes_by_pk?: Maybe; /** fetch data from the table: "supply" */ supply: Array; /** fetch aggregated fields from the table: "supply" */ - supply_aggregate: SupplyAggregate; + supply_aggregate: Supply_Aggregate; /** fetch data from the table: "supply" using primary key columns */ supply_by_pk?: Maybe; /** fetch data from the table: "test_gift" */ - test_gift: Array; + test_gift: Array; /** fetch aggregated fields from the table: "test_gift" */ - test_gift_aggregate: TestGiftAggregate; + test_gift_aggregate: Test_Gift_Aggregate; /** fetch data from the table: "today_top_txs" */ - today_top_txs: Array; + today_top_txs: Array; /** fetch aggregated fields from the table: "today_top_txs" */ - today_top_txs_aggregate: TodayTopTxsAggregate; + today_top_txs_aggregate: Today_Top_Txs_Aggregate; /** fetch data from the table: "top_10_of_active_neurons_week" */ - top_10_of_active_neurons_week: Array; + top_10_of_active_neurons_week: Array; /** fetch aggregated fields from the table: "top_10_of_active_neurons_week" */ - top_10_of_active_neurons_week_aggregate: Top_10OfActiveNeuronsWeekAggregate; + top_10_of_active_neurons_week_aggregate: Top_10_Of_Active_Neurons_Week_Aggregate; /** fetch data from the table: "top_first_txs" */ - top_first_txs: Array; + top_first_txs: Array; /** fetch aggregated fields from the table: "top_first_txs" */ - top_first_txs_aggregate: TopFirstTxsAggregate; + top_first_txs_aggregate: Top_First_Txs_Aggregate; /** fetch data from the table: "top_leaders" */ - top_leaders: Array; + top_leaders: Array; /** fetch data from the table: "top_txs" */ - top_txs: Array; + top_txs: Array; /** fetch aggregated fields from the table: "top_txs" */ - top_txs_aggregate: TopTxsAggregate; + top_txs_aggregate: Top_Txs_Aggregate; /** fetch data from the table: "transaction" */ transaction: Array; /** fetch aggregated fields from the table: "transaction" */ - transaction_aggregate: TransactionAggregate; + transaction_aggregate: Transaction_Aggregate; /** fetch data from the table: "transaction" using primary key columns */ transaction_by_pk?: Maybe; /** fetch data from the table: "tweets_stats" */ - tweets_stats: Array; + tweets_stats: Array; /** fetch aggregated fields from the table: "tweets_stats" */ - tweets_stats_aggregate: TweetsStatsAggregate; + tweets_stats_aggregate: Tweets_Stats_Aggregate; /** fetch data from the table: "txs_ranked" */ - txs_ranked: Array; + txs_ranked: Array; /** fetch aggregated fields from the table: "txs_ranked" */ - txs_ranked_aggregate: TxsRankedAggregate; + txs_ranked_aggregate: Txs_Ranked_Aggregate; /** fetch data from the table: "txs_stats" */ - txs_stats: Array; + txs_stats: Array; /** fetch aggregated fields from the table: "txs_stats" */ - txs_stats_aggregate: TxsStatsAggregate; + txs_stats_aggregate: Txs_Stats_Aggregate; /** fetch data from the table: "uptime" */ uptime: Array; /** fetch aggregated fields from the table: "uptime" */ - uptime_aggregate: UptimeAggregate; + uptime_aggregate: Uptime_Aggregate; /** fetch data from the table: "validator" */ validator: Array; /** fetch aggregated fields from the table: "validator" */ - validator_aggregate: ValidatorAggregate; + validator_aggregate: Validator_Aggregate; /** fetch data from the table: "validator" using primary key columns */ validator_by_pk?: Maybe; /** fetch data from the table: "volts_demand" */ - volts_demand: Array; + volts_demand: Array; /** fetch aggregated fields from the table: "volts_demand" */ - volts_demand_aggregate: VoltsDemandAggregate; + volts_demand_aggregate: Volts_Demand_Aggregate; /** fetch data from the table: "volts_stats" */ - volts_stats: Array; + volts_stats: Array; /** fetch aggregated fields from the table: "volts_stats" */ - volts_stats_aggregate: VoltsStatsAggregate; + volts_stats_aggregate: Volts_Stats_Aggregate; }; -export type QueryRootTransactionArgs = { - distinct_on?: InputMaybe>; +export type Query_Root_TransactionArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe<_Transaction_Bool_Exp>; }; -export type QueryRootTransactionAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_Root_Transaction_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe<_Transaction_Bool_Exp>; }; -export type QueryRootUptimeTempArgs = { - distinct_on?: InputMaybe>; +export type Query_Root_Uptime_TempArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe<_Uptime_Temp_Bool_Exp>; }; -export type QueryRootUptimeTempAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_Root_Uptime_Temp_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe<_Uptime_Temp_Bool_Exp>; }; -export type QueryRootAccountArgs = { - distinct_on?: InputMaybe>; +export type Query_RootAccountArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootAccountAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootAccount_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootAccountBalanceArgs = { - distinct_on?: InputMaybe>; +export type Query_RootAccount_BalanceArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootAccountBalanceAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootAccount_Balance_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootAccountBalanceByPkArgs = { +export type Query_RootAccount_Balance_By_PkArgs = { address: Scalars['String']['input']; }; -export type QueryRootAccountByPkArgs = { +export type Query_RootAccount_By_PkArgs = { address: Scalars['String']['input']; }; -export type QueryRootBlockArgs = { - distinct_on?: InputMaybe>; +export type Query_RootBlockArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootBlockAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootBlock_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootBlockByPkArgs = { +export type Query_RootBlock_By_PkArgs = { height: Scalars['bigint']['input']; }; -export type QueryRootContractsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootContractsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootContractsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootContracts_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootContractsByPkArgs = { +export type Query_RootContracts_By_PkArgs = { address: Scalars['String']['input']; }; -export type QueryRootCybCohortArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyb_CohortArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCybCohortAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyb_Cohort_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCybNewCohortArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyb_New_CohortArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCybNewCohortAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyb_New_Cohort_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCyberGiftArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyber_GiftArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCyberGiftAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyber_Gift_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCyberGiftProofsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyber_Gift_ProofsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCyberGiftProofsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyber_Gift_Proofs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCyberlinksArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyberlinksArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCyberlinksAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyberlinks_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCyberlinksByPkArgs = { +export type Query_RootCyberlinks_By_PkArgs = { id: Scalars['Int']['input']; }; -export type QueryRootCyberlinksStatsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyberlinks_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootCyberlinksStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootCyberlinks_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootDailyAmountOfActiveNeuronsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootDaily_Amount_Of_Active_NeuronsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootDailyAmountOfActiveNeuronsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootDaily_Amount_Of_Active_Neurons_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootDailyAmountOfUsedGasArgs = { - distinct_on?: InputMaybe>; +export type Query_RootDaily_Amount_Of_Used_GasArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootDailyAmountOfUsedGasAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootDaily_Amount_Of_Used_Gas_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootDailyNumberOfTransactionsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootDaily_Number_Of_TransactionsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootDailyNumberOfTransactionsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootDaily_Number_Of_Transactions_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootFollowStatsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootFollow_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootFollowStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootFollow_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootGenesisNeuronsActivationArgs = { - distinct_on?: InputMaybe>; +export type Query_RootGenesis_Neurons_ActivationArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootGenesisNeuronsActivationAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootGenesis_Neurons_Activation_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootInvestmintsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootInvestmintsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootInvestmintsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootInvestmints_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootInvestmintsByPkArgs = { +export type Query_RootInvestmints_By_PkArgs = { id: Scalars['Int']['input']; }; -export type QueryRootMessageArgs = { - distinct_on?: InputMaybe>; +export type Query_RootMessageArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootMessageAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootMessage_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootMessagesByAddressArgs = { - args: MessagesByAddressArgs; - distinct_on?: InputMaybe>; +export type Query_RootMessages_By_AddressArgs = { + args: Messages_By_Address_Args; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootMessagesByAddressAggregateArgs = { - args: MessagesByAddressArgs; - distinct_on?: InputMaybe>; +export type Query_RootMessages_By_Address_AggregateArgs = { + args: Messages_By_Address_Args; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootModulesArgs = { - distinct_on?: InputMaybe>; +export type Query_RootModulesArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootModulesAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootModules_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootModulesByPkArgs = { +export type Query_RootModules_By_PkArgs = { module_name: Scalars['String']['input']; }; -export type QueryRootNeuronActivationSourceArgs = { - distinct_on?: InputMaybe>; +export type Query_RootNeuron_Activation_SourceArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootNeuronActivationSourceAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootNeuron_Activation_Source_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootNumberOfNewNeuronsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootNumber_Of_New_NeuronsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootNumberOfNewNeuronsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootNumber_Of_New_Neurons_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootOldPrecommitsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootOld_PrecommitsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootOldPrecommitsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootOld_Precommits_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootOldPrecommitsByPkArgs = { +export type Query_RootOld_Precommits_By_PkArgs = { consensus_address: Scalars['String']['input']; }; -export type QueryRootParticlesArgs = { - distinct_on?: InputMaybe>; +export type Query_RootParticlesArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootParticlesAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootParticles_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootParticlesByPkArgs = { +export type Query_RootParticles_By_PkArgs = { id: Scalars['Int']['input']; }; -export type QueryRootPreCommitArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPre_CommitArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPreCommitAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPre_Commit_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPreCommitsRewardsViewArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPre_Commits_Rewards_ViewArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPreCommitsRewardsViewAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPre_Commits_Rewards_View_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPreCommitsTotalArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPre_Commits_TotalArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPreCommitsTotalAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPre_Commits_Total_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPreCommitsViewArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPre_Commits_ViewArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPreCommitsViewAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPre_Commits_View_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPruningArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPruningArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPruningAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPruning_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPussyGiftProofsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPussy_Gift_ProofsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootPussyGiftProofsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootPussy_Gift_Proofs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootRoutesArgs = { - distinct_on?: InputMaybe>; +export type Query_RootRoutesArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootRoutesAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootRoutes_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootRoutesByPkArgs = { +export type Query_RootRoutes_By_PkArgs = { id: Scalars['Int']['input']; }; -export type QueryRootSupplyArgs = { - distinct_on?: InputMaybe>; +export type Query_RootSupplyArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootSupplyAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootSupply_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootSupplyByPkArgs = { +export type Query_RootSupply_By_PkArgs = { one_row_id: Scalars['Boolean']['input']; }; -export type QueryRootTestGiftArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTest_GiftArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTestGiftAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTest_Gift_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTodayTopTxsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootToday_Top_TxsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTodayTopTxsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootToday_Top_Txs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTop_10OfActiveNeuronsWeekArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTop_10_Of_Active_Neurons_WeekArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTop_10OfActiveNeuronsWeekAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTop_10_Of_Active_Neurons_Week_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTopFirstTxsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTop_First_TxsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTopFirstTxsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTop_First_Txs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTopLeadersArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTop_LeadersArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTopTxsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTop_TxsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTopTxsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTop_Txs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTransactionArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTransactionArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTransactionAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTransaction_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTransactionByPkArgs = { +export type Query_RootTransaction_By_PkArgs = { hash: Scalars['String']['input']; }; -export type QueryRootTweetsStatsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTweets_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTweetsStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTweets_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTxsRankedArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTxs_RankedArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTxsRankedAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTxs_Ranked_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTxsStatsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTxs_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootTxsStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootTxs_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootUptimeArgs = { - distinct_on?: InputMaybe>; +export type Query_RootUptimeArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootUptimeAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootUptime_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootValidatorArgs = { - distinct_on?: InputMaybe>; +export type Query_RootValidatorArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootValidatorAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootValidator_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootValidatorByPkArgs = { +export type Query_RootValidator_By_PkArgs = { consensus_address: Scalars['String']['input']; }; -export type QueryRootVoltsDemandArgs = { - distinct_on?: InputMaybe>; +export type Query_RootVolts_DemandArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootVoltsDemandAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootVolts_Demand_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootVoltsStatsArgs = { - distinct_on?: InputMaybe>; +export type Query_RootVolts_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type QueryRootVoltsStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Query_RootVolts_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "routes" */ @@ -6730,84 +6730,84 @@ export type Routes = { }; /** aggregated selection of "routes" */ -export type RoutesAggregate = { +export type Routes_Aggregate = { __typename?: 'routes_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "routes" */ -export type RoutesAggregateFields = { +export type Routes_Aggregate_Fields = { __typename?: 'routes_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "routes" */ -export type RoutesAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Routes_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** order by aggregate values of table "routes" */ -export type RoutesAggregateOrderBy = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; +export type Routes_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; }; /** aggregate avg on columns */ -export type RoutesAvgFields = { +export type Routes_Avg_Fields = { __typename?: 'routes_avg_fields'; height?: Maybe; id?: Maybe; }; /** order by avg() on columns of table "routes" */ -export type RoutesAvgOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Routes_Avg_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** Boolean expression to filter rows from the table "routes". All fields are combined with a logical 'AND'. */ -export type RoutesBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - account?: InputMaybe; - accountBySource?: InputMaybe; - alias?: InputMaybe; - block?: InputMaybe; - destination?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - source?: InputMaybe; - timestamp?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; - value?: InputMaybe; +export type Routes_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + account?: InputMaybe; + accountBySource?: InputMaybe; + alias?: InputMaybe; + block?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + value?: InputMaybe<_Coin_Comparison_Exp>; }; /** aggregate max on columns */ -export type RoutesMaxFields = { +export type Routes_Max_Fields = { __typename?: 'routes_max_fields'; alias?: Maybe; destination?: Maybe; @@ -6819,18 +6819,18 @@ export type RoutesMaxFields = { }; /** order by max() on columns of table "routes" */ -export type RoutesMaxOrderBy = { - alias?: InputMaybe; - destination?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - source?: InputMaybe; - timestamp?: InputMaybe; - transaction_hash?: InputMaybe; +export type Routes_Max_Order_By = { + alias?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** aggregate min on columns */ -export type RoutesMinFields = { +export type Routes_Min_Fields = { __typename?: 'routes_min_fields'; alias?: Maybe; destination?: Maybe; @@ -6842,34 +6842,34 @@ export type RoutesMinFields = { }; /** order by min() on columns of table "routes" */ -export type RoutesMinOrderBy = { - alias?: InputMaybe; - destination?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - source?: InputMaybe; - timestamp?: InputMaybe; - transaction_hash?: InputMaybe; +export type Routes_Min_Order_By = { + alias?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction_hash?: InputMaybe; }; /** Ordering options when selecting data from "routes". */ -export type RoutesOrderBy = { - account?: InputMaybe; - accountBySource?: InputMaybe; - alias?: InputMaybe; - block?: InputMaybe; - destination?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - source?: InputMaybe; - timestamp?: InputMaybe; - transaction?: InputMaybe; - transaction_hash?: InputMaybe; - value?: InputMaybe; +export type Routes_Order_By = { + account?: InputMaybe; + accountBySource?: InputMaybe; + alias?: InputMaybe; + block?: InputMaybe; + destination?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + source?: InputMaybe; + timestamp?: InputMaybe; + transaction?: InputMaybe; + transaction_hash?: InputMaybe; + value?: InputMaybe; }; /** select columns of table "routes" */ -export enum RoutesSelectColumn { +export enum Routes_Select_Column { /** column name */ Alias = 'alias', /** column name */ @@ -6889,1214 +6889,1214 @@ export enum RoutesSelectColumn { } /** aggregate stddev on columns */ -export type RoutesStddevFields = { +export type Routes_Stddev_Fields = { __typename?: 'routes_stddev_fields'; height?: Maybe; id?: Maybe; }; /** order by stddev() on columns of table "routes" */ -export type RoutesStddevOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Routes_Stddev_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate stddev_pop on columns */ -export type RoutesStddevPopFields = { +export type Routes_Stddev_Pop_Fields = { __typename?: 'routes_stddev_pop_fields'; height?: Maybe; id?: Maybe; }; /** order by stddev_pop() on columns of table "routes" */ -export type RoutesStddevPopOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Routes_Stddev_Pop_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate stddev_samp on columns */ -export type RoutesStddevSampFields = { +export type Routes_Stddev_Samp_Fields = { __typename?: 'routes_stddev_samp_fields'; height?: Maybe; id?: Maybe; }; /** order by stddev_samp() on columns of table "routes" */ -export type RoutesStddevSampOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Routes_Stddev_Samp_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate sum on columns */ -export type RoutesSumFields = { +export type Routes_Sum_Fields = { __typename?: 'routes_sum_fields'; height?: Maybe; id?: Maybe; }; /** order by sum() on columns of table "routes" */ -export type RoutesSumOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Routes_Sum_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate var_pop on columns */ -export type RoutesVarPopFields = { +export type Routes_Var_Pop_Fields = { __typename?: 'routes_var_pop_fields'; height?: Maybe; id?: Maybe; }; /** order by var_pop() on columns of table "routes" */ -export type RoutesVarPopOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Routes_Var_Pop_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate var_samp on columns */ -export type RoutesVarSampFields = { +export type Routes_Var_Samp_Fields = { __typename?: 'routes_var_samp_fields'; height?: Maybe; id?: Maybe; }; /** order by var_samp() on columns of table "routes" */ -export type RoutesVarSampOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Routes_Var_Samp_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; /** aggregate variance on columns */ -export type RoutesVarianceFields = { +export type Routes_Variance_Fields = { __typename?: 'routes_variance_fields'; height?: Maybe; id?: Maybe; }; /** order by variance() on columns of table "routes" */ -export type RoutesVarianceOrderBy = { - height?: InputMaybe; - id?: InputMaybe; +export type Routes_Variance_Order_By = { + height?: InputMaybe; + id?: InputMaybe; }; -export type SubscriptionRoot = { +export type Subscription_Root = { __typename?: 'subscription_root'; /** fetch data from the table: "_transaction" */ - _transaction: Array; + _transaction: Array<_Transaction>; /** fetch aggregated fields from the table: "_transaction" */ - _transaction_aggregate: TransactionAggregate; + _transaction_aggregate: _Transaction_Aggregate; /** fetch data from the table: "_uptime_temp" */ - _uptime_temp: Array; + _uptime_temp: Array<_Uptime_Temp>; /** fetch aggregated fields from the table: "_uptime_temp" */ - _uptime_temp_aggregate: UptimeTempAggregate; + _uptime_temp_aggregate: _Uptime_Temp_Aggregate; /** fetch data from the table: "account" */ account: Array; /** fetch aggregated fields from the table: "account" */ - account_aggregate: AccountAggregate; + account_aggregate: Account_Aggregate; /** fetch data from the table: "account_balance" */ - account_balance: Array; + account_balance: Array; /** fetch aggregated fields from the table: "account_balance" */ - account_balance_aggregate: AccountBalanceAggregate; + account_balance_aggregate: Account_Balance_Aggregate; /** fetch data from the table: "account_balance" using primary key columns */ - account_balance_by_pk?: Maybe; + account_balance_by_pk?: Maybe; /** fetch data from the table: "account" using primary key columns */ account_by_pk?: Maybe; /** fetch data from the table: "block" */ block: Array; /** fetch aggregated fields from the table: "block" */ - block_aggregate: BlockAggregate; + block_aggregate: Block_Aggregate; /** fetch data from the table: "block" using primary key columns */ block_by_pk?: Maybe; /** fetch data from the table: "contracts" */ contracts: Array; /** fetch aggregated fields from the table: "contracts" */ - contracts_aggregate: ContractsAggregate; + contracts_aggregate: Contracts_Aggregate; /** fetch data from the table: "contracts" using primary key columns */ contracts_by_pk?: Maybe; /** fetch data from the table: "cyb_cohort" */ - cyb_cohort: Array; + cyb_cohort: Array; /** fetch aggregated fields from the table: "cyb_cohort" */ - cyb_cohort_aggregate: CybCohortAggregate; + cyb_cohort_aggregate: Cyb_Cohort_Aggregate; /** fetch data from the table: "cyb_new_cohort" */ - cyb_new_cohort: Array; + cyb_new_cohort: Array; /** fetch aggregated fields from the table: "cyb_new_cohort" */ - cyb_new_cohort_aggregate: CybNewCohortAggregate; + cyb_new_cohort_aggregate: Cyb_New_Cohort_Aggregate; /** fetch data from the table: "cyber_gift" */ - cyber_gift: Array; + cyber_gift: Array; /** fetch aggregated fields from the table: "cyber_gift" */ - cyber_gift_aggregate: CyberGiftAggregate; + cyber_gift_aggregate: Cyber_Gift_Aggregate; /** fetch data from the table: "cyber_gift_proofs" */ - cyber_gift_proofs: Array; + cyber_gift_proofs: Array; /** fetch aggregated fields from the table: "cyber_gift_proofs" */ - cyber_gift_proofs_aggregate: CyberGiftProofsAggregate; + cyber_gift_proofs_aggregate: Cyber_Gift_Proofs_Aggregate; /** fetch data from the table: "cyberlinks" */ cyberlinks: Array; /** An aggregate relationship */ - cyberlinks_aggregate: CyberlinksAggregate; + cyberlinks_aggregate: Cyberlinks_Aggregate; /** fetch data from the table: "cyberlinks" using primary key columns */ cyberlinks_by_pk?: Maybe; /** fetch data from the table: "cyberlinks_stats" */ - cyberlinks_stats: Array; + cyberlinks_stats: Array; /** fetch aggregated fields from the table: "cyberlinks_stats" */ - cyberlinks_stats_aggregate: CyberlinksStatsAggregate; + cyberlinks_stats_aggregate: Cyberlinks_Stats_Aggregate; /** fetch data from the table: "daily_amount_of_active_neurons" */ - daily_amount_of_active_neurons: Array; + daily_amount_of_active_neurons: Array; /** fetch aggregated fields from the table: "daily_amount_of_active_neurons" */ - daily_amount_of_active_neurons_aggregate: DailyAmountOfActiveNeuronsAggregate; + daily_amount_of_active_neurons_aggregate: Daily_Amount_Of_Active_Neurons_Aggregate; /** fetch data from the table: "daily_amount_of_used_gas" */ - daily_amount_of_used_gas: Array; + daily_amount_of_used_gas: Array; /** fetch aggregated fields from the table: "daily_amount_of_used_gas" */ - daily_amount_of_used_gas_aggregate: DailyAmountOfUsedGasAggregate; + daily_amount_of_used_gas_aggregate: Daily_Amount_Of_Used_Gas_Aggregate; /** fetch data from the table: "daily_number_of_transactions" */ - daily_number_of_transactions: Array; + daily_number_of_transactions: Array; /** fetch aggregated fields from the table: "daily_number_of_transactions" */ - daily_number_of_transactions_aggregate: DailyNumberOfTransactionsAggregate; + daily_number_of_transactions_aggregate: Daily_Number_Of_Transactions_Aggregate; /** fetch data from the table: "follow_stats" */ - follow_stats: Array; + follow_stats: Array; /** fetch aggregated fields from the table: "follow_stats" */ - follow_stats_aggregate: FollowStatsAggregate; + follow_stats_aggregate: Follow_Stats_Aggregate; /** fetch data from the table: "genesis_neurons_activation" */ - genesis_neurons_activation: Array; + genesis_neurons_activation: Array; /** fetch aggregated fields from the table: "genesis_neurons_activation" */ - genesis_neurons_activation_aggregate: GenesisNeuronsActivationAggregate; + genesis_neurons_activation_aggregate: Genesis_Neurons_Activation_Aggregate; /** An array relationship */ investmints: Array; /** An aggregate relationship */ - investmints_aggregate: InvestmintsAggregate; + investmints_aggregate: Investmints_Aggregate; /** fetch data from the table: "investmints" using primary key columns */ investmints_by_pk?: Maybe; /** fetch data from the table: "message" */ message: Array; /** fetch aggregated fields from the table: "message" */ - message_aggregate: MessageAggregate; + message_aggregate: Message_Aggregate; /** execute function "messages_by_address" which returns "message" */ messages_by_address: Array; /** execute function "messages_by_address" and query aggregates on result of table type "message" */ - messages_by_address_aggregate: MessageAggregate; + messages_by_address_aggregate: Message_Aggregate; /** fetch data from the table: "modules" */ modules: Array; /** fetch aggregated fields from the table: "modules" */ - modules_aggregate: ModulesAggregate; + modules_aggregate: Modules_Aggregate; /** fetch data from the table: "modules" using primary key columns */ modules_by_pk?: Maybe; /** fetch data from the table: "neuron_activation_source" */ - neuron_activation_source: Array; + neuron_activation_source: Array; /** fetch aggregated fields from the table: "neuron_activation_source" */ - neuron_activation_source_aggregate: NeuronActivationSourceAggregate; + neuron_activation_source_aggregate: Neuron_Activation_Source_Aggregate; /** fetch data from the table: "number_of_new_neurons" */ - number_of_new_neurons: Array; + number_of_new_neurons: Array; /** fetch aggregated fields from the table: "number_of_new_neurons" */ - number_of_new_neurons_aggregate: NumberOfNewNeuronsAggregate; + number_of_new_neurons_aggregate: Number_Of_New_Neurons_Aggregate; /** fetch data from the table: "old_precommits" */ - old_precommits: Array; + old_precommits: Array; /** fetch aggregated fields from the table: "old_precommits" */ - old_precommits_aggregate: OldPrecommitsAggregate; + old_precommits_aggregate: Old_Precommits_Aggregate; /** fetch data from the table: "old_precommits" using primary key columns */ - old_precommits_by_pk?: Maybe; + old_precommits_by_pk?: Maybe; /** An array relationship */ particles: Array; /** An aggregate relationship */ - particles_aggregate: ParticlesAggregate; + particles_aggregate: Particles_Aggregate; /** fetch data from the table: "particles" using primary key columns */ particles_by_pk?: Maybe; /** fetch data from the table: "pre_commit" */ - pre_commit: Array; + pre_commit: Array; /** fetch aggregated fields from the table: "pre_commit" */ - pre_commit_aggregate: PreCommitAggregate; + pre_commit_aggregate: Pre_Commit_Aggregate; /** fetch data from the table: "pre_commits_rewards_view" */ - pre_commits_rewards_view: Array; + pre_commits_rewards_view: Array; /** fetch aggregated fields from the table: "pre_commits_rewards_view" */ - pre_commits_rewards_view_aggregate: PreCommitsRewardsViewAggregate; + pre_commits_rewards_view_aggregate: Pre_Commits_Rewards_View_Aggregate; /** fetch data from the table: "pre_commits_total" */ - pre_commits_total: Array; + pre_commits_total: Array; /** fetch aggregated fields from the table: "pre_commits_total" */ - pre_commits_total_aggregate: PreCommitsTotalAggregate; + pre_commits_total_aggregate: Pre_Commits_Total_Aggregate; /** fetch data from the table: "pre_commits_view" */ - pre_commits_view: Array; + pre_commits_view: Array; /** fetch aggregated fields from the table: "pre_commits_view" */ - pre_commits_view_aggregate: PreCommitsViewAggregate; + pre_commits_view_aggregate: Pre_Commits_View_Aggregate; /** fetch data from the table: "pruning" */ pruning: Array; /** fetch aggregated fields from the table: "pruning" */ - pruning_aggregate: PruningAggregate; + pruning_aggregate: Pruning_Aggregate; /** fetch data from the table: "pussy_gift_proofs" */ - pussy_gift_proofs: Array; + pussy_gift_proofs: Array; /** fetch aggregated fields from the table: "pussy_gift_proofs" */ - pussy_gift_proofs_aggregate: PussyGiftProofsAggregate; + pussy_gift_proofs_aggregate: Pussy_Gift_Proofs_Aggregate; /** An array relationship */ routes: Array; /** An aggregate relationship */ - routes_aggregate: RoutesAggregate; + routes_aggregate: Routes_Aggregate; /** fetch data from the table: "routes" using primary key columns */ routes_by_pk?: Maybe; /** fetch data from the table: "supply" */ supply: Array; /** fetch aggregated fields from the table: "supply" */ - supply_aggregate: SupplyAggregate; + supply_aggregate: Supply_Aggregate; /** fetch data from the table: "supply" using primary key columns */ supply_by_pk?: Maybe; /** fetch data from the table: "test_gift" */ - test_gift: Array; + test_gift: Array; /** fetch aggregated fields from the table: "test_gift" */ - test_gift_aggregate: TestGiftAggregate; + test_gift_aggregate: Test_Gift_Aggregate; /** fetch data from the table: "today_top_txs" */ - today_top_txs: Array; + today_top_txs: Array; /** fetch aggregated fields from the table: "today_top_txs" */ - today_top_txs_aggregate: TodayTopTxsAggregate; + today_top_txs_aggregate: Today_Top_Txs_Aggregate; /** fetch data from the table: "top_10_of_active_neurons_week" */ - top_10_of_active_neurons_week: Array; + top_10_of_active_neurons_week: Array; /** fetch aggregated fields from the table: "top_10_of_active_neurons_week" */ - top_10_of_active_neurons_week_aggregate: Top_10OfActiveNeuronsWeekAggregate; + top_10_of_active_neurons_week_aggregate: Top_10_Of_Active_Neurons_Week_Aggregate; /** fetch data from the table: "top_first_txs" */ - top_first_txs: Array; + top_first_txs: Array; /** fetch aggregated fields from the table: "top_first_txs" */ - top_first_txs_aggregate: TopFirstTxsAggregate; + top_first_txs_aggregate: Top_First_Txs_Aggregate; /** fetch data from the table: "top_leaders" */ - top_leaders: Array; + top_leaders: Array; /** fetch data from the table: "top_txs" */ - top_txs: Array; + top_txs: Array; /** fetch aggregated fields from the table: "top_txs" */ - top_txs_aggregate: TopTxsAggregate; + top_txs_aggregate: Top_Txs_Aggregate; /** fetch data from the table: "transaction" */ transaction: Array; /** fetch aggregated fields from the table: "transaction" */ - transaction_aggregate: TransactionAggregate; + transaction_aggregate: Transaction_Aggregate; /** fetch data from the table: "transaction" using primary key columns */ transaction_by_pk?: Maybe; /** fetch data from the table: "tweets_stats" */ - tweets_stats: Array; + tweets_stats: Array; /** fetch aggregated fields from the table: "tweets_stats" */ - tweets_stats_aggregate: TweetsStatsAggregate; + tweets_stats_aggregate: Tweets_Stats_Aggregate; /** fetch data from the table: "txs_ranked" */ - txs_ranked: Array; + txs_ranked: Array; /** fetch aggregated fields from the table: "txs_ranked" */ - txs_ranked_aggregate: TxsRankedAggregate; + txs_ranked_aggregate: Txs_Ranked_Aggregate; /** fetch data from the table: "txs_stats" */ - txs_stats: Array; + txs_stats: Array; /** fetch aggregated fields from the table: "txs_stats" */ - txs_stats_aggregate: TxsStatsAggregate; + txs_stats_aggregate: Txs_Stats_Aggregate; /** fetch data from the table: "uptime" */ uptime: Array; /** fetch aggregated fields from the table: "uptime" */ - uptime_aggregate: UptimeAggregate; + uptime_aggregate: Uptime_Aggregate; /** fetch data from the table: "validator" */ validator: Array; /** fetch aggregated fields from the table: "validator" */ - validator_aggregate: ValidatorAggregate; + validator_aggregate: Validator_Aggregate; /** fetch data from the table: "validator" using primary key columns */ validator_by_pk?: Maybe; /** fetch data from the table: "volts_demand" */ - volts_demand: Array; + volts_demand: Array; /** fetch aggregated fields from the table: "volts_demand" */ - volts_demand_aggregate: VoltsDemandAggregate; + volts_demand_aggregate: Volts_Demand_Aggregate; /** fetch data from the table: "volts_stats" */ - volts_stats: Array; + volts_stats: Array; /** fetch aggregated fields from the table: "volts_stats" */ - volts_stats_aggregate: VoltsStatsAggregate; + volts_stats_aggregate: Volts_Stats_Aggregate; }; -export type SubscriptionRootTransactionArgs = { - distinct_on?: InputMaybe>; +export type Subscription_Root_TransactionArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe<_Transaction_Bool_Exp>; }; -export type SubscriptionRootTransactionAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_Root_Transaction_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe<_Transaction_Bool_Exp>; }; -export type SubscriptionRootUptimeTempArgs = { - distinct_on?: InputMaybe>; +export type Subscription_Root_Uptime_TempArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe<_Uptime_Temp_Bool_Exp>; }; -export type SubscriptionRootUptimeTempAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_Root_Uptime_Temp_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe<_Uptime_Temp_Bool_Exp>; }; -export type SubscriptionRootAccountArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootAccountArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootAccountAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootAccount_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootAccountBalanceArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootAccount_BalanceArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootAccountBalanceAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootAccount_Balance_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootAccountBalanceByPkArgs = { +export type Subscription_RootAccount_Balance_By_PkArgs = { address: Scalars['String']['input']; }; -export type SubscriptionRootAccountByPkArgs = { +export type Subscription_RootAccount_By_PkArgs = { address: Scalars['String']['input']; }; -export type SubscriptionRootBlockArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootBlockArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootBlockAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootBlock_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootBlockByPkArgs = { +export type Subscription_RootBlock_By_PkArgs = { height: Scalars['bigint']['input']; }; -export type SubscriptionRootContractsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootContractsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootContractsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootContracts_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootContractsByPkArgs = { +export type Subscription_RootContracts_By_PkArgs = { address: Scalars['String']['input']; }; -export type SubscriptionRootCybCohortArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyb_CohortArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCybCohortAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyb_Cohort_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCybNewCohortArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyb_New_CohortArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCybNewCohortAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyb_New_Cohort_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCyberGiftArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyber_GiftArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCyberGiftAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyber_Gift_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCyberGiftProofsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyber_Gift_ProofsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCyberGiftProofsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyber_Gift_Proofs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCyberlinksArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyberlinksArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCyberlinksAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyberlinks_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCyberlinksByPkArgs = { +export type Subscription_RootCyberlinks_By_PkArgs = { id: Scalars['Int']['input']; }; -export type SubscriptionRootCyberlinksStatsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyberlinks_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootCyberlinksStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootCyberlinks_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootDailyAmountOfActiveNeuronsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootDaily_Amount_Of_Active_NeuronsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootDailyAmountOfActiveNeuronsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootDaily_Amount_Of_Active_Neurons_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootDailyAmountOfUsedGasArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootDaily_Amount_Of_Used_GasArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootDailyAmountOfUsedGasAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootDaily_Amount_Of_Used_Gas_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootDailyNumberOfTransactionsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootDaily_Number_Of_TransactionsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootDailyNumberOfTransactionsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootDaily_Number_Of_Transactions_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootFollowStatsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootFollow_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootFollowStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootFollow_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootGenesisNeuronsActivationArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootGenesis_Neurons_ActivationArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootGenesisNeuronsActivationAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootGenesis_Neurons_Activation_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootInvestmintsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootInvestmintsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootInvestmintsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootInvestmints_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootInvestmintsByPkArgs = { +export type Subscription_RootInvestmints_By_PkArgs = { id: Scalars['Int']['input']; }; -export type SubscriptionRootMessageArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootMessageArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootMessageAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootMessage_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootMessagesByAddressArgs = { - args: MessagesByAddressArgs; - distinct_on?: InputMaybe>; +export type Subscription_RootMessages_By_AddressArgs = { + args: Messages_By_Address_Args; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootMessagesByAddressAggregateArgs = { - args: MessagesByAddressArgs; - distinct_on?: InputMaybe>; +export type Subscription_RootMessages_By_Address_AggregateArgs = { + args: Messages_By_Address_Args; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootModulesArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootModulesArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootModulesAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootModules_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootModulesByPkArgs = { +export type Subscription_RootModules_By_PkArgs = { module_name: Scalars['String']['input']; }; -export type SubscriptionRootNeuronActivationSourceArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootNeuron_Activation_SourceArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootNeuronActivationSourceAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootNeuron_Activation_Source_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootNumberOfNewNeuronsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootNumber_Of_New_NeuronsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootNumberOfNewNeuronsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootNumber_Of_New_Neurons_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootOldPrecommitsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootOld_PrecommitsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootOldPrecommitsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootOld_Precommits_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootOldPrecommitsByPkArgs = { +export type Subscription_RootOld_Precommits_By_PkArgs = { consensus_address: Scalars['String']['input']; }; -export type SubscriptionRootParticlesArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootParticlesArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootParticlesAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootParticles_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootParticlesByPkArgs = { +export type Subscription_RootParticles_By_PkArgs = { id: Scalars['Int']['input']; }; -export type SubscriptionRootPreCommitArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPre_CommitArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPreCommitAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPre_Commit_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPreCommitsRewardsViewArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPre_Commits_Rewards_ViewArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPreCommitsRewardsViewAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPre_Commits_Rewards_View_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPreCommitsTotalArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPre_Commits_TotalArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPreCommitsTotalAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPre_Commits_Total_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPreCommitsViewArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPre_Commits_ViewArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPreCommitsViewAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPre_Commits_View_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPruningArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPruningArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPruningAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPruning_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPussyGiftProofsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPussy_Gift_ProofsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootPussyGiftProofsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootPussy_Gift_Proofs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootRoutesArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootRoutesArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootRoutesAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootRoutes_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootRoutesByPkArgs = { +export type Subscription_RootRoutes_By_PkArgs = { id: Scalars['Int']['input']; }; -export type SubscriptionRootSupplyArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootSupplyArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootSupplyAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootSupply_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootSupplyByPkArgs = { +export type Subscription_RootSupply_By_PkArgs = { one_row_id: Scalars['Boolean']['input']; }; -export type SubscriptionRootTestGiftArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTest_GiftArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTestGiftAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTest_Gift_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTodayTopTxsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootToday_Top_TxsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTodayTopTxsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootToday_Top_Txs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTop_10OfActiveNeuronsWeekArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTop_10_Of_Active_Neurons_WeekArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTop_10OfActiveNeuronsWeekAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTop_10_Of_Active_Neurons_Week_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTopFirstTxsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTop_First_TxsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTopFirstTxsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTop_First_Txs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTopLeadersArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTop_LeadersArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTopTxsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTop_TxsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTopTxsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTop_Txs_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTransactionArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTransactionArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTransactionAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTransaction_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTransactionByPkArgs = { +export type Subscription_RootTransaction_By_PkArgs = { hash: Scalars['String']['input']; }; -export type SubscriptionRootTweetsStatsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTweets_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTweetsStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTweets_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTxsRankedArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTxs_RankedArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTxsRankedAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTxs_Ranked_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTxsStatsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTxs_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootTxsStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootTxs_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootUptimeArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootUptimeArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootUptimeAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootUptime_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootValidatorArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootValidatorArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootValidatorAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootValidator_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootValidatorByPkArgs = { +export type Subscription_RootValidator_By_PkArgs = { consensus_address: Scalars['String']['input']; }; -export type SubscriptionRootVoltsDemandArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootVolts_DemandArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootVoltsDemandAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootVolts_Demand_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootVoltsStatsArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootVolts_StatsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; -export type SubscriptionRootVoltsStatsAggregateArgs = { - distinct_on?: InputMaybe>; +export type Subscription_RootVolts_Stats_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "supply" */ @@ -8108,72 +8108,72 @@ export type Supply = { }; /** aggregated selection of "supply" */ -export type SupplyAggregate = { +export type Supply_Aggregate = { __typename?: 'supply_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "supply" */ -export type SupplyAggregateFields = { +export type Supply_Aggregate_Fields = { __typename?: 'supply_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "supply" */ -export type SupplyAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Supply_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type SupplyAvgFields = { +export type Supply_Avg_Fields = { __typename?: 'supply_avg_fields'; height?: Maybe; }; /** Boolean expression to filter rows from the table "supply". All fields are combined with a logical 'AND'. */ -export type SupplyBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - coins?: InputMaybe; - height?: InputMaybe; - one_row_id?: InputMaybe; +export type Supply_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + coins?: InputMaybe<_Coin_Comparison_Exp>; + height?: InputMaybe; + one_row_id?: InputMaybe; }; /** aggregate max on columns */ -export type SupplyMaxFields = { +export type Supply_Max_Fields = { __typename?: 'supply_max_fields'; height?: Maybe; }; /** aggregate min on columns */ -export type SupplyMinFields = { +export type Supply_Min_Fields = { __typename?: 'supply_min_fields'; height?: Maybe; }; /** Ordering options when selecting data from "supply". */ -export type SupplyOrderBy = { - coins?: InputMaybe; - height?: InputMaybe; - one_row_id?: InputMaybe; +export type Supply_Order_By = { + coins?: InputMaybe; + height?: InputMaybe; + one_row_id?: InputMaybe; }; /** select columns of table "supply" */ -export enum SupplySelectColumn { +export enum Supply_Select_Column { /** column name */ Coins = 'coins', /** column name */ @@ -8183,49 +8183,49 @@ export enum SupplySelectColumn { } /** aggregate stddev on columns */ -export type SupplyStddevFields = { +export type Supply_Stddev_Fields = { __typename?: 'supply_stddev_fields'; height?: Maybe; }; /** aggregate stddev_pop on columns */ -export type SupplyStddevPopFields = { +export type Supply_Stddev_Pop_Fields = { __typename?: 'supply_stddev_pop_fields'; height?: Maybe; }; /** aggregate stddev_samp on columns */ -export type SupplyStddevSampFields = { +export type Supply_Stddev_Samp_Fields = { __typename?: 'supply_stddev_samp_fields'; height?: Maybe; }; /** aggregate sum on columns */ -export type SupplySumFields = { +export type Supply_Sum_Fields = { __typename?: 'supply_sum_fields'; height?: Maybe; }; /** aggregate var_pop on columns */ -export type SupplyVarPopFields = { +export type Supply_Var_Pop_Fields = { __typename?: 'supply_var_pop_fields'; height?: Maybe; }; /** aggregate var_samp on columns */ -export type SupplyVarSampFields = { +export type Supply_Var_Samp_Fields = { __typename?: 'supply_var_samp_fields'; height?: Maybe; }; /** aggregate variance on columns */ -export type SupplyVarianceFields = { +export type Supply_Variance_Fields = { __typename?: 'supply_variance_fields'; height?: Maybe; }; /** columns and relationships of "test_gift" */ -export type TestGift = { +export type Test_Gift = { __typename?: 'test_gift'; address?: Maybe; amount?: Maybe; @@ -8235,59 +8235,59 @@ export type TestGift = { /** columns and relationships of "test_gift" */ -export type TestGiftDetailsArgs = { +export type Test_GiftDetailsArgs = { path?: InputMaybe; }; /** aggregated selection of "test_gift" */ -export type TestGiftAggregate = { +export type Test_Gift_Aggregate = { __typename?: 'test_gift_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "test_gift" */ -export type TestGiftAggregateFields = { +export type Test_Gift_Aggregate_Fields = { __typename?: 'test_gift_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "test_gift" */ -export type TestGiftAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Test_Gift_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type TestGiftAvgFields = { +export type Test_Gift_Avg_Fields = { __typename?: 'test_gift_avg_fields'; amount?: Maybe; }; /** Boolean expression to filter rows from the table "test_gift". All fields are combined with a logical 'AND'. */ -export type TestGiftBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - address?: InputMaybe; - amount?: InputMaybe; - details?: InputMaybe; - proof?: InputMaybe; +export type Test_Gift_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; }; /** aggregate max on columns */ -export type TestGiftMaxFields = { +export type Test_Gift_Max_Fields = { __typename?: 'test_gift_max_fields'; address?: Maybe; amount?: Maybe; @@ -8295,7 +8295,7 @@ export type TestGiftMaxFields = { }; /** aggregate min on columns */ -export type TestGiftMinFields = { +export type Test_Gift_Min_Fields = { __typename?: 'test_gift_min_fields'; address?: Maybe; amount?: Maybe; @@ -8303,15 +8303,15 @@ export type TestGiftMinFields = { }; /** Ordering options when selecting data from "test_gift". */ -export type TestGiftOrderBy = { - address?: InputMaybe; - amount?: InputMaybe; - details?: InputMaybe; - proof?: InputMaybe; +export type Test_Gift_Order_By = { + address?: InputMaybe; + amount?: InputMaybe; + details?: InputMaybe; + proof?: InputMaybe; }; /** select columns of table "test_gift" */ -export enum TestGiftSelectColumn { +export enum Test_Gift_Select_Column { /** column name */ Address = 'address', /** column name */ @@ -8323,49 +8323,49 @@ export enum TestGiftSelectColumn { } /** aggregate stddev on columns */ -export type TestGiftStddevFields = { +export type Test_Gift_Stddev_Fields = { __typename?: 'test_gift_stddev_fields'; amount?: Maybe; }; /** aggregate stddev_pop on columns */ -export type TestGiftStddevPopFields = { +export type Test_Gift_Stddev_Pop_Fields = { __typename?: 'test_gift_stddev_pop_fields'; amount?: Maybe; }; /** aggregate stddev_samp on columns */ -export type TestGiftStddevSampFields = { +export type Test_Gift_Stddev_Samp_Fields = { __typename?: 'test_gift_stddev_samp_fields'; amount?: Maybe; }; /** aggregate sum on columns */ -export type TestGiftSumFields = { +export type Test_Gift_Sum_Fields = { __typename?: 'test_gift_sum_fields'; amount?: Maybe; }; /** aggregate var_pop on columns */ -export type TestGiftVarPopFields = { +export type Test_Gift_Var_Pop_Fields = { __typename?: 'test_gift_var_pop_fields'; amount?: Maybe; }; /** aggregate var_samp on columns */ -export type TestGiftVarSampFields = { +export type Test_Gift_Var_Samp_Fields = { __typename?: 'test_gift_var_samp_fields'; amount?: Maybe; }; /** aggregate variance on columns */ -export type TestGiftVarianceFields = { +export type Test_Gift_Variance_Fields = { __typename?: 'test_gift_variance_fields'; amount?: Maybe; }; /** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ -export type TimestampComparisonExp = { +export type Timestamp_Comparison_Exp = { _eq?: InputMaybe; _gt?: InputMaybe; _gte?: InputMaybe; @@ -8378,79 +8378,79 @@ export type TimestampComparisonExp = { }; /** columns and relationships of "today_top_txs" */ -export type TodayTopTxs = { +export type Today_Top_Txs = { __typename?: 'today_top_txs'; count?: Maybe; type?: Maybe; }; /** aggregated selection of "today_top_txs" */ -export type TodayTopTxsAggregate = { +export type Today_Top_Txs_Aggregate = { __typename?: 'today_top_txs_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "today_top_txs" */ -export type TodayTopTxsAggregateFields = { +export type Today_Top_Txs_Aggregate_Fields = { __typename?: 'today_top_txs_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "today_top_txs" */ -export type TodayTopTxsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Today_Top_Txs_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type TodayTopTxsAvgFields = { +export type Today_Top_Txs_Avg_Fields = { __typename?: 'today_top_txs_avg_fields'; count?: Maybe; }; /** Boolean expression to filter rows from the table "today_top_txs". All fields are combined with a logical 'AND'. */ -export type TodayTopTxsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - count?: InputMaybe; - type?: InputMaybe; +export type Today_Top_Txs_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + type?: InputMaybe; }; /** aggregate max on columns */ -export type TodayTopTxsMaxFields = { +export type Today_Top_Txs_Max_Fields = { __typename?: 'today_top_txs_max_fields'; count?: Maybe; type?: Maybe; }; /** aggregate min on columns */ -export type TodayTopTxsMinFields = { +export type Today_Top_Txs_Min_Fields = { __typename?: 'today_top_txs_min_fields'; count?: Maybe; type?: Maybe; }; /** Ordering options when selecting data from "today_top_txs". */ -export type TodayTopTxsOrderBy = { - count?: InputMaybe; - type?: InputMaybe; +export type Today_Top_Txs_Order_By = { + count?: InputMaybe; + type?: InputMaybe; }; /** select columns of table "today_top_txs" */ -export enum TodayTopTxsSelectColumn { +export enum Today_Top_Txs_Select_Column { /** column name */ Count = 'count', /** column name */ @@ -8458,121 +8458,121 @@ export enum TodayTopTxsSelectColumn { } /** aggregate stddev on columns */ -export type TodayTopTxsStddevFields = { +export type Today_Top_Txs_Stddev_Fields = { __typename?: 'today_top_txs_stddev_fields'; count?: Maybe; }; /** aggregate stddev_pop on columns */ -export type TodayTopTxsStddevPopFields = { +export type Today_Top_Txs_Stddev_Pop_Fields = { __typename?: 'today_top_txs_stddev_pop_fields'; count?: Maybe; }; /** aggregate stddev_samp on columns */ -export type TodayTopTxsStddevSampFields = { +export type Today_Top_Txs_Stddev_Samp_Fields = { __typename?: 'today_top_txs_stddev_samp_fields'; count?: Maybe; }; /** aggregate sum on columns */ -export type TodayTopTxsSumFields = { +export type Today_Top_Txs_Sum_Fields = { __typename?: 'today_top_txs_sum_fields'; count?: Maybe; }; /** aggregate var_pop on columns */ -export type TodayTopTxsVarPopFields = { +export type Today_Top_Txs_Var_Pop_Fields = { __typename?: 'today_top_txs_var_pop_fields'; count?: Maybe; }; /** aggregate var_samp on columns */ -export type TodayTopTxsVarSampFields = { +export type Today_Top_Txs_Var_Samp_Fields = { __typename?: 'today_top_txs_var_samp_fields'; count?: Maybe; }; /** aggregate variance on columns */ -export type TodayTopTxsVarianceFields = { +export type Today_Top_Txs_Variance_Fields = { __typename?: 'today_top_txs_variance_fields'; count?: Maybe; }; /** columns and relationships of "top_10_of_active_neurons_week" */ -export type Top_10OfActiveNeuronsWeek = { +export type Top_10_Of_Active_Neurons_Week = { __typename?: 'top_10_of_active_neurons_week'; count?: Maybe; pubkey?: Maybe; }; /** aggregated selection of "top_10_of_active_neurons_week" */ -export type Top_10OfActiveNeuronsWeekAggregate = { +export type Top_10_Of_Active_Neurons_Week_Aggregate = { __typename?: 'top_10_of_active_neurons_week_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "top_10_of_active_neurons_week" */ -export type Top_10OfActiveNeuronsWeekAggregateFields = { +export type Top_10_Of_Active_Neurons_Week_Aggregate_Fields = { __typename?: 'top_10_of_active_neurons_week_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "top_10_of_active_neurons_week" */ -export type Top_10OfActiveNeuronsWeekAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Top_10_Of_Active_Neurons_Week_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type Top_10OfActiveNeuronsWeekAvgFields = { +export type Top_10_Of_Active_Neurons_Week_Avg_Fields = { __typename?: 'top_10_of_active_neurons_week_avg_fields'; count?: Maybe; }; /** Boolean expression to filter rows from the table "top_10_of_active_neurons_week". All fields are combined with a logical 'AND'. */ -export type Top_10OfActiveNeuronsWeekBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - count?: InputMaybe; - pubkey?: InputMaybe; +export type Top_10_Of_Active_Neurons_Week_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + pubkey?: InputMaybe; }; /** aggregate max on columns */ -export type Top_10OfActiveNeuronsWeekMaxFields = { +export type Top_10_Of_Active_Neurons_Week_Max_Fields = { __typename?: 'top_10_of_active_neurons_week_max_fields'; count?: Maybe; pubkey?: Maybe; }; /** aggregate min on columns */ -export type Top_10OfActiveNeuronsWeekMinFields = { +export type Top_10_Of_Active_Neurons_Week_Min_Fields = { __typename?: 'top_10_of_active_neurons_week_min_fields'; count?: Maybe; pubkey?: Maybe; }; /** Ordering options when selecting data from "top_10_of_active_neurons_week". */ -export type Top_10OfActiveNeuronsWeekOrderBy = { - count?: InputMaybe; - pubkey?: InputMaybe; +export type Top_10_Of_Active_Neurons_Week_Order_By = { + count?: InputMaybe; + pubkey?: InputMaybe; }; /** select columns of table "top_10_of_active_neurons_week" */ -export enum Top_10OfActiveNeuronsWeekSelectColumn { +export enum Top_10_Of_Active_Neurons_Week_Select_Column { /** column name */ Count = 'count', /** column name */ @@ -8580,121 +8580,121 @@ export enum Top_10OfActiveNeuronsWeekSelectColumn { } /** aggregate stddev on columns */ -export type Top_10OfActiveNeuronsWeekStddevFields = { +export type Top_10_Of_Active_Neurons_Week_Stddev_Fields = { __typename?: 'top_10_of_active_neurons_week_stddev_fields'; count?: Maybe; }; /** aggregate stddev_pop on columns */ -export type Top_10OfActiveNeuronsWeekStddevPopFields = { +export type Top_10_Of_Active_Neurons_Week_Stddev_Pop_Fields = { __typename?: 'top_10_of_active_neurons_week_stddev_pop_fields'; count?: Maybe; }; /** aggregate stddev_samp on columns */ -export type Top_10OfActiveNeuronsWeekStddevSampFields = { +export type Top_10_Of_Active_Neurons_Week_Stddev_Samp_Fields = { __typename?: 'top_10_of_active_neurons_week_stddev_samp_fields'; count?: Maybe; }; /** aggregate sum on columns */ -export type Top_10OfActiveNeuronsWeekSumFields = { +export type Top_10_Of_Active_Neurons_Week_Sum_Fields = { __typename?: 'top_10_of_active_neurons_week_sum_fields'; count?: Maybe; }; /** aggregate var_pop on columns */ -export type Top_10OfActiveNeuronsWeekVarPopFields = { +export type Top_10_Of_Active_Neurons_Week_Var_Pop_Fields = { __typename?: 'top_10_of_active_neurons_week_var_pop_fields'; count?: Maybe; }; /** aggregate var_samp on columns */ -export type Top_10OfActiveNeuronsWeekVarSampFields = { +export type Top_10_Of_Active_Neurons_Week_Var_Samp_Fields = { __typename?: 'top_10_of_active_neurons_week_var_samp_fields'; count?: Maybe; }; /** aggregate variance on columns */ -export type Top_10OfActiveNeuronsWeekVarianceFields = { +export type Top_10_Of_Active_Neurons_Week_Variance_Fields = { __typename?: 'top_10_of_active_neurons_week_variance_fields'; count?: Maybe; }; /** columns and relationships of "top_first_txs" */ -export type TopFirstTxs = { +export type Top_First_Txs = { __typename?: 'top_first_txs'; count?: Maybe; type?: Maybe; }; /** aggregated selection of "top_first_txs" */ -export type TopFirstTxsAggregate = { +export type Top_First_Txs_Aggregate = { __typename?: 'top_first_txs_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "top_first_txs" */ -export type TopFirstTxsAggregateFields = { +export type Top_First_Txs_Aggregate_Fields = { __typename?: 'top_first_txs_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "top_first_txs" */ -export type TopFirstTxsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Top_First_Txs_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type TopFirstTxsAvgFields = { +export type Top_First_Txs_Avg_Fields = { __typename?: 'top_first_txs_avg_fields'; count?: Maybe; }; /** Boolean expression to filter rows from the table "top_first_txs". All fields are combined with a logical 'AND'. */ -export type TopFirstTxsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - count?: InputMaybe; - type?: InputMaybe; +export type Top_First_Txs_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + type?: InputMaybe; }; /** aggregate max on columns */ -export type TopFirstTxsMaxFields = { +export type Top_First_Txs_Max_Fields = { __typename?: 'top_first_txs_max_fields'; count?: Maybe; type?: Maybe; }; /** aggregate min on columns */ -export type TopFirstTxsMinFields = { +export type Top_First_Txs_Min_Fields = { __typename?: 'top_first_txs_min_fields'; count?: Maybe; type?: Maybe; }; /** Ordering options when selecting data from "top_first_txs". */ -export type TopFirstTxsOrderBy = { - count?: InputMaybe; - type?: InputMaybe; +export type Top_First_Txs_Order_By = { + count?: InputMaybe; + type?: InputMaybe; }; /** select columns of table "top_first_txs" */ -export enum TopFirstTxsSelectColumn { +export enum Top_First_Txs_Select_Column { /** column name */ Count = 'count', /** column name */ @@ -8702,71 +8702,71 @@ export enum TopFirstTxsSelectColumn { } /** aggregate stddev on columns */ -export type TopFirstTxsStddevFields = { +export type Top_First_Txs_Stddev_Fields = { __typename?: 'top_first_txs_stddev_fields'; count?: Maybe; }; /** aggregate stddev_pop on columns */ -export type TopFirstTxsStddevPopFields = { +export type Top_First_Txs_Stddev_Pop_Fields = { __typename?: 'top_first_txs_stddev_pop_fields'; count?: Maybe; }; /** aggregate stddev_samp on columns */ -export type TopFirstTxsStddevSampFields = { +export type Top_First_Txs_Stddev_Samp_Fields = { __typename?: 'top_first_txs_stddev_samp_fields'; count?: Maybe; }; /** aggregate sum on columns */ -export type TopFirstTxsSumFields = { +export type Top_First_Txs_Sum_Fields = { __typename?: 'top_first_txs_sum_fields'; count?: Maybe; }; /** aggregate var_pop on columns */ -export type TopFirstTxsVarPopFields = { +export type Top_First_Txs_Var_Pop_Fields = { __typename?: 'top_first_txs_var_pop_fields'; count?: Maybe; }; /** aggregate var_samp on columns */ -export type TopFirstTxsVarSampFields = { +export type Top_First_Txs_Var_Samp_Fields = { __typename?: 'top_first_txs_var_samp_fields'; count?: Maybe; }; /** aggregate variance on columns */ -export type TopFirstTxsVarianceFields = { +export type Top_First_Txs_Variance_Fields = { __typename?: 'top_first_txs_variance_fields'; count?: Maybe; }; /** columns and relationships of "top_leaders" */ -export type TopLeaders = { +export type Top_Leaders = { __typename?: 'top_leaders'; count?: Maybe; neuron?: Maybe; }; /** Boolean expression to filter rows from the table "top_leaders". All fields are combined with a logical 'AND'. */ -export type TopLeadersBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - count?: InputMaybe; - neuron?: InputMaybe; +export type Top_Leaders_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + neuron?: InputMaybe; }; /** Ordering options when selecting data from "top_leaders". */ -export type TopLeadersOrderBy = { - count?: InputMaybe; - neuron?: InputMaybe; +export type Top_Leaders_Order_By = { + count?: InputMaybe; + neuron?: InputMaybe; }; /** select columns of table "top_leaders" */ -export enum TopLeadersSelectColumn { +export enum Top_Leaders_Select_Column { /** column name */ Count = 'count', /** column name */ @@ -8774,79 +8774,79 @@ export enum TopLeadersSelectColumn { } /** columns and relationships of "top_txs" */ -export type TopTxs = { +export type Top_Txs = { __typename?: 'top_txs'; count?: Maybe; type?: Maybe; }; /** aggregated selection of "top_txs" */ -export type TopTxsAggregate = { +export type Top_Txs_Aggregate = { __typename?: 'top_txs_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "top_txs" */ -export type TopTxsAggregateFields = { +export type Top_Txs_Aggregate_Fields = { __typename?: 'top_txs_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "top_txs" */ -export type TopTxsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Top_Txs_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type TopTxsAvgFields = { +export type Top_Txs_Avg_Fields = { __typename?: 'top_txs_avg_fields'; count?: Maybe; }; /** Boolean expression to filter rows from the table "top_txs". All fields are combined with a logical 'AND'. */ -export type TopTxsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - count?: InputMaybe; - type?: InputMaybe; +export type Top_Txs_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + count?: InputMaybe; + type?: InputMaybe; }; /** aggregate max on columns */ -export type TopTxsMaxFields = { +export type Top_Txs_Max_Fields = { __typename?: 'top_txs_max_fields'; count?: Maybe; type?: Maybe; }; /** aggregate min on columns */ -export type TopTxsMinFields = { +export type Top_Txs_Min_Fields = { __typename?: 'top_txs_min_fields'; count?: Maybe; type?: Maybe; }; /** Ordering options when selecting data from "top_txs". */ -export type TopTxsOrderBy = { - count?: InputMaybe; - type?: InputMaybe; +export type Top_Txs_Order_By = { + count?: InputMaybe; + type?: InputMaybe; }; /** select columns of table "top_txs" */ -export enum TopTxsSelectColumn { +export enum Top_Txs_Select_Column { /** column name */ Count = 'count', /** column name */ @@ -8854,43 +8854,43 @@ export enum TopTxsSelectColumn { } /** aggregate stddev on columns */ -export type TopTxsStddevFields = { +export type Top_Txs_Stddev_Fields = { __typename?: 'top_txs_stddev_fields'; count?: Maybe; }; /** aggregate stddev_pop on columns */ -export type TopTxsStddevPopFields = { +export type Top_Txs_Stddev_Pop_Fields = { __typename?: 'top_txs_stddev_pop_fields'; count?: Maybe; }; /** aggregate stddev_samp on columns */ -export type TopTxsStddevSampFields = { +export type Top_Txs_Stddev_Samp_Fields = { __typename?: 'top_txs_stddev_samp_fields'; count?: Maybe; }; /** aggregate sum on columns */ -export type TopTxsSumFields = { +export type Top_Txs_Sum_Fields = { __typename?: 'top_txs_sum_fields'; count?: Maybe; }; /** aggregate var_pop on columns */ -export type TopTxsVarPopFields = { +export type Top_Txs_Var_Pop_Fields = { __typename?: 'top_txs_var_pop_fields'; count?: Maybe; }; /** aggregate var_samp on columns */ -export type TopTxsVarSampFields = { +export type Top_Txs_Var_Samp_Fields = { __typename?: 'top_txs_var_samp_fields'; count?: Maybe; }; /** aggregate variance on columns */ -export type TopTxsVarianceFields = { +export type Top_Txs_Variance_Fields = { __typename?: 'top_txs_variance_fields'; count?: Maybe; }; @@ -8903,7 +8903,7 @@ export type Transaction = { /** fetch data from the table: "cyberlinks" */ cyberlinks: Array; /** An aggregate relationship */ - cyberlinks_aggregate: CyberlinksAggregate; + cyberlinks_aggregate: Cyberlinks_Aggregate; fee: Scalars['jsonb']['output']; gas_used?: Maybe; gas_wanted?: Maybe; @@ -8912,23 +8912,23 @@ export type Transaction = { /** An array relationship */ investmints: Array; /** An aggregate relationship */ - investmints_aggregate: InvestmintsAggregate; + investmints_aggregate: Investmints_Aggregate; logs?: Maybe; memo?: Maybe; messages: Scalars['jsonb']['output']; /** An array relationship */ messagesByTransactionHash: Array; /** An aggregate relationship */ - messagesByTransactionHash_aggregate: MessageAggregate; + messagesByTransactionHash_aggregate: Message_Aggregate; /** An array relationship */ particles: Array; /** An aggregate relationship */ - particles_aggregate: ParticlesAggregate; + particles_aggregate: Particles_Aggregate; raw_log?: Maybe; /** An array relationship */ routes: Array; /** An aggregate relationship */ - routes_aggregate: RoutesAggregate; + routes_aggregate: Routes_Aggregate; signatures: Scalars['_text']['output']; signer_infos: Scalars['jsonb']['output']; success: Scalars['Boolean']['output']; @@ -8937,21 +8937,21 @@ export type Transaction = { /** columns and relationships of "transaction" */ export type TransactionCyberlinksArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "transaction" */ -export type TransactionCyberlinksAggregateArgs = { - distinct_on?: InputMaybe>; +export type TransactionCyberlinks_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; @@ -8963,21 +8963,21 @@ export type TransactionFeeArgs = { /** columns and relationships of "transaction" */ export type TransactionInvestmintsArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "transaction" */ -export type TransactionInvestmintsAggregateArgs = { - distinct_on?: InputMaybe>; +export type TransactionInvestmints_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; @@ -8995,116 +8995,116 @@ export type TransactionMessagesArgs = { /** columns and relationships of "transaction" */ export type TransactionMessagesByTransactionHashArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "transaction" */ -export type TransactionMessagesByTransactionHashAggregateArgs = { - distinct_on?: InputMaybe>; +export type TransactionMessagesByTransactionHash_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "transaction" */ export type TransactionParticlesArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "transaction" */ -export type TransactionParticlesAggregateArgs = { - distinct_on?: InputMaybe>; +export type TransactionParticles_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "transaction" */ export type TransactionRoutesArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "transaction" */ -export type TransactionRoutesAggregateArgs = { - distinct_on?: InputMaybe>; +export type TransactionRoutes_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "transaction" */ -export type TransactionSignerInfosArgs = { +export type TransactionSigner_InfosArgs = { path?: InputMaybe; }; /** aggregated selection of "transaction" */ -export type TransactionAggregate = { +export type Transaction_Aggregate = { __typename?: 'transaction_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "transaction" */ -export type TransactionAggregateFields = { +export type Transaction_Aggregate_Fields = { __typename?: 'transaction_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "transaction" */ -export type TransactionAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Transaction_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** order by aggregate values of table "transaction" */ -export type TransactionAggregateOrderBy = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; +export type Transaction_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; }; /** aggregate avg on columns */ -export type TransactionAvgFields = { +export type Transaction_Avg_Fields = { __typename?: 'transaction_avg_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9112,39 +9112,39 @@ export type TransactionAvgFields = { }; /** order by avg() on columns of table "transaction" */ -export type TransactionAvgOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; +export type Transaction_Avg_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; }; /** Boolean expression to filter rows from the table "transaction". All fields are combined with a logical 'AND'. */ -export type TransactionBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - block?: InputMaybe; - cyberlinks?: InputMaybe; - fee?: InputMaybe; - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - investmints?: InputMaybe; - logs?: InputMaybe; - memo?: InputMaybe; - messages?: InputMaybe; - messagesByTransactionHash?: InputMaybe; - particles?: InputMaybe; - raw_log?: InputMaybe; - routes?: InputMaybe; - signatures?: InputMaybe; - signer_infos?: InputMaybe; - success?: InputMaybe; +export type Transaction_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + block?: InputMaybe; + cyberlinks?: InputMaybe; + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + messagesByTransactionHash?: InputMaybe; + particles?: InputMaybe; + raw_log?: InputMaybe; + routes?: InputMaybe; + signatures?: InputMaybe<_Text_Comparison_Exp>; + signer_infos?: InputMaybe; + success?: InputMaybe; }; /** aggregate max on columns */ -export type TransactionMaxFields = { +export type Transaction_Max_Fields = { __typename?: 'transaction_max_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9155,17 +9155,17 @@ export type TransactionMaxFields = { }; /** order by max() on columns of table "transaction" */ -export type TransactionMaxOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - memo?: InputMaybe; - raw_log?: InputMaybe; +export type Transaction_Max_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + memo?: InputMaybe; + raw_log?: InputMaybe; }; /** aggregate min on columns */ -export type TransactionMinFields = { +export type Transaction_Min_Fields = { __typename?: 'transaction_min_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9176,39 +9176,39 @@ export type TransactionMinFields = { }; /** order by min() on columns of table "transaction" */ -export type TransactionMinOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - memo?: InputMaybe; - raw_log?: InputMaybe; +export type Transaction_Min_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + memo?: InputMaybe; + raw_log?: InputMaybe; }; /** Ordering options when selecting data from "transaction". */ -export type TransactionOrderBy = { - block?: InputMaybe; - cyberlinks_aggregate?: InputMaybe; - fee?: InputMaybe; - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - hash?: InputMaybe; - height?: InputMaybe; - investmints_aggregate?: InputMaybe; - logs?: InputMaybe; - memo?: InputMaybe; - messages?: InputMaybe; - messagesByTransactionHash_aggregate?: InputMaybe; - particles_aggregate?: InputMaybe; - raw_log?: InputMaybe; - routes_aggregate?: InputMaybe; - signatures?: InputMaybe; - signer_infos?: InputMaybe; - success?: InputMaybe; +export type Transaction_Order_By = { + block?: InputMaybe; + cyberlinks_aggregate?: InputMaybe; + fee?: InputMaybe; + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + hash?: InputMaybe; + height?: InputMaybe; + investmints_aggregate?: InputMaybe; + logs?: InputMaybe; + memo?: InputMaybe; + messages?: InputMaybe; + messagesByTransactionHash_aggregate?: InputMaybe; + particles_aggregate?: InputMaybe; + raw_log?: InputMaybe; + routes_aggregate?: InputMaybe; + signatures?: InputMaybe; + signer_infos?: InputMaybe; + success?: InputMaybe; }; /** select columns of table "transaction" */ -export enum TransactionSelectColumn { +export enum Transaction_Select_Column { /** column name */ Fee = 'fee', /** column name */ @@ -9236,7 +9236,7 @@ export enum TransactionSelectColumn { } /** aggregate stddev on columns */ -export type TransactionStddevFields = { +export type Transaction_Stddev_Fields = { __typename?: 'transaction_stddev_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9244,14 +9244,14 @@ export type TransactionStddevFields = { }; /** order by stddev() on columns of table "transaction" */ -export type TransactionStddevOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; +export type Transaction_Stddev_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; }; /** aggregate stddev_pop on columns */ -export type TransactionStddevPopFields = { +export type Transaction_Stddev_Pop_Fields = { __typename?: 'transaction_stddev_pop_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9259,14 +9259,14 @@ export type TransactionStddevPopFields = { }; /** order by stddev_pop() on columns of table "transaction" */ -export type TransactionStddevPopOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; +export type Transaction_Stddev_Pop_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; }; /** aggregate stddev_samp on columns */ -export type TransactionStddevSampFields = { +export type Transaction_Stddev_Samp_Fields = { __typename?: 'transaction_stddev_samp_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9274,14 +9274,14 @@ export type TransactionStddevSampFields = { }; /** order by stddev_samp() on columns of table "transaction" */ -export type TransactionStddevSampOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; +export type Transaction_Stddev_Samp_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; }; /** aggregate sum on columns */ -export type TransactionSumFields = { +export type Transaction_Sum_Fields = { __typename?: 'transaction_sum_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9289,14 +9289,14 @@ export type TransactionSumFields = { }; /** order by sum() on columns of table "transaction" */ -export type TransactionSumOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; +export type Transaction_Sum_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; }; /** aggregate var_pop on columns */ -export type TransactionVarPopFields = { +export type Transaction_Var_Pop_Fields = { __typename?: 'transaction_var_pop_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9304,14 +9304,14 @@ export type TransactionVarPopFields = { }; /** order by var_pop() on columns of table "transaction" */ -export type TransactionVarPopOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; +export type Transaction_Var_Pop_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; }; /** aggregate var_samp on columns */ -export type TransactionVarSampFields = { +export type Transaction_Var_Samp_Fields = { __typename?: 'transaction_var_samp_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9319,14 +9319,14 @@ export type TransactionVarSampFields = { }; /** order by var_samp() on columns of table "transaction" */ -export type TransactionVarSampOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; +export type Transaction_Var_Samp_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; }; /** aggregate variance on columns */ -export type TransactionVarianceFields = { +export type Transaction_Variance_Fields = { __typename?: 'transaction_variance_fields'; gas_used?: Maybe; gas_wanted?: Maybe; @@ -9334,14 +9334,14 @@ export type TransactionVarianceFields = { }; /** order by variance() on columns of table "transaction" */ -export type TransactionVarianceOrderBy = { - gas_used?: InputMaybe; - gas_wanted?: InputMaybe; - height?: InputMaybe; +export type Transaction_Variance_Order_By = { + gas_used?: InputMaybe; + gas_wanted?: InputMaybe; + height?: InputMaybe; }; /** columns and relationships of "tweets_stats" */ -export type TweetsStats = { +export type Tweets_Stats = { __typename?: 'tweets_stats'; date?: Maybe; tweets?: Maybe; @@ -9349,54 +9349,54 @@ export type TweetsStats = { }; /** aggregated selection of "tweets_stats" */ -export type TweetsStatsAggregate = { +export type Tweets_Stats_Aggregate = { __typename?: 'tweets_stats_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "tweets_stats" */ -export type TweetsStatsAggregateFields = { +export type Tweets_Stats_Aggregate_Fields = { __typename?: 'tweets_stats_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "tweets_stats" */ -export type TweetsStatsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Tweets_Stats_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type TweetsStatsAvgFields = { +export type Tweets_Stats_Avg_Fields = { __typename?: 'tweets_stats_avg_fields'; tweets?: Maybe; tweets_per_day?: Maybe; }; /** Boolean expression to filter rows from the table "tweets_stats". All fields are combined with a logical 'AND'. */ -export type TweetsStatsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - date?: InputMaybe; - tweets?: InputMaybe; - tweets_per_day?: InputMaybe; +export type Tweets_Stats_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + tweets?: InputMaybe; + tweets_per_day?: InputMaybe; }; /** aggregate max on columns */ -export type TweetsStatsMaxFields = { +export type Tweets_Stats_Max_Fields = { __typename?: 'tweets_stats_max_fields'; date?: Maybe; tweets?: Maybe; @@ -9404,7 +9404,7 @@ export type TweetsStatsMaxFields = { }; /** aggregate min on columns */ -export type TweetsStatsMinFields = { +export type Tweets_Stats_Min_Fields = { __typename?: 'tweets_stats_min_fields'; date?: Maybe; tweets?: Maybe; @@ -9412,14 +9412,14 @@ export type TweetsStatsMinFields = { }; /** Ordering options when selecting data from "tweets_stats". */ -export type TweetsStatsOrderBy = { - date?: InputMaybe; - tweets?: InputMaybe; - tweets_per_day?: InputMaybe; +export type Tweets_Stats_Order_By = { + date?: InputMaybe; + tweets?: InputMaybe; + tweets_per_day?: InputMaybe; }; /** select columns of table "tweets_stats" */ -export enum TweetsStatsSelectColumn { +export enum Tweets_Stats_Select_Column { /** column name */ Date = 'date', /** column name */ @@ -9429,56 +9429,56 @@ export enum TweetsStatsSelectColumn { } /** aggregate stddev on columns */ -export type TweetsStatsStddevFields = { +export type Tweets_Stats_Stddev_Fields = { __typename?: 'tweets_stats_stddev_fields'; tweets?: Maybe; tweets_per_day?: Maybe; }; /** aggregate stddev_pop on columns */ -export type TweetsStatsStddevPopFields = { +export type Tweets_Stats_Stddev_Pop_Fields = { __typename?: 'tweets_stats_stddev_pop_fields'; tweets?: Maybe; tweets_per_day?: Maybe; }; /** aggregate stddev_samp on columns */ -export type TweetsStatsStddevSampFields = { +export type Tweets_Stats_Stddev_Samp_Fields = { __typename?: 'tweets_stats_stddev_samp_fields'; tweets?: Maybe; tweets_per_day?: Maybe; }; /** aggregate sum on columns */ -export type TweetsStatsSumFields = { +export type Tweets_Stats_Sum_Fields = { __typename?: 'tweets_stats_sum_fields'; tweets?: Maybe; tweets_per_day?: Maybe; }; /** aggregate var_pop on columns */ -export type TweetsStatsVarPopFields = { +export type Tweets_Stats_Var_Pop_Fields = { __typename?: 'tweets_stats_var_pop_fields'; tweets?: Maybe; tweets_per_day?: Maybe; }; /** aggregate var_samp on columns */ -export type TweetsStatsVarSampFields = { +export type Tweets_Stats_Var_Samp_Fields = { __typename?: 'tweets_stats_var_samp_fields'; tweets?: Maybe; tweets_per_day?: Maybe; }; /** aggregate variance on columns */ -export type TweetsStatsVarianceFields = { +export type Tweets_Stats_Variance_Fields = { __typename?: 'tweets_stats_variance_fields'; tweets?: Maybe; tweets_per_day?: Maybe; }; /** columns and relationships of "txs_ranked" */ -export type TxsRanked = { +export type Txs_Ranked = { __typename?: 'txs_ranked'; height?: Maybe; neuron?: Maybe; @@ -9488,56 +9488,56 @@ export type TxsRanked = { }; /** aggregated selection of "txs_ranked" */ -export type TxsRankedAggregate = { +export type Txs_Ranked_Aggregate = { __typename?: 'txs_ranked_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "txs_ranked" */ -export type TxsRankedAggregateFields = { +export type Txs_Ranked_Aggregate_Fields = { __typename?: 'txs_ranked_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "txs_ranked" */ -export type TxsRankedAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Txs_Ranked_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type TxsRankedAvgFields = { +export type Txs_Ranked_Avg_Fields = { __typename?: 'txs_ranked_avg_fields'; height?: Maybe; rank?: Maybe; }; /** Boolean expression to filter rows from the table "txs_ranked". All fields are combined with a logical 'AND'. */ -export type TxsRankedBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - height?: InputMaybe; - neuron?: InputMaybe; - rank?: InputMaybe; - type?: InputMaybe; - week?: InputMaybe; +export type Txs_Ranked_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + height?: InputMaybe; + neuron?: InputMaybe; + rank?: InputMaybe; + type?: InputMaybe; + week?: InputMaybe; }; /** aggregate max on columns */ -export type TxsRankedMaxFields = { +export type Txs_Ranked_Max_Fields = { __typename?: 'txs_ranked_max_fields'; height?: Maybe; neuron?: Maybe; @@ -9547,7 +9547,7 @@ export type TxsRankedMaxFields = { }; /** aggregate min on columns */ -export type TxsRankedMinFields = { +export type Txs_Ranked_Min_Fields = { __typename?: 'txs_ranked_min_fields'; height?: Maybe; neuron?: Maybe; @@ -9557,16 +9557,16 @@ export type TxsRankedMinFields = { }; /** Ordering options when selecting data from "txs_ranked". */ -export type TxsRankedOrderBy = { - height?: InputMaybe; - neuron?: InputMaybe; - rank?: InputMaybe; - type?: InputMaybe; - week?: InputMaybe; +export type Txs_Ranked_Order_By = { + height?: InputMaybe; + neuron?: InputMaybe; + rank?: InputMaybe; + type?: InputMaybe; + week?: InputMaybe; }; /** select columns of table "txs_ranked" */ -export enum TxsRankedSelectColumn { +export enum Txs_Ranked_Select_Column { /** column name */ Height = 'height', /** column name */ @@ -9580,56 +9580,56 @@ export enum TxsRankedSelectColumn { } /** aggregate stddev on columns */ -export type TxsRankedStddevFields = { +export type Txs_Ranked_Stddev_Fields = { __typename?: 'txs_ranked_stddev_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate stddev_pop on columns */ -export type TxsRankedStddevPopFields = { +export type Txs_Ranked_Stddev_Pop_Fields = { __typename?: 'txs_ranked_stddev_pop_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate stddev_samp on columns */ -export type TxsRankedStddevSampFields = { +export type Txs_Ranked_Stddev_Samp_Fields = { __typename?: 'txs_ranked_stddev_samp_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate sum on columns */ -export type TxsRankedSumFields = { +export type Txs_Ranked_Sum_Fields = { __typename?: 'txs_ranked_sum_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate var_pop on columns */ -export type TxsRankedVarPopFields = { +export type Txs_Ranked_Var_Pop_Fields = { __typename?: 'txs_ranked_var_pop_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate var_samp on columns */ -export type TxsRankedVarSampFields = { +export type Txs_Ranked_Var_Samp_Fields = { __typename?: 'txs_ranked_var_samp_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate variance on columns */ -export type TxsRankedVarianceFields = { +export type Txs_Ranked_Variance_Fields = { __typename?: 'txs_ranked_variance_fields'; height?: Maybe; rank?: Maybe; }; /** columns and relationships of "txs_stats" */ -export type TxsStats = { +export type Txs_Stats = { __typename?: 'txs_stats'; date?: Maybe; height?: Maybe; @@ -9640,61 +9640,61 @@ export type TxsStats = { /** columns and relationships of "txs_stats" */ -export type TxsStatsPubkeyArgs = { +export type Txs_StatsPubkeyArgs = { path?: InputMaybe; }; /** aggregated selection of "txs_stats" */ -export type TxsStatsAggregate = { +export type Txs_Stats_Aggregate = { __typename?: 'txs_stats_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "txs_stats" */ -export type TxsStatsAggregateFields = { +export type Txs_Stats_Aggregate_Fields = { __typename?: 'txs_stats_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "txs_stats" */ -export type TxsStatsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Txs_Stats_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type TxsStatsAvgFields = { +export type Txs_Stats_Avg_Fields = { __typename?: 'txs_stats_avg_fields'; height?: Maybe; rank?: Maybe; }; /** Boolean expression to filter rows from the table "txs_stats". All fields are combined with a logical 'AND'. */ -export type TxsStatsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - date?: InputMaybe; - height?: InputMaybe; - msg_type?: InputMaybe; - pubkey?: InputMaybe; - rank?: InputMaybe; +export type Txs_Stats_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + height?: InputMaybe; + msg_type?: InputMaybe; + pubkey?: InputMaybe; + rank?: InputMaybe; }; /** aggregate max on columns */ -export type TxsStatsMaxFields = { +export type Txs_Stats_Max_Fields = { __typename?: 'txs_stats_max_fields'; date?: Maybe; height?: Maybe; @@ -9703,7 +9703,7 @@ export type TxsStatsMaxFields = { }; /** aggregate min on columns */ -export type TxsStatsMinFields = { +export type Txs_Stats_Min_Fields = { __typename?: 'txs_stats_min_fields'; date?: Maybe; height?: Maybe; @@ -9712,16 +9712,16 @@ export type TxsStatsMinFields = { }; /** Ordering options when selecting data from "txs_stats". */ -export type TxsStatsOrderBy = { - date?: InputMaybe; - height?: InputMaybe; - msg_type?: InputMaybe; - pubkey?: InputMaybe; - rank?: InputMaybe; +export type Txs_Stats_Order_By = { + date?: InputMaybe; + height?: InputMaybe; + msg_type?: InputMaybe; + pubkey?: InputMaybe; + rank?: InputMaybe; }; /** select columns of table "txs_stats" */ -export enum TxsStatsSelectColumn { +export enum Txs_Stats_Select_Column { /** column name */ Date = 'date', /** column name */ @@ -9735,49 +9735,49 @@ export enum TxsStatsSelectColumn { } /** aggregate stddev on columns */ -export type TxsStatsStddevFields = { +export type Txs_Stats_Stddev_Fields = { __typename?: 'txs_stats_stddev_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate stddev_pop on columns */ -export type TxsStatsStddevPopFields = { +export type Txs_Stats_Stddev_Pop_Fields = { __typename?: 'txs_stats_stddev_pop_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate stddev_samp on columns */ -export type TxsStatsStddevSampFields = { +export type Txs_Stats_Stddev_Samp_Fields = { __typename?: 'txs_stats_stddev_samp_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate sum on columns */ -export type TxsStatsSumFields = { +export type Txs_Stats_Sum_Fields = { __typename?: 'txs_stats_sum_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate var_pop on columns */ -export type TxsStatsVarPopFields = { +export type Txs_Stats_Var_Pop_Fields = { __typename?: 'txs_stats_var_pop_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate var_samp on columns */ -export type TxsStatsVarSampFields = { +export type Txs_Stats_Var_Samp_Fields = { __typename?: 'txs_stats_var_samp_fields'; height?: Maybe; rank?: Maybe; }; /** aggregate variance on columns */ -export type TxsStatsVarianceFields = { +export type Txs_Stats_Variance_Fields = { __typename?: 'txs_stats_variance_fields'; height?: Maybe; rank?: Maybe; @@ -9793,55 +9793,55 @@ export type Uptime = { }; /** aggregated selection of "uptime" */ -export type UptimeAggregate = { +export type Uptime_Aggregate = { __typename?: 'uptime_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "uptime" */ -export type UptimeAggregateFields = { +export type Uptime_Aggregate_Fields = { __typename?: 'uptime_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "uptime" */ -export type UptimeAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Uptime_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type UptimeAvgFields = { +export type Uptime_Avg_Fields = { __typename?: 'uptime_avg_fields'; pre_commits?: Maybe; uptime?: Maybe; }; /** Boolean expression to filter rows from the table "uptime". All fields are combined with a logical 'AND'. */ -export type UptimeBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - pre_commits?: InputMaybe; - uptime?: InputMaybe; +export type Uptime_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; + uptime?: InputMaybe; }; /** aggregate max on columns */ -export type UptimeMaxFields = { +export type Uptime_Max_Fields = { __typename?: 'uptime_max_fields'; consensus_address?: Maybe; consensus_pubkey?: Maybe; @@ -9850,7 +9850,7 @@ export type UptimeMaxFields = { }; /** aggregate min on columns */ -export type UptimeMinFields = { +export type Uptime_Min_Fields = { __typename?: 'uptime_min_fields'; consensus_address?: Maybe; consensus_pubkey?: Maybe; @@ -9859,15 +9859,15 @@ export type UptimeMinFields = { }; /** Ordering options when selecting data from "uptime". */ -export type UptimeOrderBy = { - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - pre_commits?: InputMaybe; - uptime?: InputMaybe; +export type Uptime_Order_By = { + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; + uptime?: InputMaybe; }; /** select columns of table "uptime" */ -export enum UptimeSelectColumn { +export enum Uptime_Select_Column { /** column name */ ConsensusAddress = 'consensus_address', /** column name */ @@ -9879,49 +9879,49 @@ export enum UptimeSelectColumn { } /** aggregate stddev on columns */ -export type UptimeStddevFields = { +export type Uptime_Stddev_Fields = { __typename?: 'uptime_stddev_fields'; pre_commits?: Maybe; uptime?: Maybe; }; /** aggregate stddev_pop on columns */ -export type UptimeStddevPopFields = { +export type Uptime_Stddev_Pop_Fields = { __typename?: 'uptime_stddev_pop_fields'; pre_commits?: Maybe; uptime?: Maybe; }; /** aggregate stddev_samp on columns */ -export type UptimeStddevSampFields = { +export type Uptime_Stddev_Samp_Fields = { __typename?: 'uptime_stddev_samp_fields'; pre_commits?: Maybe; uptime?: Maybe; }; /** aggregate sum on columns */ -export type UptimeSumFields = { +export type Uptime_Sum_Fields = { __typename?: 'uptime_sum_fields'; pre_commits?: Maybe; uptime?: Maybe; }; /** aggregate var_pop on columns */ -export type UptimeVarPopFields = { +export type Uptime_Var_Pop_Fields = { __typename?: 'uptime_var_pop_fields'; pre_commits?: Maybe; uptime?: Maybe; }; /** aggregate var_samp on columns */ -export type UptimeVarSampFields = { +export type Uptime_Var_Samp_Fields = { __typename?: 'uptime_var_samp_fields'; pre_commits?: Maybe; uptime?: Maybe; }; /** aggregate variance on columns */ -export type UptimeVarianceFields = { +export type Uptime_Variance_Fields = { __typename?: 'uptime_variance_fields'; pre_commits?: Maybe; uptime?: Maybe; @@ -9933,112 +9933,112 @@ export type Validator = { /** An array relationship */ blocks: Array; /** An aggregate relationship */ - blocks_aggregate: BlockAggregate; + blocks_aggregate: Block_Aggregate; consensus_address: Scalars['String']['output']; consensus_pubkey: Scalars['String']['output']; /** An array relationship */ - pre_commits: Array; + pre_commits: Array; /** An aggregate relationship */ - pre_commits_aggregate: PreCommitAggregate; + pre_commits_aggregate: Pre_Commit_Aggregate; }; /** columns and relationships of "validator" */ export type ValidatorBlocksArgs = { - distinct_on?: InputMaybe>; + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "validator" */ -export type ValidatorBlocksAggregateArgs = { - distinct_on?: InputMaybe>; +export type ValidatorBlocks_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "validator" */ -export type ValidatorPreCommitsArgs = { - distinct_on?: InputMaybe>; +export type ValidatorPre_CommitsArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** columns and relationships of "validator" */ -export type ValidatorPreCommitsAggregateArgs = { - distinct_on?: InputMaybe>; +export type ValidatorPre_Commits_AggregateArgs = { + distinct_on?: InputMaybe>; limit?: InputMaybe; offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; }; /** aggregated selection of "validator" */ -export type ValidatorAggregate = { +export type Validator_Aggregate = { __typename?: 'validator_aggregate'; - aggregate?: Maybe; + aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "validator" */ -export type ValidatorAggregateFields = { +export type Validator_Aggregate_Fields = { __typename?: 'validator_aggregate_fields'; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; + max?: Maybe; + min?: Maybe; }; /** aggregate fields of "validator" */ -export type ValidatorAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Validator_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** Boolean expression to filter rows from the table "validator". All fields are combined with a logical 'AND'. */ -export type ValidatorBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - blocks?: InputMaybe; - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - pre_commits?: InputMaybe; +export type Validator_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + blocks?: InputMaybe; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits?: InputMaybe; }; /** aggregate max on columns */ -export type ValidatorMaxFields = { +export type Validator_Max_Fields = { __typename?: 'validator_max_fields'; consensus_address?: Maybe; consensus_pubkey?: Maybe; }; /** aggregate min on columns */ -export type ValidatorMinFields = { +export type Validator_Min_Fields = { __typename?: 'validator_min_fields'; consensus_address?: Maybe; consensus_pubkey?: Maybe; }; /** Ordering options when selecting data from "validator". */ -export type ValidatorOrderBy = { - blocks_aggregate?: InputMaybe; - consensus_address?: InputMaybe; - consensus_pubkey?: InputMaybe; - pre_commits_aggregate?: InputMaybe; +export type Validator_Order_By = { + blocks_aggregate?: InputMaybe; + consensus_address?: InputMaybe; + consensus_pubkey?: InputMaybe; + pre_commits_aggregate?: InputMaybe; }; /** select columns of table "validator" */ -export enum ValidatorSelectColumn { +export enum Validator_Select_Column { /** column name */ ConsensusAddress = 'consensus_address', /** column name */ @@ -10046,7 +10046,7 @@ export enum ValidatorSelectColumn { } /** columns and relationships of "volts_demand" */ -export type VoltsDemand = { +export type Volts_Demand = { __typename?: 'volts_demand'; cyberlinks_per_day?: Maybe; date?: Maybe; @@ -10054,54 +10054,54 @@ export type VoltsDemand = { }; /** aggregated selection of "volts_demand" */ -export type VoltsDemandAggregate = { +export type Volts_Demand_Aggregate = { __typename?: 'volts_demand_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "volts_demand" */ -export type VoltsDemandAggregateFields = { +export type Volts_Demand_Aggregate_Fields = { __typename?: 'volts_demand_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "volts_demand" */ -export type VoltsDemandAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Volts_Demand_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type VoltsDemandAvgFields = { +export type Volts_Demand_Avg_Fields = { __typename?: 'volts_demand_avg_fields'; cyberlinks_per_day?: Maybe; volts?: Maybe; }; /** Boolean expression to filter rows from the table "volts_demand". All fields are combined with a logical 'AND'. */ -export type VoltsDemandBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - cyberlinks_per_day?: InputMaybe; - date?: InputMaybe; - volts?: InputMaybe; +export type Volts_Demand_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; + volts?: InputMaybe; }; /** aggregate max on columns */ -export type VoltsDemandMaxFields = { +export type Volts_Demand_Max_Fields = { __typename?: 'volts_demand_max_fields'; cyberlinks_per_day?: Maybe; date?: Maybe; @@ -10109,7 +10109,7 @@ export type VoltsDemandMaxFields = { }; /** aggregate min on columns */ -export type VoltsDemandMinFields = { +export type Volts_Demand_Min_Fields = { __typename?: 'volts_demand_min_fields'; cyberlinks_per_day?: Maybe; date?: Maybe; @@ -10117,14 +10117,14 @@ export type VoltsDemandMinFields = { }; /** Ordering options when selecting data from "volts_demand". */ -export type VoltsDemandOrderBy = { - cyberlinks_per_day?: InputMaybe; - date?: InputMaybe; - volts?: InputMaybe; +export type Volts_Demand_Order_By = { + cyberlinks_per_day?: InputMaybe; + date?: InputMaybe; + volts?: InputMaybe; }; /** select columns of table "volts_demand" */ -export enum VoltsDemandSelectColumn { +export enum Volts_Demand_Select_Column { /** column name */ CyberlinksPerDay = 'cyberlinks_per_day', /** column name */ @@ -10134,56 +10134,56 @@ export enum VoltsDemandSelectColumn { } /** aggregate stddev on columns */ -export type VoltsDemandStddevFields = { +export type Volts_Demand_Stddev_Fields = { __typename?: 'volts_demand_stddev_fields'; cyberlinks_per_day?: Maybe; volts?: Maybe; }; /** aggregate stddev_pop on columns */ -export type VoltsDemandStddevPopFields = { +export type Volts_Demand_Stddev_Pop_Fields = { __typename?: 'volts_demand_stddev_pop_fields'; cyberlinks_per_day?: Maybe; volts?: Maybe; }; /** aggregate stddev_samp on columns */ -export type VoltsDemandStddevSampFields = { +export type Volts_Demand_Stddev_Samp_Fields = { __typename?: 'volts_demand_stddev_samp_fields'; cyberlinks_per_day?: Maybe; volts?: Maybe; }; /** aggregate sum on columns */ -export type VoltsDemandSumFields = { +export type Volts_Demand_Sum_Fields = { __typename?: 'volts_demand_sum_fields'; cyberlinks_per_day?: Maybe; volts?: Maybe; }; /** aggregate var_pop on columns */ -export type VoltsDemandVarPopFields = { +export type Volts_Demand_Var_Pop_Fields = { __typename?: 'volts_demand_var_pop_fields'; cyberlinks_per_day?: Maybe; volts?: Maybe; }; /** aggregate var_samp on columns */ -export type VoltsDemandVarSampFields = { +export type Volts_Demand_Var_Samp_Fields = { __typename?: 'volts_demand_var_samp_fields'; cyberlinks_per_day?: Maybe; volts?: Maybe; }; /** aggregate variance on columns */ -export type VoltsDemandVarianceFields = { +export type Volts_Demand_Variance_Fields = { __typename?: 'volts_demand_variance_fields'; cyberlinks_per_day?: Maybe; volts?: Maybe; }; /** columns and relationships of "volts_stats" */ -export type VoltsStats = { +export type Volts_Stats = { __typename?: 'volts_stats'; date?: Maybe; volts?: Maybe; @@ -10191,54 +10191,54 @@ export type VoltsStats = { }; /** aggregated selection of "volts_stats" */ -export type VoltsStatsAggregate = { +export type Volts_Stats_Aggregate = { __typename?: 'volts_stats_aggregate'; - aggregate?: Maybe; - nodes: Array; + aggregate?: Maybe; + nodes: Array; }; /** aggregate fields of "volts_stats" */ -export type VoltsStatsAggregateFields = { +export type Volts_Stats_Aggregate_Fields = { __typename?: 'volts_stats_aggregate_fields'; - avg?: Maybe; + avg?: Maybe; count: Scalars['Int']['output']; - max?: Maybe; - min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; /** aggregate fields of "volts_stats" */ -export type VoltsStatsAggregateFieldsCountArgs = { - columns?: InputMaybe>; +export type Volts_Stats_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; distinct?: InputMaybe; }; /** aggregate avg on columns */ -export type VoltsStatsAvgFields = { +export type Volts_Stats_Avg_Fields = { __typename?: 'volts_stats_avg_fields'; volts?: Maybe; volts_per_day?: Maybe; }; /** Boolean expression to filter rows from the table "volts_stats". All fields are combined with a logical 'AND'. */ -export type VoltsStatsBoolExp = { - _and?: InputMaybe>; - _not?: InputMaybe; - _or?: InputMaybe>; - date?: InputMaybe; - volts?: InputMaybe; - volts_per_day?: InputMaybe; +export type Volts_Stats_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + date?: InputMaybe; + volts?: InputMaybe; + volts_per_day?: InputMaybe; }; /** aggregate max on columns */ -export type VoltsStatsMaxFields = { +export type Volts_Stats_Max_Fields = { __typename?: 'volts_stats_max_fields'; date?: Maybe; volts?: Maybe; @@ -10246,7 +10246,7 @@ export type VoltsStatsMaxFields = { }; /** aggregate min on columns */ -export type VoltsStatsMinFields = { +export type Volts_Stats_Min_Fields = { __typename?: 'volts_stats_min_fields'; date?: Maybe; volts?: Maybe; @@ -10254,14 +10254,14 @@ export type VoltsStatsMinFields = { }; /** Ordering options when selecting data from "volts_stats". */ -export type VoltsStatsOrderBy = { - date?: InputMaybe; - volts?: InputMaybe; - volts_per_day?: InputMaybe; +export type Volts_Stats_Order_By = { + date?: InputMaybe; + volts?: InputMaybe; + volts_per_day?: InputMaybe; }; /** select columns of table "volts_stats" */ -export enum VoltsStatsSelectColumn { +export enum Volts_Stats_Select_Column { /** column name */ Date = 'date', /** column name */ @@ -10271,49 +10271,49 @@ export enum VoltsStatsSelectColumn { } /** aggregate stddev on columns */ -export type VoltsStatsStddevFields = { +export type Volts_Stats_Stddev_Fields = { __typename?: 'volts_stats_stddev_fields'; volts?: Maybe; volts_per_day?: Maybe; }; /** aggregate stddev_pop on columns */ -export type VoltsStatsStddevPopFields = { +export type Volts_Stats_Stddev_Pop_Fields = { __typename?: 'volts_stats_stddev_pop_fields'; volts?: Maybe; volts_per_day?: Maybe; }; /** aggregate stddev_samp on columns */ -export type VoltsStatsStddevSampFields = { +export type Volts_Stats_Stddev_Samp_Fields = { __typename?: 'volts_stats_stddev_samp_fields'; volts?: Maybe; volts_per_day?: Maybe; }; /** aggregate sum on columns */ -export type VoltsStatsSumFields = { +export type Volts_Stats_Sum_Fields = { __typename?: 'volts_stats_sum_fields'; volts?: Maybe; volts_per_day?: Maybe; }; /** aggregate var_pop on columns */ -export type VoltsStatsVarPopFields = { +export type Volts_Stats_Var_Pop_Fields = { __typename?: 'volts_stats_var_pop_fields'; volts?: Maybe; volts_per_day?: Maybe; }; /** aggregate var_samp on columns */ -export type VoltsStatsVarSampFields = { +export type Volts_Stats_Var_Samp_Fields = { __typename?: 'volts_stats_var_samp_fields'; volts?: Maybe; volts_per_day?: Maybe; }; /** aggregate variance on columns */ -export type VoltsStatsVarianceFields = { +export type Volts_Stats_Variance_Fields = { __typename?: 'volts_stats_variance_fields'; volts?: Maybe; volts_per_day?: Maybe; @@ -10324,6 +10324,57 @@ export type TransactionsSubscriptionVariables = Exact<{ [key: string]: never; }> export type TransactionsSubscription = { __typename?: 'subscription_root', transaction: Array<{ __typename?: 'transaction', success: boolean, messages: any, height: any, hash: string }> }; +export type CyberlinksByParticleQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe | Cyberlinks_Order_By>; + where?: InputMaybe; +}>; + + +export type CyberlinksByParticleQuery = { __typename?: 'query_root', cyberlinks: Array<{ __typename?: 'cyberlinks', timestamp: any, neuron: string, transaction_hash: string, from: string, to: string }> }; + +export type CyberlinksCountByNeuronQueryVariables = Exact<{ + address?: InputMaybe; + particles_from?: InputMaybe | Scalars['String']['input']>; + timestamp?: InputMaybe; +}>; + + +export type CyberlinksCountByNeuronQuery = { __typename?: 'query_root', cyberlinks_aggregate: { __typename?: 'cyberlinks_aggregate', aggregate?: { __typename?: 'cyberlinks_aggregate_fields', count: number } | null } }; + +export type MessagesByAddressCountQueryVariables = Exact<{ + address?: InputMaybe; + timestamp?: InputMaybe; +}>; + + +export type MessagesByAddressCountQuery = { __typename?: 'query_root', messages_by_address_aggregate: { __typename?: 'message_aggregate', aggregate?: { __typename?: 'message_aggregate_fields', count: number } | null } }; + +export type MessagesByAddressSenseQueryVariables = Exact<{ + address?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; + timestamp_from?: InputMaybe; + types?: InputMaybe; + order_direction?: InputMaybe; +}>; + + +export type MessagesByAddressSenseQuery = { __typename?: 'query_root', messages_by_address: Array<{ __typename?: 'message', transaction_hash: string, index: any, value: any, type: string, transaction: { __typename?: 'transaction', success: boolean, memo?: string | null, block: { __typename?: 'block', timestamp: any, height: any } } }> }; + +export type MessagesByAddressSenseWsSubscriptionVariables = Exact<{ + address?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; + timestamp_from?: InputMaybe; + types?: InputMaybe; + order_direction?: InputMaybe; +}>; + + +export type MessagesByAddressSenseWsSubscription = { __typename?: 'subscription_root', messages_by_address: Array<{ __typename?: 'message', transaction_hash: string, index: any, value: any, type: string, transaction: { __typename?: 'transaction', success: boolean, memo?: string | null, block: { __typename?: 'block', timestamp: any, height: any } } }> }; + export type MessagesByAddressQueryVariables = Exact<{ address?: InputMaybe; limit?: InputMaybe; @@ -10366,6 +10417,255 @@ export function useTransactionsSubscription(baseOptions?: Apollo.SubscriptionHoo } export type TransactionsSubscriptionHookResult = ReturnType; export type TransactionsSubscriptionResult = Apollo.SubscriptionResult; +export const CyberlinksByParticleDocument = gql` + query CyberlinksByParticle($limit: Int, $offset: Int, $orderBy: [cyberlinks_order_by!], $where: cyberlinks_bool_exp) { + cyberlinks(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { + from: particle_from + to: particle_to + timestamp + neuron + transaction_hash + } +} + `; + +/** + * __useCyberlinksByParticleQuery__ + * + * To run a query within a React component, call `useCyberlinksByParticleQuery` and pass it any options that fit your needs. + * When your component renders, `useCyberlinksByParticleQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useCyberlinksByParticleQuery({ + * variables: { + * limit: // value for 'limit' + * offset: // value for 'offset' + * orderBy: // value for 'orderBy' + * where: // value for 'where' + * }, + * }); + */ +export function useCyberlinksByParticleQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(CyberlinksByParticleDocument, options); + } +export function useCyberlinksByParticleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(CyberlinksByParticleDocument, options); + } +export function useCyberlinksByParticleSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(CyberlinksByParticleDocument, options); + } +export type CyberlinksByParticleQueryHookResult = ReturnType; +export type CyberlinksByParticleLazyQueryHookResult = ReturnType; +export type CyberlinksByParticleSuspenseQueryHookResult = ReturnType; +export type CyberlinksByParticleQueryResult = Apollo.QueryResult; +export const CyberlinksCountByNeuronDocument = gql` + query CyberlinksCountByNeuron($address: String, $particles_from: [String!], $timestamp: timestamp) { + cyberlinks_aggregate( + where: {_and: [{neuron: {_eq: $address}}, {particle_from: {_in: $particles_from}}, {timestamp: {_gt: $timestamp}}]} + ) { + aggregate { + count + } + } +} + `; + +/** + * __useCyberlinksCountByNeuronQuery__ + * + * To run a query within a React component, call `useCyberlinksCountByNeuronQuery` and pass it any options that fit your needs. + * When your component renders, `useCyberlinksCountByNeuronQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useCyberlinksCountByNeuronQuery({ + * variables: { + * address: // value for 'address' + * particles_from: // value for 'particles_from' + * timestamp: // value for 'timestamp' + * }, + * }); + */ +export function useCyberlinksCountByNeuronQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(CyberlinksCountByNeuronDocument, options); + } +export function useCyberlinksCountByNeuronLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(CyberlinksCountByNeuronDocument, options); + } +export function useCyberlinksCountByNeuronSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(CyberlinksCountByNeuronDocument, options); + } +export type CyberlinksCountByNeuronQueryHookResult = ReturnType; +export type CyberlinksCountByNeuronLazyQueryHookResult = ReturnType; +export type CyberlinksCountByNeuronSuspenseQueryHookResult = ReturnType; +export type CyberlinksCountByNeuronQueryResult = Apollo.QueryResult; +export const MessagesByAddressCountDocument = gql` + query MessagesByAddressCount($address: _text, $timestamp: timestamp) { + messages_by_address_aggregate( + args: {addresses: $address, limit: "100000000", offset: "0", types: "{}"} + where: {transaction: {block: {timestamp: {_gt: $timestamp}}}} + ) { + aggregate { + count + } + } +} + `; + +/** + * __useMessagesByAddressCountQuery__ + * + * To run a query within a React component, call `useMessagesByAddressCountQuery` and pass it any options that fit your needs. + * When your component renders, `useMessagesByAddressCountQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useMessagesByAddressCountQuery({ + * variables: { + * address: // value for 'address' + * timestamp: // value for 'timestamp' + * }, + * }); + */ +export function useMessagesByAddressCountQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(MessagesByAddressCountDocument, options); + } +export function useMessagesByAddressCountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(MessagesByAddressCountDocument, options); + } +export function useMessagesByAddressCountSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(MessagesByAddressCountDocument, options); + } +export type MessagesByAddressCountQueryHookResult = ReturnType; +export type MessagesByAddressCountLazyQueryHookResult = ReturnType; +export type MessagesByAddressCountSuspenseQueryHookResult = ReturnType; +export type MessagesByAddressCountQueryResult = Apollo.QueryResult; +export const MessagesByAddressSenseDocument = gql` + query MessagesByAddressSense($address: _text, $limit: bigint, $offset: bigint, $timestamp_from: timestamp, $types: _text, $order_direction: order_by) { + messages_by_address( + args: {addresses: $address, limit: $limit, offset: $offset, types: $types} + order_by: {transaction: {block: {timestamp: $order_direction}}} + where: {transaction: {block: {timestamp: {_gt: $timestamp_from}}}} + ) { + transaction_hash + index + value + transaction { + success + block { + timestamp + height + } + memo + } + type + } +} + `; + +/** + * __useMessagesByAddressSenseQuery__ + * + * To run a query within a React component, call `useMessagesByAddressSenseQuery` and pass it any options that fit your needs. + * When your component renders, `useMessagesByAddressSenseQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useMessagesByAddressSenseQuery({ + * variables: { + * address: // value for 'address' + * limit: // value for 'limit' + * offset: // value for 'offset' + * timestamp_from: // value for 'timestamp_from' + * types: // value for 'types' + * order_direction: // value for 'order_direction' + * }, + * }); + */ +export function useMessagesByAddressSenseQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(MessagesByAddressSenseDocument, options); + } +export function useMessagesByAddressSenseLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(MessagesByAddressSenseDocument, options); + } +export function useMessagesByAddressSenseSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(MessagesByAddressSenseDocument, options); + } +export type MessagesByAddressSenseQueryHookResult = ReturnType; +export type MessagesByAddressSenseLazyQueryHookResult = ReturnType; +export type MessagesByAddressSenseSuspenseQueryHookResult = ReturnType; +export type MessagesByAddressSenseQueryResult = Apollo.QueryResult; +export const MessagesByAddressSenseWsDocument = gql` + subscription MessagesByAddressSenseWs($address: _text, $limit: bigint, $offset: bigint, $timestamp_from: timestamp, $types: _text, $order_direction: order_by) { + messages_by_address( + args: {addresses: $address, limit: $limit, offset: $offset, types: $types} + order_by: {transaction: {block: {timestamp: $order_direction}}} + where: {transaction: {block: {timestamp: {_gt: $timestamp_from}}}} + ) { + transaction_hash + index + value + transaction { + success + block { + timestamp + height + } + memo + } + type + } +} + `; + +/** + * __useMessagesByAddressSenseWsSubscription__ + * + * To run a query within a React component, call `useMessagesByAddressSenseWsSubscription` and pass it any options that fit your needs. + * When your component renders, `useMessagesByAddressSenseWsSubscription` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useMessagesByAddressSenseWsSubscription({ + * variables: { + * address: // value for 'address' + * limit: // value for 'limit' + * offset: // value for 'offset' + * timestamp_from: // value for 'timestamp_from' + * types: // value for 'types' + * order_direction: // value for 'order_direction' + * }, + * }); + */ +export function useMessagesByAddressSenseWsSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSubscription(MessagesByAddressSenseWsDocument, options); + } +export type MessagesByAddressSenseWsSubscriptionHookResult = ReturnType; +export type MessagesByAddressSenseWsSubscriptionResult = Apollo.SubscriptionResult; export const MessagesByAddressDocument = gql` query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint) { messages_by_address( diff --git a/src/services/CozoDb/mapping.ts b/src/services/CozoDb/mapping.ts index 54f5a7939..f5bbaf157 100644 --- a/src/services/CozoDb/mapping.ts +++ b/src/services/CozoDb/mapping.ts @@ -5,7 +5,7 @@ import { IPFSContent } from '../ipfs/ipfs'; import { LinkDbEntity, PinTypeMap } from './types/entities'; import { Transaction } from '../backend/services/indexer/types'; import { LinkDto, ParticleDto, PinDto, TransactionDto } from './types/dto'; -import { CyberlinksByParticleResponse } from '../backend/services/dataSource/blockchain/indexer'; +import { CyberlinksByParticleQuery } from 'src/generated/graphql'; export const mapParticleToEntity = (particle: IPFSContent): ParticleDto => { const { cid, result, meta, textPreview } = particle; @@ -97,7 +97,7 @@ export const mapLinkFromIndexerToDto = ({ neuron, timestamp, transaction_hash, -}: CyberlinksByParticleResponse['cyberlinks'][0]): LinkDto => ({ +}: CyberlinksByParticleQuery['cyberlinks'][0]): LinkDto => ({ from, to, neuron, diff --git a/src/services/backend/services/dataSource/indexedDb/dbApiWrapper.ts b/src/services/backend/services/DbApi/DbApi.ts similarity index 98% rename from src/services/backend/services/dataSource/indexedDb/dbApiWrapper.ts rename to src/services/backend/services/DbApi/DbApi.ts index f99454c42..3e3648f64 100644 --- a/src/services/backend/services/dataSource/indexedDb/dbApiWrapper.ts +++ b/src/services/backend/services/DbApi/DbApi.ts @@ -23,12 +23,12 @@ import { } from 'src/services/CozoDb/types/dto'; import { SenseListItem } from 'src/services/backend/types/sense'; -import { SyncQueueItem } from '../../sync/services/ParticlesResolverQueue/types'; -import { extractSenseChats } from '../../sync/services/utils/sense'; +import { SyncQueueItem } from '../sync/services/ParticlesResolverQueue/types'; +import { extractSenseChats } from '../sync/services/utils/sense'; import { MSG_MULTI_SEND_TRANSACTION_TYPE, MSG_SEND_TRANSACTION_TYPE, -} from '../../indexer/types'; +} from '../indexer/types'; const TIMESTAMP_INTITAL = 0; const DEFAULT_SYNC_STATUS = { diff --git a/src/services/backend/services/dataSource/indexedDb/__mocks__/dbApiWrapperMock.ts b/src/services/backend/services/DbApi/__mocks__/dbApiWrapperMock.ts similarity index 100% rename from src/services/backend/services/dataSource/indexedDb/__mocks__/dbApiWrapperMock.ts rename to src/services/backend/services/DbApi/__mocks__/dbApiWrapperMock.ts diff --git a/src/services/backend/services/DeferredDbSaver/DeferredDbSaver.test.ts b/src/services/backend/services/DeferredDbSaver/DeferredDbSaver.test.ts index 1202429cd..9022d3b7e 100644 --- a/src/services/backend/services/DeferredDbSaver/DeferredDbSaver.test.ts +++ b/src/services/backend/services/DeferredDbSaver/DeferredDbSaver.test.ts @@ -1,5 +1,5 @@ import DeferredDbSaver from './DeferredDbSaver'; -import DbApi from '../dataSource/indexedDb/dbApiWrapper'; +import DbApi from '../DbApi/DbApi'; import { IPFSContent } from 'src/services/ipfs/ipfs'; import { BehaviorSubject, of } from 'rxjs'; diff --git a/src/services/backend/services/DeferredDbSaver/DeferredDbSaver.ts b/src/services/backend/services/DeferredDbSaver/DeferredDbSaver.ts index c846b4707..32d848a55 100644 --- a/src/services/backend/services/DeferredDbSaver/DeferredDbSaver.ts +++ b/src/services/backend/services/DeferredDbSaver/DeferredDbSaver.ts @@ -13,7 +13,7 @@ import { IPFSContent, IPFSContentMaybe } from 'src/services/ipfs/ipfs'; import { v4 as uuidv4 } from 'uuid'; import { ParticleCid } from 'src/types/base'; import { mapParticleToEntity } from 'src/services/CozoDb/mapping'; -import DbApi from '../dataSource/indexedDb/dbApiWrapper'; +import DbApi from '../DbApi/DbApi'; import { LinkDto } from 'src/services/CozoDb/types/dto'; type QueueItem = { diff --git a/src/services/backend/services/dataSource/blockchain/__tests__/indexer.test.ts b/src/services/backend/services/dataSource/blockchain/__tests__/indexer.test.ts deleted file mode 100644 index 28d10bb2e..000000000 --- a/src/services/backend/services/dataSource/blockchain/__tests__/indexer.test.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { fetchCyberlinksIterable } from '../indexer'; -import { fetchTransactionsIterable } from '../../../indexer/transactions'; -import { request } from 'graphql-request'; - -jest.mock('graphql-request'); - -describe('fetchTransactionsIterable', () => { - it('should iterate over fetched transactions', async () => { - const mockResponse = [ - [ - { id: 1, value: 100 }, - { id: 2, value: 200 }, - ], - [{ id: 3, value: 300 }], - ]; - - const mockCyberIndexUrl = 'mockUrl'; - const mockNeuronAddress = 'mockAddress'; - const mockTimestamp = 12345; - - (request as jest.Mock).mockResolvedValueOnce({ - messages_by_address: mockResponse[0], - }); - (request as jest.Mock).mockResolvedValueOnce({ - messages_by_address: mockResponse[1], - }); - (request as jest.Mock).mockResolvedValueOnce({ - messages_by_address: [], - }); - const iterable = fetchTransactionsIterable( - mockCyberIndexUrl, - mockNeuronAddress, - mockTimestamp - ); - - const result1 = await iterable.next(); - expect(result1.value).toEqual(mockResponse[0]); - const result2 = await iterable.next(); - expect(result2.value).toEqual(mockResponse[1]); - const result3 = await iterable.next(); - expect(result3.done).toEqual(true); - }); -}); - -// const mockResponse = { -// messages_by_address: [ -// { -// transaction_hash: 'th1', -// value: { -// msg: 'msg1==', -// funds: [], -// sender: 'sender-addr', -// contract: 'contact-addr', -// }, -// transaction: { -// success: true, -// block: { -// timestamp: '2023-12-18T10:28:13.942406', -// height: 11324342, -// }, -// memo: '[bostrom] cyb.ai, using keplr', -// }, -// type: 'cosmwasm.wasm.v1.MsgExecuteContract', -// }, -// { -// transaction_hash: 'th2', -// value: { -// links: [ -// { -// to: 'cid1', -// from: 'cid2', -// }, -// ], -// neuron: 'neuron-addre', -// }, -// }, -// ], -// }; - -describe('fetchCyberlinksIterable', () => { - it('should iterate over fetched cyberlinks', async () => { - const mockResponse = { - cyberlinks: [ - { id: 1, from: 'A', to: 'B' }, - { id: 2, from: 'C', to: 'D' }, - ], - }; - const mockCyberIndexUrl = 'mockUrl'; - const mockParticleCid = 'mockCid'; - const mockTimestamp = 12345; - - request.mockResolvedValue(mockResponse); - - const iterable = fetchCyberlinksIterable( - mockCyberIndexUrl, - mockParticleCid, - mockTimestamp - ); - - const result1 = await iterable.next(); - expect(result1.value).toEqual([ - { id: 1, from: 'A', to: 'B' }, - { id: 2, from: 'C', to: 'D' }, - ]); - }); -}); diff --git a/src/services/backend/services/dataSource/blockchain/__tests__/lcd.test.ts b/src/services/backend/services/dataSource/blockchain/__tests__/lcd.test.ts deleted file mode 100644 index 0f1a5fd04..000000000 --- a/src/services/backend/services/dataSource/blockchain/__tests__/lcd.test.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { CID_TWEET } from 'src/constants/app'; -import { fetchLinksByNeuronTimestamp } from '../lcd'; - -describe('fetchLinksByNeuronTimestamp with real LCD', () => { - it('should iterate over fetched items', async () => { - const items = await fetchLinksByNeuronTimestamp( - 'https://lcd.bostrom.cybernode.ai', - 'bostrom1uj85l9uar80s342nw5uqjrnvm3zlzsd0392dq3', - CID_TWEET, - 1698150174000 - ); - console.log(items); - expect(items.length).toBeGreaterThan(0); - expect(items.at(-1)?.timestamp).toEqual(1705493602000); - }); -}); diff --git a/src/services/backend/services/dataSource/blockchain/__tests__/utils.test.ts b/src/services/backend/services/dataSource/blockchain/__tests__/utils.test.ts deleted file mode 100644 index 69df8ba2a..000000000 --- a/src/services/backend/services/dataSource/blockchain/__tests__/utils.test.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { fetchIterable } from '../utils/fetch'; - -describe('fetchIterable', () => { - it('should iterate over fetched items', async () => { - const mockFetchFunction = jest - .fn() - .mockResolvedValueOnce([1, 2, 3]) - .mockResolvedValueOnce([]); - const cyberIndexUrl = 'mockUrl'; - const id = 'mockId'; - const timestamp = 12345; - - const iterable = fetchIterable( - mockFetchFunction, - cyberIndexUrl, - id, - timestamp - ); - - const result1 = await iterable.next(); - expect(result1.value).toEqual([1, 2, 3]); - - const result2 = await iterable.next(); - expect(result2.done).toBe(true); - - expect(mockFetchFunction).toHaveBeenCalledWith( - cyberIndexUrl, - id, - timestamp, - 0 - ); - expect(mockFetchFunction).toHaveBeenCalledWith( - cyberIndexUrl, - id, - timestamp, - 3 - ); - }); -}); diff --git a/src/services/backend/services/dataSource/blockchain/indexer.ts b/src/services/backend/services/dataSource/blockchain/indexer.ts deleted file mode 100644 index 7387dff27..000000000 --- a/src/services/backend/services/dataSource/blockchain/indexer.ts +++ /dev/null @@ -1,183 +0,0 @@ -/* eslint-disable import/no-unused-modules */ - -import { gql } from '@apollo/client'; - -import { Cyberlink, ParticleCid, NeuronAddress } from 'src/types/base'; -import { dateToUtcNumber, numberToUtcDate } from 'src/utils/date'; - -import { CYBERLINKS_BATCH_LIMIT } from './consts'; -import { fetchIterable } from './utils/fetch'; -import { createIndexerClient } from '../../indexer/utils'; - -type CyberlinksCountResponse = { - cyberlinks_aggregate: { - aggregate: { - count: number; - }; - }; -}; - -export type CyberlinksByParticleResponse = { - cyberlinks: (Omit & { - timestamp: string; - neuron: NeuronAddress; - transaction_hash: string; - })[]; -}; -const cyberlinksByParticle = gql(` -query Cyberlinks($limit: Int, $offset: Int, $orderBy: [cyberlinks_order_by!], $where: cyberlinks_bool_exp) { - cyberlinks(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { - from: particle_from - to: particle_to - timestamp - neuron - transaction_hash - } -} -`); - -const cyberlinksCountByNeuron = gql(` - query MyQuery($address: String, $particles_from: [String!], $timestamp: timestamp) { - cyberlinks_aggregate(where: { - _and: [ - { neuron: {_eq: $address}}, - { particle_from: {_in: $particles_from}}, - { timestamp: {_gt: $timestamp}} - ] - }) { - aggregate { - count - } - } - } - `); - -const fetchCyberlinks = async ({ - particleCid, - timestampFrom, - offset = 0, - abortSignal, -}: { - particleCid: ParticleCid; - timestampFrom: number; - offset?: number; - abortSignal: AbortSignal; -}) => { - const res = await createIndexerClient( - abortSignal - ).request(cyberlinksByParticle, { - limit: CYBERLINKS_BATCH_LIMIT, - offset, - orderBy: [ - { - timestamp: 'asc', - }, - ], - where: { - _or: [ - { - particle_to: { - _eq: particleCid, - }, - }, - { - particle_from: { - _eq: particleCid, - }, - }, - ], - timestamp: { - _gt: numberToUtcDate(timestampFrom), - }, - }, - }); - return res.cyberlinks; -}; - -const fetchCyberlinksCount = async ( - address: NeuronAddress, - particlesFrom: ParticleCid[], - timestampFrom: number, - abortSignal?: AbortSignal -) => { - const res = await createIndexerClient( - abortSignal - ).request(cyberlinksCountByNeuron, { - address, - particles_from: particlesFrom, - timestamp: numberToUtcDate(timestampFrom), - }); - - return res?.cyberlinks_aggregate.aggregate.count; -}; - -const fetchCyberlinksByNeroun = async ({ - neuron, - particlesFrom, - timestampFrom, - batchSize, - offset = 0, - abortSignal, -}: { - neuron: NeuronAddress; - particlesFrom: ParticleCid[]; - timestampFrom: number; - batchSize: number; - offset?: number; - abortSignal?: AbortSignal; -}) => { - const where = { - _and: [ - { - timestamp: { - _gt: numberToUtcDate(timestampFrom), - }, - }, - { - neuron: { - _eq: neuron, - }, - }, - { particle_from: { _in: particlesFrom } }, - ], - }; - - const res = await createIndexerClient( - abortSignal - ).request(cyberlinksByParticle, { - limit: batchSize, - offset, - orderBy: [ - { - timestamp: 'asc', - }, - ], - where, - }); - - return res.cyberlinks; -}; - -export const fetchCyberlinksByNerounIterable = async ( - neuron: NeuronAddress, - particlesFrom: ParticleCid[], - timestampFrom: number, - batchSize: number, - abortSignal?: AbortSignal -) => - fetchIterable(fetchCyberlinksByNeroun, { - neuron, - particlesFrom, - timestampFrom, - batchSize, - abortSignal, - }); - -const fetchCyberlinksIterable = ( - particleCid: ParticleCid, - timestampFrom: number, - abortSignal: AbortSignal -) => - fetchIterable(fetchCyberlinks, { particleCid, timestampFrom, abortSignal }); - -export { fetchCyberlinksIterable, fetchCyberlinksCount }; diff --git a/src/services/backend/services/dataSource/blockchain/lcd.ts b/src/services/backend/services/dataSource/blockchain/lcd.ts deleted file mode 100644 index 6223f274a..000000000 --- a/src/services/backend/services/dataSource/blockchain/lcd.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* eslint-disable no-await-in-loop */ -import axios from 'axios'; -import { T } from 'ramda'; -import { CyberlinkTxHash, NeuronAddress, ParticleCid } from 'src/types/base'; -import { dateToUtcNumber } from 'src/utils/date'; -import { LCD_URL } from 'src/constants/config'; -import { fetchIterable } from './utils/fetch'; - -const PAGINATION_LIMIT = 10; - -type LcdEventType = { - key: string; - value: string; -}; - -async function getTransactions( - events: LcdEventType[], - pagination = { limit: 20, offset: 0 }, - orderBy = 'ORDER_BY_UNSPECIFIED' -) { - const { offset, limit } = pagination; - const response = axios.get(`${LCD_URL}/cosmos/tx/v1beta1/txs`, { - params: { - 'pagination.offset': offset, - 'pagination.limit': limit, - orderBy, - events: events.map((evn) => `${evn.key}='${evn.value}'`), - }, - paramsSerializer: { - indexes: null, - }, - }); - return response; -} - -const fetchLinkByNeuron = async ({ - address, - from, - offset = 0, -}: { - address: NeuronAddress; - from: ParticleCid; - offset: number; -}) => { - const events = [ - { - key: 'cyberlink.particleFrom', - value: from, - }, - { - key: 'cyberlink.neuron', - value: address, - }, - ]; - const response = await getTransactions( - LCD_URL, - events, - { limit: PAGINATION_LIMIT, offset }, - 'ORDER_BY_DESC' - ); - // console.log('-----req', address, offset, response?.request?.responseURL); - - const links: CyberlinkTxHash[] = []; - - response.data.tx_responses.forEach((item) => { - const { - txhash, - timestamp, - tx: { - body: { messages }, - }, - } = item; - messages.forEach((msg) => { - msg.links.forEach((l) => { - links.push({ - from: l.from, - to: l.to, - neuron: address, - timestamp: dateToUtcNumber(timestamp), - transaction_hash: txhash, - }); - }); - }); - }); - - return links; -}; - -const fetchLinksByNeuronTimestampIterable = ( - address: NeuronAddress, - fromParticle: ParticleCid, - timestamp: number -) => - fetchIterable(fetchLinkByNeuron, { - address, - timestamp, - from: fromParticle, - }); - -// eslint-disable-next-line import/prefer-default-export -export const fetchLinksByNeuronTimestamp = async ( - address: NeuronAddress, - from: ParticleCid, - timestamp: number -) => { - const result = []; - while (true) { - try { - const items = await fetchLinkByNeuron({ - address, - from, - offset: result.length, - }); - - const partialItems = items.filter((i) => timestamp <= i.timestamp); - result.push(...partialItems); - - if ( - items.length === 0 || - timestamp >= items[0].timestamp || - items.length < PAGINATION_LIMIT - ) { - break; - } - } catch (e) { - console.log(`>>x ${address} from: ${from} ts: ${timestamp}`); - break; - } - } - return result; -}; diff --git a/src/services/backend/services/dataSource/blockchain/utils/fetch.ts b/src/services/backend/services/dataSource/blockchain/utils/fetch.ts deleted file mode 100644 index 214fb5413..000000000 --- a/src/services/backend/services/dataSource/blockchain/utils/fetch.ts +++ /dev/null @@ -1,19 +0,0 @@ -// eslint-disable-next-line import/prefer-default-export -export async function* fetchIterable( - fetchFunction: (params: P & { offset: number }) => Promise, - params: P -): AsyncGenerator { - let offset = 0; - while (true) { - // eslint-disable-next-line no-await-in-loop - const items = await fetchFunction({ ...params, offset }); - - if (items.length === 0) { - break; - } - - yield items; - - offset += items.length; - } -} diff --git a/src/services/backend/services/dataSource/blockchain/consts.ts b/src/services/backend/services/indexer/consts.ts similarity index 100% rename from src/services/backend/services/dataSource/blockchain/consts.ts rename to src/services/backend/services/indexer/consts.ts diff --git a/src/services/backend/services/indexer/cyberlinks.ts b/src/services/backend/services/indexer/cyberlinks.ts new file mode 100644 index 000000000..c47c8e102 --- /dev/null +++ b/src/services/backend/services/indexer/cyberlinks.ts @@ -0,0 +1,141 @@ +/* eslint-disable import/no-unused-modules */ + +import { ParticleCid, NeuronAddress } from 'src/types/base'; +import { numberToUtcDate } from 'src/utils/date'; + +import { CYBERLINKS_BATCH_LIMIT } from './consts'; +import { createIndexerClient } from './utils/graphqlClient'; +import { fetchIterableByOffset } from 'src/utils/async/iterable'; +import { + CyberlinksByParticleDocument, + CyberlinksByParticleQuery, + CyberlinksByParticleQueryVariables, + CyberlinksCountByNeuronDocument, + CyberlinksCountByNeuronQuery, + CyberlinksCountByNeuronQueryVariables, + Order_By, +} from 'src/generated/graphql'; + +const fetchCyberlinks = async ({ + particleCid, + timestampFrom, + offset = 0, + abortSignal, +}: { + particleCid: ParticleCid; + timestampFrom: number; + offset?: number; + abortSignal: AbortSignal; +}) => { + const res = await createIndexerClient(abortSignal).request< + CyberlinksByParticleQuery, + CyberlinksByParticleQueryVariables + >(CyberlinksByParticleDocument, { + limit: CYBERLINKS_BATCH_LIMIT, + offset, + orderBy: [{ timestamp: Order_By.Asc }], + where: { + _or: [ + { particle_to: { _eq: particleCid } }, + { particle_from: { _eq: particleCid } }, + ], + timestamp: { _gt: numberToUtcDate(timestampFrom) }, + }, + }); + + return res.cyberlinks; +}; + +const fetchCyberlinksCount = async ( + address: NeuronAddress, + particlesFrom: ParticleCid[], + timestampFrom: number, + abortSignal: AbortSignal +) => { + const res = await createIndexerClient(abortSignal).request< + CyberlinksCountByNeuronQuery, + CyberlinksCountByNeuronQueryVariables + >(CyberlinksCountByNeuronDocument, { + address, + particles_from: particlesFrom, + timestamp: numberToUtcDate(timestampFrom), + }); + + return res.cyberlinks_aggregate.aggregate?.count; +}; + +const fetchCyberlinksByNeroun = async ({ + neuron, + particlesFrom, + timestampFrom, + batchSize, + offset = 0, + abortSignal, +}: { + neuron: NeuronAddress; + particlesFrom: ParticleCid[]; + timestampFrom: number; + batchSize: number; + offset: number; + abortSignal: AbortSignal; +}) => { + const where = { + _and: [ + { + timestamp: { + _gt: numberToUtcDate(timestampFrom), + }, + }, + { + neuron: { + _eq: neuron, + }, + }, + { particle_from: { _in: particlesFrom } }, + ], + }; + + const res = await createIndexerClient(abortSignal).request< + CyberlinksByParticleQuery, + CyberlinksByParticleQueryVariables + >(CyberlinksByParticleDocument, { + limit: batchSize, + offset, + orderBy: [ + { + timestamp: Order_By.Asc, + }, + ], + where, + }); + + return res.cyberlinks; +}; + +export const fetchCyberlinksByNerounIterable = async ( + neuron: NeuronAddress, + particlesFrom: ParticleCid[], + timestampFrom: number, + batchSize: number, + abortSignal: AbortSignal +) => + fetchIterableByOffset(fetchCyberlinksByNeroun, { + neuron, + particlesFrom, + timestampFrom, + batchSize, + abortSignal, + }); + +const fetchCyberlinksIterable = ( + particleCid: ParticleCid, + timestampFrom: number, + abortSignal: AbortSignal +) => + fetchIterableByOffset(fetchCyberlinks, { + particleCid, + timestampFrom, + abortSignal, + }); + +export { fetchCyberlinksIterable, fetchCyberlinksCount }; diff --git a/src/services/backend/services/indexer/graphql/cyberlinksByParticle.graphql b/src/services/backend/services/indexer/graphql/cyberlinksByParticle.graphql new file mode 100644 index 000000000..f00cbb65f --- /dev/null +++ b/src/services/backend/services/indexer/graphql/cyberlinksByParticle.graphql @@ -0,0 +1,19 @@ +query CyberlinksByParticle( + $limit: Int + $offset: Int + $orderBy: [cyberlinks_order_by!] + $where: cyberlinks_bool_exp +) { + cyberlinks( + limit: $limit + offset: $offset + order_by: $orderBy + where: $where + ) { + from: particle_from + to: particle_to + timestamp + neuron + transaction_hash + } +} diff --git a/src/services/backend/services/indexer/graphql/cyberlinksCountByNeuron.graphql b/src/services/backend/services/indexer/graphql/cyberlinksCountByNeuron.graphql new file mode 100644 index 000000000..880c18a98 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/cyberlinksCountByNeuron.graphql @@ -0,0 +1,19 @@ +query CyberlinksCountByNeuron( + $address: String + $particles_from: [String!] + $timestamp: timestamp +) { + cyberlinks_aggregate( + where: { + _and: [ + { neuron: { _eq: $address } } + { particle_from: { _in: $particles_from } } + { timestamp: { _gt: $timestamp } } + ] + } + ) { + aggregate { + count + } + } +} diff --git a/src/services/backend/services/indexer/graphql/messagesByAddressCount.graphql b/src/services/backend/services/indexer/graphql/messagesByAddressCount.graphql new file mode 100644 index 000000000..bd4926ea8 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/messagesByAddressCount.graphql @@ -0,0 +1,10 @@ +query MessagesByAddressCount($address: _text, $timestamp: timestamp) { + messages_by_address_aggregate( + args: { addresses: $address, limit: "100000000", offset: "0", types: "{}" } + where: { transaction: { block: { timestamp: { _gt: $timestamp } } } } + ) { + aggregate { + count + } + } +} diff --git a/src/services/backend/services/indexer/graphql/messagesByAddressSense/query.graphql b/src/services/backend/services/indexer/graphql/messagesByAddressSense/query.graphql new file mode 100644 index 000000000..83f47ea74 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/messagesByAddressSense/query.graphql @@ -0,0 +1,27 @@ +query MessagesByAddressSense( + $address: _text + $limit: bigint + $offset: bigint + $timestamp_from: timestamp + $types: _text + $order_direction: order_by +) { + messages_by_address( + args: { addresses: $address, limit: $limit, offset: $offset, types: $types } + order_by: { transaction: { block: { timestamp: $order_direction } } } + where: { transaction: { block: { timestamp: { _gt: $timestamp_from } } } } + ) { + transaction_hash + index + value + transaction { + success + block { + timestamp + height + } + memo + } + type + } +} diff --git a/src/services/backend/services/indexer/graphql/messagesByAddressSense/subscription.graphql b/src/services/backend/services/indexer/graphql/messagesByAddressSense/subscription.graphql new file mode 100644 index 000000000..2a00db065 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/messagesByAddressSense/subscription.graphql @@ -0,0 +1,27 @@ +subscription MessagesByAddressSenseWs( + $address: _text + $limit: bigint + $offset: bigint + $timestamp_from: timestamp + $types: _text + $order_direction: order_by +) { + messages_by_address( + args: { addresses: $address, limit: $limit, offset: $offset, types: $types } + order_by: { transaction: { block: { timestamp: $order_direction } } } + where: { transaction: { block: { timestamp: { _gt: $timestamp_from } } } } + ) { + transaction_hash + index + value + transaction { + success + block { + timestamp + height + } + memo + } + type + } +} diff --git a/src/services/backend/services/indexer/transactions.ts b/src/services/backend/services/indexer/transactions.ts index 0a26726ec..d0c4681bc 100644 --- a/src/services/backend/services/indexer/transactions.ts +++ b/src/services/backend/services/indexer/transactions.ts @@ -1,27 +1,20 @@ import { NeuronAddress } from 'src/types/base'; -import { GqlType, Transaction } from './types'; - -import { gql } from '@apollo/client'; - import { numberToUtcDate } from 'src/utils/date'; +import { fetchIterableByOffset } from 'src/utils/async/iterable'; import { - MessagesByAddressVariables, - gqlMessagesByAddress, -} from '../../indexer/transactions'; -import { - TransactionsByAddressResponse, - fetchTransactions, -} from './transactions'; -import { createIndexerClient } from './utils'; -import { - MessagesByAddressVariables, - gqlMessagesByAddress, -} from './transactions'; -import { camelToSnake } from 'src/utils/dto'; -import { fetchIterable } from '../dataSource/blockchain/utils/fetch'; + MessagesByAddressCountDocument, + MessagesByAddressCountQuery, + MessagesByAddressCountQueryVariables, + MessagesByAddressSenseDocument, + MessagesByAddressSenseQuery, + MessagesByAddressSenseQueryVariables, +} from 'src/generated/graphql'; + +import { createIndexerClient } from './utils/graphqlClient'; +import { Transaction } from './types'; type OrderDirection = 'desc' | 'asc'; -type Abortable = { abortSignal?: AbortSignal }; +type Abortable = { abortSignal: AbortSignal }; export type MessagesByAddressVariables = { neuron: NeuronAddress; @@ -39,7 +32,6 @@ export const mapMessagesByAddressVariables = ({ types = [], orderDirection = 'desc', limit, - abortSignal, }: MessagesByAddressVariables) => ({ address: `{${neuron}}`, limit, @@ -49,30 +41,6 @@ export const mapMessagesByAddressVariables = ({ order_direction: orderDirection, }); -export const gqlMessagesByAddress = (type: GqlType) => - gql(` -${type} MyQuery($address: _text, $limit: bigint, $offset: bigint, $timestamp_from: timestamp, $types: _text, $order_direction: order_by) { - messages_by_address( - args: {addresses: $address, limit: $limit, offset: $offset, types: $types}, - order_by: {transaction: {block: {timestamp: $order_direction}}}, - where: {transaction: {block: {timestamp: {_gt: $timestamp_from}}}} - ) { - transaction_hash - index - value - transaction { - success - block { - timestamp, - height - } - memo - } - type - } -} -`); - const fetchTransactions = async ({ neuron, timestampFrom, @@ -82,10 +50,11 @@ const fetchTransactions = async ({ limit, abortSignal, }: MessagesByAddressVariables) => { - const res = await createIndexerClient( - abortSignal - ).request( - gqlMessagesByAddress('query'), + const res = await createIndexerClient(abortSignal).request< + MessagesByAddressSenseQuery, + MessagesByAddressSenseQueryVariables + >( + MessagesByAddressSenseDocument, mapMessagesByAddressVariables({ neuron, timestampFrom, @@ -94,46 +63,26 @@ const fetchTransactions = async ({ orderDirection, limit, abortSignal, - }) + }) as MessagesByAddressSenseQueryVariables ); - return res?.messages_by_address; + return res?.messages_by_address as Transaction[]; }; -export type TransactionsByAddressResponse = { - messages_by_address: Transaction[]; -}; -type MessagesCountResponse = { - messages_by_address_aggregate: { - aggregate: { - count: number; - }; - }; -}; -const transactionsCountByNeuron = gql(` - query MyQuery($address: _text, $timestamp: timestamp) { - messages_by_address_aggregate( - args: {addresses: $address, limit: "100000000", offset: "0", types: "{}"}, - where: {transaction: {block: {timestamp: {_gt: $timestamp}}}}) { - aggregate { - count - } - } - } - `); export const fetchTransactionMessagesCount = async ( address: NeuronAddress, timestampFrom: number, abortSignal: AbortSignal ) => { - const res = await createIndexerClient( - abortSignal - ).request(transactionsCountByNeuron, { + const res = await createIndexerClient(abortSignal).request< + MessagesByAddressCountQuery, + MessagesByAddressCountQueryVariables + >(MessagesByAddressCountDocument, { address: `{${address}}`, timestamp: numberToUtcDate(timestampFrom), }); - return res?.messages_by_address_aggregate.aggregate.count; + return res?.messages_by_address_aggregate.aggregate?.count; }; export const fetchTransactionsIterable = ({ @@ -144,7 +93,7 @@ export const fetchTransactionsIterable = ({ limit, abortSignal, }: MessagesByAddressVariables) => - fetchIterable(fetchTransactions, { + fetchIterableByOffset(fetchTransactions, { neuron, timestampFrom, types, diff --git a/src/services/backend/services/indexer/types.ts b/src/services/backend/services/indexer/types.ts index ba542f8e0..d0444ae6f 100644 --- a/src/services/backend/services/indexer/types.ts +++ b/src/services/backend/services/indexer/types.ts @@ -21,8 +21,6 @@ export const MSG_MULTI_SEND_TRANSACTION_TYPE = export const CYBER_LINK_TRANSACTION_TYPE = 'cyber.graph.v1beta1.MsgCyberlink'; -const DELEGATION_TRANSACTION_TYPE = 'cosmos.staking.v1beta1.MsgDelegate'; - interface Input { address: NeuronAddress; coins: Coin[]; @@ -55,11 +53,6 @@ export interface CyberLinkValue { links: CyberLinkSimple[]; } -interface DelegateTransaction - extends GenericIndexerTransaction { - type: typeof DELEGATION_TRANSACTION_TYPE; -} - export interface CyberLinkTransaction extends GenericIndexerTransaction { type: typeof CYBER_LINK_TRANSACTION_TYPE; @@ -78,5 +71,3 @@ export interface MsgSendTransaction export type Transaction = // | DelegateTransaction CyberLinkTransaction | MsgMultiSendTransaction | MsgSendTransaction; - -export type GqlType = 'query' | 'subscription'; diff --git a/src/services/backend/services/indexer/utils.ts b/src/services/backend/services/indexer/utils/graphqlClient.ts similarity index 94% rename from src/services/backend/services/indexer/utils.ts rename to src/services/backend/services/indexer/utils/graphqlClient.ts index 750ce50e2..789f87982 100644 --- a/src/services/backend/services/indexer/utils.ts +++ b/src/services/backend/services/indexer/utils/graphqlClient.ts @@ -1,9 +1,6 @@ import { ApolloClient, DocumentNode, InMemoryCache } from '@apollo/client'; -import { - GraphQLWsLink, - Observable as ApolloObservable, -} from '@apollo/client/link/subscriptions'; +import { GraphQLWsLink } from '@apollo/client/link/subscriptions'; import { GraphQLClient } from 'graphql-request'; import { createClient } from 'graphql-ws'; import { Observable } from 'rxjs'; @@ -50,6 +47,7 @@ export function createIndexerWebsocket( link: cyberGraphQLWsLink, cache: new InMemoryCache(), }); + const apolloObservable = client.subscribe({ query, variables }); return new Observable((subscriber) => { const subscription = apolloObservable.subscribe({ diff --git a/src/services/backend/services/lcd/__tests__/utils.test.ts b/src/services/backend/services/lcd/__tests__/utils.test.ts deleted file mode 100644 index bedf5f16c..000000000 --- a/src/services/backend/services/lcd/__tests__/utils.test.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { getTransaction } from '../lcd'; -import { mapLcdTransactionsToDto } from '../utils'; - -// Simplified mock response focusing on utilized fields -const mockResponses = { - txs: [ - { - body: { - messages: [ - { - '@type': '/cosmos.bank.v1beta1.MsgSend', - from_address: 'from_addr', - to_address: 'to_addr', - amount: [{ denom: 'boot', amount: '1' }], - }, - ], - memo: 'Test memo', - }, - tx_response: { - txhash: 'TESTHASH123456', - code: 0, - timestamp: '2024-02-14T12:04:00Z', - }, - }, - ], -}; - -describe('mapLcdTransactionsToDto', () => { - it('correctly maps LCD transactions to DTO format', () => { - const neuron = 'neuronXYZ'; - const result = mapLcdTransactionsToDto(neuron, mockResponses); - - expect(result).toEqual( - expect.arrayContaining([ - expect.objectContaining({ - hash: 'TESTHASH123456', - type: 'cosmos.bank.v1beta1.MsgSend', - memo: 'Test memo', - neuron: 'neuronXYZ', - success: true, - value: expect.objectContaining({ - from_address: 'from_addr', - to_address: 'to_addr', - amount: expect.arrayContaining([ - expect.objectContaining({ - denom: 'boot', - amount: '1', - }), - ]), - }), - }), - ]) - ); - }); - - it('correctly fetch and map real transaction', async () => { - const neuron = 'neuronXYZ'; - const msgSendTransaction = - '67FD87EBCC1633B779C154C1CAFD48DE71350074A04F742DAD418F69F1D05BB0'; - const response = await getTransaction(msgSendTransaction); - const result = mapLcdTransactionsToDto(neuron, response.data); - console.log('---r', result); - }); -}); diff --git a/src/services/backend/services/lcd/types.ts b/src/services/backend/services/lcd/types.ts deleted file mode 100644 index b92703e8e..000000000 --- a/src/services/backend/services/lcd/types.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type LcdEventType = { - key: string; - value: string; -}; diff --git a/src/services/backend/services/lcd/utils.ts b/src/services/backend/services/lcd/utils.ts deleted file mode 100644 index 5279d8a80..000000000 --- a/src/services/backend/services/lcd/utils.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { TransactionDto } from 'src/services/CozoDb/types/dto'; -import { NeuronAddress } from 'src/types/base'; -import { dateToUtcNumber } from 'src/utils/date'; - -// eslint-disable-next-line import/no-unused-modules, import/prefer-default-export -export const mapLcdTransactionsToDto = ( - neuron: NeuronAddress, - response: any -) => { - const transactions: TransactionDto[] = []; - - response.txs.forEach((item) => { - const { - timestamp, - body: { memo, messages, height }, - tx_response: { txhash, code }, - } = item; - - messages.forEach((msg: any, index: number) => { - const type = msg['@type'].substring(1); - delete msg['@type']; - transactions.push({ - hash: txhash, - index, - type, - timestamp: dateToUtcNumber(timestamp), - value: msg, - memo, - neuron, - blockHeight: height, - success: code === 0, - }); - }); - }); - - return transactions; -}; diff --git a/src/services/backend/services/sync/services/BaseSyncLoop/BaseSync.ts b/src/services/backend/services/sync/services/BaseSyncLoop/BaseSync.ts index c6bae680c..ea0d8ce04 100644 --- a/src/services/backend/services/sync/services/BaseSyncLoop/BaseSync.ts +++ b/src/services/backend/services/sync/services/BaseSyncLoop/BaseSync.ts @@ -13,7 +13,7 @@ import { broadcastStatus } from 'src/services/backend/channels/broadcastStatus'; import { SyncEntryName } from 'src/services/backend/types/services'; import { CyblogChannel, createCyblogChannel } from 'src/utils/logging/cyblog'; -import DbApiWrapper from '../../../dataSource/indexedDb/dbApiWrapper'; +import DbApiWrapper from '../../../DbApi/DbApi'; import ParticlesResolverQueue from '../ParticlesResolverQueue/ParticlesResolverQueue'; import { ProgressTracker } from '../ProgressTracker/ProgressTracker'; import { ServiceDeps } from '../types'; diff --git a/src/services/backend/services/sync/services/ParticlesResolverQueue/ParticlesResolverQueue.ts b/src/services/backend/services/sync/services/ParticlesResolverQueue/ParticlesResolverQueue.ts index 4fa7ae23a..e3a4e5b3c 100644 --- a/src/services/backend/services/sync/services/ParticlesResolverQueue/ParticlesResolverQueue.ts +++ b/src/services/backend/services/sync/services/ParticlesResolverQueue/ParticlesResolverQueue.ts @@ -16,7 +16,7 @@ import { SyncQueueStatus } from 'src/services/CozoDb/types/entities'; import { QueuePriority } from 'src/services/QueueManager/types'; import { asyncIterableBatchProcessor } from 'src/utils/async/iterable'; -import DbApi from '../../../dataSource/indexedDb/dbApiWrapper'; +import DbApi from '../../../DbApi/DbApi'; import { FetchIpfsFunc } from '../../types'; import { ServiceDeps } from '../types'; diff --git a/src/services/backend/services/sync/services/SyncIpfsLoop/SyncIpfsLoop.test.ts b/src/services/backend/services/sync/services/SyncIpfsLoop/SyncIpfsLoop.test.ts index c285adf93..48c9c02c0 100644 --- a/src/services/backend/services/sync/services/SyncIpfsLoop/SyncIpfsLoop.test.ts +++ b/src/services/backend/services/sync/services/SyncIpfsLoop/SyncIpfsLoop.test.ts @@ -1,7 +1,7 @@ import { of } from 'rxjs'; import { CybIpfsNode } from 'src/services/ipfs/ipfs'; -import { fetchPins } from 'src/services/backend/services/dataSource/ipfs/ipfsSource'; +import { fetchPins } from 'src/services/backend/services/sync/services/SyncIpfsLoop/services'; import DbApi, { mockGetPins, mockDeletePins, diff --git a/src/services/backend/services/sync/services/SyncIpfsLoop/SyncIpfsLoop.ts b/src/services/backend/services/sync/services/SyncIpfsLoop/SyncIpfsLoop.ts index 756aa9b56..c3edda20d 100644 --- a/src/services/backend/services/sync/services/SyncIpfsLoop/SyncIpfsLoop.ts +++ b/src/services/backend/services/sync/services/SyncIpfsLoop/SyncIpfsLoop.ts @@ -5,12 +5,12 @@ import { CybIpfsNode } from 'src/services/ipfs/ipfs'; import { mapPinToEntity } from 'src/services/CozoDb/mapping'; import { QueuePriority } from 'src/services/QueueManager/types'; -import DbApi from '../../../dataSource/indexedDb/dbApiWrapper'; +import DbApi from '../../../DbApi/DbApi'; import { ServiceDeps } from '../types'; import { createLoopObservable } from '../utils/rxjs/loop'; import { IPFS_SYNC_INTERVAL } from '../consts'; -import { fetchPins } from '../../../dataSource/ipfs/ipfsSource'; +import { fetchPins } from './services'; import ParticlesResolverQueue from '../ParticlesResolverQueue/ParticlesResolverQueue'; class SyncIpfsLoop { diff --git a/src/services/backend/services/dataSource/ipfs/ipfsSource.ts b/src/services/backend/services/sync/services/SyncIpfsLoop/services.ts similarity index 95% rename from src/services/backend/services/dataSource/ipfs/ipfsSource.ts rename to src/services/backend/services/sync/services/SyncIpfsLoop/services.ts index a8db5127b..d84bc557b 100644 --- a/src/services/backend/services/dataSource/ipfs/ipfsSource.ts +++ b/src/services/backend/services/sync/services/SyncIpfsLoop/services.ts @@ -5,7 +5,7 @@ import { mapParticleToEntity } from 'src/services/CozoDb/mapping'; import { LsResult } from 'ipfs-core-types/src/pin'; -import DbApi from '../indexedDb/dbApiWrapper'; +import DbApi from '../../../DbApi/DbApi'; const fetchPins = async (node: IpfsNode) => { const pins: LsResult[] = []; diff --git a/src/services/backend/services/sync/services/SyncMyFriendsLoop/SyncMyFriendsLoop.ts b/src/services/backend/services/sync/services/SyncMyFriendsLoop/SyncMyFriendsLoop.ts index 2c3aa443e..a8323f972 100644 --- a/src/services/backend/services/sync/services/SyncMyFriendsLoop/SyncMyFriendsLoop.ts +++ b/src/services/backend/services/sync/services/SyncMyFriendsLoop/SyncMyFriendsLoop.ts @@ -20,8 +20,8 @@ import { SenseItemLinkMeta } from 'src/services/backend/types/sense'; import { entityToDto } from 'src/utils/dto'; import { ServiceDeps } from '../types'; -import { fetchCyberlinksByNerounIterable } from '../../../dataSource/blockchain/indexer'; -import { CYBERLINKS_BATCH_LIMIT } from '../../../dataSource/blockchain/consts'; +import { fetchCyberlinksByNerounIterable } from '../../../indexer/cyberlinks'; +import { CYBERLINKS_BATCH_LIMIT } from '../../../indexer/consts'; import BaseSyncLoop from '../BaseSyncLoop/BaseSyncLoop'; import { SyncServiceParams } from '../../types'; import { getLastReadInfo } from '../../utils'; diff --git a/src/services/backend/services/sync/services/SyncParticlesLoop/SyncParticlesLoop.test.ts b/src/services/backend/services/sync/services/SyncParticlesLoop/SyncParticlesLoop.test.ts index eada2f211..25112f27b 100644 --- a/src/services/backend/services/sync/services/SyncParticlesLoop/SyncParticlesLoop.test.ts +++ b/src/services/backend/services/sync/services/SyncParticlesLoop/SyncParticlesLoop.test.ts @@ -1,7 +1,7 @@ import { of } from 'rxjs'; import { CybIpfsNode } from 'src/services/ipfs/ipfs'; -import { fetchCyberlinksIterable } from 'src/services/backend/services/dataSource/blockchain/indexer'; +import { fetchCyberlinksIterable } from 'src/services/backend/services/indexer/cyberlinks'; import { numberToUtcDate } from 'src/utils/date'; import { createAsyncIterable } from 'src/utils/async/iterable'; diff --git a/src/services/backend/services/sync/services/SyncParticlesLoop/SyncParticlesLoop.ts b/src/services/backend/services/sync/services/SyncParticlesLoop/SyncParticlesLoop.ts index 6340b36f8..c8ee764fb 100644 --- a/src/services/backend/services/sync/services/SyncParticlesLoop/SyncParticlesLoop.ts +++ b/src/services/backend/services/sync/services/SyncParticlesLoop/SyncParticlesLoop.ts @@ -19,8 +19,8 @@ import { changeParticleSyncStatus } from '../../utils'; import { fetchCyberlinksByNerounIterable, fetchCyberlinksCount, -} from '../../../dataSource/blockchain/indexer'; -import { CYBERLINKS_BATCH_LIMIT } from '../../../dataSource/blockchain/consts'; +} from '../../../indexer/cyberlinks'; +import { CYBERLINKS_BATCH_LIMIT } from '../../../indexer/consts'; import BaseSyncLoop from '../BaseSyncLoop/BaseSyncLoop'; import { MAX_DATABASE_PUT_SIZE } from '../consts'; import { SyncServiceParams } from '../../types'; diff --git a/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.test.ts b/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.test.ts index cec80c24f..b0d896873 100644 --- a/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.test.ts +++ b/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.test.ts @@ -1,6 +1,6 @@ import { of } from 'rxjs'; -import { fetchCyberlinksIterable } from 'src/services/backend/services/dataSource/blockchain/indexer'; +import { fetchCyberlinksIterable } from 'src/services/backend/services/indexer/cyberlinks'; import { fetchTransactionsIterable } from '../../../indexer/transactions'; import { CybIpfsNode } from 'src/services/ipfs/ipfs'; diff --git a/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.ts b/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.ts index 5e0ac5b6c..f5acb892e 100644 --- a/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.ts +++ b/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.ts @@ -23,6 +23,12 @@ import { createNodeWebsocketObservable, getIncomingTransfersQuery, } from 'src/services/blockchain/websocket'; +import { + MessagesByAddressSenseQueryVariables, + MessagesByAddressSenseWsDocument, + MessagesByAddressSenseWsSubscription, +} from 'src/generated/graphql'; + import { mapWebsocketTxToTransactions } from 'src/services/blockchain/utils/mapping'; import { ServiceDeps } from '../types'; @@ -32,13 +38,11 @@ import { fetchTransactionsIterable, mapMessagesByAddressVariables, fetchTransactionMessagesCount, - gqlMessagesByAddress, - TransactionsByAddressResponse, } from '../../../indexer/transactions'; import { syncMyChats } from './services/chat'; -import { TRANSACTIONS_BATCH_LIMIT } from '../../../dataSource/blockchain/consts'; +import { TRANSACTIONS_BATCH_LIMIT } from '../../../indexer/consts'; import BaseSyncClient from '../BaseSyncLoop/BaseSyncClient'; -import { createIndexerWebsocket } from '../../../indexer/utils'; +import { createIndexerWebsocket } from '../../../indexer/utils/graphqlClient'; import { SyncServiceParams } from '../../types'; import { MAX_DATABASE_PUT_SIZE } from '../consts'; @@ -83,14 +87,14 @@ class SyncTransactionsLoop extends BaseSyncClient { types: [], orderDirection: 'desc', limit: 100, - }); + }) as MessagesByAddressSenseQueryVariables; const indexerObservable$ = - createIndexerWebsocket( - gqlMessagesByAddress('subscription'), + createIndexerWebsocket( + MessagesByAddressSenseWsDocument, variables ).pipe( - map((response: TransactionsByAddressResponse) => { + map((response: MessagesByAddressSenseWsSubscription) => { return { source: 'indexer', transactions: response.messages_by_address.map((i) => @@ -196,16 +200,13 @@ class SyncTransactionsLoop extends BaseSyncClient { // to prevent missing of other msg types let's avoid to change ts const shouldUpdateTimestamp = source !== 'node'; - this.cyblogCh.info('--------syncTransactions batch ', { - data: [ - myAddress, - address, - transactions.length, - transactions.at(0)?.timestamp, - transactions.at(-1)?.timestamp, - source, - ], - }); + this.cyblogCh.info( + ` syncTransactions - process ${address}[${source}], count: ${ + transactions.length + }, from: ${transactions.at(0)?.timestamp}, to: ${ + transactions.at(-1)?.timestamp + }` + ); // save transaction await throwIfAborted(this.db!.putTransactions, signal)(transactions); diff --git a/src/services/backend/services/sync/services/SyncTransactionsLoop/services/chat.ts b/src/services/backend/services/sync/services/SyncTransactionsLoop/services/chat.ts index c6954836c..ffd055256 100644 --- a/src/services/backend/services/sync/services/SyncTransactionsLoop/services/chat.ts +++ b/src/services/backend/services/sync/services/SyncTransactionsLoop/services/chat.ts @@ -1,5 +1,5 @@ import { EntryType } from 'src/services/CozoDb/types/entities'; -import DbApiWrapper from 'src/services/backend/services/dataSource/indexedDb/dbApiWrapper'; +import DbApiWrapper from 'src/services/backend/services/DbApi/DbApi'; import { NeuronAddress } from 'src/types/base'; import { SenseListItem, diff --git a/src/services/backend/services/sync/services/types.ts b/src/services/backend/services/sync/services/types.ts index 82b13ff41..3f2f1ceb5 100644 --- a/src/services/backend/services/sync/services/types.ts +++ b/src/services/backend/services/sync/services/types.ts @@ -1,6 +1,6 @@ import { Observable } from 'rxjs'; import { CybIpfsNode } from 'src/services/ipfs/ipfs'; -import DbApi from '../../dataSource/indexedDb/dbApiWrapper'; +import DbApi from '../../DbApi/DbApi'; import { FetchIpfsFunc, SyncServiceParams } from '../types'; import { NeuronAddress } from 'src/types/base'; diff --git a/src/services/backend/services/sync/services/utils/links.ts b/src/services/backend/services/sync/services/utils/links.ts index e49295d3b..9e0138a71 100644 --- a/src/services/backend/services/sync/services/utils/links.ts +++ b/src/services/backend/services/sync/services/utils/links.ts @@ -4,7 +4,7 @@ import { asyncIterableBatchProcessor } from 'src/utils/async/iterable'; import { CID_TWEET } from 'src/constants/app'; import { LinkDto, TransactionDto } from 'src/services/CozoDb/types/dto'; -import { fetchCyberlinksIterable } from '../../../dataSource/blockchain/indexer'; +import { fetchCyberlinksIterable } from '../../../indexer/cyberlinks'; import ParticlesResolverQueue from '../ParticlesResolverQueue/ParticlesResolverQueue'; import { MAX_LINKS_RESOLVE_BATCH } from '../consts'; import { diff --git a/src/services/backend/services/sync/utils.ts b/src/services/backend/services/sync/utils.ts index 2e2e8c54e..368806a79 100644 --- a/src/services/backend/services/sync/utils.ts +++ b/src/services/backend/services/sync/utils.ts @@ -8,18 +8,6 @@ import { entityToDto } from 'src/utils/dto'; import { SenseItemLinkMeta } from '../../types/sense'; import { SyncEntryName } from '../../types/services'; -// export function extractLinkData( -// cid: ParticleCid, -// links: CyberlinksByParticleResponse['cyberlinks'] -// ) { -// return { -// lastLink: links[0], -// count: links.length, -// lastTimestamp: dateToUtcNumber(links[0].timestamp), -// firstTimestamp: dateToUtcNumber(links[links.length - 1].timestamp), -// }; -// } - export function getLastReadInfo( links: LinkDto[], ownerId: NeuronAddress, diff --git a/src/services/backend/workers/background/worker.ts b/src/services/backend/workers/background/worker.ts index 1c20715bb..ab4321423 100644 --- a/src/services/backend/workers/background/worker.ts +++ b/src/services/backend/workers/background/worker.ts @@ -26,7 +26,7 @@ import { exposeWorkerApi } from '../factoryMethods'; import { SyncService } from '../../services/sync/sync'; import { SyncServiceParams } from '../../services/sync/types'; -import DbApi from '../../services/dataSource/indexedDb/dbApiWrapper'; +import DbApi from '../../services/DbApi/DbApi'; import BroadcastChannelSender from '../../channels/BroadcastChannelSender'; import DeferredDbSaver from '../../services/DeferredDbSaver/DeferredDbSaver'; diff --git a/src/services/community/community.test.ts b/src/services/community/community.test.ts index 76f32ab41..ac110fcc7 100644 --- a/src/services/community/community.test.ts +++ b/src/services/community/community.test.ts @@ -1,6 +1,6 @@ import { featchStoredSyncCommunity } from './community'; -import DbApiWrapper from '../backend/services/dataSource/indexedDb/dbApiWrapper'; -import { getFollowsAsCid, getFollowers } from '../backend/services/lcd/lcd'; +import DbApiWrapper from '../backend/services/DbApi/DbApi'; +import { getFollowsAsCid, getFollowers } from './lcd'; jest.mock('../backend/services/dataSource/indexedDb/dbApiWrapper'); jest.mock('../backend/services/lcd/lcd'); diff --git a/src/services/community/community.ts b/src/services/community/community.ts index bcf76cceb..832a423e2 100644 --- a/src/services/community/community.ts +++ b/src/services/community/community.ts @@ -3,8 +3,8 @@ import { getIpfsHash } from 'src/utils/ipfs/helpers'; import { PATTERN_CYBER } from 'src/constants/patterns'; import { Subject, Observable } from 'rxjs'; -import DbApiWrapper from '../backend/services/dataSource/indexedDb/dbApiWrapper'; -import { getFollowsAsCid, getFollowers } from '../backend/services/lcd/lcd'; +import DbApiWrapper from '../backend/services/DbApi/DbApi'; +import { getFollowsAsCid, getFollowers } from './lcd'; import { FetchParticleAsync, QueuePriority } from '../QueueManager/types'; import { CommunityDto } from '../CozoDb/types/dto'; import { FetchIpfsFunc } from '../backend/services/sync/types'; diff --git a/src/services/backend/services/lcd/lcd.ts b/src/services/community/lcd.ts similarity index 84% rename from src/services/backend/services/lcd/lcd.ts rename to src/services/community/lcd.ts index e4e6fdf9d..4cc1c154e 100644 --- a/src/services/backend/services/lcd/lcd.ts +++ b/src/services/community/lcd.ts @@ -53,9 +53,3 @@ export const getFollowers = async ( } return response.data.txs.map((item) => item.tx.value.msg[0].value.neuron); }; - -export async function getTransaction(txHash: string) { - // https://lcd.bostrom.cybernode.ai/cosmos/tx/v1beta1/txs/67FD87EBCC1633B779C154C1CAFD48DE71350074A04F742DAD418F69F1D05BB0 - const response = axios.get(`${LCD_URL}/cosmos/tx/v1beta1/txs/${txHash}`); - return response; -} diff --git a/src/utils/async/iterable.ts b/src/utils/async/iterable.ts index 303a74101..b18424d05 100644 --- a/src/utils/async/iterable.ts +++ b/src/utils/async/iterable.ts @@ -50,6 +50,26 @@ function createAsyncIterable(data: T[]): AsyncIterable { }; } +// eslint-disable-next-line import/prefer-default-export +export async function* fetchIterableByOffset( + fetchFunction: (params: P & { offset: number }) => Promise, + params: P +): AsyncGenerator { + let offset = 0; + while (true) { + // eslint-disable-next-line no-await-in-loop + const items = await fetchFunction({ ...params, offset }); + + if (items.length === 0) { + break; + } + + yield items; + + offset += items.length; + } +} + export { arrayToAsyncIterable, asyncIterableBatchProcessor, From f1ca9c013082f429a8aee8561622ec03c3238f31 Mon Sep 17 00:00:00 2001 From: dasein Date: Sun, 24 Mar 2024 16:44:45 +0530 Subject: [PATCH 26/40] refactor(app): minor fixes --- src/containers/temple/hooks/useGetNegentropy.ts | 12 ++---------- src/utils/axios.ts | 9 +++++++++ src/utils/search/utils.ts | 2 -- src/utils/utils.ts | 1 + 4 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 src/utils/axios.ts diff --git a/src/containers/temple/hooks/useGetNegentropy.ts b/src/containers/temple/hooks/useGetNegentropy.ts index 19d1780d7..2254a8987 100644 --- a/src/containers/temple/hooks/useGetNegentropy.ts +++ b/src/containers/temple/hooks/useGetNegentropy.ts @@ -3,22 +3,14 @@ import { useQuery } from '@tanstack/react-query'; import BigNumber from 'bignumber.js'; import { LCD_URL } from 'src/constants/config'; -import { AxiosResponse } from 'axios'; import { Cyber as CyberLcdApi } from 'src/generated/Cyber'; +import { dataOrNull } from 'src/utils/axios'; const lcdCyberApi = new CyberLcdApi({ baseURL: LCD_URL }); -function dataOrEmpty(response: AxiosResponse) { - try { - return response.data; - } catch (e) { - return null; - } -} - const getNegentropy = async () => { const response = await lcdCyberApi.negentropy(); - return dataOrEmpty(response); + return dataOrNull(response); }; const keyQuery = 'negentropy'; diff --git a/src/utils/axios.ts b/src/utils/axios.ts new file mode 100644 index 000000000..d470901be --- /dev/null +++ b/src/utils/axios.ts @@ -0,0 +1,9 @@ +import { AxiosResponse } from 'axios'; + +export function dataOrNull(response: AxiosResponse) { + try { + return response.data; + } catch (e) { + return null; + } +} diff --git a/src/utils/search/utils.ts b/src/utils/search/utils.ts index 035bac2b4..c36819332 100644 --- a/src/utils/search/utils.ts +++ b/src/utils/search/utils.ts @@ -7,8 +7,6 @@ import { DelegationResponse } from 'cosmjs-types/cosmos/staking/v1beta1/staking' import { CID_TWEET } from 'src/constants/app'; import { INDEX_HTTPS, LCD_URL } from 'src/constants/config'; -const SEARCH_RESULT_TIMEOUT_MS = 10000; - export const formatNumber = (number, toFixed) => { let formatted = +number; diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 7986c51fa..d989f9bd8 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -390,6 +390,7 @@ const findPoolDenomInArr = ( return findObj; }; +// REFACTOR: Probably wrong timestamp const getNowUtcTime = (): number => { const now = new Date(); const utcTime = new Date( From 489436775479a190bc644e23e504eb270b03c88d Mon Sep 17 00:00:00 2001 From: dasein Date: Sun, 24 Mar 2024 17:01:43 +0530 Subject: [PATCH 27/40] refactor(app): reorder soft3 --- src/containers/portal/ActionBarAddAvatar.tsx | 2 +- src/containers/portal/citizenship/index.tsx | 2 +- src/containers/portal/gift/ActionBarPortalGift.tsx | 2 +- src/containers/portal/release/ActionBarRelease.tsx | 2 +- src/containers/portal/utilsMsgs.ts | 2 +- src/containers/wasm/codes/actionBar.jsx | 2 +- src/containers/wasm/contract/ExecuteContract.tsx | 3 +-- src/containers/wasm/contract/InstantiationContract.jsx | 2 +- src/containers/wasm/contract/RenderInstantiateMsg.jsx | 2 +- src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx | 2 +- src/features/passport/passports.redux.ts | 2 +- src/features/passport/usePassportContract.ts | 2 +- src/pages/robot/_refactor/account/tabs/feeds.tsx | 2 +- .../services/SyncTransactionsLoop/SyncTransactionsLoop.ts | 4 ++-- src/services/{blockchain => lcd}/utils/mapping.test.ts | 0 src/services/{blockchain => lcd}/utils/mapping.ts | 0 src/services/{blockchain => lcd}/websocket.ts | 0 src/{ => services}/soft.js/api/msgs.ts | 0 src/{ => services}/soft.js/api/passport.ts | 0 src/{ => services}/soft.js/api/search.ts | 0 src/{ => services}/soft.js/index.md | 0 src/{ => services}/soft.js/types.ts | 0 22 files changed, 15 insertions(+), 16 deletions(-) rename src/services/{blockchain => lcd}/utils/mapping.test.ts (100%) rename src/services/{blockchain => lcd}/utils/mapping.ts (100%) rename src/services/{blockchain => lcd}/websocket.ts (100%) rename src/{ => services}/soft.js/api/msgs.ts (100%) rename src/{ => services}/soft.js/api/passport.ts (100%) rename src/{ => services}/soft.js/api/search.ts (100%) rename src/{ => services}/soft.js/index.md (100%) rename src/{ => services}/soft.js/types.ts (100%) diff --git a/src/containers/portal/ActionBarAddAvatar.tsx b/src/containers/portal/ActionBarAddAvatar.tsx index 35b1a3785..131f847ef 100644 --- a/src/containers/portal/ActionBarAddAvatar.tsx +++ b/src/containers/portal/ActionBarAddAvatar.tsx @@ -3,7 +3,7 @@ import { GasPrice } from '@cosmjs/launchpad'; import { useSigningClient } from 'src/contexts/signerClient'; import { Nullable } from 'src/types'; import { useBackend } from 'src/contexts/backend/backend'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; import { ActionBarSteps, ActionBarContainer } from './components'; import { Dots, BtnGrd } from '../../components'; import { CONTRACT_ADDRESS_PASSPORT } from './utils'; diff --git a/src/containers/portal/citizenship/index.tsx b/src/containers/portal/citizenship/index.tsx index 80f102178..a0ba424be 100644 --- a/src/containers/portal/citizenship/index.tsx +++ b/src/containers/portal/citizenship/index.tsx @@ -13,7 +13,7 @@ import { useAdviser } from 'src/features/adviser/context'; import { useBackend } from 'src/contexts/backend/backend'; import { getPassport } from 'src/features/passport/passports.redux'; import { useAppDispatch } from 'src/redux/hooks'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; import { CHAIN_ID } from 'src/constants/config'; import { MainContainer, MoonAnimation, Stars } from '../components'; import { diff --git a/src/containers/portal/gift/ActionBarPortalGift.tsx b/src/containers/portal/gift/ActionBarPortalGift.tsx index 8ef94b46b..3ed5f6a1f 100644 --- a/src/containers/portal/gift/ActionBarPortalGift.tsx +++ b/src/containers/portal/gift/ActionBarPortalGift.tsx @@ -14,7 +14,7 @@ import { Citizenship } from 'src/types/citizenship'; import { RootState } from 'src/redux/store'; import { useBackend } from 'src/contexts/backend/backend'; import { PATTERN_CYBER } from 'src/constants/patterns'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; import BigNumber from 'bignumber.js'; import { Nullable } from 'src/types'; import { diff --git a/src/containers/portal/release/ActionBarRelease.tsx b/src/containers/portal/release/ActionBarRelease.tsx index c3a87cc5e..6f4248fed 100644 --- a/src/containers/portal/release/ActionBarRelease.tsx +++ b/src/containers/portal/release/ActionBarRelease.tsx @@ -6,7 +6,7 @@ import { Nullable } from 'src/types'; import { AccountValue } from 'src/types/defaultAccount'; import { useQueryClient } from 'src/contexts/queryClient'; import BigNumber from 'bignumber.js'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; import { GIFT_ICON } from '../utils'; import { Dots, BtnGrd, ActionBar, Account } from '../../../components'; import { PATTERN_CYBER } from 'src/constants/patterns'; diff --git a/src/containers/portal/utilsMsgs.ts b/src/containers/portal/utilsMsgs.ts index 110f2e7e2..6e4e400a2 100644 --- a/src/containers/portal/utilsMsgs.ts +++ b/src/containers/portal/utilsMsgs.ts @@ -1,4 +1,4 @@ -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; import BigNumber from 'bignumber.js'; import { coin } from '@cosmjs/launchpad'; import { CyberClient } from '@cybercongress/cyber-js'; diff --git a/src/containers/wasm/codes/actionBar.jsx b/src/containers/wasm/codes/actionBar.jsx index 8719a5e44..2589466f0 100644 --- a/src/containers/wasm/codes/actionBar.jsx +++ b/src/containers/wasm/codes/actionBar.jsx @@ -4,7 +4,7 @@ import { ActionBar as ActionBarContainer, Pane } from '@cybercongress/gravity'; import { useSigningClient } from 'src/contexts/signerClient'; import Button from 'src/components/btnGrd'; import AddFileButton from 'src/components/buttons/AddFile/AddFile'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; import { MEMO_KEPLR } from 'src/constants/config'; import { getTxs } from '../../../utils/search/utils'; import { diff --git a/src/containers/wasm/contract/ExecuteContract.tsx b/src/containers/wasm/contract/ExecuteContract.tsx index eff2ee380..49ff7d738 100644 --- a/src/containers/wasm/contract/ExecuteContract.tsx +++ b/src/containers/wasm/contract/ExecuteContract.tsx @@ -8,7 +8,7 @@ import { JSONInputCard } from './InstantiationContract'; import styles from './stylesExecuteContract.scss'; import { Input } from 'src/components'; import Button from 'src/components/btnGrd'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; import { BASE_DENOM } from 'src/constants/config'; const executePlaceholder = { @@ -20,7 +20,6 @@ const executePlaceholder = { const coinsPlaceholder = [{ denom: BASE_DENOM, amount: '1' }]; - const gasPrice = GasPrice.fromString('0.001boot'); function ExecuteContract({ contractAddress }: { contractAddress: string }) { diff --git a/src/containers/wasm/contract/InstantiationContract.jsx b/src/containers/wasm/contract/InstantiationContract.jsx index 826005fb1..949009358 100644 --- a/src/containers/wasm/contract/InstantiationContract.jsx +++ b/src/containers/wasm/contract/InstantiationContract.jsx @@ -13,7 +13,7 @@ import SelectFile from './renderAbi/SelectFile'; import useParseJsonSchema from './renderAbi/useParseJsonSchema'; import Button from 'src/components/btnGrd'; import { Input } from 'src/components'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; import { BASE_DENOM } from 'src/constants/config'; const executePlaceholder = { diff --git a/src/containers/wasm/contract/RenderInstantiateMsg.jsx b/src/containers/wasm/contract/RenderInstantiateMsg.jsx index ad3b3ad2a..3d8dbc307 100644 --- a/src/containers/wasm/contract/RenderInstantiateMsg.jsx +++ b/src/containers/wasm/contract/RenderInstantiateMsg.jsx @@ -4,7 +4,7 @@ import { useQueryClient } from 'src/contexts/queryClient'; import { useSigningClient } from 'src/contexts/signerClient'; import txs from '../../../utils/txs'; import JsonSchemaParse from './renderAbi/JsonSchemaParse'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; const gasPrice = GasPrice.fromString('0.001boot'); diff --git a/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx b/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx index af3c5e5e3..69632dcdc 100644 --- a/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx +++ b/src/containers/wasm/contract/renderAbi/RenderAbiExecute.jsx @@ -2,7 +2,7 @@ import { useState, useEffect } from 'react'; import { useQueryClient } from 'src/contexts/queryClient'; import { useSigningClient } from 'src/contexts/signerClient'; import JsonSchemaParse from './JsonSchemaParse'; -import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import Soft3MessageFactory from 'src/services/soft.js/api/msgs'; import { MEMO_KEPLR } from 'src/constants/config'; // const coinsPlaceholder = [{ denom: BASE_DENOM, amount: '1' }]; diff --git a/src/features/passport/passports.redux.ts b/src/features/passport/passports.redux.ts index be968555a..f31c40b2b 100644 --- a/src/features/passport/passports.redux.ts +++ b/src/features/passport/passports.redux.ts @@ -4,7 +4,7 @@ import { createSelector, createSlice, } from '@reduxjs/toolkit'; -import { queryPassportContract } from 'src/soft.js/api/passport'; +import { queryPassportContract } from 'src/services/soft.js/api/passport'; import { Citizenship } from 'src/types/citizenship'; import { CyberClient } from '@cybercongress/cyber-js'; import { RootState } from 'src/redux/store'; diff --git a/src/features/passport/usePassportContract.ts b/src/features/passport/usePassportContract.ts index 8f1895473..4b7989daa 100644 --- a/src/features/passport/usePassportContract.ts +++ b/src/features/passport/usePassportContract.ts @@ -4,7 +4,7 @@ import { equals } from 'ramda'; import { PassportContractQuery, queryPassportContract, -} from 'src/soft.js/api/passport'; +} from 'src/services/soft.js/api/passport'; type Props = { query: PassportContractQuery; diff --git a/src/pages/robot/_refactor/account/tabs/feeds.tsx b/src/pages/robot/_refactor/account/tabs/feeds.tsx index ebb425a5d..b72d0c69d 100644 --- a/src/pages/robot/_refactor/account/tabs/feeds.tsx +++ b/src/pages/robot/_refactor/account/tabs/feeds.tsx @@ -6,7 +6,7 @@ import Loader2 from 'src/components/ui/Loader2'; import InfiniteScroll from 'react-infinite-scroll-component'; import { Dots, NoItems, SearchSnippet } from '../../../../../components'; import useGetLog from '../hooks/useGetLog'; -import { RegistryTypes } from 'src/soft.js/types'; +import { RegistryTypes } from 'src/services/soft.js/types'; function FeedsTab() { const { address, addRefetch } = useRobotContext(); diff --git a/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.ts b/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.ts index f5acb892e..6be187646 100644 --- a/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.ts +++ b/src/services/backend/services/sync/services/SyncTransactionsLoop/SyncTransactionsLoop.ts @@ -22,14 +22,14 @@ import { throwIfAborted } from 'src/utils/async/promise'; import { createNodeWebsocketObservable, getIncomingTransfersQuery, -} from 'src/services/blockchain/websocket'; +} from 'src/services/lcd/websocket'; import { MessagesByAddressSenseQueryVariables, MessagesByAddressSenseWsDocument, MessagesByAddressSenseWsSubscription, } from 'src/generated/graphql'; -import { mapWebsocketTxToTransactions } from 'src/services/blockchain/utils/mapping'; +import { mapWebsocketTxToTransactions } from 'src/services/lcd/utils/mapping'; import { ServiceDeps } from '../types'; import { extractCybelinksFromTransaction } from '../utils/links'; diff --git a/src/services/blockchain/utils/mapping.test.ts b/src/services/lcd/utils/mapping.test.ts similarity index 100% rename from src/services/blockchain/utils/mapping.test.ts rename to src/services/lcd/utils/mapping.test.ts diff --git a/src/services/blockchain/utils/mapping.ts b/src/services/lcd/utils/mapping.ts similarity index 100% rename from src/services/blockchain/utils/mapping.ts rename to src/services/lcd/utils/mapping.ts diff --git a/src/services/blockchain/websocket.ts b/src/services/lcd/websocket.ts similarity index 100% rename from src/services/blockchain/websocket.ts rename to src/services/lcd/websocket.ts diff --git a/src/soft.js/api/msgs.ts b/src/services/soft.js/api/msgs.ts similarity index 100% rename from src/soft.js/api/msgs.ts rename to src/services/soft.js/api/msgs.ts diff --git a/src/soft.js/api/passport.ts b/src/services/soft.js/api/passport.ts similarity index 100% rename from src/soft.js/api/passport.ts rename to src/services/soft.js/api/passport.ts diff --git a/src/soft.js/api/search.ts b/src/services/soft.js/api/search.ts similarity index 100% rename from src/soft.js/api/search.ts rename to src/services/soft.js/api/search.ts diff --git a/src/soft.js/index.md b/src/services/soft.js/index.md similarity index 100% rename from src/soft.js/index.md rename to src/services/soft.js/index.md diff --git a/src/soft.js/types.ts b/src/services/soft.js/types.ts similarity index 100% rename from src/soft.js/types.ts rename to src/services/soft.js/types.ts From 30cfdba3d0470c1d5336fd235b03609a9db59859 Mon Sep 17 00:00:00 2001 From: dasein Date: Sun, 24 Mar 2024 17:14:38 +0530 Subject: [PATCH 28/40] refactor(tx): minor --- src/pages/robot/_refactor/account/component/txsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/robot/_refactor/account/component/txsTable.tsx b/src/pages/robot/_refactor/account/component/txsTable.tsx index 32a076450..4cdbe9c6c 100644 --- a/src/pages/robot/_refactor/account/component/txsTable.tsx +++ b/src/pages/robot/_refactor/account/component/txsTable.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useMemo } from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import { useMessagesByAddressQuery } from 'src/generated/graphql'; import InfiniteScroll from 'react-infinite-scroll-component'; import { Link } from 'react-router-dom'; From d37bc203eae2d77ad33a14f59b0ae54518569c3d Mon Sep 17 00:00:00 2001 From: dasein Date: Tue, 26 Mar 2024 16:20:12 +0530 Subject: [PATCH 29/40] fix(backend): multitab service statuses --- src/contexts/backend/backend.tsx | 93 +++++++++++++++++++------------- src/services/CozoDb/cozoDb.ts | 1 + 2 files changed, 56 insertions(+), 38 deletions(-) diff --git a/src/contexts/backend/backend.tsx b/src/contexts/backend/backend.tsx index 2e1034cf5..b8c9547c4 100644 --- a/src/contexts/backend/backend.tsx +++ b/src/contexts/backend/backend.tsx @@ -1,4 +1,10 @@ -import React, { useContext, useEffect, useMemo, useState } from 'react'; +import React, { + useCallback, + useContext, + useEffect, + useMemo, + useState, +} from 'react'; import { useAppDispatch, useAppSelector } from 'src/redux/hooks'; import { proxy, Remote } from 'comlink'; import { backgroundWorkerInstance } from 'src/services/backend/workers/background/service'; @@ -11,11 +17,14 @@ import { selectCurrentAddress } from 'src/redux/features/pocket'; import DbApiWrapper from 'src/services/backend/services/dataSource/indexedDb/dbApiWrapper'; import { CozoDbWorker } from 'src/services/backend/workers/db/worker'; import { BackgroundWorker } from 'src/services/backend/workers/background/worker'; -import { SenseApi, createSenseApi } from './services/senseApi'; + import { SyncEntryName } from 'src/services/backend/types/services'; -// import BroadcastChannelListener from 'src/services/backend/channels/BroadcastChannelListener'; import { DB_NAME } from 'src/services/CozoDb/cozoDb'; import { RESET_SYNC_STATE_ACTION_NAME } from 'src/redux/reducers/backend'; +import BroadcastChannelSender from 'src/services/backend/channels/BroadcastChannelSender'; +// import BroadcastChannelListener from 'src/services/backend/channels/BroadcastChannelListener'; + +import { SenseApi, createSenseApi } from './services/senseApi'; const setupStoragePersistence = async () => { let isPersistedStorage = await navigator.storage.persisted(); @@ -72,6 +81,7 @@ window.cyb.db = { }; // const dbApi = new DbApiWrapper(); +const bcSender = new BroadcastChannelSender(); function BackendProvider({ children }: { children: React.ReactNode }) { const dispatch = useAppDispatch(); @@ -120,6 +130,31 @@ function BackendProvider({ children }: { children: React.ReactNode }) { return null; }, [isDbInitialized, dbApi, myAddress, followings]); + const createDbApi = useCallback(() => { + const dbApi = new DbApiWrapper(); + + dbApi.init(proxy(cozoDbWorkerInstance)); + setDbApi(dbApi); + return dbApi; + }, []); + + const loadIpfs = async () => { + const ipfsOpts = getIpfsOpts(); + await backgroundWorkerInstance.ipfsApi.stop(); + console.time('🔋 Ipfs started.'); + + await backgroundWorkerInstance.ipfsApi + .start(ipfsOpts) + .then(() => { + setIpfsError(null); + console.timeEnd('🔋 Ipfs started.'); + }) + .catch((err) => { + setIpfsError(err); + console.log(`☠️ Ipfs error: ${err}`); + }); + }; + useEffect(() => { // eslint-disable-next-line @typescript-eslint/no-unused-vars // const channel = new BroadcastChannelListener((msg) => { @@ -128,6 +163,18 @@ function BackendProvider({ children }: { children: React.ReactNode }) { // }); const channel = new RxBroadcastChannelListener(dispatch); + const loadCozoDb = async () => { + console.time('🔋 CozoDb worker started.'); + await cozoDbWorkerInstance + .init() + .then(async () => { + const dbApi = createDbApi(); + // pass dbApi into background worker + await backgroundWorkerInstance.init(proxy(dbApi)); + }) + .then(() => console.timeEnd('🔋 CozoDb worker started.')); + }; + (async () => { console.log( process.env.IS_DEV @@ -140,6 +187,8 @@ function BackendProvider({ children }: { children: React.ReactNode }) { const isInitialized = await backgroundWorkerInstance.isInitialized(); if (isInitialized) { console.log('🔋 Background worker already active.'); + bcSender.postServiceStatus('ipfs', 'started'); + bcSender.postServiceStatus('sync', 'started'); return Promise.resolve(); } return loadIpfs(); @@ -149,6 +198,8 @@ function BackendProvider({ children }: { children: React.ReactNode }) { const isInitialized = await cozoDbWorkerInstance.isInitialized(); if (isInitialized) { console.log('🔋 CozoDb worker already active.'); + bcSender.postServiceStatus('db', 'started'); + createDbApi(); return Promise.resolve(); } return loadCozoDb(); @@ -160,41 +211,7 @@ function BackendProvider({ children }: { children: React.ReactNode }) { window.q = backgroundWorkerInstance.ipfsQueue; return () => channel.close(); - }, [dispatch]); - - const loadCozoDb = async () => { - console.time('🔋 CozoDb worker started.'); - await cozoDbWorkerInstance - .init() - .then(async () => { - // init dbApi - // TODO: refactor to use simple object instead of global instance - const dbApi = new DbApiWrapper(); - dbApi.init(proxy(cozoDbWorkerInstance)); - setDbApi(dbApi); - - // pass dbApi into background worker - await backgroundWorkerInstance.init(proxy(dbApi)); - }) - .then(() => console.timeEnd('🔋 CozoDb worker started.')); - }; - - const loadIpfs = async () => { - const ipfsOpts = getIpfsOpts(); - await backgroundWorkerInstance.ipfsApi.stop(); - console.time('🔋 Ipfs started.'); - - await backgroundWorkerInstance.ipfsApi - .start(ipfsOpts) - .then(() => { - setIpfsError(null); - console.timeEnd('🔋 Ipfs started.'); - }) - .catch((err) => { - setIpfsError(err); - console.log(`☠️ Ipfs error: ${err}`); - }); - }; + }, [dispatch, createDbApi]); const valueMemo = useMemo( () => diff --git a/src/services/CozoDb/cozoDb.ts b/src/services/CozoDb/cozoDb.ts index 73220a7f2..3105ff513 100644 --- a/src/services/CozoDb/cozoDb.ts +++ b/src/services/CozoDb/cozoDb.ts @@ -148,6 +148,7 @@ function createCozoDb() { // console.log('----> runCommand ', command, result); if (!result.ok) { + console.log('----> runCommand error ', command, result); throw new DBResultError(result); } From f48dae83b17ab1590e10a7d59e5d79478db1fda6 Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Wed, 27 Mar 2024 01:17:58 +0300 Subject: [PATCH 30/40] refactor(gql): upyime, cyberlinkByCid, wasm --- src/constants/config.ts | 2 + .../Validators/ActionBarContainer.tsx | 2 +- src/containers/brain/tx.jsx | 33 +-- src/containers/validator/UptimeHook.jsx | 66 ++--- src/containers/validator/rumors.jsx | 2 + .../wasm/contract/DashboardPage.jsx | 32 +-- .../cyberlinks/hooks/useCyberlinksCount.ts | 25 +- src/generated/graphql.ts | 268 +++++++++++++++++- .../_refactor/account/component/tableTxs.jsx | 9 - .../_refactor/account/component/txsTable.tsx | 1 + .../robot/_refactor/account/tabs/link.jsx | 44 --- .../teleport/hooks/useGetSendTxsByAddress.tsx | 108 +++---- .../components/dataSwapTxs/DataSwapTxs.tsx | 59 ++-- .../dataSwapTxs/DataSwapTxsItem.tsx | 9 +- .../cyberlinksCountByParticleFrom.graphql | 7 + .../cyberlinksCountByParticleTo.graphql | 7 + .../indexer/graphql/transactionCount.graphql | 7 + .../indexer/graphql/uptimeByAddress.graphql | 6 + .../indexer/graphql/wasmDashboardPage.graphql | 22 ++ .../graphql/queries/messagesByAddress.graphql | 21 +- src/types/index.d.ts | 2 + 21 files changed, 450 insertions(+), 282 deletions(-) delete mode 100644 src/pages/robot/_refactor/account/tabs/link.jsx create mode 100644 src/services/backend/services/indexer/graphql/cyberlinksCountByParticleFrom.graphql create mode 100644 src/services/backend/services/indexer/graphql/cyberlinksCountByParticleTo.graphql create mode 100644 src/services/backend/services/indexer/graphql/transactionCount.graphql create mode 100644 src/services/backend/services/indexer/graphql/uptimeByAddress.graphql create mode 100644 src/services/backend/services/indexer/graphql/wasmDashboardPage.graphql diff --git a/src/constants/config.ts b/src/constants/config.ts index 4b3ba7052..c2fa6aed7 100644 --- a/src/constants/config.ts +++ b/src/constants/config.ts @@ -27,6 +27,8 @@ export const BECH32_PREFIX = export const BECH32_PREFIX_VALOPER = `${BECH32_PREFIX}valoper`; +export const BECH32_PREFIX_VAL_CONS = `${BECH32_PREFIX}valcons`; + export const BASE_DENOM = process.env.BASE_DENOM || defaultNetworks[DEFAULT_CHAIN_ID].BASE_DENOM; diff --git a/src/containers/Validators/ActionBarContainer.tsx b/src/containers/Validators/ActionBarContainer.tsx index f83c8c221..77ae03297 100644 --- a/src/containers/Validators/ActionBarContainer.tsx +++ b/src/containers/Validators/ActionBarContainer.tsx @@ -8,7 +8,7 @@ import { useSigningClient } from 'src/contexts/signerClient'; import Button from 'src/components/btnGrd'; import { routes } from 'src/routes'; import useDelegation from 'src/features/staking/delegation/useDelegation'; -import { BASE_DENOM, MEMO_KEPLR } from 'src/constants/config'; +import { BASE_DENOM, DENOM_LIQUID, MEMO_KEPLR } from 'src/constants/config'; import { Confirmed, TransactionSubmitted, diff --git a/src/containers/brain/tx.jsx b/src/containers/brain/tx.jsx index c17726509..141147861 100644 --- a/src/containers/brain/tx.jsx +++ b/src/containers/brain/tx.jsx @@ -1,32 +1,21 @@ -import { useQuery, gql } from '@apollo/client'; - +import { useTransactionCountQuery } from 'src/generated/graphql'; import { Dots } from '../../components'; import { formatNumber } from '../../utils/utils'; -const GET_CHARACTERS = gql` - query MyQuery { - transaction_aggregate { - aggregate { - count(columns: hash) - } - } - } -`; - function Txs() { - try { - // eslint-disable-next-line react-hooks/rules-of-hooks - const { loading, data } = useQuery(GET_CHARACTERS); - if (loading) { - return ; - } + const { loading, data, error } = useTransactionCountQuery(); - return ( - {formatNumber(data.transaction_aggregate.aggregate.count)} - ); - } catch (error) { + if (loading) { + return ; + } + + if (error) { return ; } + + return ( + {formatNumber(data.transaction_aggregate.aggregate.count)} + ); } export default Txs; diff --git a/src/containers/validator/UptimeHook.jsx b/src/containers/validator/UptimeHook.jsx index 96ea42a72..a75d7901d 100644 --- a/src/containers/validator/UptimeHook.jsx +++ b/src/containers/validator/UptimeHook.jsx @@ -1,53 +1,29 @@ -import { useQuery, gql } from '@apollo/client'; +import { useUptimeByAddressQuery } from 'src/generated/graphql'; +import { INFINITY } from 'src/constants/app'; +import { BECH32_PREFIX_VAL_CONS } from 'src/constants/config'; +import BigNumber from 'bignumber.js'; import { Dots } from '../../components'; -import { formatNumber, fromBech32 } from '../../utils/utils'; +import { fromBech32 } from '../../utils/utils'; function useUptime({ accountUser }) { - try { - const GET_CHARACTERS = gql` - query uptime { - uptime(where: {consensus_address: {_eq: "${fromBech32( - accountUser, - 'bostromvalcons' - )}"}}) { - uptime - } - - } - `; - - // eslint-disable-next-line react-hooks/rules-of-hooks - const { loading, data } = useQuery(GET_CHARACTERS); - - if (loading) { - return ; - } - - let uptime = 0; - - if (data) { - const { pre_commit, pre_commit_aggregate, block_aggregate } = data; - - if ( - pre_commit && - pre_commit_aggregate && - block_aggregate && - Object.keys(pre_commit).length !== 0 && - Object.keys(pre_commit_aggregate).length !== 0 && - Object.keys(block_aggregate).length !== 0 - ) { - const thisBlock = block_aggregate.nodes[0].height; - const firstPreCommit = pre_commit[0].validator.blocks[0].height; - const countPreCommit = pre_commit_aggregate.aggregate.count; - uptime = countPreCommit / (thisBlock - firstPreCommit); - } - } + const { loading, data, error } = useUptimeByAddressQuery({ + variables: { + address: `${fromBech32(accountUser, BECH32_PREFIX_VAL_CONS)}`, + }, + }); + + if (loading) { + return ; + } - return `${formatNumber(uptime * 100, 2)} %`; - } catch (error) { - console.warn(error); - return '∞'; + if (error) { + return INFINITY; } + + return `${new BigNumber(data.uptime) + .shiftedBy(2) + .dp(2, BigNumber.ROUND_FLOOR) + .toString()} %`; } export default useUptime; diff --git a/src/containers/validator/rumors.jsx b/src/containers/validator/rumors.jsx index f11bec9e8..7631489ed 100644 --- a/src/containers/validator/rumors.jsx +++ b/src/containers/validator/rumors.jsx @@ -8,6 +8,8 @@ function Rumors({ accountUser }) { const GET_CHARACTERS = gql` subscription getRumors { transaction( + limit: 10 + offset: 0 order_by: { height: desc } where: { _and: [ diff --git a/src/containers/wasm/contract/DashboardPage.jsx b/src/containers/wasm/contract/DashboardPage.jsx index 8ee06b66b..f08789950 100644 --- a/src/containers/wasm/contract/DashboardPage.jsx +++ b/src/containers/wasm/contract/DashboardPage.jsx @@ -1,47 +1,23 @@ import { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; -import { useQuery, gql } from '@apollo/client'; import { useQueryClient } from 'src/contexts/queryClient'; +import { BASE_DENOM } from 'src/constants/config'; +import { useWasmDashboardPageQuery } from 'src/generated/graphql'; import { formatNumber } from '../../../utils/utils'; import { CardStatisics, Dots } from '../../../components'; import { ContainerCardStatisics, ContainerCol } from '../ui/ui'; import ContractTable from './ContractTable'; -import { BASE_DENOM } from 'src/constants/config'; const PAGE_SIZE = 50; -const GET_CHARACTERS = gql` - query MyQuery($offset: Int) { - contracts(limit: 50, offset: $offset, order_by: { tx: desc }) { - address - admin - code_id - creator - fees - gas - label - tx - } - contracts_aggregate { - aggregate { - sum { - gas - fees - tx - } - count(columns: address) - } - } - } -`; - const useGetContracts = (offset) => { const [dataContracts, setDataContracts] = useState([]); const [dataAggregate, setDataAggregate] = useState(null); - const { loading, data } = useQuery(GET_CHARACTERS, { + const { loading, data } = useWasmDashboardPageQuery({ variables: { offset: offset * PAGE_SIZE, + limit: PAGE_SIZE, }, }); diff --git a/src/features/cyberlinks/hooks/useCyberlinksCount.ts b/src/features/cyberlinks/hooks/useCyberlinksCount.ts index 128b97cdc..388831e38 100644 --- a/src/features/cyberlinks/hooks/useCyberlinksCount.ts +++ b/src/features/cyberlinks/hooks/useCyberlinksCount.ts @@ -1,20 +1,15 @@ -import { useQuery, gql } from '@apollo/client'; - -function generateQuery(cid: string, type: 'to' | 'from') { - return gql` - query Query { - cyberlinks_aggregate(where: {particle_${type}: {_eq: "${cid}"}}) { - aggregate { - count - } - } - } - `; -} +import { + useCyberlinksCountByParticleFromQuery, + useCyberlinksCountByParticleToQuery, +} from 'src/generated/graphql'; function useCyberlinksCount(cid: string) { - const toCountQuery = useQuery(generateQuery(cid, 'to')); - const fromCountQuery = useQuery(generateQuery(cid, 'from')); + const toCountQuery = useCyberlinksCountByParticleToQuery({ + variables: { cid }, + }); + const fromCountQuery = useCyberlinksCountByParticleFromQuery({ + variables: { cid }, + }); return { data: { diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index b1729e233..d9fba4b3c 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -10343,6 +10343,20 @@ export type CyberlinksCountByNeuronQueryVariables = Exact<{ export type CyberlinksCountByNeuronQuery = { __typename?: 'query_root', cyberlinks_aggregate: { __typename?: 'cyberlinks_aggregate', aggregate?: { __typename?: 'cyberlinks_aggregate_fields', count: number } | null } }; +export type CyberlinksCountByParticleFromQueryVariables = Exact<{ + cid?: InputMaybe; +}>; + + +export type CyberlinksCountByParticleFromQuery = { __typename?: 'query_root', cyberlinks_aggregate: { __typename?: 'cyberlinks_aggregate', aggregate?: { __typename?: 'cyberlinks_aggregate_fields', count: number } | null } }; + +export type CyberlinksCountByParticleToQueryVariables = Exact<{ + cid?: InputMaybe; +}>; + + +export type CyberlinksCountByParticleToQuery = { __typename?: 'query_root', cyberlinks_aggregate: { __typename?: 'cyberlinks_aggregate', aggregate?: { __typename?: 'cyberlinks_aggregate_fields', count: number } | null } }; + export type MessagesByAddressCountQueryVariables = Exact<{ address?: InputMaybe; timestamp?: InputMaybe; @@ -10375,14 +10389,35 @@ export type MessagesByAddressSenseWsSubscriptionVariables = Exact<{ export type MessagesByAddressSenseWsSubscription = { __typename?: 'subscription_root', messages_by_address: Array<{ __typename?: 'message', transaction_hash: string, index: any, value: any, type: string, transaction: { __typename?: 'transaction', success: boolean, memo?: string | null, block: { __typename?: 'block', timestamp: any, height: any } } }> }; +export type TransactionCountQueryVariables = Exact<{ [key: string]: never; }>; + + +export type TransactionCountQuery = { __typename?: 'query_root', transaction_aggregate: { __typename?: 'transaction_aggregate', aggregate?: { __typename?: 'transaction_aggregate_fields', count: number } | null } }; + +export type UptimeByAddressQueryVariables = Exact<{ + address?: InputMaybe; +}>; + + +export type UptimeByAddressQuery = { __typename?: 'query_root', uptime: Array<{ __typename?: 'uptime', uptime?: any | null }> }; + +export type WasmDashboardPageQueryVariables = Exact<{ + offset?: InputMaybe; + limit?: InputMaybe; +}>; + + +export type WasmDashboardPageQuery = { __typename?: 'query_root', contracts: Array<{ __typename?: 'contracts', address: string, admin: string, code_id: any, creator: string, fees: any, gas: any, label: string, tx: any }>, contracts_aggregate: { __typename?: 'contracts_aggregate', aggregate?: { __typename?: 'contracts_aggregate_fields', count: number, sum?: { __typename?: 'contracts_sum_fields', gas?: any | null, fees?: any | null, tx?: any | null } | null } | null } }; + export type MessagesByAddressQueryVariables = Exact<{ address?: InputMaybe; limit?: InputMaybe; offset?: InputMaybe; + types?: InputMaybe; }>; -export type MessagesByAddressQuery = { __typename?: 'query_root', messages_by_address: Array<{ __typename?: 'message', transaction_hash: string, value: any, type: string, transaction: { __typename?: 'transaction', success: boolean, block: { __typename?: 'block', timestamp: any } } }> }; +export type MessagesByAddressQuery = { __typename?: 'query_root', messages_by_address: Array<{ __typename?: 'message', transaction_hash: string, value: any, type: string, transaction: { __typename?: 'transaction', success: boolean, height: any, logs?: any | null, memo?: string | null, block: { __typename?: 'block', timestamp: any } } }> }; export const TransactionsDocument = gql` @@ -10510,6 +10545,90 @@ export type CyberlinksCountByNeuronQueryHookResult = ReturnType; export type CyberlinksCountByNeuronSuspenseQueryHookResult = ReturnType; export type CyberlinksCountByNeuronQueryResult = Apollo.QueryResult; +export const CyberlinksCountByParticleFromDocument = gql` + query cyberlinksCountByParticleFrom($cid: String) { + cyberlinks_aggregate(where: {particle_from: {_eq: $cid}}) { + aggregate { + count + } + } +} + `; + +/** + * __useCyberlinksCountByParticleFromQuery__ + * + * To run a query within a React component, call `useCyberlinksCountByParticleFromQuery` and pass it any options that fit your needs. + * When your component renders, `useCyberlinksCountByParticleFromQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useCyberlinksCountByParticleFromQuery({ + * variables: { + * cid: // value for 'cid' + * }, + * }); + */ +export function useCyberlinksCountByParticleFromQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(CyberlinksCountByParticleFromDocument, options); + } +export function useCyberlinksCountByParticleFromLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(CyberlinksCountByParticleFromDocument, options); + } +export function useCyberlinksCountByParticleFromSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(CyberlinksCountByParticleFromDocument, options); + } +export type CyberlinksCountByParticleFromQueryHookResult = ReturnType; +export type CyberlinksCountByParticleFromLazyQueryHookResult = ReturnType; +export type CyberlinksCountByParticleFromSuspenseQueryHookResult = ReturnType; +export type CyberlinksCountByParticleFromQueryResult = Apollo.QueryResult; +export const CyberlinksCountByParticleToDocument = gql` + query cyberlinksCountByParticleTo($cid: String) { + cyberlinks_aggregate(where: {particle_to: {_eq: $cid}}) { + aggregate { + count + } + } +} + `; + +/** + * __useCyberlinksCountByParticleToQuery__ + * + * To run a query within a React component, call `useCyberlinksCountByParticleToQuery` and pass it any options that fit your needs. + * When your component renders, `useCyberlinksCountByParticleToQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useCyberlinksCountByParticleToQuery({ + * variables: { + * cid: // value for 'cid' + * }, + * }); + */ +export function useCyberlinksCountByParticleToQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(CyberlinksCountByParticleToDocument, options); + } +export function useCyberlinksCountByParticleToLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(CyberlinksCountByParticleToDocument, options); + } +export function useCyberlinksCountByParticleToSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(CyberlinksCountByParticleToDocument, options); + } +export type CyberlinksCountByParticleToQueryHookResult = ReturnType; +export type CyberlinksCountByParticleToLazyQueryHookResult = ReturnType; +export type CyberlinksCountByParticleToSuspenseQueryHookResult = ReturnType; +export type CyberlinksCountByParticleToQueryResult = Apollo.QueryResult; export const MessagesByAddressCountDocument = gql` query MessagesByAddressCount($address: _text, $timestamp: timestamp) { messages_by_address_aggregate( @@ -10666,16 +10785,158 @@ export function useMessagesByAddressSenseWsSubscription(baseOptions?: Apollo.Sub } export type MessagesByAddressSenseWsSubscriptionHookResult = ReturnType; export type MessagesByAddressSenseWsSubscriptionResult = Apollo.SubscriptionResult; +export const TransactionCountDocument = gql` + query transactionCount { + transaction_aggregate { + aggregate { + count(columns: hash) + } + } +} + `; + +/** + * __useTransactionCountQuery__ + * + * To run a query within a React component, call `useTransactionCountQuery` and pass it any options that fit your needs. + * When your component renders, `useTransactionCountQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useTransactionCountQuery({ + * variables: { + * }, + * }); + */ +export function useTransactionCountQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(TransactionCountDocument, options); + } +export function useTransactionCountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(TransactionCountDocument, options); + } +export function useTransactionCountSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(TransactionCountDocument, options); + } +export type TransactionCountQueryHookResult = ReturnType; +export type TransactionCountLazyQueryHookResult = ReturnType; +export type TransactionCountSuspenseQueryHookResult = ReturnType; +export type TransactionCountQueryResult = Apollo.QueryResult; +export const UptimeByAddressDocument = gql` + query uptimeByAddress($address: String) { + uptime(where: {consensus_address: {_eq: $address}}) { + uptime + } +} + `; + +/** + * __useUptimeByAddressQuery__ + * + * To run a query within a React component, call `useUptimeByAddressQuery` and pass it any options that fit your needs. + * When your component renders, `useUptimeByAddressQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useUptimeByAddressQuery({ + * variables: { + * address: // value for 'address' + * }, + * }); + */ +export function useUptimeByAddressQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(UptimeByAddressDocument, options); + } +export function useUptimeByAddressLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(UptimeByAddressDocument, options); + } +export function useUptimeByAddressSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(UptimeByAddressDocument, options); + } +export type UptimeByAddressQueryHookResult = ReturnType; +export type UptimeByAddressLazyQueryHookResult = ReturnType; +export type UptimeByAddressSuspenseQueryHookResult = ReturnType; +export type UptimeByAddressQueryResult = Apollo.QueryResult; +export const WasmDashboardPageDocument = gql` + query wasmDashboardPage($offset: Int, $limit: Int) { + contracts(limit: $limit, offset: $offset, order_by: {tx: desc}) { + address + admin + code_id + creator + fees + gas + label + tx + } + contracts_aggregate { + aggregate { + sum { + gas + fees + tx + } + count(columns: address) + } + } +} + `; + +/** + * __useWasmDashboardPageQuery__ + * + * To run a query within a React component, call `useWasmDashboardPageQuery` and pass it any options that fit your needs. + * When your component renders, `useWasmDashboardPageQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useWasmDashboardPageQuery({ + * variables: { + * offset: // value for 'offset' + * limit: // value for 'limit' + * }, + * }); + */ +export function useWasmDashboardPageQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(WasmDashboardPageDocument, options); + } +export function useWasmDashboardPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(WasmDashboardPageDocument, options); + } +export function useWasmDashboardPageSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(WasmDashboardPageDocument, options); + } +export type WasmDashboardPageQueryHookResult = ReturnType; +export type WasmDashboardPageLazyQueryHookResult = ReturnType; +export type WasmDashboardPageSuspenseQueryHookResult = ReturnType; +export type WasmDashboardPageQueryResult = Apollo.QueryResult; export const MessagesByAddressDocument = gql` - query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint) { + query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint, $types: _text) { messages_by_address( - args: {addresses: $address, limit: $limit, offset: $offset, types: "{}"} + args: {addresses: $address, limit: $limit, offset: $offset, types: $types} order_by: {transaction: {block: {height: desc}}} ) { transaction_hash value transaction { success + height + logs + memo block { timestamp } @@ -10700,6 +10961,7 @@ export const MessagesByAddressDocument = gql` * address: // value for 'address' * limit: // value for 'limit' * offset: // value for 'offset' + * types: // value for 'types' * }, * }); */ diff --git a/src/pages/robot/_refactor/account/component/tableTxs.jsx b/src/pages/robot/_refactor/account/component/tableTxs.jsx index aa8cc3799..aaa657236 100644 --- a/src/pages/robot/_refactor/account/component/tableTxs.jsx +++ b/src/pages/robot/_refactor/account/component/tableTxs.jsx @@ -186,15 +186,6 @@ function TableTxs({ data, type, accountUser, amount }) { } - pullDownToRefresh - pullDownToRefreshContent={ -

- ↓ Pull down to refresh -

- } - releaseToRefreshContent={ -

↑ Release to refresh

- } refreshFunction={setNextDisplayedPalettes} > {data.length > 0 ? ( diff --git a/src/pages/robot/_refactor/account/component/txsTable.tsx b/src/pages/robot/_refactor/account/component/txsTable.tsx index 4cdbe9c6c..07a15ffeb 100644 --- a/src/pages/robot/_refactor/account/component/txsTable.tsx +++ b/src/pages/robot/_refactor/account/component/txsTable.tsx @@ -24,6 +24,7 @@ function TxsTable() { address: `{${accountUser}}`, limit, offset: 0, + types: '{}' }, notifyOnNetworkStatusChange: true, }); diff --git a/src/pages/robot/_refactor/account/tabs/link.jsx b/src/pages/robot/_refactor/account/tabs/link.jsx deleted file mode 100644 index d37bd80ab..000000000 --- a/src/pages/robot/_refactor/account/tabs/link.jsx +++ /dev/null @@ -1,44 +0,0 @@ -import { useQuery, gql } from '@apollo/client'; - -import TableLink from '../component/tableLink'; -import Table from 'src/components/Table/Table'; - -// const GET_CHARACTERS = gql` -// query MyQuery($agent: String) { -// link_aggregate(where: { agent: { _eq: $agent } }) { -// nodes { -// transaction -// timestamp -// height -// cid_to -// cid_from -// agent -// } -// } -// } -// `; - -export default function GetLink() { - const GET_CHARACTERS = gql` - query MyQuery { - cyberlinks_aggregate(where: {neuron: {_eq: "${address}"}}, order_by: {height: desc}) { - nodes { - height - particle_from - particle_to - timestamp - transaction_hash - } - } -} - `; - const { loading, error, data: dataLink } = useQuery(GET_CHARACTERS); - if (loading) { - return 'loading...'; - } - if (error) { - return `error! ${error.message}`; - } - - return ; -} diff --git a/src/pages/teleport/hooks/useGetSendTxsByAddress.tsx b/src/pages/teleport/hooks/useGetSendTxsByAddress.tsx index c6a5a9e17..2db1aa76f 100644 --- a/src/pages/teleport/hooks/useGetSendTxsByAddress.tsx +++ b/src/pages/teleport/hooks/useGetSendTxsByAddress.tsx @@ -1,34 +1,12 @@ -import { request } from 'graphql-request'; -import { gql } from '@apollo/client'; - -import { useInfiniteQuery } from '@tanstack/react-query'; -import BigNumber from 'bignumber.js'; import { useEffect, useState } from 'react'; import { AccountValue } from 'src/types/defaultAccount'; import { Nullable, Option } from 'src/types'; import { Log } from '@cosmjs/stargate/build/logs'; -import { INDEX_HTTPS } from 'src/constants/config'; - -const messagesByAddress = gql(` - query MyQuery($address: _text, $limit: bigint, $offset: bigint, $type: _text) { - messages_by_address(args: {addresses: $address, limit: $limit, offset: $offset, types: $type}, - order_by: {transaction: {block: {height: desc}}}) { - transaction_hash - value - transaction { - success - height - logs - block { - timestamp - } - memo - } - type - } -} -`); +import { + MessagesByAddressQueryHookResult, + useMessagesByAddressQuery, +} from 'src/generated/graphql'; type Txs = { success: boolean; @@ -47,47 +25,49 @@ export type ResponseTxsByType = { value: any; }; +export interface UseGetSendTxsByAddressByType + extends MessagesByAddressQueryHookResult { + hasMore: boolean; + fetchMoreData: () => void; +} + const limit = '5'; function useGetSendTxsByAddressByType( address: Nullable, - type: string -) { + types: string +): UseGetSendTxsByAddressByType { + const [hasMore, setHasMore] = useState(true); const [addressBech32, setAddressBech32] = useState>(); - const { - status, - data, - error, - isFetching, - fetchNextPage, - hasNextPage, - refetch, - } = useInfiniteQuery( - ['messagesByAddressGql', addressBech32, type], - async ({ pageParam = 0 }) => { - const res = await request(INDEX_HTTPS, messagesByAddress, { - address: `{${addressBech32}}`, - limit, - offset: new BigNumber(limit).multipliedBy(pageParam).toString(), - type: `{${type}}`, - }); - return { - data: res.messages_by_address as ResponseTxsByType[], - page: pageParam, - }; + const result = useMessagesByAddressQuery({ + variables: { + address: `{${addressBech32}}`, + limit, + offset: 0, + types: `{${types}}`, }, - { - enabled: Boolean(addressBech32) && Boolean(type), - getNextPageParam: (lastPage) => { - if (lastPage.data && lastPage.data.length === 0) { - return undefined; - } + }); - const nextPage = lastPage.page !== undefined ? lastPage.page + 1 : 0; - return nextPage; + const fetchMoreData = () => { + result.fetchMore({ + variables: { + offset: result.data?.messages_by_address.length, }, - } - ); + updateQuery: (prev, { fetchMoreResult }) => { + if (!fetchMoreResult) { + return prev; + } + setHasMore(fetchMoreResult.messages_by_address.length > 0); + return { + ...prev, + messages_by_address: [ + ...prev.messages_by_address, + ...fetchMoreResult.messages_by_address, + ], + }; + }, + }); + }; useEffect(() => { if (address) { @@ -96,13 +76,9 @@ function useGetSendTxsByAddressByType( }, [address]); return { - data, - error, - isFetching, - fetchNextPage, - hasNextPage, - status, - refetch, + ...result, + fetchMoreData, + hasMore, }; } diff --git a/src/pages/teleport/swap/components/dataSwapTxs/DataSwapTxs.tsx b/src/pages/teleport/swap/components/dataSwapTxs/DataSwapTxs.tsx index 540687f92..677ee1672 100644 --- a/src/pages/teleport/swap/components/dataSwapTxs/DataSwapTxs.tsx +++ b/src/pages/teleport/swap/components/dataSwapTxs/DataSwapTxs.tsx @@ -1,49 +1,34 @@ -import { UseInfiniteQueryResult } from '@tanstack/react-query'; -import React, { useMemo } from 'react'; +import { useMemo } from 'react'; import { v4 as uuidv4 } from 'uuid'; -import { Dots } from 'src/components'; -import { useIbcDenom } from 'src/contexts/ibcDenom'; -import { ResponseTxsByType } from '../../../hooks/useGetSendTxsByAddress'; +import { UseGetSendTxsByAddressByType } from 'src/pages/teleport/hooks/useGetSendTxsByAddress'; import DataSwapTxsItem from './DataSwapTxsItem'; import InfiniteScrollDataTsx from '../../../components/InfiniteScrollDataTxs/InfiniteScrollDataTsx'; -type DataTxs = { - data: ResponseTxsByType[]; - page: any; -}; - -function DataSwapTxs({ - dataTxs, -}: { - dataTxs: UseInfiniteQueryResult; -}) { - const { traseDenom } = useIbcDenom(); - const { data, error, status, fetchNextPage, hasNextPage } = dataTxs; +function DataSwapTxs({ dataTxs }: { dataTxs: UseGetSendTxsByAddressByType }) { + const { data, error, hasMore, fetchMoreData } = dataTxs; const itemRows = useMemo(() => { - if (data && traseDenom) { - return data.pages.map((page) => ( - - {page.data.map((item) => { - const key = uuidv4(); - - return ( - - ); - })} - - )); + if (data) { + return data.messages_by_address.map((item) => { + const key = uuidv4(); + + return ( + + ); + }); } return []; - }, [data, traseDenom]); + }, [data]); + + console.log('data', data); const fetchNextPageFnc = () => { setTimeout(() => { - fetchNextPage(); + fetchMoreData(); }, 250); }; @@ -51,11 +36,9 @@ function DataSwapTxs({ - {status === 'loading' ? ( - - ) : status === 'error' ? ( + {error ? ( Error: {error.message} ) : itemRows.length > 0 ? ( itemRows diff --git a/src/pages/teleport/swap/components/dataSwapTxs/DataSwapTxsItem.tsx b/src/pages/teleport/swap/components/dataSwapTxs/DataSwapTxsItem.tsx index eecbd04ba..9de6e573f 100644 --- a/src/pages/teleport/swap/components/dataSwapTxs/DataSwapTxsItem.tsx +++ b/src/pages/teleport/swap/components/dataSwapTxs/DataSwapTxsItem.tsx @@ -7,8 +7,9 @@ import Display from 'src/components/containerGradient/Display/Display'; import { Colors } from 'src/components/containerGradient/types'; import { FormatNumberTokens, AmountDenom, CreatedAt } from 'src/components'; import { CssVariables } from 'src/style/variables'; +import { MessagesByAddressQuery } from 'src/generated/graphql'; +import { ArrayElement } from 'src/types'; import useGetResultSwap from '../../../hooks/useGetResultSwap'; -import { ResponseTxsByType } from '../../../hooks/useGetSendTxsByAddress'; import styles from './DataSwapTxs.module.scss'; function getDataOrder(value, coinDecimalsA: number) { @@ -30,7 +31,11 @@ function getDataOrder(value, coinDecimalsA: number) { }; } -function DataSwapTxsItem({ item }: { item: ResponseTxsByType }) { +function DataSwapTxsItem({ + item, +}: { + item: ArrayElement; +}) { const { traseDenom } = useIbcDenom(); const dataResultSwap = useGetResultSwap( item.transaction.height, diff --git a/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleFrom.graphql b/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleFrom.graphql new file mode 100644 index 000000000..5b3983784 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleFrom.graphql @@ -0,0 +1,7 @@ +query cyberlinksCountByParticleFrom($cid: String) { + cyberlinks_aggregate(where: { particle_from: { _eq: $cid } }) { + aggregate { + count + } + } +} diff --git a/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleTo.graphql b/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleTo.graphql new file mode 100644 index 000000000..c1fc09ece --- /dev/null +++ b/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleTo.graphql @@ -0,0 +1,7 @@ +query cyberlinksCountByParticleTo($cid: String) { + cyberlinks_aggregate(where: { particle_to: { _eq: $cid } }) { + aggregate { + count + } + } +} diff --git a/src/services/backend/services/indexer/graphql/transactionCount.graphql b/src/services/backend/services/indexer/graphql/transactionCount.graphql new file mode 100644 index 000000000..8d441cb1f --- /dev/null +++ b/src/services/backend/services/indexer/graphql/transactionCount.graphql @@ -0,0 +1,7 @@ +query transactionCount { + transaction_aggregate { + aggregate { + count(columns: hash) + } + } +} diff --git a/src/services/backend/services/indexer/graphql/uptimeByAddress.graphql b/src/services/backend/services/indexer/graphql/uptimeByAddress.graphql new file mode 100644 index 000000000..b29850651 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/uptimeByAddress.graphql @@ -0,0 +1,6 @@ + + query uptimeByAddress($address: String) { + uptime(where: { consensus_address: { _eq: $address } }) { + uptime + } + } \ No newline at end of file diff --git a/src/services/backend/services/indexer/graphql/wasmDashboardPage.graphql b/src/services/backend/services/indexer/graphql/wasmDashboardPage.graphql new file mode 100644 index 000000000..f64b08d72 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/wasmDashboardPage.graphql @@ -0,0 +1,22 @@ +query wasmDashboardPage($offset: Int, $limit: Int) { + contracts(limit: $limit, offset: $offset, order_by: { tx: desc }) { + address + admin + code_id + creator + fees + gas + label + tx + } + contracts_aggregate { + aggregate { + sum { + gas + fees + tx + } + count(columns: address) + } + } +} diff --git a/src/services/graphql/queries/messagesByAddress.graphql b/src/services/graphql/queries/messagesByAddress.graphql index 68ea14ba8..5d015cd64 100644 --- a/src/services/graphql/queries/messagesByAddress.graphql +++ b/src/services/graphql/queries/messagesByAddress.graphql @@ -1,16 +1,19 @@ -query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint) { +query MessagesByAddress($address: _text, $limit: bigint, $offset: bigint, $types: _text) { messages_by_address( - args: { addresses: $address, limit: $limit, offset: $offset, types: "{}" } + args: { addresses: $address, limit: $limit, offset: $offset, types: $types } order_by: { transaction: { block: { height: desc } } } ) { transaction_hash - value - transaction { - success - block { - timestamp + value + transaction { + success + height + logs + memo + block { + timestamp + } } - } - type + type } } diff --git a/src/types/index.d.ts b/src/types/index.d.ts index dbe6c5d6c..5b20e1658 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -1,2 +1,4 @@ export type Option = T | undefined; export type Nullable = T | null | undefined; +export type ArrayElement = + ArrayType extends readonly (infer ElementType)[] ? ElementType : never; From 5a56f2c9600567e8a0af1f0e3c96636e1a0bca1c Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Wed, 27 Mar 2024 21:55:40 +0300 Subject: [PATCH 31/40] refactor(gql): val page --- src/containers/validator/leadership.jsx | 66 ---------- src/containers/validator/leadership.tsx | 60 +++++++++ src/containers/validator/rumors.jsx | 63 ---------- src/containers/validator/rumors.tsx | 63 ++++++++++ .../{DashboardPage.jsx => DashboardPage.tsx} | 0 src/generated/graphql.ts | 119 ++++++++++++++++++ .../component/{tableTxs.jsx => tableTxs.tsx} | 26 ++-- .../_refactor/account/component/txsTable.tsx | 21 ++-- .../graphql/leadershipByAddress.graphql | 32 +++++ .../indexer/graphql/rumorsByAddress.graphql | 31 +++++ 10 files changed, 327 insertions(+), 154 deletions(-) delete mode 100644 src/containers/validator/leadership.jsx create mode 100644 src/containers/validator/leadership.tsx delete mode 100644 src/containers/validator/rumors.jsx create mode 100644 src/containers/validator/rumors.tsx rename src/containers/wasm/contract/{DashboardPage.jsx => DashboardPage.tsx} (100%) rename src/pages/robot/_refactor/account/component/{tableTxs.jsx => tableTxs.tsx} (91%) create mode 100644 src/services/backend/services/indexer/graphql/leadershipByAddress.graphql create mode 100644 src/services/backend/services/indexer/graphql/rumorsByAddress.graphql diff --git a/src/containers/validator/leadership.jsx b/src/containers/validator/leadership.jsx deleted file mode 100644 index 0dd5ea074..000000000 --- a/src/containers/validator/leadership.jsx +++ /dev/null @@ -1,66 +0,0 @@ -import { gql } from '@apollo/client'; - -import { useSubscription } from '@apollo/client'; -import TableTxs from '../../pages/robot/_refactor/account/component/tableTxs'; -import { Dots } from '../../components'; -import Loader2 from 'src/components/ui/Loader2'; - -const typeTx = `["cosmos.gov.v1beta1.MsgDeposit", "cosmos.gov.v1beta1.MsgVote", "cosmos.gov.v1beta1.MsgSubmitProposal" ]`; - -function Leadership({ accountUser }) { - const GET_CHARACTERS = gql` - subscription MyQuery { - _transaction( - where: { - _and: [ - { - type: { - _in: ${typeTx} - } - } - { - _or: [ - { - subject1: { - _eq: "${accountUser}" - } - } - { - subject2: { - _eq: "${accountUser}" - } - } - ] - } - ] - } - order_by: { height: desc } - ) { - hash - type - success - height - messages - } - } - `; - const { loading, error, data } = useSubscription(GET_CHARACTERS); - - const { _transaction: transaction } = data || {}; - - return ( -
- {loading ? ( - - ) : transaction ? ( - - ) : error ? ( -

{error.message}

- ) : ( - 'No data' - )} -
- ); -} - -export default Leadership; diff --git a/src/containers/validator/leadership.tsx b/src/containers/validator/leadership.tsx new file mode 100644 index 000000000..ad4bf448d --- /dev/null +++ b/src/containers/validator/leadership.tsx @@ -0,0 +1,60 @@ + +import TableTxs from '../../pages/robot/_refactor/account/component/tableTxs'; +import Loader2 from 'src/components/ui/Loader2'; +import { useLeadershipQuery } from 'src/generated/graphql'; +import { useState } from 'react'; + +const LIMIT = 10; + +function Leadership({ accountUser }: { accountUser: string }) { + const [hasMore, setHasMore] = useState(true); + const { loading, error, data, fetchMore } = useLeadershipQuery({ + variables: { + limit: LIMIT, + offset: 0, + valAddress: accountUser, + }, + }); + + const { _transaction: transaction } = data || {}; + + const fetchNextData = () => { + fetchMore({ + variables: { + offset: data?._transaction.length, + }, + updateQuery: (prev, { fetchMoreResult }) => { + if (!fetchMoreResult) { + return prev; + } + setHasMore(fetchMoreResult._transaction.length > 0); + + return { + ...prev, + _transaction: [...prev._transaction, ...fetchMoreResult._transaction], + }; + }, + }); + }; + + return ( +
+ {loading ? ( + + ) : transaction ? ( + + ) : error ? ( +

{error.message}

+ ) : ( + 'No data' + )} +
+ ); +} + +export default Leadership; diff --git a/src/containers/validator/rumors.jsx b/src/containers/validator/rumors.jsx deleted file mode 100644 index 7631489ed..000000000 --- a/src/containers/validator/rumors.jsx +++ /dev/null @@ -1,63 +0,0 @@ -import { gql } from '@apollo/client'; - -import { useSubscription } from '@apollo/client'; -import TableTxs from '../../pages/robot/_refactor/account/component/tableTxs'; -import { Loading, NoItems } from '../../components'; - -function Rumors({ accountUser }) { - const GET_CHARACTERS = gql` - subscription getRumors { - transaction( - limit: 10 - offset: 0 - order_by: { height: desc } - where: { - _and: [ - { - messagesByTransactionHash: { - type: { - _in: [ - "cosmos.staking.v1beta1.MsgDelegate" - "cosmos.staking.v1beta1.MsgUndelegate" - ] - } - } - } - { - messagesByTransactionHash: { - value: { - _contains: { - validator_address: "${accountUser}" - } - } - } - } - ] - } - ) { - messages - success - hash - height - } - } - `; - - const { loading, error, data: dataTxs } = useSubscription(GET_CHARACTERS); - - return ( -
- {loading ? ( - - ) : dataTxs ? ( - - ) : error ? ( - <>{JSON.stringify(error)} - ) : ( - - )} -
- ); -} - -export default Rumors; diff --git a/src/containers/validator/rumors.tsx b/src/containers/validator/rumors.tsx new file mode 100644 index 000000000..63a95181b --- /dev/null +++ b/src/containers/validator/rumors.tsx @@ -0,0 +1,63 @@ +import { useGetRumorsQuery } from 'src/generated/graphql'; +import { useState } from 'react'; +import TableTxs from '../../pages/robot/_refactor/account/component/tableTxs'; +import { Loading, NoItems } from '../../components'; + +const LIMIT = 10; + +function Rumors({ accountUser }: { accountUser: string }) { + const [hasMore, setHasMore] = useState(true); + const { + loading, + error, + data: dataTxs, + fetchMore, + } = useGetRumorsQuery({ + variables: { + limit: LIMIT, + offset: 0, + valAddress: accountUser, + }, + }); + + const fetchNextData = () => { + fetchMore({ + variables: { + offset: dataTxs?.transaction.length, + }, + updateQuery: (prev, { fetchMoreResult }) => { + if (!fetchMoreResult) { + return prev; + } + setHasMore(fetchMoreResult.transaction.length > 0); + + return { + ...prev, + transaction: [...prev.transaction, ...fetchMoreResult.transaction], + }; + }, + }); + }; + + return ( +
+ {loading ? ( + + ) : dataTxs ? ( + + ) : error ? ( + <>{JSON.stringify(error)} + ) : ( + + )} +
+ ); +} + +export default Rumors; diff --git a/src/containers/wasm/contract/DashboardPage.jsx b/src/containers/wasm/contract/DashboardPage.tsx similarity index 100% rename from src/containers/wasm/contract/DashboardPage.jsx rename to src/containers/wasm/contract/DashboardPage.tsx diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index d9fba4b3c..ef5c7a96e 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -10357,6 +10357,15 @@ export type CyberlinksCountByParticleToQueryVariables = Exact<{ export type CyberlinksCountByParticleToQuery = { __typename?: 'query_root', cyberlinks_aggregate: { __typename?: 'cyberlinks_aggregate', aggregate?: { __typename?: 'cyberlinks_aggregate_fields', count: number } | null } }; +export type LeadershipQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + valAddress?: InputMaybe; +}>; + + +export type LeadershipQuery = { __typename?: 'query_root', _transaction: Array<{ __typename?: '_transaction', hash?: string | null, type?: string | null, success?: boolean | null, height?: any | null, messages?: any | null }> }; + export type MessagesByAddressCountQueryVariables = Exact<{ address?: InputMaybe; timestamp?: InputMaybe; @@ -10389,6 +10398,15 @@ export type MessagesByAddressSenseWsSubscriptionVariables = Exact<{ export type MessagesByAddressSenseWsSubscription = { __typename?: 'subscription_root', messages_by_address: Array<{ __typename?: 'message', transaction_hash: string, index: any, value: any, type: string, transaction: { __typename?: 'transaction', success: boolean, memo?: string | null, block: { __typename?: 'block', timestamp: any, height: any } } }> }; +export type GetRumorsQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + valAddress?: InputMaybe; +}>; + + +export type GetRumorsQuery = { __typename?: 'query_root', transaction: Array<{ __typename?: 'transaction', messages: any, success: boolean, hash: string, height: any }> }; + export type TransactionCountQueryVariables = Exact<{ [key: string]: never; }>; @@ -10629,6 +10647,57 @@ export type CyberlinksCountByParticleToQueryHookResult = ReturnType; export type CyberlinksCountByParticleToSuspenseQueryHookResult = ReturnType; export type CyberlinksCountByParticleToQueryResult = Apollo.QueryResult; +export const LeadershipDocument = gql` + query leadership($limit: Int, $offset: Int, $valAddress: String) { + _transaction( + limit: $limit + offset: $offset + order_by: {height: desc} + where: {_and: [{type: {_in: ["cosmos.gov.v1beta1.MsgDeposit", "cosmos.gov.v1beta1.MsgVote", "cosmos.gov.v1beta1.MsgSubmitProposal"]}}, {_or: [{subject1: {_eq: $valAddress}}, {subject2: {_eq: $valAddress}}]}]} + ) { + hash + type + success + height + messages + } +} + `; + +/** + * __useLeadershipQuery__ + * + * To run a query within a React component, call `useLeadershipQuery` and pass it any options that fit your needs. + * When your component renders, `useLeadershipQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useLeadershipQuery({ + * variables: { + * limit: // value for 'limit' + * offset: // value for 'offset' + * valAddress: // value for 'valAddress' + * }, + * }); + */ +export function useLeadershipQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(LeadershipDocument, options); + } +export function useLeadershipLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(LeadershipDocument, options); + } +export function useLeadershipSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(LeadershipDocument, options); + } +export type LeadershipQueryHookResult = ReturnType; +export type LeadershipLazyQueryHookResult = ReturnType; +export type LeadershipSuspenseQueryHookResult = ReturnType; +export type LeadershipQueryResult = Apollo.QueryResult; export const MessagesByAddressCountDocument = gql` query MessagesByAddressCount($address: _text, $timestamp: timestamp) { messages_by_address_aggregate( @@ -10785,6 +10854,56 @@ export function useMessagesByAddressSenseWsSubscription(baseOptions?: Apollo.Sub } export type MessagesByAddressSenseWsSubscriptionHookResult = ReturnType; export type MessagesByAddressSenseWsSubscriptionResult = Apollo.SubscriptionResult; +export const GetRumorsDocument = gql` + query getRumors($limit: Int, $offset: Int, $valAddress: String) { + transaction( + limit: $limit + offset: $offset + order_by: {height: desc} + where: {_and: [{messagesByTransactionHash: {type: {_in: ["cosmos.staking.v1beta1.MsgDelegate", "cosmos.staking.v1beta1.MsgUndelegate"]}}}, {messagesByTransactionHash: {value: {_contains: {validator_address: $valAddress}}}}]} + ) { + messages + success + hash + height + } +} + `; + +/** + * __useGetRumorsQuery__ + * + * To run a query within a React component, call `useGetRumorsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetRumorsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetRumorsQuery({ + * variables: { + * limit: // value for 'limit' + * offset: // value for 'offset' + * valAddress: // value for 'valAddress' + * }, + * }); + */ +export function useGetRumorsQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetRumorsDocument, options); + } +export function useGetRumorsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetRumorsDocument, options); + } +export function useGetRumorsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(GetRumorsDocument, options); + } +export type GetRumorsQueryHookResult = ReturnType; +export type GetRumorsLazyQueryHookResult = ReturnType; +export type GetRumorsSuspenseQueryHookResult = ReturnType; +export type GetRumorsQueryResult = Apollo.QueryResult; export const TransactionCountDocument = gql` query transactionCount { transaction_aggregate { diff --git a/src/pages/robot/_refactor/account/component/tableTxs.jsx b/src/pages/robot/_refactor/account/component/tableTxs.tsx similarity index 91% rename from src/pages/robot/_refactor/account/component/tableTxs.jsx rename to src/pages/robot/_refactor/account/component/tableTxs.tsx index aaa657236..eaa33141a 100644 --- a/src/pages/robot/_refactor/account/component/tableTxs.jsx +++ b/src/pages/robot/_refactor/account/component/tableTxs.tsx @@ -1,4 +1,5 @@ -import { useState, useMemo, useCallback } from 'react'; +import { useCallback } from 'react'; +import { v4 as uuidv4 } from 'uuid'; import { Pane, TableEv as Table } from '@cybercongress/gravity'; import { Link } from 'react-router-dom'; import InfiniteScroll from 'react-infinite-scroll-component'; @@ -14,21 +15,16 @@ import { const statusTrueImg = require('src/image/ionicons_svg_ios-checkmark-circle.svg'); const statusFalseImg = require('src/image/ionicons_svg_ios-close-circle.svg'); -function TableTxs({ data, type, accountUser, amount }) { - const [itemsToShow, setItemsToShow] = useState(30); - +function TableTxs({ data, type, accountUser, amount, fetchNextData, hasMore }) { const setNextDisplayedPalettes = useCallback(() => { setTimeout(() => { - setItemsToShow(itemsToShow + 10); + if (fetchNextData) { + fetchNextData(); + } }, 250); - }, [itemsToShow, setItemsToShow]); - - const displayedPalettes = useMemo( - () => data.slice(0, itemsToShow), - [itemsToShow, data] - ); + }, [fetchNextData]); - const validatorRows = displayedPalettes.map((item, index) => ( + const validatorRows = data.map((item, index) => ( @@ -177,9 +173,9 @@ function TableTxs({ data, type, accountUser, amount }) { }} > Loading diff --git a/src/pages/robot/_refactor/account/component/txsTable.tsx b/src/pages/robot/_refactor/account/component/txsTable.tsx index 07a15ffeb..f97adcec9 100644 --- a/src/pages/robot/_refactor/account/component/txsTable.tsx +++ b/src/pages/robot/_refactor/account/component/txsTable.tsx @@ -13,21 +13,22 @@ import { useAdviser } from 'src/features/adviser/context'; import RenderValue from './RenderValue'; -const limit = 1000; // Use a constant for the limit +const limit = 10; // Use a constant for the limit function TxsTable() { const { address: accountUser } = useRobotContext(); const [hasMore, setHasMore] = useState(true); const { setAdviser } = useAdviser(); - const { data, loading, fetchMore, error } = useMessagesByAddressQuery({ - variables: { - address: `{${accountUser}}`, - limit, - offset: 0, - types: '{}' - }, - notifyOnNetworkStatusChange: true, - }); + const { data, loading, fetchMore, error } = + useMessagesByAddressQuery({ + variables: { + address: `{${accountUser}}`, + limit, + offset: 0, + types: '{}', + }, + notifyOnNetworkStatusChange: true, + }); useEffect(() => { setAdviser( diff --git a/src/services/backend/services/indexer/graphql/leadershipByAddress.graphql b/src/services/backend/services/indexer/graphql/leadershipByAddress.graphql new file mode 100644 index 000000000..3d12e7433 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/leadershipByAddress.graphql @@ -0,0 +1,32 @@ +query leadership($limit: Int, $offset: Int, $valAddress: String) { + _transaction( + limit: $limit + offset: $offset + order_by: { height: desc } + where: { + _and: [ + { + type: { + _in: [ + "cosmos.gov.v1beta1.MsgDeposit" + "cosmos.gov.v1beta1.MsgVote" + "cosmos.gov.v1beta1.MsgSubmitProposal" + ] + } + } + { + _or: [ + { subject1: { _eq: $valAddress } } + { subject2: { _eq: $valAddress } } + ] + } + ] + } + ) { + hash + type + success + height + messages + } +} \ No newline at end of file diff --git a/src/services/backend/services/indexer/graphql/rumorsByAddress.graphql b/src/services/backend/services/indexer/graphql/rumorsByAddress.graphql new file mode 100644 index 000000000..b28ceea13 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/rumorsByAddress.graphql @@ -0,0 +1,31 @@ +query getRumors($limit: Int, $offset: Int, $valAddress: String) { + transaction( + limit: $limit + offset: $offset + order_by: { height: desc } + where: { + _and: [ + { + messagesByTransactionHash: { + type: { + _in: [ + "cosmos.staking.v1beta1.MsgDelegate" + "cosmos.staking.v1beta1.MsgUndelegate" + ] + } + } + } + { + messagesByTransactionHash: { + value: { _contains: { validator_address: $valAddress } } + } + } + ] + } + ) { + messages + success + hash + height + } +} From e899cf4a52b816cfaa68616734385a9b217136e0 Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Wed, 27 Mar 2024 22:29:04 +0300 Subject: [PATCH 32/40] refactor(gql): cyberlink, acc, contracts --- src/containers/brain/accountCount.jsx | 30 ------ src/containers/brain/accountCount.tsx | 19 ++++ .../forceGraph/{hooks.js => hooks.ts} | 16 +++- src/containers/forceGraph/query.js | 21 +---- src/containers/home/{home.jsx => home.tsx} | 30 ++---- .../temple/hooks/useAccountCount.js | 66 ------------- .../temple/hooks/useAccountCount.ts | 45 +++++++++ src/containers/temple/hooks/useGetContract.js | 66 ------------- src/containers/temple/hooks/useGetContract.ts | 46 ++++++++++ .../temple/pages/play/PlayBanerContent.jsx | 4 +- src/generated/graphql.ts | 92 +++++++++++++++++++ .../indexer/graphql/accountCount.graphql | 7 ++ .../indexer/graphql/contractsCount.graphql | 7 ++ 13 files changed, 241 insertions(+), 208 deletions(-) delete mode 100644 src/containers/brain/accountCount.jsx create mode 100644 src/containers/brain/accountCount.tsx rename src/containers/forceGraph/{hooks.js => hooks.ts} (71%) rename src/containers/home/{home.jsx => home.tsx} (92%) delete mode 100644 src/containers/temple/hooks/useAccountCount.js create mode 100644 src/containers/temple/hooks/useAccountCount.ts delete mode 100644 src/containers/temple/hooks/useGetContract.js create mode 100644 src/containers/temple/hooks/useGetContract.ts create mode 100644 src/services/backend/services/indexer/graphql/accountCount.graphql create mode 100644 src/services/backend/services/indexer/graphql/contractsCount.graphql diff --git a/src/containers/brain/accountCount.jsx b/src/containers/brain/accountCount.jsx deleted file mode 100644 index 435437ec7..000000000 --- a/src/containers/brain/accountCount.jsx +++ /dev/null @@ -1,30 +0,0 @@ -import { useQuery, gql } from '@apollo/client'; - -import { Dots } from '../../components'; -import { formatNumber } from '../../utils/utils'; - -const GET_CHARACTERS = gql` - query MyQuery { - account_aggregate { - aggregate { - count(columns: address) - } - } - } -`; - -function AccountCount() { - try { - // eslint-disable-next-line react-hooks/rules-of-hooks - const { loading, data } = useQuery(GET_CHARACTERS); - if (loading) { - return ; - } - - return {formatNumber(data.account_aggregate.aggregate.count)}; - } catch (error) { - return ; - } -} - -export default AccountCount; diff --git a/src/containers/brain/accountCount.tsx b/src/containers/brain/accountCount.tsx new file mode 100644 index 000000000..c8df4d3f7 --- /dev/null +++ b/src/containers/brain/accountCount.tsx @@ -0,0 +1,19 @@ +import { useAccountCountQuery } from 'src/generated/graphql'; +import { Dots } from '../../components'; +import { formatNumber } from '../../utils/utils'; + +function AccountCount() { + const { loading, data, error } = useAccountCountQuery(); + if (loading) { + return ; + } + if (error) { + return ; + } + + return ( + {formatNumber(data?.account_aggregate.aggregate?.count || 0)} + ); +} + +export default AccountCount; diff --git a/src/containers/forceGraph/hooks.js b/src/containers/forceGraph/hooks.ts similarity index 71% rename from src/containers/forceGraph/hooks.js rename to src/containers/forceGraph/hooks.ts index 6f5bfd905..650a1ebac 100644 --- a/src/containers/forceGraph/hooks.js +++ b/src/containers/forceGraph/hooks.ts @@ -1,22 +1,28 @@ import { useEffect, useState } from 'react'; -import { useQuery } from '@apollo/client'; import useQueueIpfsContent from 'src/hooks/useQueueIpfsContent'; import { PATTERN_CYBER } from 'src/constants/patterns'; -import QUERY_GET_FOLLOWERS from './query'; +import { useCyberlinksByParticleQuery } from 'src/generated/graphql'; +import { QUERY_GET_FOLLOWERS } from './query'; const useGetDataGql = () => { const { fetchWithDetails } = useQueueIpfsContent(); - const { data: dataGql, loading: loadingGql } = useQuery(QUERY_GET_FOLLOWERS); + const { data: dataGql, loading: loadingGql } = useCyberlinksByParticleQuery({ + variables: { + limit: 1000, + where: QUERY_GET_FOLLOWERS , + offset: 0, + }, + }); const [data, setData] = useState([]); useEffect(() => { if (!loadingGql && fetchWithDetails) { - if (dataGql !== null && dataGql.cyberlinks) { + if (dataGql) { const { cyberlinks } = dataGql; cyberlinks.forEach(async (item) => { const addressResolve = fetchWithDetails - ? (await fetchWithDetails(item.particle_to)).content + ? (await fetchWithDetails(item.to)).content : null; if (addressResolve && addressResolve.match(PATTERN_CYBER)) { setData((itemData) => [ diff --git a/src/containers/forceGraph/query.js b/src/containers/forceGraph/query.js index bb92dcb55..e9aa278f6 100644 --- a/src/containers/forceGraph/query.js +++ b/src/containers/forceGraph/query.js @@ -1,18 +1,3 @@ -import { gql } from '@apollo/client'; - -const QUERY_GET_FOLLOWERS = gql` - query Cyberlinks { - cyberlinks( - limit: 1000 - where: { - particle_from: { _eq: "QmPLSA5oPqYxgc8F7EwrM8WS9vKrr1zPoDniSRFh8HSrxx" } - } - ) { - particle_to - neuron - transaction_hash - } - } -`; - -export default QUERY_GET_FOLLOWERS; +export const QUERY_GET_FOLLOWERS = { + particle_from: { _eq: 'QmPLSA5oPqYxgc8F7EwrM8WS9vKrr1zPoDniSRFh8HSrxx' }, +}; diff --git a/src/containers/home/home.jsx b/src/containers/home/home.tsx similarity index 92% rename from src/containers/home/home.jsx rename to src/containers/home/home.tsx index c067ea7a4..f6fd04b59 100644 --- a/src/containers/home/home.jsx +++ b/src/containers/home/home.tsx @@ -2,8 +2,6 @@ import { useEffect, useState, useMemo } from 'react'; import { Link } from 'react-router-dom'; import { Pane } from '@cybercongress/gravity'; import axios from 'axios'; -import { useQuery, gql } from '@apollo/client'; - import BigNumber from 'bignumber.js'; import { useQueryClient } from 'src/contexts/queryClient'; import { useAppData } from 'src/contexts/appData'; @@ -14,6 +12,7 @@ import useGetStatisticsCyber from '../brain/hooks/getStatisticsCyber'; import KnowledgeTab from '../brain/tabs/knowledge'; import { getNumTokens, getStateGift } from '../portal/utils'; import { BASE_DENOM, LCD_URL } from 'src/constants/config'; +import { useContractsCountQuery } from 'src/generated/graphql'; const PREFIXES = [ { @@ -48,16 +47,6 @@ function ContainerGrid({ children }) { ); } -const GET_CHARACTERS = gql` - query MyQuery { - contracts_aggregate { - aggregate { - count - } - } - } -`; - function Home() { const { block } = useAppData(); const queryClient = useQueryClient(); @@ -67,7 +56,7 @@ function Home() { const [memoryLoader, setMemoryLoader] = useState(true); const [counCitizenshipst, setCounCitizenshipst] = useState(0); const [citizensClaim, setCitizensClaim] = useState(0); - const { loading, data } = useQuery(GET_CHARACTERS); + const { loading, data } = useContractsCountQuery(); const { linksCount, cidsCount, @@ -147,13 +136,6 @@ function Home() { } }, [queryClient]); - const useCountContracts = useMemo(() => { - if (data && data !== null && data.contracts_aggregate.aggregate) { - return data.contracts_aggregate.aggregate.count; - } - return 0; - }, [data]); - const useGetBeta = useMemo(() => { const link = new BigNumber(linksCount); const particles = new BigNumber(cidsCount); @@ -244,7 +226,13 @@ function Home() { /> : formatNumber(useCountContracts)} + value={ + loading ? ( + + ) : ( + formatNumber(data?.contracts_aggregate.aggregate?.count || 0) + ) + } /> { - let response = { accountCount: 0, timestamp: '' }; - const res = await request(INDEX_HTTPS, GET_CHARACTERS); - const d = new Date(); - - response = { - accountCount: res.account_aggregate.aggregate.count, - timestamp: d, - }; - - return response; - }, - refetchInterval: 1000 * 60 * 3, - }); - - useEffect(() => { - if (data && data !== null) { - const lastgraphStatsLs = localStorage.getItem(keyQuery); - if (lastgraphStatsLs !== null) { - const oldData = JSON.parse(lastgraphStatsLs); - const timeChange = - Date.parse(data.timestamp) - Date.parse(oldData.timestamp); - const amountChange = new BigNumber(data.accountCount) - .minus(oldData.accountCount) - .toNumber(); - if (timeChange > 0 && amountChange > 0) { - setChangeTimeAmount({ - time: timeChange, - amount: amountChange, - }); - } - } - localStorage.setItem(keyQuery, JSON.stringify(data)); - } - }, [data]); - - return { data, changeTimeAmount, status }; -} - -export default useAccountCount; diff --git a/src/containers/temple/hooks/useAccountCount.ts b/src/containers/temple/hooks/useAccountCount.ts new file mode 100644 index 000000000..75f1ab4ff --- /dev/null +++ b/src/containers/temple/hooks/useAccountCount.ts @@ -0,0 +1,45 @@ +import BigNumber from 'bignumber.js'; +import { useEffect, useState } from 'react'; +import { useAccountCountQuery } from 'src/generated/graphql'; + +function useAccountCount() { + const keyQuery = 'accountCount'; + const [changeTimeAmount, setChangeTimeAmount] = useState({ + amount: 0, + time: 0, + }); + const { data } = useAccountCountQuery({ pollInterval: 1000 * 60 * 3 }); + + useEffect(() => { + if (data) { + const timestamp = new Date(); + const lastgraphStatsLs = localStorage.getItem(keyQuery); + if (lastgraphStatsLs !== null) { + const oldData = JSON.parse(lastgraphStatsLs); + const timeChange = + Date.parse(timestamp) - Date.parse(oldData.timestamp); + const amountChange = new BigNumber( + data.account_aggregate.aggregate?.count || 0 + ) + .minus(oldData.accountCount) + .toNumber(); + if (timeChange > 0 && amountChange > 0) { + setChangeTimeAmount({ + time: timeChange, + amount: amountChange, + }); + } + } + localStorage.setItem(keyQuery, JSON.stringify(data)); + } + }, [data]); + + return { + data: { + accountCount: data?.account_aggregate.aggregate?.count || 0, + }, + changeTimeAmount, + }; +} + +export default useAccountCount; diff --git a/src/containers/temple/hooks/useGetContract.js b/src/containers/temple/hooks/useGetContract.js deleted file mode 100644 index 79f375657..000000000 --- a/src/containers/temple/hooks/useGetContract.js +++ /dev/null @@ -1,66 +0,0 @@ -import { useQuery } from '@tanstack/react-query'; -import BigNumber from 'bignumber.js'; -import request from 'graphql-request'; -import { gql } from '@apollo/client'; - -import { useEffect, useState } from 'react'; -import { INDEX_HTTPS } from 'src/constants/config'; - -const GET_CHARACTERS = gql` - query MyQuery { - contracts_aggregate { - aggregate { - count - } - } - } -`; - -function useContractsCount() { - const keyQuery = 'contractsCount'; - const [changeTimeAmount, setChangeTimeAmount] = useState({ - amount: 0, - time: 0, - }); - const { data, status } = useQuery({ - queryKey: [keyQuery], - queryFn: async () => { - let response = { contractsCount: 0, timestamp: '' }; - const res = await request(INDEX_HTTPS, GET_CHARACTERS); - const d = new Date(); - - response = { - contractsCount: res.contracts_aggregate.aggregate.count, - timestamp: d, - }; - - return response; - }, - refetchInterval: 1000 * 60 * 3, - }); - - useEffect(() => { - if (data && data !== null) { - const lastgraphStatsLs = localStorage.getItem(keyQuery); - if (lastgraphStatsLs !== null) { - const oldData = JSON.parse(lastgraphStatsLs); - const timeChange = - Date.parse(data.timestamp) - Date.parse(oldData.timestamp); - const amountChange = new BigNumber(data.contractsCount) - .minus(oldData.contractsCount) - .toNumber(); - if (timeChange > 0 && amountChange > 0) { - setChangeTimeAmount({ - time: timeChange, - amount: amountChange, - }); - } - } - localStorage.setItem(keyQuery, JSON.stringify(data)); - } - }, [data]); - - return { data, changeTimeAmount, status }; -} - -export default useContractsCount; diff --git a/src/containers/temple/hooks/useGetContract.ts b/src/containers/temple/hooks/useGetContract.ts new file mode 100644 index 000000000..2c21262b4 --- /dev/null +++ b/src/containers/temple/hooks/useGetContract.ts @@ -0,0 +1,46 @@ +import BigNumber from 'bignumber.js'; +import { useEffect, useState } from 'react'; +import { useContractsCountQuery } from 'src/generated/graphql'; + + +function useContractsCount() { + const keyQuery = 'contractsCount'; + const [changeTimeAmount, setChangeTimeAmount] = useState({ + amount: 0, + time: 0, + }); + const { data } = useContractsCountQuery({ pollInterval: 1000 * 60 * 3 }); + + useEffect(() => { + if (data) { + const timestamp = new Date(); + const lastgraphStatsLs = localStorage.getItem(keyQuery); + if (lastgraphStatsLs !== null) { + const oldData = JSON.parse(lastgraphStatsLs); + const timeChange = + Date.parse(timestamp) - Date.parse(oldData.timestamp); + const amountChange = new BigNumber( + data.contracts_aggregate.aggregate?.count || 0 + ) + .minus(oldData.contractsCount) + .toNumber(); + if (timeChange > 0 && amountChange > 0) { + setChangeTimeAmount({ + time: timeChange, + amount: amountChange, + }); + } + } + localStorage.setItem(keyQuery, JSON.stringify(data)); + } + }, [data]); + + return { + data: { + contractsCount: data?.contracts_aggregate.aggregate?.count || 0, + }, + changeTimeAmount, + }; +} + +export default useContractsCount; diff --git a/src/containers/temple/pages/play/PlayBanerContent.jsx b/src/containers/temple/pages/play/PlayBanerContent.jsx index 22a00903d..1a8485296 100644 --- a/src/containers/temple/pages/play/PlayBanerContent.jsx +++ b/src/containers/temple/pages/play/PlayBanerContent.jsx @@ -144,7 +144,7 @@ function PlayBanerContent() { }, [dataGetNegentropy]); useEffect(() => { - if (dataAccountCount.status === 'success' && dataAccountCount.data) { + if (dataAccountCount.data) { slideDataRef.current = { ...slideDataRef.current, everGrowing: { @@ -160,7 +160,7 @@ function PlayBanerContent() { }, [dataAccountCount]); useEffect(() => { - if (dataContractsCount.status === 'success' && dataContractsCount.data) { + if (dataContractsCount.data) { slideDataRef.current = { ...slideDataRef.current, autonomousSemantic: { diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index ef5c7a96e..7f973643d 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -10324,6 +10324,16 @@ export type TransactionsSubscriptionVariables = Exact<{ [key: string]: never; }> export type TransactionsSubscription = { __typename?: 'subscription_root', transaction: Array<{ __typename?: 'transaction', success: boolean, messages: any, height: any, hash: string }> }; +export type AccountCountQueryVariables = Exact<{ [key: string]: never; }>; + + +export type AccountCountQuery = { __typename?: 'query_root', account_aggregate: { __typename?: 'account_aggregate', aggregate?: { __typename?: 'account_aggregate_fields', count: number } | null } }; + +export type ContractsCountQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ContractsCountQuery = { __typename?: 'query_root', contracts_aggregate: { __typename?: 'contracts_aggregate', aggregate?: { __typename?: 'contracts_aggregate_fields', count: number } | null } }; + export type CyberlinksByParticleQueryVariables = Exact<{ limit?: InputMaybe; offset?: InputMaybe; @@ -10470,6 +10480,88 @@ export function useTransactionsSubscription(baseOptions?: Apollo.SubscriptionHoo } export type TransactionsSubscriptionHookResult = ReturnType; export type TransactionsSubscriptionResult = Apollo.SubscriptionResult; +export const AccountCountDocument = gql` + query accountCount { + account_aggregate { + aggregate { + count(columns: address) + } + } +} + `; + +/** + * __useAccountCountQuery__ + * + * To run a query within a React component, call `useAccountCountQuery` and pass it any options that fit your needs. + * When your component renders, `useAccountCountQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useAccountCountQuery({ + * variables: { + * }, + * }); + */ +export function useAccountCountQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(AccountCountDocument, options); + } +export function useAccountCountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(AccountCountDocument, options); + } +export function useAccountCountSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(AccountCountDocument, options); + } +export type AccountCountQueryHookResult = ReturnType; +export type AccountCountLazyQueryHookResult = ReturnType; +export type AccountCountSuspenseQueryHookResult = ReturnType; +export type AccountCountQueryResult = Apollo.QueryResult; +export const ContractsCountDocument = gql` + query contractsCount { + contracts_aggregate { + aggregate { + count + } + } +} + `; + +/** + * __useContractsCountQuery__ + * + * To run a query within a React component, call `useContractsCountQuery` and pass it any options that fit your needs. + * When your component renders, `useContractsCountQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useContractsCountQuery({ + * variables: { + * }, + * }); + */ +export function useContractsCountQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(ContractsCountDocument, options); + } +export function useContractsCountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(ContractsCountDocument, options); + } +export function useContractsCountSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(ContractsCountDocument, options); + } +export type ContractsCountQueryHookResult = ReturnType; +export type ContractsCountLazyQueryHookResult = ReturnType; +export type ContractsCountSuspenseQueryHookResult = ReturnType; +export type ContractsCountQueryResult = Apollo.QueryResult; export const CyberlinksByParticleDocument = gql` query CyberlinksByParticle($limit: Int, $offset: Int, $orderBy: [cyberlinks_order_by!], $where: cyberlinks_bool_exp) { cyberlinks(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) { diff --git a/src/services/backend/services/indexer/graphql/accountCount.graphql b/src/services/backend/services/indexer/graphql/accountCount.graphql new file mode 100644 index 000000000..f56b14ede --- /dev/null +++ b/src/services/backend/services/indexer/graphql/accountCount.graphql @@ -0,0 +1,7 @@ +query accountCount { + account_aggregate { + aggregate { + count(columns: address) + } + } +} diff --git a/src/services/backend/services/indexer/graphql/contractsCount.graphql b/src/services/backend/services/indexer/graphql/contractsCount.graphql new file mode 100644 index 000000000..a28992945 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/contractsCount.graphql @@ -0,0 +1,7 @@ +query contractsCount { + contracts_aggregate { + aggregate { + count + } + } +} From 201d7729b7320891d14d184770246725ffc4981d Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Thu, 28 Mar 2024 00:35:08 +0300 Subject: [PATCH 33/40] refactor(gql): cyberlink count by cid --- .../cyberlinks/hooks/useCyberlinksCount.ts | 17 ++-- src/generated/graphql.ts | 89 +++++-------------- .../graphql/cyberlinksCountByParticle.graphql | 7 ++ .../cyberlinksCountByParticleFrom.graphql | 7 -- .../cyberlinksCountByParticleTo.graphql | 7 -- 5 files changed, 37 insertions(+), 90 deletions(-) create mode 100644 src/services/backend/services/indexer/graphql/cyberlinksCountByParticle.graphql delete mode 100644 src/services/backend/services/indexer/graphql/cyberlinksCountByParticleFrom.graphql delete mode 100644 src/services/backend/services/indexer/graphql/cyberlinksCountByParticleTo.graphql diff --git a/src/features/cyberlinks/hooks/useCyberlinksCount.ts b/src/features/cyberlinks/hooks/useCyberlinksCount.ts index 388831e38..83989a4d2 100644 --- a/src/features/cyberlinks/hooks/useCyberlinksCount.ts +++ b/src/features/cyberlinks/hooks/useCyberlinksCount.ts @@ -1,14 +1,15 @@ -import { - useCyberlinksCountByParticleFromQuery, - useCyberlinksCountByParticleToQuery, -} from 'src/generated/graphql'; +import { useCyberlinksCountByParticleQuery } from 'src/generated/graphql'; + +const getVar = (type: 'from' | 'to', cid: string) => { + return { [`particle_${type}`]: { _eq: cid } }; +}; function useCyberlinksCount(cid: string) { - const toCountQuery = useCyberlinksCountByParticleToQuery({ - variables: { cid }, + const toCountQuery = useCyberlinksCountByParticleQuery({ + variables: { where: getVar('to', cid) }, }); - const fromCountQuery = useCyberlinksCountByParticleFromQuery({ - variables: { cid }, + const fromCountQuery = useCyberlinksCountByParticleQuery({ + variables: { where: getVar('to', cid) }, }); return { diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index 7f973643d..37b9c45db 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -10353,19 +10353,13 @@ export type CyberlinksCountByNeuronQueryVariables = Exact<{ export type CyberlinksCountByNeuronQuery = { __typename?: 'query_root', cyberlinks_aggregate: { __typename?: 'cyberlinks_aggregate', aggregate?: { __typename?: 'cyberlinks_aggregate_fields', count: number } | null } }; -export type CyberlinksCountByParticleFromQueryVariables = Exact<{ - cid?: InputMaybe; -}>; - - -export type CyberlinksCountByParticleFromQuery = { __typename?: 'query_root', cyberlinks_aggregate: { __typename?: 'cyberlinks_aggregate', aggregate?: { __typename?: 'cyberlinks_aggregate_fields', count: number } | null } }; - -export type CyberlinksCountByParticleToQueryVariables = Exact<{ +export type CyberlinksCountByParticleQueryVariables = Exact<{ cid?: InputMaybe; + where?: InputMaybe; }>; -export type CyberlinksCountByParticleToQuery = { __typename?: 'query_root', cyberlinks_aggregate: { __typename?: 'cyberlinks_aggregate', aggregate?: { __typename?: 'cyberlinks_aggregate_fields', count: number } | null } }; +export type CyberlinksCountByParticleQuery = { __typename?: 'query_root', cyberlinks_aggregate: { __typename?: 'cyberlinks_aggregate', aggregate?: { __typename?: 'cyberlinks_aggregate_fields', count: number } | null } }; export type LeadershipQueryVariables = Exact<{ limit?: InputMaybe; @@ -10655,51 +10649,9 @@ export type CyberlinksCountByNeuronQueryHookResult = ReturnType; export type CyberlinksCountByNeuronSuspenseQueryHookResult = ReturnType; export type CyberlinksCountByNeuronQueryResult = Apollo.QueryResult; -export const CyberlinksCountByParticleFromDocument = gql` - query cyberlinksCountByParticleFrom($cid: String) { - cyberlinks_aggregate(where: {particle_from: {_eq: $cid}}) { - aggregate { - count - } - } -} - `; - -/** - * __useCyberlinksCountByParticleFromQuery__ - * - * To run a query within a React component, call `useCyberlinksCountByParticleFromQuery` and pass it any options that fit your needs. - * When your component renders, `useCyberlinksCountByParticleFromQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useCyberlinksCountByParticleFromQuery({ - * variables: { - * cid: // value for 'cid' - * }, - * }); - */ -export function useCyberlinksCountByParticleFromQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(CyberlinksCountByParticleFromDocument, options); - } -export function useCyberlinksCountByParticleFromLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(CyberlinksCountByParticleFromDocument, options); - } -export function useCyberlinksCountByParticleFromSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSuspenseQuery(CyberlinksCountByParticleFromDocument, options); - } -export type CyberlinksCountByParticleFromQueryHookResult = ReturnType; -export type CyberlinksCountByParticleFromLazyQueryHookResult = ReturnType; -export type CyberlinksCountByParticleFromSuspenseQueryHookResult = ReturnType; -export type CyberlinksCountByParticleFromQueryResult = Apollo.QueryResult; -export const CyberlinksCountByParticleToDocument = gql` - query cyberlinksCountByParticleTo($cid: String) { - cyberlinks_aggregate(where: {particle_to: {_eq: $cid}}) { +export const CyberlinksCountByParticleDocument = gql` + query cyberlinksCountByParticle($cid: String, $where: cyberlinks_bool_exp) { + cyberlinks_aggregate(where: $where) { aggregate { count } @@ -10708,37 +10660,38 @@ export const CyberlinksCountByParticleToDocument = gql` `; /** - * __useCyberlinksCountByParticleToQuery__ + * __useCyberlinksCountByParticleQuery__ * - * To run a query within a React component, call `useCyberlinksCountByParticleToQuery` and pass it any options that fit your needs. - * When your component renders, `useCyberlinksCountByParticleToQuery` returns an object from Apollo Client that contains loading, error, and data properties + * To run a query within a React component, call `useCyberlinksCountByParticleQuery` and pass it any options that fit your needs. + * When your component renders, `useCyberlinksCountByParticleQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example - * const { data, loading, error } = useCyberlinksCountByParticleToQuery({ + * const { data, loading, error } = useCyberlinksCountByParticleQuery({ * variables: { * cid: // value for 'cid' + * where: // value for 'where' * }, * }); */ -export function useCyberlinksCountByParticleToQuery(baseOptions?: Apollo.QueryHookOptions) { +export function useCyberlinksCountByParticleQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(CyberlinksCountByParticleToDocument, options); + return Apollo.useQuery(CyberlinksCountByParticleDocument, options); } -export function useCyberlinksCountByParticleToLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { +export function useCyberlinksCountByParticleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(CyberlinksCountByParticleToDocument, options); + return Apollo.useLazyQuery(CyberlinksCountByParticleDocument, options); } -export function useCyberlinksCountByParticleToSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { +export function useCyberlinksCountByParticleSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useSuspenseQuery(CyberlinksCountByParticleToDocument, options); + return Apollo.useSuspenseQuery(CyberlinksCountByParticleDocument, options); } -export type CyberlinksCountByParticleToQueryHookResult = ReturnType; -export type CyberlinksCountByParticleToLazyQueryHookResult = ReturnType; -export type CyberlinksCountByParticleToSuspenseQueryHookResult = ReturnType; -export type CyberlinksCountByParticleToQueryResult = Apollo.QueryResult; +export type CyberlinksCountByParticleQueryHookResult = ReturnType; +export type CyberlinksCountByParticleLazyQueryHookResult = ReturnType; +export type CyberlinksCountByParticleSuspenseQueryHookResult = ReturnType; +export type CyberlinksCountByParticleQueryResult = Apollo.QueryResult; export const LeadershipDocument = gql` query leadership($limit: Int, $offset: Int, $valAddress: String) { _transaction( diff --git a/src/services/backend/services/indexer/graphql/cyberlinksCountByParticle.graphql b/src/services/backend/services/indexer/graphql/cyberlinksCountByParticle.graphql new file mode 100644 index 000000000..82d2f129e --- /dev/null +++ b/src/services/backend/services/indexer/graphql/cyberlinksCountByParticle.graphql @@ -0,0 +1,7 @@ +query cyberlinksCountByParticle($cid: String, $where: cyberlinks_bool_exp) { + cyberlinks_aggregate(where: $where ) { + aggregate { + count + } + } +} diff --git a/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleFrom.graphql b/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleFrom.graphql deleted file mode 100644 index 5b3983784..000000000 --- a/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleFrom.graphql +++ /dev/null @@ -1,7 +0,0 @@ -query cyberlinksCountByParticleFrom($cid: String) { - cyberlinks_aggregate(where: { particle_from: { _eq: $cid } }) { - aggregate { - count - } - } -} diff --git a/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleTo.graphql b/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleTo.graphql deleted file mode 100644 index c1fc09ece..000000000 --- a/src/services/backend/services/indexer/graphql/cyberlinksCountByParticleTo.graphql +++ /dev/null @@ -1,7 +0,0 @@ -query cyberlinksCountByParticleTo($cid: String) { - cyberlinks_aggregate(where: { particle_to: { _eq: $cid } }) { - aggregate { - count - } - } -} From d689fff59e84b7b5ec7fb82a6dd2b8655d8c7bb1 Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Thu, 28 Mar 2024 21:05:38 +0300 Subject: [PATCH 34/40] refactor(gql): block, cyberlink --- .../{blockDetails.jsx => blockDetails.tsx} | 23 +-- src/containers/blok/index.jsx | 195 ------------------ src/containers/blok/index.tsx | 119 +++++++++++ .../CyberlinksGraph/useCyberlinks.ts | 47 ++--- src/generated/graphql.ts | 115 +++++++++++ src/routes.ts | 8 + .../indexer/graphql/blockByHeight.graphql | 14 ++ .../services/indexer/graphql/blocks.graphql | 18 ++ 8 files changed, 295 insertions(+), 244 deletions(-) rename src/containers/blok/{blockDetails.jsx => blockDetails.tsx} (78%) delete mode 100644 src/containers/blok/index.jsx create mode 100644 src/containers/blok/index.tsx create mode 100644 src/services/backend/services/indexer/graphql/blockByHeight.graphql create mode 100644 src/services/backend/services/indexer/graphql/blocks.graphql diff --git a/src/containers/blok/blockDetails.jsx b/src/containers/blok/blockDetails.tsx similarity index 78% rename from src/containers/blok/blockDetails.jsx rename to src/containers/blok/blockDetails.tsx index 9897bd050..b53a6436d 100644 --- a/src/containers/blok/blockDetails.jsx +++ b/src/containers/blok/blockDetails.tsx @@ -1,30 +1,11 @@ import { useEffect, useState } from 'react'; -import { useQuery, gql } from '@apollo/client'; - import withRouter from 'src/components/helpers/withRouter'; - +import { useBlockByHeightQuery } from 'src/generated/graphql'; import InformationBlock from './informationBlock'; import TableTxs from '../../pages/robot/_refactor/account/component/tableTxs'; import { CardTemplate } from '../../components'; import ActionBarContainer from '../Search/ActionBarContainer'; -const GET_CHARACTERS = gql` - query MyQuery($blockId: bigint) { - block(where: { height: { _eq: $blockId } }) { - hash - height - proposer_address - timestamp - transactions { - messages - hash - height - success - } - } - } -`; - const initialState = { height: null, timestamp: null, @@ -35,7 +16,7 @@ const initialState = { function BlockDetails({ router }) { const { idBlock } = router.params; const [blockInfo, setBlockInfo] = useState(initialState); - const { loading, error, data } = useQuery(GET_CHARACTERS, { + const { loading, error, data } = useBlockByHeightQuery({ variables: { blockId: idBlock, }, diff --git a/src/containers/blok/index.jsx b/src/containers/blok/index.jsx deleted file mode 100644 index a7c9faba7..000000000 --- a/src/containers/blok/index.jsx +++ /dev/null @@ -1,195 +0,0 @@ -import { useEffect, useState } from 'react'; -import { TableEv as Table } from '@cybercongress/gravity'; -import { Link } from 'react-router-dom'; -import InfiniteScroll from 'react-infinite-scroll-component'; -import { getGraphQLQuery } from '../../utils/search/utils'; -import { Dots, TextTable } from '../../components'; -import { trimString, formatNumber } from '../../utils/utils'; - -const dateFormat = require('dateformat'); - -const GET_CHARACTERS = ` - query Query { - block(limit: 50, order_by: { height: desc }, offset: 0) { - hash - height - proposer_address - transactions_aggregate { - aggregate { - count - } - } - timestamp - } - } -`; - -const QueryAddress = (block) => - ` query MyQuery { - block(limit: 20, order_by: {height: desc}, where: {height: {_lte: ${block}}}, offset: 1) { - hash - height - proposer_address - transactions_aggregate { - aggregate { - count - } - } - timestamp - } - } - `; - -function Block() { - const [page, setPage] = useState(1); - const [lastBlockQuery, setlastBlockQuery] = useState(0); - const [items, setItems] = useState([]); - const [allPage, setAllPage] = useState(1); - - // blockThis logic moved to app context - // useEffect(() => { - // const thisBlock = [ - // { - // hash: `AADKSKLFA${blockThis}`, - // height: blockThis, - // transactions_aggregate: { - // aggregate: { - // count: 0, - // }, - // }, - // proposer_address: `AADKSKLFA${blockThis}`, - // timestamp: '2020-04-08T12:18:31.001035', - // }, - // ]; - // setItems([...thisBlock, ...items]); - // }, [blockThis]); - - useEffect(() => { - const feachData = async () => { - const data = (await getGraphQLQuery(GET_CHARACTERS)).data; - setItems(data.block); - setlastBlockQuery(data.block[data.block.length - 1].height); - setAllPage(Math.ceil(parseInt(data.block[0].height, 10) / 20)); - }; - feachData(); - }, []); - - // setItems(items.concat(dataTxs.block)); - // setAllPage(Math.ceil(parseInt(dataTxs.block[0].height, 10) / 50)); - // setItems(dataTxs.block); - const fetchMoreData = async () => { - const data = (await getGraphQLQuery(QueryAddress(lastBlockQuery))).data; - - setTimeout(() => { - setlastBlockQuery(data.block[data.block.length - 1].height); - setItems(items.concat(data.block)); - setPage(page + 1); - }, 1500); - }; - - return ( -
-
- - - hash - - - height - - - tx - - - proposer address - - - timestamp, UTC - - - - - Loading - - - } - pullDownToRefresh - pullDownToRefreshContent={ -

- ↓ Pull down to refresh -

- } - releaseToRefreshContent={ -

- ↑ Release to refresh -

- } - > - {items.map((item, index) => ( - - - {trimString(item.hash, 5, 5)} - - - - - {formatNumber(item.height)} - - - - - - {formatNumber(item.transactions_aggregate.aggregate.count)} - - - - - {trimString(item.proposer_address, 5, 5)} - - - - - {' '} - {dateFormat(item.timestamp, 'dd/mm/yyyy, HH:MM:ss')} - - - - ))} -
-
-
- - ); -} - -export default Block; diff --git a/src/containers/blok/index.tsx b/src/containers/blok/index.tsx new file mode 100644 index 000000000..6f71c014c --- /dev/null +++ b/src/containers/blok/index.tsx @@ -0,0 +1,119 @@ +import { useMemo, useState } from 'react'; +import { Link } from 'react-router-dom'; +import InfiniteScroll from 'react-infinite-scroll-component'; +import { Dots, TextTable } from '../../components'; +import Table from 'src/components/Table/Table'; +import { trimString, formatNumber } from '../../utils/utils'; +import { useBlocksQuery } from 'src/generated/graphql'; +import { routes } from 'src/routes'; + +const dateFormat = require('dateformat'); + +const limit = 20; + +const TableKeyMap = { + hash: 'hash', + height: 'height', + tx: 'tx', + proposerAddress: 'proposer address', + timestampUTC: 'timestamp, UTC', +}; + +function Block() { + const [hasMore, setHasMore] = useState(true); + const { data, loading, error, fetchMore } = useBlocksQuery({ + variables: { + limit, + offset: 0, + }, + }); + + const lastBlockQuery = data?.block[data.block.length - 1].height; + + const fetchMoreData = async () => { + setTimeout(() => { + fetchMore({ + variables: { + offset: data?.block.length, + where: { height: { _lte: lastBlockQuery } }, + }, + updateQuery: (prev, { fetchMoreResult }) => { + if (!fetchMoreResult) { + return prev; + } + setHasMore(fetchMoreResult.block.length > 0); + + return { + ...prev, + block: [...prev.block, ...fetchMoreResult.block], + }; + }, + }); + }, 2000); + }; + + const tableData = useMemo(() => { + return (data?.block || []).map((item) => { + return { + hash: {trimString(item.hash, 5, 5)}, + height: ( + + + {formatNumber(item.height)} + + + ), + tx: ( + + {formatNumber(item.transactions_aggregate.aggregate?.count || 0)} + + ), + proposerAddress: ( + {trimString(item.proposer_address, 5, 5)} + ), + timestampUTC: ( + + {dateFormat(item.timestamp, 'dd/mm/yyyy, HH:MM:ss')} + + ), + }; + }); + }, [data]); + + if (loading) { + return ; + } + + if (error) { + return {error.message}; + } + + return ( +
+ + Loading + + + } + > + ({ + header: TableKeyMap[key], + accessorKey: key, + cell: (info) => info.getValue(), + }))} + /> + + + ); +} + +export default Block; diff --git a/src/features/cyberlinks/CyberlinksGraph/useCyberlinks.ts b/src/features/cyberlinks/CyberlinksGraph/useCyberlinks.ts index 47057e6e2..d46a11012 100644 --- a/src/features/cyberlinks/CyberlinksGraph/useCyberlinks.ts +++ b/src/features/cyberlinks/CyberlinksGraph/useCyberlinks.ts @@ -1,10 +1,10 @@ // import gql from 'graphql-tag'; import { useEffect, useMemo, useState } from 'react'; -import { useQuery, gql } from '@apollo/client'; - -import { useBackend } from 'src/contexts/backend/backend'; -import { useEffect, useState } from 'react'; import { useBackend } from 'src/contexts/backend/backend'; +import { + Order_By as OrderBy, + useCyberlinksByParticleQuery, +} from 'src/generated/graphql'; const valueByKeyOrSelf = (key: string, obj: Record) => obj[key] || key; @@ -52,32 +52,23 @@ function useCyberlinks( ) { let where; if (address) { - where = `{neuron: {_eq: "${address}"}}`; + where = { neuron: { _eq: address } }; } else { - where = '{}'; + where = {}; } const { loading, error, data: gqlData, - } = useQuery( - gql` - query Cyberlinks { - cyberlinks(limit: ${String( - limit - )}, order_by: {height: desc}, where: ${where}) { - particle_from - particle_to - neuron - transaction_hash - } - } - `, - { - skip, - } - ); + } = useCyberlinksByParticleQuery({ + variables: { + where, + orderBy: { height: OrderBy.Desc }, + limit, + }, + skip, + }); const cyberlinks = gqlData?.cyberlinks; const { isLoading, particlesPreview } = useParticlesPreview(); @@ -91,8 +82,8 @@ function useCyberlinks( } // TODO: a lot of loops, try to refactor - const from = cyberlinks.map((a) => a.particle_from); - const to = cyberlinks.map((a) => a.particle_to); + const from = cyberlinks.map((a) => a.from); + const to = cyberlinks.map((a) => a.to); const object = Array.from(new Set(from.concat(to))).map((value) => ({ id: valueByKeyOrSelf(value, particlesPreview), @@ -107,10 +98,10 @@ function useCyberlinks( for (let i = 0; i < cyberlinks.length; i++) { links[i] = { - source: valueByKeyOrSelf(cyberlinks[i].particle_from, particlesPreview), - target: valueByKeyOrSelf(cyberlinks[i].particle_to, particlesPreview), + source: valueByKeyOrSelf(cyberlinks[i].from, particlesPreview), + target: valueByKeyOrSelf(cyberlinks[i].to, particlesPreview), name: cyberlinks[i].transaction_hash, - subject: cyberlinks[i].subject, + subject: cyberlinks[i].neuron, // curvative: getRandomInt(20, 500) / 1000, }; } diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index 37b9c45db..d98ab8bec 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -10329,6 +10329,22 @@ export type AccountCountQueryVariables = Exact<{ [key: string]: never; }>; export type AccountCountQuery = { __typename?: 'query_root', account_aggregate: { __typename?: 'account_aggregate', aggregate?: { __typename?: 'account_aggregate_fields', count: number } | null } }; +export type BlockByHeightQueryVariables = Exact<{ + blockId?: InputMaybe; +}>; + + +export type BlockByHeightQuery = { __typename?: 'query_root', block: Array<{ __typename?: 'block', hash: string, height: any, proposer_address?: string | null, timestamp: any, transactions: Array<{ __typename?: 'transaction', messages: any, hash: string, height: any, success: boolean }> }> }; + +export type BlocksQueryVariables = Exact<{ + limit?: InputMaybe; + offset?: InputMaybe; + where?: InputMaybe; +}>; + + +export type BlocksQuery = { __typename?: 'query_root', block: Array<{ __typename?: 'block', hash: string, height: any, proposer_address?: string | null, timestamp: any, transactions_aggregate: { __typename?: 'transaction_aggregate', aggregate?: { __typename?: 'transaction_aggregate_fields', count: number } | null } }> }; + export type ContractsCountQueryVariables = Exact<{ [key: string]: never; }>; @@ -10515,6 +10531,105 @@ export type AccountCountQueryHookResult = ReturnType; export type AccountCountSuspenseQueryHookResult = ReturnType; export type AccountCountQueryResult = Apollo.QueryResult; +export const BlockByHeightDocument = gql` + query blockByHeight($blockId: bigint) { + block(where: {height: {_eq: $blockId}}) { + hash + height + proposer_address + timestamp + transactions { + messages + hash + height + success + } + } +} + `; + +/** + * __useBlockByHeightQuery__ + * + * To run a query within a React component, call `useBlockByHeightQuery` and pass it any options that fit your needs. + * When your component renders, `useBlockByHeightQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useBlockByHeightQuery({ + * variables: { + * blockId: // value for 'blockId' + * }, + * }); + */ +export function useBlockByHeightQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(BlockByHeightDocument, options); + } +export function useBlockByHeightLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(BlockByHeightDocument, options); + } +export function useBlockByHeightSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(BlockByHeightDocument, options); + } +export type BlockByHeightQueryHookResult = ReturnType; +export type BlockByHeightLazyQueryHookResult = ReturnType; +export type BlockByHeightSuspenseQueryHookResult = ReturnType; +export type BlockByHeightQueryResult = Apollo.QueryResult; +export const BlocksDocument = gql` + query blocks($limit: Int, $offset: Int, $where: block_bool_exp) { + block(where: $where, limit: $limit, offset: $offset, order_by: {height: desc}) { + hash + height + proposer_address + transactions_aggregate { + aggregate { + count + } + } + timestamp + } +} + `; + +/** + * __useBlocksQuery__ + * + * To run a query within a React component, call `useBlocksQuery` and pass it any options that fit your needs. + * When your component renders, `useBlocksQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useBlocksQuery({ + * variables: { + * limit: // value for 'limit' + * offset: // value for 'offset' + * where: // value for 'where' + * }, + * }); + */ +export function useBlocksQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(BlocksDocument, options); + } +export function useBlocksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(BlocksDocument, options); + } +export function useBlocksSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(BlocksDocument, options); + } +export type BlocksQueryHookResult = ReturnType; +export type BlocksLazyQueryHookResult = ReturnType; +export type BlocksSuspenseQueryHookResult = ReturnType; +export type BlocksQueryResult = Apollo.QueryResult; export const ContractsCountDocument = gql` query contractsCount { contracts_aggregate { diff --git a/src/routes.ts b/src/routes.ts index a69530f42..4ca2d8a8a 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -97,4 +97,12 @@ export const routes = { path: '/tx/:hash', getLink: (hash: string) => `/network/bostrom/tx/${hash}`, }, + blocks: { + path: '/blocks', + getLink: () => `/network/bostrom/blocks`, + idBlock: { + path: '/blocks/:idBlock', + getLink: (idBlock: string) => `/network/bostrom/blocks/${idBlock}`, + }, + }, }; diff --git a/src/services/backend/services/indexer/graphql/blockByHeight.graphql b/src/services/backend/services/indexer/graphql/blockByHeight.graphql new file mode 100644 index 000000000..4c6292198 --- /dev/null +++ b/src/services/backend/services/indexer/graphql/blockByHeight.graphql @@ -0,0 +1,14 @@ +query blockByHeight($blockId: bigint) { + block(where: { height: { _eq: $blockId } }) { + hash + height + proposer_address + timestamp + transactions { + messages + hash + height + success + } + } +} \ No newline at end of file diff --git a/src/services/backend/services/indexer/graphql/blocks.graphql b/src/services/backend/services/indexer/graphql/blocks.graphql new file mode 100644 index 000000000..a301fe4dd --- /dev/null +++ b/src/services/backend/services/indexer/graphql/blocks.graphql @@ -0,0 +1,18 @@ +query blocks($limit: Int, $offset: Int, $where: block_bool_exp) { + block( + where: $where + limit: $limit + offset: $offset + order_by: { height: desc } + ) { + hash + height + proposer_address + transactions_aggregate { + aggregate { + count + } + } + timestamp + } +} From 97973820ac57e35bca69f489226f860e08c044cd Mon Sep 17 00:00:00 2001 From: dimakorzhovnik Date: Fri, 29 Mar 2024 14:36:36 +0300 Subject: [PATCH 35/40] refactor(comp): txTable --- src/components/TableTxs/ActionTx.tsx | 11 ++++ src/components/TableTxs/TableTxs.tsx | 99 ++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 src/components/TableTxs/ActionTx.tsx create mode 100644 src/components/TableTxs/TableTxs.tsx diff --git a/src/components/TableTxs/ActionTx.tsx b/src/components/TableTxs/ActionTx.tsx new file mode 100644 index 000000000..1a7ed9d78 --- /dev/null +++ b/src/components/TableTxs/ActionTx.tsx @@ -0,0 +1,11 @@ +import React from 'react' + +function ActionTx() { + return ( +
+ +
+ ) +} + +export default ActionTx diff --git a/src/components/TableTxs/TableTxs.tsx b/src/components/TableTxs/TableTxs.tsx new file mode 100644 index 000000000..e663b69c3 --- /dev/null +++ b/src/components/TableTxs/TableTxs.tsx @@ -0,0 +1,99 @@ +import InfiniteScroll from 'react-infinite-scroll-component'; +import { MessagesByAddressQuery } from 'src/generated/graphql'; +import { useMemo } from 'react'; +import statusTrueImg from 'src/image/ionicons_svg_ios-checkmark-circle.svg'; +import statusFalseImg from 'src/image/ionicons_svg_ios-close-circle.svg'; +import { getNowUtcTime, timeSince, trimString } from 'src/utils/utils'; +import { Link } from 'react-router-dom'; +import { routes } from 'src/routes'; +import Display from '../containerGradient/Display/Display'; +import Table from '../Table/Table'; +import { Dots } from '../ui/Dots'; +import TextTable from '../text/textTable'; +import MsgType from '../msgType/msgType'; + +type Props = { + hasMore: boolean; + fetchMoreData: () => void; + data: MessagesByAddressQuery | undefined; + accountUser: string; +}; + +enum ColumnsTable { + status = 'status', + type = 'type', + timestamp = 'timestamp', + tx = 'tx', + action = 'action', +} + +function TableTxs({ hasMore, fetchMoreData, data, accountUser }: Props) { + const tableData = useMemo(() => { + return data?.messages_by_address.map((item) => { + let typeTx = item.type; + if ( + typeTx.includes('MsgSend') && + item?.value?.to_address === accountUser + ) { + typeTx = 'Receive'; + } + const timeAgoInMS = + getNowUtcTime() - Date.parse(item.transaction.block.timestamp); + + return { + [ColumnsTable.status]: ( + + status + + ), + [ColumnsTable.type]: ( +
+ +
+ ), + [ColumnsTable.timestamp]: ( + {timeSince(timeAgoInMS)} ago + ), + [ColumnsTable.tx]: ( + + + {trimString(item.transaction_hash, 6, 6)} + + + ), + // [ColumnsTable.action]: (), + }; + }); + }, []); + + return ( + + + Loading +

+ } + style={{ display: 'grid', gap: '15px' }} + > +
({ + header: item, + accessorKey: item, + cell: (info) => info.getValue(), + }))} + /> + + + ); +} + +export default TableTxs; From 957386541e6eb472a9995e143abb89a42c5bb1b2 Mon Sep 17 00:00:00 2001 From: dasein Date: Sat, 30 Mar 2024 22:55:45 +0530 Subject: [PATCH 36/40] feat(autz): grant cyberlink --- package.json | 2 + src/contexts/signerClient.tsx | 1 + src/features/ipfs/Drive/AutzKeys.tsx | 245 +++++++++++++++++++++++++ src/features/ipfs/Drive/index.tsx | 3 +- src/services/neuron/neuronApi.ts | 10 +- src/services/wallet/walletGenerator.ts | 121 ++++++++++++ webpack.config.common.js | 1 + yarn.lock | 12 ++ 8 files changed, 390 insertions(+), 5 deletions(-) create mode 100644 src/features/ipfs/Drive/AutzKeys.tsx create mode 100644 src/services/wallet/walletGenerator.ts diff --git a/package.json b/package.json index 077a9bb23..10dd96d0d 100644 --- a/package.json +++ b/package.json @@ -176,6 +176,7 @@ "bignumber.js": "^9.0.0", "blockstore-core": "^4.3.4", "blockstore-idb": "^1.1.4", + "buffer": "^6.0.3", "cjs-to-es6": "^2.0.1", "classnames": "^2.3.1", "comlink": "^4.4.1", @@ -238,6 +239,7 @@ "rxjs": "^7.8.0", "secp256k1": "^3.7.1", "sinon": "^16.0.0", + "tiny-secp256k1": "^2.2.3", "tone": "^14.7.77", "ts-jest": "^29.1.1", "ts-jest-resolver": "^2.0.1", diff --git a/src/contexts/signerClient.tsx b/src/contexts/signerClient.tsx index b4c7fe4e6..36f91a979 100644 --- a/src/contexts/signerClient.tsx +++ b/src/contexts/signerClient.tsx @@ -154,4 +154,5 @@ function SigningClientProvider({ children }: { children: React.ReactNode }) { ); } +export { createClient as createSignerClient }; export default SigningClientProvider; diff --git a/src/features/ipfs/Drive/AutzKeys.tsx b/src/features/ipfs/Drive/AutzKeys.tsx new file mode 100644 index 000000000..a77ba471f --- /dev/null +++ b/src/features/ipfs/Drive/AutzKeys.tsx @@ -0,0 +1,245 @@ +import React, { useEffect, useState } from 'react'; +import { useAppSelector } from 'src/redux/hooks'; +import { Colors } from 'src/components/containerGradient/types'; + +import Display from 'src/components/containerGradient/Display/Display'; + +import styles from './drive.scss'; +import { Button } from 'src/components'; +import { generateWalletFromMnemonic } from 'src/services/wallet/walletGenerator'; +import { + createSignerClient, + useSigningClient, +} from 'src/contexts/signerClient'; + +import { CYBER } from 'src/utils/config'; +import { NeuronAddress } from 'src/types/base'; +import { selectCurrentAddress } from 'src/redux/features/pocket'; +import { GenericAuthorization } from 'cosmjs-types/cosmos/authz/v1beta1/authz'; +import { defaultFee } from 'src/services/neuron/neuronApi'; +import { makeClientWithAuthz } from './queries'; +import { coins } from '@cosmjs/launchpad'; +import BigNumber from 'bignumber.js'; +import Soft3MessageFactory from 'src/soft.js/api/msgs'; +import axios from 'axios'; +import { useBackend } from 'src/contexts/backend/backend'; +import { SigningCyberClient } from '@cybercongress/cyber-js'; + +/* +https://lcd.bostrom.cybernode.ai/cosmos/authz/v1beta1/grants/grantee/bostrom1a3zu6emqfzkc6rz9a44mq2ks88dmgvjrfcq6jl + +https://lcd.bostrom.cybernode.ai/cosmos/authz/v1beta1/grants/granter/bostrom1p0r7uxstcw8ehrwuj4kn8qzzs0yypsjwxgd445 + +https://lcd.bostrom.cybernode.ai/cosmos/authz/v1beta1/grants?granter=bostrom1p0r7uxstcw8ehrwuj4kn8qzzs0yypsjwxgd445&grantee=bostrom1a3zu6emqfzkc6rz9a44mq2ks88dmgvjrfcq6jl +*/ +const getGrantee = async (address: NeuronAddress) => { + return axios({ + method: 'get', + url: `${CYBER.CYBER_NODE_URL_LCD}/cosmos/authz/v1beta1/grants/grantee/${address}`, + }); +}; + +const getGranter = async (address: NeuronAddress) => { + return axios({ + method: 'get', + url: `${CYBER.CYBER_NODE_URL_LCD}/cosmos/authz/v1beta1/grants/granter/${address}`, + }); +}; + +const getGrants = async (granter: NeuronAddress, grantee: NeuronAddress) => { + return axios({ + method: 'get', + url: `${CYBER.CYBER_NODE_URL_LCD}/cosmos/authz/v1beta1/grants?granter=${granter}&grantee=${grantee}`, + }); +}; + +const mnemonic = + 'picture check person they response slam post cement moon sorry nuclear price knock figure sugar distance remember lunar powder balance bleak weasel cherry review'; +function AutzKeys() { + const { ipfsApi, senseApi } = useBackend(); + const [address, setAddress] = React.useState(null); + const [grantees, setGrantees] = React.useState([]); + const [granters, setGranters] = React.useState([]); + const [autzSigner, setAutzSigner] = useState< + SigningCyberClient | undefined + >(); + + const [grants, setGrants] = React.useState([]); + const { signingClient, signer, signerReady } = useSigningClient(); + const myAddress = useAppSelector(selectCurrentAddress); + + useEffect(() => { + (async () => { + if (myAddress) { + const { wallet, address } = await generateWalletFromMnemonic(mnemonic); + const autzSigner = await createSignerClient(wallet); + setAutzSigner(autzSigner); + + setAddress(address); + const grantees = await getGrantee(myAddress); + console.log('----grantees', grantees.data.grants); + setGrantees(grantees.data.grants); + + const granters = await getGranter(myAddress); + console.log('----granters', granters.data.grants); + setGranters(granters.data.grants); + + const grants = await getGrants(myAddress, address); + console.log('----grants', grants.data.grants); + setGrants(grants.data.grants); + } + })(); + }, [myAddress]); + + const onGrantClick = async () => { + if (myAddress && address) { + const sendMsg = { + typeUrl: '/cosmos.bank.v1beta1.MsgSend', + value: { + fromAddress: myAddress, + toAddress: address, + amount: coins(1, 'boot'), + }, + }; + + console.log('----onGrantClick sendMsg', sendMsg); + const grantedMsg = '/cyber.graph.v1beta1.MsgCyberlink'; + // const grantedMsg = + // '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward'; + + const grant = { + authorization: { + typeUrl: '/cosmos.authz.v1beta1.GenericAuthorization', + value: GenericAuthorization.encode( + GenericAuthorization.fromPartial({ + msg: grantedMsg, + }) + ).finish(), + }, + }; + + const grantMsg = { + typeUrl: '/cosmos.authz.v1beta1.MsgGrant', + value: { + granter: myAddress, + grantee: address, + grant, + }, + }; + + const result = await signingClient?.signAndBroadcast( + myAddress, + [sendMsg, grantMsg], + defaultFee + ); + + console.log('----onGrantClick', result); + } + }; + + const onRevokeClick = () => { + console.log('----onRevokeClick'); + }; + + const onTestLink = async () => { + if (myAddress && address) { + // const deps = { + // senseApi, + // signingClient: signingClient!, + // }; + const fromCid = await ipfsApi?.addContent('test-autz'); + const testContent = new Date().toISOString(); + const toCid = await ipfsApi?.addContent(testContent); + console.log('----test link', fromCid, toCid); + // const res = await autzSigner?.cyberlink( + // myAddress, + // fromCid!, + // toCid!, + // defaultFee + // ); + + const actionMsg = { + typeUrl: '/cyber.graph.v1beta1.MsgCyberlink', // For example, sending tokens + value: { + neuron: myAddress, + links: [ + { + from: fromCid, + to: toCid, + }, + ], + }, + }; + + // Step 3: Wrap the action message in a MsgExec message + const execMsg = { + typeUrl: '/cosmos.authz.v1beta1.MsgExec', + value: { + grantee: address, // The grantee's address + msgs: [actionMsg], // The message to be executed on behalf of the granter + }, + }; + const multiplier = new BigNumber(2).multipliedBy(2); + + const fee = Soft3MessageFactory.fee(multiplier.toNumber()); + // Step 4: Sign and broadcast the MsgExec transaction + const execResult = await autzSigner!.signAndBroadcast( + address, // The grantee signs the transaction + [execMsg], // The MsgExec message + fee, // Fee for the transaction + 'Executing action on behalf of granter 2w2' // Memo + ); + console.log('----test link result', execResult, execMsg); + // await sendCyberlink(myAddress, fromCid, toCid, deps); + } + }; + + return ( + +
+

Autz keys

+
Mnemonic: {mnemonic}
+
Address: {address}
+
Granters:
+
    + {granters.map((data, index) => ( +
  • + {data.granter} to {data.grantee} - {data.authorization.msg}: ( + {data.expiration}) +
  • + ))} +
+
Grantees:
+
    + {grantees.map((data, index) => ( +
  • + {data.granter} to {data.grantee} - {data.authorization.msg}: ( + {data.expiration}) +
  • + ))} +
+
Grants:
+
    + {grants.map((data, index) => ( +
  • + {data.authorization.msg}: ({data.expiration}) +
  • + ))} +
+
+ {' '} + {' '} + +
+
+
+ ); +} + +export default AutzKeys; diff --git a/src/features/ipfs/Drive/index.tsx b/src/features/ipfs/Drive/index.tsx index eb0e3238b..553994f00 100644 --- a/src/features/ipfs/Drive/index.tsx +++ b/src/features/ipfs/Drive/index.tsx @@ -20,6 +20,7 @@ import BackendStatus from './BackendStatus'; import cozoPresets from './cozo_presets.json'; import styles from './drive.scss'; +import AutzKeys from './AutzKeys'; const DEFAULT_PRESET_NAME = '💡 defaul commands...'; @@ -186,7 +187,7 @@ function Drive() {

- +