Treasury OpenTip (#1708)

This commit is contained in:
Jaco Greeff
2020-01-10 13:56:05 +01:00
committed by GitHub
parent a0b6c42629
commit 3a1f284fa8
3 changed files with 42 additions and 3 deletions
+10 -1
View File
@@ -22,7 +22,7 @@ import { Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter }
import { FullIdentification, IdentificationTuple, Keys, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6 } from '@polkadot/types/interfaces/session';
import { EraIndex, EraPoints, EraRewards, Exposure, Forcing, IndividualExposure, MomentOf, Nominations, Points, RewardDestination, SlashJournalEntry, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196 } from '@polkadot/types/interfaces/staking';
import { DigestOf, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, EventRecordTo76, Key, Phase } from '@polkadot/types/interfaces/system';
import { TreasuryProposal } from '@polkadot/types/interfaces/treasury';
import { OpenTip, OpenTipFinder, OpenTipTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
import { Multiplier } from '@polkadot/types/interfaces/txpayment';
import { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
import { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';
@@ -754,6 +754,15 @@ export interface InterfaceRegistry {
Phase: Phase;
'Option<Phase>': Option<Phase>;
'Vec<Phase>': Vec<Phase>;
OpenTipFinder: OpenTipFinder;
'Option<OpenTipFinder>': Option<OpenTipFinder>;
'Vec<OpenTipFinder>': Vec<OpenTipFinder>;
OpenTipTip: OpenTipTip;
'Option<OpenTipTip>': Option<OpenTipTip>;
'Vec<OpenTipTip>': Vec<OpenTipTip>;
OpenTip: OpenTip;
'Option<OpenTip>': Option<OpenTip>;
'Vec<OpenTip>': Vec<OpenTip>;
TreasuryProposal: TreasuryProposal;
'Option<TreasuryProposal>': Option<TreasuryProposal>;
'Vec<TreasuryProposal>': Vec<TreasuryProposal>;
@@ -4,6 +4,15 @@
export default {
types: {
OpenTipFinder: '(AccountId, Balance)',
OpenTipTip: '(AccountId, Balance)',
OpenTip: {
reason: 'Hash',
who: 'AccountId',
finder: 'Option<OpenTipFinder>',
closes: 'Option<BlockNumber>',
tips: 'Vec<OpenTipTip>'
},
TreasuryProposal: {
proposer: 'AccountId',
value: 'Balance',
@@ -1,8 +1,29 @@
// Auto-generated via `yarn build:interfaces`, do not edit
/* eslint-disable @typescript-eslint/no-empty-interface */
import { Struct } from '@polkadot/types/codec';
import { AccountId, Balance } from '@polkadot/types/interfaces/runtime';
import { ITuple } from '@polkadot/types/types';
import { Option, Struct, Vec } from '@polkadot/types/codec';
import { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
/** Struct */
export interface OpenTip extends Struct {
/** Hash */
readonly reason: Hash;
/** AccountId */
readonly who: AccountId;
/** Option<OpenTipFinder> */
readonly finder: Option<OpenTipFinder>;
/** Option<BlockNumber> */
readonly closes: Option<BlockNumber>;
/** Vec<OpenTipTip> */
readonly tips: Vec<OpenTipTip>;
}
/** ITuple<[AccountId, Balance]> */
export interface OpenTipFinder extends ITuple<[AccountId, Balance]> {}
/** ITuple<[AccountId, Balance]> */
export interface OpenTipTip extends ITuple<[AccountId, Balance]> {}
/** Struct */
export interface TreasuryProposal extends Struct {