mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 06:37:57 +00:00
d21bfb1320
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
84 lines
2.2 KiB
TypeScript
84 lines
2.2 KiB
TypeScript
// Copyright 2017-2025 @pezkuwi/apps-config authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { OverrideBundleDefinition } from '@pezkuwi/types/types';
|
|
|
|
// structs need to be in order
|
|
/* eslint-disable sort-keys */
|
|
|
|
const definitions: OverrideBundleDefinition = {
|
|
types: [
|
|
{
|
|
// on all versions
|
|
minmax: [0, undefined],
|
|
types: {
|
|
Token: 'u8',
|
|
DEXShare: '(u8, u8)',
|
|
CurrencyId: {
|
|
_enum: {
|
|
Token: 'Token',
|
|
DEXShare: 'DEXShare'
|
|
}
|
|
},
|
|
TradingPair: '(CurrencyId, CurrencyId)',
|
|
CurrencyIds: { _: 'Vec<CurrencyId>' },
|
|
TradingPairProvisionParameters: {
|
|
min_contribution: '(Balance, Balance)',
|
|
target_provision: '(Balance, Balance)',
|
|
accumulated_provision: '(Balance, Balance)',
|
|
not_before: 'BlockNumber'
|
|
},
|
|
TradingPairStatus: {
|
|
_enum: {
|
|
NotEnabled: null,
|
|
Provisioning: 'TradingPairProvisionParameters',
|
|
Enabled: null
|
|
}
|
|
},
|
|
PoolId: 'CurrencyId',
|
|
Price: 'FixedU128',
|
|
OracleKey: 'u8',
|
|
OracleValue: 'FixedU128',
|
|
Amount: 'i128',
|
|
Balance: 'u128',
|
|
Ratio: 'FixedU128',
|
|
InterestInfo: {
|
|
critical_point: 'Ratio',
|
|
base: 'Ratio',
|
|
slope_1: 'Ratio',
|
|
slope_2: 'Ratio'
|
|
},
|
|
AssetPoolInfo: {
|
|
maximum_total_debit_ratio: 'Ratio',
|
|
minimum_deposit: 'Balance',
|
|
minimum_debit: 'Balance',
|
|
health_ratio: 'Ratio',
|
|
total_deposit: 'Balance',
|
|
total_debit: 'Balance',
|
|
deposit_rate: 'Ratio',
|
|
debit_rate: 'Ratio',
|
|
deposit_apy: 'Ratio',
|
|
debit_apy: 'Ratio',
|
|
reserve_factor: 'Ratio',
|
|
interest_info: 'InterestInfo'
|
|
},
|
|
LoanInfo: {
|
|
deposit: 'Balance',
|
|
debit: 'Balance'
|
|
},
|
|
TimestampedValue: {
|
|
value: 'OracleValue',
|
|
timestamp: 'u64'
|
|
},
|
|
PoolInfo: {
|
|
total_shares: 'Compact<u128>',
|
|
total_rewards: 'Compact<u128>',
|
|
total_withdrawn_rewards: 'Compact<u128>'
|
|
}
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
export default definitions;
|