// Copyright 2017-2023 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { OverrideBundleDefinition } from '@polkadot/types/types'; // structs need to be in order /* eslint-disable sort-keys */ const definitions: OverrideBundleDefinition = { types: [ { // on all versions minmax: [0, undefined], types: { ResourceId: '[u8; 32]', DepositNonce: 'u64', ProposalStatus: { _enum: [ 'Initiated', 'Approved', 'Rejected' ] }, ProposalVotes: { votes_for: 'Vec', votes_against: 'Vec', status: 'ProposalStatus' }, BridgeTokenId: 'U256', BridgeChainId: 'u8', VestingPlan: { start_time: 'u64', cliff_duration: 'u64', total_duration: 'u64', interval: 'u64', initial_amount: 'Balance', total_amount: 'Balance', vesting_during_cliff: 'bool' }, ProposalId: 'u32', ProjectId: 'u32', ChainIndex: 'u32', Protocol: { _enum: ['Solidity', 'Substrate'] }, Chain: { _protocol: 'Protocol' }, CrossChainAccount: { _enum: { Solidity: 'H160', Substrate: 'AccountId' } }, IpfsHash: 'Text', SolidityStrategy: { _enum: { ERC20Balance: 'H160' } }, SubstrateStrategy: { _enum: ['NativeBalance'] }, Strategy: { _enum: { Solidity: 'SolidityStrategy', Substrate: 'SubstrateStrategy' } }, Workspace: { _chain: 'ChainIndex', strategies: 'Vec' }, UserGroup: { owner: 'CrossChainAccount', admins: 'Vec', maintainers: 'Vec', proposers: 'Option>' }, Project: { usergroup: 'UserGroup', data: 'IpfsHash', workspaces: 'Vec' }, VotingFormat: { _enum: ['SingleChoice', 'SplitVote'] }, OptionIndex: 'u8', PrivacyLevel: { _enum: { Opaque: 'u8', Rank: 'Null', Private: 'Null', Public: 'Null', Mixed: 'Null' } }, VotingPower: 'U256', DAOProposalState: { finalized: 'bool', snapshots: 'Vec>', blacklisted: 'bool', votes: 'Vec', pub_voters: 'Option', updates: 'u32' }, DAOProposal: { _author: 'CrossChainAccount', _voting_format: 'VotingFormat', _option_count: 'OptionIndex', _data: 'IpfsHash', _privacy: 'PrivacyLevel', _start: 'u64', _end: 'u64', _frequency: 'Option', _workspaces: 'Vec', state: 'DAOProposalState' }, VoteUpdate: { project: 'ProjectId', proposal: 'ProposalId', votes: 'Vec', pub_voters: 'Option' } } } ] }; export default definitions;