-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eda4383
commit 75102e0
Showing
10 changed files
with
336 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export default { | ||
rpc: {}, | ||
types: { | ||
CashYieldIndex: 'u128', | ||
GatewayNoticePayload: { | ||
_enum: { | ||
SetSupplyCap: '(CurrencyId, Balance)', | ||
ChangeAuthorities: 'Vec<CompoundAuthoritySignature>', | ||
Unlock: '(CurrencyId, Balance, AccountId)', | ||
SetFutureYield: '(Balance, CashYieldIndex, Moment)' | ||
} | ||
}, | ||
GatewayNotice: { | ||
id: 'u64', | ||
payload: 'GatewayNoticePayload' | ||
}, | ||
CompoundAuthoritySignature: 'AccountId' | ||
} | ||
}; |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,4 @@ | ||
import { Definitions } from '@polkadot/types/types'; | ||
import compoundCash from '@acala-network/type-definitions/compoundCash'; | ||
|
||
export default compoundCash as Definitions; |
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 polkadot-types-from-defs`, do not edit | ||
/* eslint-disable */ | ||
|
||
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,33 @@ | ||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit | ||
/* eslint-disable */ | ||
|
||
import type { Enum, Struct, Vec, u128, u64 } from '@polkadot/types'; | ||
import type { ITuple } from '@polkadot/types/types'; | ||
import type { CurrencyId } from '@acala-network/types/interfaces/primitives'; | ||
import type { AccountId, Balance, Moment } from '@acala-network/types/interfaces/runtime'; | ||
|
||
/** @name CashYieldIndex */ | ||
export interface CashYieldIndex extends u128 {} | ||
|
||
/** @name CompoundAuthoritySignature */ | ||
export interface CompoundAuthoritySignature extends AccountId {} | ||
|
||
/** @name GatewayNotice */ | ||
export interface GatewayNotice extends Struct { | ||
readonly id: u64; | ||
readonly payload: GatewayNoticePayload; | ||
} | ||
|
||
/** @name GatewayNoticePayload */ | ||
export interface GatewayNoticePayload extends Enum { | ||
readonly isSetSupplyCap: boolean; | ||
readonly asSetSupplyCap: ITuple<[CurrencyId, Balance]>; | ||
readonly isChangeAuthorities: boolean; | ||
readonly asChangeAuthorities: Vec<CompoundAuthoritySignature>; | ||
readonly isUnlock: boolean; | ||
readonly asUnlock: ITuple<[CurrencyId, Balance, AccountId]>; | ||
readonly isSetFutureYield: boolean; | ||
readonly asSetFutureYield: ITuple<[Balance, CashYieldIndex, Moment]>; | ||
} | ||
|
||
export type PHANTOM_COMPOUNDCASH = 'compoundCash'; |
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