feat(governance): enable volume discount update view (#5304)
This commit is contained in:
parent
ea3e5a7651
commit
31524ac7a7
@ -35,6 +35,5 @@ NX_SUCCESSOR_MARKETS=true
|
|||||||
NX_METAMASK_SNAPS=true
|
NX_METAMASK_SNAPS=true
|
||||||
NX_PRODUCT_PERPETUALS=false
|
NX_PRODUCT_PERPETUALS=false
|
||||||
NX_UPDATE_MARKET_STATE=false
|
NX_UPDATE_MARKET_STATE=false
|
||||||
NX_REFERRALS=false
|
NX_REFERRALS=true
|
||||||
NX_GOVERNANCE_TRANSFERS=false
|
NX_GOVERNANCE_TRANSFERS=false
|
||||||
NX_VOLUME_DISCOUNTS=false
|
|
||||||
|
@ -31,9 +31,8 @@ NX_TENDERMINT_WEBSOCKET_URL=wss://localhost:26617/websocket
|
|||||||
CYPRESS_FAIRGROUND=false
|
CYPRESS_FAIRGROUND=false
|
||||||
|
|
||||||
# Cosmic elevator flags
|
# Cosmic elevator flags
|
||||||
NX_SUCCESSOR_MARKETS=false
|
NX_SUCCESSOR_MARKETS=true
|
||||||
NX_METAMASK_SNAPS=false
|
NX_METAMASK_SNAPS=false
|
||||||
NX_PRODUCT_PERPETUALS=true
|
NX_PRODUCT_PERPETUALS=true
|
||||||
NX_UPDATE_MARKET_STATE=true
|
NX_UPDATE_MARKET_STATE=true
|
||||||
NX_REFERRALS=true
|
NX_REFERRALS=true
|
||||||
NX_VOLUME_DISCOUNTS=true
|
|
||||||
|
@ -28,4 +28,3 @@ NX_METAMASK_SNAPS=true
|
|||||||
NX_PRODUCT_PERPETUALS=true
|
NX_PRODUCT_PERPETUALS=true
|
||||||
NX_UPDATE_MARKET_STATE=true
|
NX_UPDATE_MARKET_STATE=true
|
||||||
NX_REFERRALS=true
|
NX_REFERRALS=true
|
||||||
NX_VOLUME_DISCOUNTS=true
|
|
||||||
|
@ -22,9 +22,8 @@ NX_TENDERMINT_URL=https://be.vega.community
|
|||||||
NX_TENDERMINT_WEBSOCKET_URL=wss://be.vega.community/websocket
|
NX_TENDERMINT_WEBSOCKET_URL=wss://be.vega.community/websocket
|
||||||
|
|
||||||
# Cosmic elevator flags
|
# Cosmic elevator flags
|
||||||
NX_SUCCESSOR_MARKETS=false
|
NX_SUCCESSOR_MARKETS=true
|
||||||
NX_METAMASK_SNAPS=false
|
NX_METAMASK_SNAPS=false
|
||||||
NX_PRODUCT_PERPETUALS=false
|
NX_PRODUCT_PERPETUALS=true
|
||||||
NX_UPDATE_MARKET_STATE=false
|
NX_UPDATE_MARKET_STATE=true
|
||||||
NX_REFERRALS=false
|
NX_REFERRALS=true
|
||||||
NX_VOLUME_DISCOUNTS=false
|
|
||||||
|
@ -21,9 +21,8 @@ NX_TENDERMINT_URL=https://be.mainnet-mirror.vega.rocks
|
|||||||
NX_TENDERMINT_WEBSOCKET_URL=wss://be.mainnet-mirror.vega.rocks/websocket
|
NX_TENDERMINT_WEBSOCKET_URL=wss://be.mainnet-mirror.vega.rocks/websocket
|
||||||
|
|
||||||
# Cosmic elevator flags
|
# Cosmic elevator flags
|
||||||
NX_SUCCESSOR_MARKETS=false
|
NX_SUCCESSOR_MARKETS=true
|
||||||
NX_METAMASK_SNAPS=false
|
NX_METAMASK_SNAPS=false
|
||||||
NX_PRODUCT_PERPETUALS=false
|
NX_PRODUCT_PERPETUALS=true
|
||||||
NX_UPDATE_MARKET_STATE=false
|
NX_UPDATE_MARKET_STATE=true
|
||||||
NX_REFERRALS=false
|
NX_REFERRALS=true
|
||||||
NX_VOLUME_DISCOUNTS=false
|
|
||||||
|
@ -25,4 +25,3 @@ NX_PRODUCT_PERPETUALS=true
|
|||||||
NX_UPDATE_MARKET_STATE=true
|
NX_UPDATE_MARKET_STATE=true
|
||||||
NX_REFERRALS=true
|
NX_REFERRALS=true
|
||||||
NX_GOVERNANCE_TRANSFERS=true
|
NX_GOVERNANCE_TRANSFERS=true
|
||||||
NX_VOLUME_DISCOUNTS=true
|
|
||||||
|
@ -29,4 +29,3 @@ NX_METAMASK_SNAPS=true
|
|||||||
NX_PRODUCT_PERPETUALS=true
|
NX_PRODUCT_PERPETUALS=true
|
||||||
NX_UPDATE_MARKET_STATE=true
|
NX_UPDATE_MARKET_STATE=true
|
||||||
NX_REFERRALS=true
|
NX_REFERRALS=true
|
||||||
NX_VOLUME_DISCOUNTS=true
|
|
||||||
|
@ -20,9 +20,8 @@ NX_TENDERMINT_URL=https://tm.be.validators-testnet.vega.rocks
|
|||||||
NX_TENDERMINT_WEBSOCKET_URL=wss://be.validators-testnet.vega.
|
NX_TENDERMINT_WEBSOCKET_URL=wss://be.validators-testnet.vega.
|
||||||
|
|
||||||
# Cosmic elevator flags
|
# Cosmic elevator flags
|
||||||
NX_SUCCESSOR_MARKETS=false
|
NX_SUCCESSOR_MARKETS=true
|
||||||
NX_METAMASK_SNAPS=false
|
NX_METAMASK_SNAPS=false
|
||||||
NX_PRODUCT_PERPETUALS=false
|
NX_PRODUCT_PERPETUALS=true
|
||||||
NX_UPDATE_MARKET_STATE=false
|
NX_UPDATE_MARKET_STATE=true
|
||||||
NX_REFERRALS=false
|
NX_REFERRALS=true
|
||||||
NX_VOLUME_DISCOUNTS=false
|
|
||||||
|
@ -189,7 +189,6 @@ const GovernanceHome = ({ name }: RouteChildProps) => {
|
|||||||
includeNewMarketProductFields: !!FLAGS.PRODUCT_PERPETUALS,
|
includeNewMarketProductFields: !!FLAGS.PRODUCT_PERPETUALS,
|
||||||
includeUpdateMarketStates: !!FLAGS.UPDATE_MARKET_STATE,
|
includeUpdateMarketStates: !!FLAGS.UPDATE_MARKET_STATE,
|
||||||
includeUpdateReferralPrograms: !!FLAGS.REFERRALS,
|
includeUpdateReferralPrograms: !!FLAGS.REFERRALS,
|
||||||
includeUpdateVolumeDiscountPrograms: !!FLAGS.VOLUME_DISCOUNTS,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ export const ProposalVolumeDiscountProgramDetails = ({
|
|||||||
{t('BenefitTiers')}
|
{t('BenefitTiers')}
|
||||||
</h3>
|
</h3>
|
||||||
<KeyValueTable>
|
<KeyValueTable>
|
||||||
{benefitTiers
|
{[...benefitTiers]
|
||||||
.sort(
|
.sort(
|
||||||
(a, b) =>
|
(a, b) =>
|
||||||
Number(a.minimumRunningNotionalTakerVolume) -
|
Number(a.minimumRunningNotionalTakerVolume) -
|
||||||
|
@ -84,7 +84,6 @@ query Proposal(
|
|||||||
$includeNewMarketProductField: Boolean!
|
$includeNewMarketProductField: Boolean!
|
||||||
$includeUpdateMarketState: Boolean!
|
$includeUpdateMarketState: Boolean!
|
||||||
$includeUpdateReferralProgram: Boolean!
|
$includeUpdateReferralProgram: Boolean!
|
||||||
$includeUpdateVolumeDiscountProgram: Boolean!
|
|
||||||
) {
|
) {
|
||||||
proposal(id: $proposalId) {
|
proposal(id: $proposalId) {
|
||||||
id
|
id
|
||||||
@ -104,7 +103,6 @@ query Proposal(
|
|||||||
...UpdateMarketState @include(if: $includeUpdateMarketState)
|
...UpdateMarketState @include(if: $includeUpdateMarketState)
|
||||||
...UpdateReferralProgram @include(if: $includeUpdateReferralProgram)
|
...UpdateReferralProgram @include(if: $includeUpdateReferralProgram)
|
||||||
...UpdateVolumeDiscountProgram
|
...UpdateVolumeDiscountProgram
|
||||||
@include(if: $includeUpdateVolumeDiscountProgram)
|
|
||||||
terms {
|
terms {
|
||||||
closingDatetime
|
closingDatetime
|
||||||
enactmentDatetime
|
enactmentDatetime
|
||||||
|
@ -16,7 +16,6 @@ export type ProposalQueryVariables = Types.Exact<{
|
|||||||
includeNewMarketProductField: Types.Scalars['Boolean'];
|
includeNewMarketProductField: Types.Scalars['Boolean'];
|
||||||
includeUpdateMarketState: Types.Scalars['Boolean'];
|
includeUpdateMarketState: Types.Scalars['Boolean'];
|
||||||
includeUpdateReferralProgram: Types.Scalars['Boolean'];
|
includeUpdateReferralProgram: Types.Scalars['Boolean'];
|
||||||
includeUpdateVolumeDiscountProgram: Types.Scalars['Boolean'];
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@ -108,7 +107,7 @@ export const UpdateVolumeDiscountProgramFragmentDoc = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const ProposalDocument = gql`
|
export const ProposalDocument = gql`
|
||||||
query Proposal($proposalId: ID!, $includeNewMarketProductField: Boolean!, $includeUpdateMarketState: Boolean!, $includeUpdateReferralProgram: Boolean!, $includeUpdateVolumeDiscountProgram: Boolean!) {
|
query Proposal($proposalId: ID!, $includeNewMarketProductField: Boolean!, $includeUpdateMarketState: Boolean!, $includeUpdateReferralProgram: Boolean!) {
|
||||||
proposal(id: $proposalId) {
|
proposal(id: $proposalId) {
|
||||||
id
|
id
|
||||||
rationale {
|
rationale {
|
||||||
@ -126,7 +125,7 @@ export const ProposalDocument = gql`
|
|||||||
...NewMarketProductField @include(if: $includeNewMarketProductField)
|
...NewMarketProductField @include(if: $includeNewMarketProductField)
|
||||||
...UpdateMarketState @include(if: $includeUpdateMarketState)
|
...UpdateMarketState @include(if: $includeUpdateMarketState)
|
||||||
...UpdateReferralProgram @include(if: $includeUpdateReferralProgram)
|
...UpdateReferralProgram @include(if: $includeUpdateReferralProgram)
|
||||||
...UpdateVolumeDiscountProgram @include(if: $includeUpdateVolumeDiscountProgram)
|
...UpdateVolumeDiscountProgram
|
||||||
terms {
|
terms {
|
||||||
closingDatetime
|
closingDatetime
|
||||||
enactmentDatetime
|
enactmentDatetime
|
||||||
@ -434,7 +433,6 @@ ${UpdateVolumeDiscountProgramFragmentDoc}`;
|
|||||||
* includeNewMarketProductField: // value for 'includeNewMarketProductField'
|
* includeNewMarketProductField: // value for 'includeNewMarketProductField'
|
||||||
* includeUpdateMarketState: // value for 'includeUpdateMarketState'
|
* includeUpdateMarketState: // value for 'includeUpdateMarketState'
|
||||||
* includeUpdateReferralProgram: // value for 'includeUpdateReferralProgram'
|
* includeUpdateReferralProgram: // value for 'includeUpdateReferralProgram'
|
||||||
* includeUpdateVolumeDiscountProgram: // value for 'includeUpdateVolumeDiscountProgram'
|
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
@ -62,7 +62,6 @@ export const ProposalContainer = () => {
|
|||||||
includeNewMarketProductField: !!FLAGS.PRODUCT_PERPETUALS,
|
includeNewMarketProductField: !!FLAGS.PRODUCT_PERPETUALS,
|
||||||
includeUpdateMarketState: !!FLAGS.UPDATE_MARKET_STATE,
|
includeUpdateMarketState: !!FLAGS.UPDATE_MARKET_STATE,
|
||||||
includeUpdateReferralProgram: !!FLAGS.REFERRALS,
|
includeUpdateReferralProgram: !!FLAGS.REFERRALS,
|
||||||
includeUpdateVolumeDiscountProgram: !!FLAGS.VOLUME_DISCOUNTS,
|
|
||||||
},
|
},
|
||||||
skip: !params.proposalId,
|
skip: !params.proposalId,
|
||||||
});
|
});
|
||||||
|
@ -164,7 +164,6 @@ query Proposals(
|
|||||||
$includeNewMarketProductFields: Boolean!
|
$includeNewMarketProductFields: Boolean!
|
||||||
$includeUpdateMarketStates: Boolean!
|
$includeUpdateMarketStates: Boolean!
|
||||||
$includeUpdateReferralPrograms: Boolean!
|
$includeUpdateReferralPrograms: Boolean!
|
||||||
$includeUpdateVolumeDiscountPrograms: Boolean!
|
|
||||||
) {
|
) {
|
||||||
proposalsConnection {
|
proposalsConnection {
|
||||||
edges {
|
edges {
|
||||||
@ -174,7 +173,6 @@ query Proposals(
|
|||||||
...UpdateMarketStates @include(if: $includeUpdateMarketStates)
|
...UpdateMarketStates @include(if: $includeUpdateMarketStates)
|
||||||
...UpdateReferralPrograms @include(if: $includeUpdateReferralPrograms)
|
...UpdateReferralPrograms @include(if: $includeUpdateReferralPrograms)
|
||||||
...UpdateVolumeDiscountPrograms
|
...UpdateVolumeDiscountPrograms
|
||||||
@include(if: $includeUpdateVolumeDiscountPrograms)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ export type ProposalsQueryVariables = Types.Exact<{
|
|||||||
includeNewMarketProductFields: Types.Scalars['Boolean'];
|
includeNewMarketProductFields: Types.Scalars['Boolean'];
|
||||||
includeUpdateMarketStates: Types.Scalars['Boolean'];
|
includeUpdateMarketStates: Types.Scalars['Boolean'];
|
||||||
includeUpdateReferralPrograms: Types.Scalars['Boolean'];
|
includeUpdateReferralPrograms: Types.Scalars['Boolean'];
|
||||||
includeUpdateVolumeDiscountPrograms: Types.Scalars['Boolean'];
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@ -191,7 +190,7 @@ export const ProposalFieldsFragmentDoc = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const ProposalsDocument = gql`
|
export const ProposalsDocument = gql`
|
||||||
query Proposals($includeNewMarketProductFields: Boolean!, $includeUpdateMarketStates: Boolean!, $includeUpdateReferralPrograms: Boolean!, $includeUpdateVolumeDiscountPrograms: Boolean!) {
|
query Proposals($includeNewMarketProductFields: Boolean!, $includeUpdateMarketStates: Boolean!, $includeUpdateReferralPrograms: Boolean!) {
|
||||||
proposalsConnection {
|
proposalsConnection {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
@ -199,7 +198,7 @@ export const ProposalsDocument = gql`
|
|||||||
...NewMarketProductFields @include(if: $includeNewMarketProductFields)
|
...NewMarketProductFields @include(if: $includeNewMarketProductFields)
|
||||||
...UpdateMarketStates @include(if: $includeUpdateMarketStates)
|
...UpdateMarketStates @include(if: $includeUpdateMarketStates)
|
||||||
...UpdateReferralPrograms @include(if: $includeUpdateReferralPrograms)
|
...UpdateReferralPrograms @include(if: $includeUpdateReferralPrograms)
|
||||||
...UpdateVolumeDiscountPrograms @include(if: $includeUpdateVolumeDiscountPrograms)
|
...UpdateVolumeDiscountPrograms
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -225,7 +224,6 @@ ${UpdateVolumeDiscountProgramsFragmentDoc}`;
|
|||||||
* includeNewMarketProductFields: // value for 'includeNewMarketProductFields'
|
* includeNewMarketProductFields: // value for 'includeNewMarketProductFields'
|
||||||
* includeUpdateMarketStates: // value for 'includeUpdateMarketStates'
|
* includeUpdateMarketStates: // value for 'includeUpdateMarketStates'
|
||||||
* includeUpdateReferralPrograms: // value for 'includeUpdateReferralPrograms'
|
* includeUpdateReferralPrograms: // value for 'includeUpdateReferralPrograms'
|
||||||
* includeUpdateVolumeDiscountPrograms: // value for 'includeUpdateVolumeDiscountPrograms'
|
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
@ -52,7 +52,6 @@ export const ProposalsContainer = () => {
|
|||||||
includeNewMarketProductFields: !!FLAGS.PRODUCT_PERPETUALS,
|
includeNewMarketProductFields: !!FLAGS.PRODUCT_PERPETUALS,
|
||||||
includeUpdateMarketStates: !!FLAGS.UPDATE_MARKET_STATE,
|
includeUpdateMarketStates: !!FLAGS.UPDATE_MARKET_STATE,
|
||||||
includeUpdateReferralPrograms: !!FLAGS.REFERRALS,
|
includeUpdateReferralPrograms: !!FLAGS.REFERRALS,
|
||||||
includeUpdateVolumeDiscountPrograms: !!FLAGS.VOLUME_DISCOUNTS,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -42,7 +42,6 @@ export const RejectedProposalsContainer = () => {
|
|||||||
includeNewMarketProductFields: !!FLAGS.PRODUCT_PERPETUALS,
|
includeNewMarketProductFields: !!FLAGS.PRODUCT_PERPETUALS,
|
||||||
includeUpdateMarketStates: !!FLAGS.UPDATE_MARKET_STATE,
|
includeUpdateMarketStates: !!FLAGS.UPDATE_MARKET_STATE,
|
||||||
includeUpdateReferralPrograms: !!FLAGS.REFERRALS,
|
includeUpdateReferralPrograms: !!FLAGS.REFERRALS,
|
||||||
includeUpdateVolumeDiscountPrograms: !!FLAGS.VOLUME_DISCOUNTS,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user