Skip to content

Commit

Permalink
interbtc-hydra: update types.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ns212 committed Mar 16, 2022
1 parent 751a42c commit f355581
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 189 deletions.
2 changes: 1 addition & 1 deletion charts/interbtc-hydra/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.4
version: 0.1.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
225 changes: 37 additions & 188 deletions charts/interbtc-hydra/templates/hydra-config.yaml
Original file line number Diff line number Diff line change
@@ -1,209 +1,58 @@
apiVersion: v1
data:
types.json: |
{
"H256Le": "H256",
"Value": "i64",
"Collateral": "Balance",
"Wrapped": "Balance",
"UnsignedInner": "u128",
"StatusCode": {
"_enum": [
"Running",
"Error",
"Shutdown"
]
},
"Address": "AccountId",
"LookupSource": "AccountId",
"Status": "StatusCode",
"ErrorCode": {
"_enum": [
"None",
"OracleOffline"
]
},
"VaultStatus": {
"_enum": {
"Active": "bool",
"Liquidated": "()",
"CommittedTheft": "()"
}
},
"RawBlockHeader": {
"0": "[u8; 80]"
},
"LockIdentifier": "[u8; 8]",
"RichBlockHeader": {
"block_header": "BlockHeader",
"block_height": "u32",
"chain_id": "u32",
"para_height": "BlockNumber"
},
"AccountData": {
"free": "Balance",
"reserved": "Balance",
"frozen": "Balance"
},
"OrmlAccountData": {
"free": "Balance",
"reserved": "Balance",
"frozen": "Balance"
},
"OrmlBalanceLock": {
"amount": "Balance",
"id": "LockIdentifier"
},
"BlockHeader": {
"merkle_root": "H256Le",
"target": "U256",
"timestamp": "u32",
"version": "i32",
"hash": "H256Le",
"hash_prev_block": "H256Le",
"nonce": "u32"
},
"BlockChain": {
"chain_id": "u32",
"start_height": "u32",
"max_height": "u32"
types.json: |
{
"BalanceWrapper": {
"currencyId": "CurrencyId",
"amount": "i128"
},
"BtcAddress": {
"CurrencyId": {
"_enum": {
"P2PKH": "H160",
"P2SH": "H160",
"P2WPKHv0": "H160",
"P2WSHv0": "H256"
"Token": "TokenSymbol"
}
},
"BtcPublicKey": "[u8; 33]",
"Wallet": {
"addresses": "BTreeSet<BtcAddress>",
"public_key": "BtcPublicKey"
},
"Vault": {
"id": "AccountId",
"wallet": "Wallet",
"status": "VaultStatus",
"banned_until": "Option<BlockNumber>",
"to_be_issued_tokens": "Wrapped",
"issued_tokens": "Wrapped",
"to_be_redeemed_tokens": "Wrapped",
"to_be_replaced_tokens": "Wrapped",
"replace_collateral": "Collateral",
"liquidated_collateral": "Collateral",
"currency_id": "CurrencyId"
},
"DefaultVault": "Vault",
"IssueRequestStatus": {
"InterbtcPrimitivesCurrencyId": {
"_enum": {
"Pending": "()",
"Completed": "Option<H256>",
"Cancelled": "()"
"Token": "InterbtcPrimitivesTokenSymbol"
}
},
"IssueRequest": {
"vault": "AccountId",
"opentime": "BlockNumber",
"period": "BlockNumber",
"griefing_collateral": "Collateral",
"amount": "Wrapped",
"fee": "Wrapped",
"requester": "AccountId",
"btc_address": "BtcAddress",
"btc_public_key": "BtcPublicKey",
"btc_height": "u32",
"status": "IssueRequestStatus"
"FundAccountJsonRpcRequest": {
"account_id": "AccountId",
"currency_id": "InterbtcPrimitivesCurrencyId"
},
"RedeemRequestStatus": {
"H256Le": "H256",
"SignedFixedPoint": "FixedU128",
"TokenSymbol": {
"_enum": {
"Pending": "()",
"Completed": "()",
"Reimbursed": "bool",
"Retried": "()"
"DOT": 0,
"INTERBTC": 1,
"INTR": 2,
"KSM": 10,
"KBTC": 11,
"KINT": 12
}
},
"CurrencyId": {
"_enum": [
"DOT",
"INTERBTC",
"INTR",
"KSM",
"KBTC",
"KINT"
]
},
"OracleKey": {
"InterbtcPrimitivesTokenSymbol": {
"_enum": {
"ExchangeRate": "CurrencyId",
"FeeEstimation": "()"
"DOT": 0,
"INTERBTC": 1,
"INTR": 2,
"KSM": 10,
"KBTC": 11,
"KINT": 12
}
},
"RedeemRequest": {
"vault": "AccountId",
"opentime": "BlockNumber",
"period": "BlockNumber",
"fee": "Wrapped",
"transfer_fee_btc": "Wrapped",
"amount_btc": "Wrapped",
"premium": "Collateral",
"redeemer": "AccountId",
"btc_address": "BtcAddress",
"btc_height": "u32",
"status": "RedeemRequestStatus"
},
"ReplaceRequestStatus": {
"_enum": [
"Pending",
"Completed",
"Cancelled"
]
},
"ReplaceRequest": {
"old_vault": "AccountId",
"new_vault": "AccountId",
"amount": "Wrapped",
"griefing_collateral": "Collateral",
"collateral": "Collateral",
"accept_time": "BlockNumber",
"period": "BlockNumber",
"btc_address": "BtcAddress",
"btc_height": "u32",
"status": "ReplaceRequestStatus"
},
"RefundRequest": {
"vault": "AccountId",
"amount_issuing": "Wrapped",
"fee": "Wrapped",
"amount_btc": "Wrapped",
"issuer": "AccountId",
"btc_address": "BtcAddress",
"issue_id": "H256",
"completed": "bool"
},
"BalanceWrapper": {
"amount": "String"
},
"TimestampedValue": {
"value": "Value",
"timestamp": "Moment"
},
"Version": "u32",
"SystemVault": {
"to_be_issued_tokens": "Wrapped",
"issued_tokens": "Wrapped",
"to_be_redeemed_tokens": "Wrapped",
"currency_id": "CurrencyId"
},
"DefaultSystemVault": "SystemVault",
"FixedPoint": "FixedI128",
"SignedFixedPoint": "FixedI128",
"UnsignedFixedPoint": "FixedU128",
"FundAccountJsonRpcRequest": {
"account_id": "AccountId"
"VaultCurrencyPair": {
"collateral": "CurrencyId",
"wrapped": "CurrencyId"
},
"VaultId": {
"account_id": "AccountId",
"currencies": "VaultCurrencyPair"
}
}
}
kind: ConfigMap
metadata:
creationTimestamp: null
creationTimestamp: null
name: {{ include "interbtc-hydra.fullname" . }}-types

0 comments on commit f355581

Please sign in to comment.