update swap types for VLN (#5208)

This commit is contained in:
stanly-johnson 2021-05-05 14:26:36 +05:30 committed by GitHub
parent abca622c10
commit b3eae032f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ const definitions: OverrideBundleDefinition = {
_enum: {
Collateral: 'Collateral',
Fiat: 'Fiat',
Network: 'NetworkAsset',
Usdv: null
}
},
@ -29,10 +30,12 @@ const definitions: OverrideBundleDefinition = {
'Vez'
]
},
CurrencyId: 'ForeignCurrencyId',
CurrencyId: 'NetworkAsset',
OracleKey: 'Asset',
OracleValue: 'FixedU128',
CurrencyIdOf: 'ForeignCurrencyId',
CurrencyIdOf: 'NetworkAsset',
Amount: 'i64',
AmountOf: 'Amount',
TimestampedValue: {
value: 'OracleValue',
timestamp: 'Moment'
@ -50,18 +53,63 @@ const definitions: OverrideBundleDefinition = {
Parachain: 'ParaId'
}
},
ForeignCurrencyId: {
_enum: {
Token: 'TokenSymbol'
}
},
TokenSymbol: {
NetworkAsset: {
_enum: [
'ACA',
'AUSD',
'DOT',
'USDV'
'DOT'
]
},
BaseAsset: 'CurrencyId',
AssetPair: {
base: 'BaseAsset',
quote: 'CurrencyId'
},
PaymentMethod: {
_enum: [
'BankX',
'BankY'
]
},
RatePremiumType: 'FixedU128',
SwapKind: {
_enum: {
In: 'SwapIn',
Out: 'SwapOut'
}
},
SwapIn: {
_enum: {
Created: null,
Accepted: 'Vec<u8>',
Rejected: 'Vec<u8>',
Confirmed: 'Vec<u8>',
Expired: null,
Completed: null
}
},
SwapOut: {
_enum: {
Created: null,
Accepted: null,
Rejected: 'Vec<u8>',
Confirmed: 'Vec<u8>',
Expired: null,
Completed: null
}
},
PairPrice: {
pair: 'AssetPair',
price: 'FixedU128'
},
Swap: {
human: 'AccountId',
kind: 'SwapKind',
price: 'PairPrice',
amount: 'FixedU128'
},
RateDetail: {
rate: 'FixedU128'
}
}
}]