-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Society/Recovery types * camelCase (linting)
- Loading branch information
Showing
9 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2017-2020 @polkadot/types authors & contributors | ||
// This software may be modified and distributed under the terms | ||
// of the Apache-2.0 license. See the LICENSE file for details. | ||
|
||
export default { | ||
types: { | ||
ActiveRecovery: { | ||
created: 'BlockNumber', | ||
deposit: 'Balance', | ||
friends: 'Vec<AccountId>' | ||
}, | ||
RecoveryConfig: { | ||
delayPeriod: 'BlockNumber', | ||
deposit: 'Balance', | ||
friends: 'Vec<AccountId>', | ||
threshold: 'u16' | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Auto-generated via `yarn build:interfaces`, do not edit | ||
/* eslint-disable @typescript-eslint/no-empty-interface */ | ||
|
||
export * from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Auto-generated via `yarn build:interfaces`, do not edit | ||
/* eslint-disable @typescript-eslint/no-empty-interface */ | ||
|
||
import { Struct, Vec } from '@polkadot/types/codec'; | ||
import { u16 } from '@polkadot/types/primitive'; | ||
import { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime'; | ||
|
||
/** Struct */ | ||
export interface ActiveRecovery extends Struct { | ||
/** BlockNumber */ | ||
readonly created: BlockNumber; | ||
/** Balance */ | ||
readonly deposit: Balance; | ||
/** Vec<AccountId> */ | ||
readonly friends: Vec<AccountId>; | ||
} | ||
|
||
/** Struct */ | ||
export interface RecoveryConfig extends Struct { | ||
/** BlockNumber */ | ||
readonly delayPeriod: BlockNumber; | ||
/** Balance */ | ||
readonly deposit: Balance; | ||
/** Vec<AccountId> */ | ||
readonly friends: Vec<AccountId>; | ||
/** u16 */ | ||
readonly threshold: u16; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2017-2020 @polkadot/types authors & contributors | ||
// This software may be modified and distributed under the terms | ||
// of the Apache-2.0 license. See the LICENSE file for details. | ||
|
||
export default { | ||
types: { | ||
Bid: { | ||
who: 'AccountId', | ||
kind: 'BidKind', | ||
value: 'Balance' | ||
}, | ||
BidKindVouch: '(AccountId, Balance)', | ||
BidKind: { | ||
_enum: { | ||
Deposit: 'Balance', | ||
Vouch: 'BidKindVouch' | ||
} | ||
}, | ||
StrikeCount: 'u32', | ||
VouchingStatus: { | ||
_enum: ['Vouching', 'Banned'] | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Auto-generated via `yarn build:interfaces`, do not edit | ||
/* eslint-disable @typescript-eslint/no-empty-interface */ | ||
|
||
export * from './types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Auto-generated via `yarn build:interfaces`, do not edit | ||
/* eslint-disable @typescript-eslint/no-empty-interface */ | ||
|
||
import { ITuple } from '@polkadot/types/types'; | ||
import { Enum, Struct } from '@polkadot/types/codec'; | ||
import { u32 } from '@polkadot/types/primitive'; | ||
import { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; | ||
|
||
/** Struct */ | ||
export interface Bid extends Struct { | ||
/** AccountId */ | ||
readonly who: AccountId; | ||
/** BidKind */ | ||
readonly kind: BidKind; | ||
/** Balance */ | ||
readonly value: Balance; | ||
} | ||
|
||
/** Enum */ | ||
export interface BidKind extends Enum { | ||
/** 0:: Deposit(Balance) */ | ||
readonly isDeposit: boolean; | ||
/** Balance */ | ||
readonly asDeposit: Balance; | ||
/** 1:: Vouch(BidKindVouch) */ | ||
readonly isVouch: boolean; | ||
/** BidKindVouch */ | ||
readonly asVouch: BidKindVouch; | ||
} | ||
|
||
/** ITuple<[AccountId, Balance]> */ | ||
export interface BidKindVouch extends ITuple<[AccountId, Balance]> {} | ||
|
||
/** u32 */ | ||
export interface StrikeCount extends u32 {} | ||
|
||
/** Enum */ | ||
export interface VouchingStatus extends Enum { | ||
/** 0:: Vouching */ | ||
readonly isVouching: boolean; | ||
/** 1:: Banned */ | ||
readonly isBanned: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters