From 6595fee1e48fbef2034d6a24c743b2d1d6323da1 Mon Sep 17 00:00:00 2001 From: RyuH1 <79819095+RyuH1@users.noreply.github.com> Date: Thu, 7 Apr 2022 20:25:55 +0800 Subject: [PATCH] Update automata-network type definitions (#7321) --- packages/apps-config/src/api/spec/automata.ts | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/packages/apps-config/src/api/spec/automata.ts b/packages/apps-config/src/api/spec/automata.ts index a4f8b6c906..1825053621 100644 --- a/packages/apps-config/src/api/spec/automata.ts +++ b/packages/apps-config/src/api/spec/automata.ts @@ -36,6 +36,91 @@ const definitions: OverrideBundleDefinition = { 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' } } }