@interlay/interbtc-types
Advanced tools
Comparing version 0.12.3 to 0.12.4
@@ -1,1 +0,1 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(this,(function(){return(()=>{"use strict";var e={d:(t,a)=>{for(var r in a)e.o(a,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:a[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};return((e,t,a)=>{a.r(t),a.d(t,{default:()=>r});const r=JSON.parse('{"types":[{"minmax":[0,100],"types":{"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"},"BtcAddress":{"_enum":{"P2PKH":"H160","P2SH":"H160","P2WPKHv0":"H160","P2WSHv0":"H256"}},"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":{"_enum":{"Pending":"()","Completed":"Option<H256>","Cancelled":"()"}},"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"},"RedeemRequestStatus":{"_enum":{"Pending":"()","Completed":"()","Reimbursed":"bool","Retried":"()"}},"CurrencyId":{"_enum":["DOT","INTERBTC","INTR","KSM","KBTC","KINT"]},"OracleKey":{"_enum":{"ExchangeRate":"CurrencyId","FeeEstimation":"()"}},"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"},"FixedPoint":"FixedI128","SignedFixedPoint":"FixedI128","UnsignedFixedPoint":"FixedU128","FundAccountJsonRpcRequest":{"account_id":"AccountId"}}}],"rpc":{"vaultRegistry":{"getVaultCollateral":{"description":"Get the vault\'s collateral (excluding nomination)","params":[{"name":"vault_id","type":"AccountId"}],"type":"BalanceWrapper"},"getVaultTotalCollateral":{"description":"Get the vault\'s collateral (including nomination)","params":[{"name":"vault_id","type":"AccountId"}],"type":"BalanceWrapper"},"getFirstVaultWithSufficientCollateral":{"description":"Get the first available vault with sufficient collateral to fulfil an issue request with the specified amount of InterBTC.","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"AccountId"},"getFirstVaultWithSufficientTokens":{"description":"Get the first available vault with sufficient tokens to fulfil an redeem request with the specified amount of InterBTC.","params":[{"name":"amount","type":"BalanceWrapper"}],"type":"AccountId"},"getPremiumRedeemVaults":{"description":"Get all vaults below the premium redeem threshold.","params":[],"type":"Vec<(AccountId, BalanceWrapper)>"},"getVaultsWithIssuableTokens":{"description":"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount","params":[],"type":"Vec<(AccountId, BalanceWrapper)>"},"getVaultsWithRedeemableTokens":{"description":"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount","params":[],"type":"Vec<(AccountId, BalanceWrapper)>"},"getIssueableTokensFromVault":{"description":"Get the amount of tokens a vault can issue","params":[{"name":"vault","type":"AccountId"}],"type":"BalanceWrapper"},"getCollateralizationFromVault":{"description":"Returns the collateralization of a specific vault","params":[{"name":"vault_id","type":"AccountId"},{"name":"only_issued","type":"bool"}],"type":"UnsignedFixedPoint"},"getCollateralizationFromVaultAndCollateral":{"description":"Returns the collateralization of a specific vault and collateral","params":[{"name":"vault_id","type":"AccountId"},{"name":"collateral","type":"BalanceWrapper"},{"name":"only_issued","type":"bool"}],"type":"UnsignedFixedPoint"},"getTotalCollateralization":{"description":"Get the total collateralization of the system","params":[],"type":"UnsignedFixedPoint"},"getRequiredCollateralForWrapped":{"description":"Get the amount of collateral required to issue an amount of InterBTC","params":[{"name":"amount_btc","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"getRequiredCollateralForVault":{"description":"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate","params":[{"name":"vault_id","type":"AccountId"}],"type":"BalanceWrapper"},"isVaultBelowAuctionThreshold":{"description":"Check if the identified vault is below the auction threshold","params":[{"name":"vault_id","type":"AccountId"}],"type":"bool"}},"oracle":{"wrappedToCollateral":{"description":"Wrapped to Collateral exchange rate","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"collateralToWrapped":{"description":"Collateral to Wrapped exchange rate","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"}},"relay":{"isTransactionInvalid":{"description":"Given a sender\'s AccountId and the raw transaction data, determine if it\'s invalid","params":[{"name":"vault_id","type":"AccountId"},{"name":"raw_tx","type":"Vec<u8>"}],"type":"void"}},"issue":{"getIssueRequests":{"description":"Get all issue requests for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, IssueRequest)>"},"getVaultIssueRequests":{"description":"Get all issue requests for a particular vault","params":[{"name":"vault_id","type":"AccountId"}],"type":"Vec<(H256, IssueRequest)>"}},"redeem":{"getRedeemRequests":{"description":"Get all redeem requests for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, RedeemRequest)>"},"getVaultRedeemRequests":{"description":"Get all redeem requests for a particular vault","params":[{"name":"vault_id","type":"AccountId"}],"type":"Vec<(H256, RedeemRequest)>"}},"replace":{"getOldVaultReplaceRequests":{"description":"Get all replace requests from a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, ReplaceRequest)>"},"getNewVaultReplaceRequests":{"description":"Get all replace requests to a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, ReplaceRequest)>"}},"refund":{"getRefundRequests":{"description":"Get all refund requests for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, RefundRequest)>"},"getRefundRequestsByIssueId":{"description":"Get all refund requests for a particular issue ID","params":[{"name":"issue_id","type":"H256"}],"type":"(H256, RefundRequest)"},"getVaultRefundRequests":{"description":"Get all refund requests for a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, RefundRequest)>"}},"btcRelay":{"verifyBlockHeaderInclusion":{"description":"Verify that the block with the given hash is included","params":[{"name":"block_hash","type":"H256Le"}],"type":"void"}}},"alias":{"tokens":{"AccountData":"OrmlAccountData","BalanceLock":"OrmlBalanceLock"}},"instances":{"balances":["ksm","dot","interBTC"]}}')})(0,t,e),t})()})); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(this,(function(){return(()=>{"use strict";var e={d:(t,a)=>{for(var r in a)e.o(a,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:a[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};return((e,t,a)=>{a.r(t),a.d(t,{default:()=>r});const r=JSON.parse('{"types":[{"minmax":[0,100],"types":{"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"},"BtcAddress":{"_enum":{"P2PKH":"H160","P2SH":"H160","P2WPKHv0":"H160","P2WSHv0":"H256"}},"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":{"_enum":{"Pending":"()","Completed":"Option<H256>","Cancelled":"()"}},"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"},"RedeemRequestStatus":{"_enum":{"Pending":"()","Completed":"()","Reimbursed":"bool","Retried":"()"}},"CurrencyId":{"_enum":["DOT","INTERBTC","INTR","KSM","KBTC","KINT"]},"OracleKey":{"_enum":{"ExchangeRate":"CurrencyId","FeeEstimation":"()"}},"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"},"DefaultSystemVault":"SystemVault","FixedPoint":"FixedI128","SignedFixedPoint":"FixedI128","UnsignedFixedPoint":"FixedU128","FundAccountJsonRpcRequest":{"account_id":"AccountId"}}}],"rpc":{"vaultRegistry":{"getVaultCollateral":{"description":"Get the vault\'s collateral (excluding nomination)","params":[{"name":"vault_id","type":"AccountId"}],"type":"BalanceWrapper"},"getVaultTotalCollateral":{"description":"Get the vault\'s collateral (including nomination)","params":[{"name":"vault_id","type":"AccountId"}],"type":"BalanceWrapper"},"getFirstVaultWithSufficientCollateral":{"description":"Get the first available vault with sufficient collateral to fulfil an issue request with the specified amount of InterBTC.","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"AccountId"},"getFirstVaultWithSufficientTokens":{"description":"Get the first available vault with sufficient tokens to fulfil an redeem request with the specified amount of InterBTC.","params":[{"name":"amount","type":"BalanceWrapper"}],"type":"AccountId"},"getPremiumRedeemVaults":{"description":"Get all vaults below the premium redeem threshold.","params":[],"type":"Vec<(AccountId, BalanceWrapper)>"},"getVaultsWithIssuableTokens":{"description":"Get all vaults with non-zero issuable tokens, ordered in descending order of this amount","params":[],"type":"Vec<(AccountId, BalanceWrapper)>"},"getVaultsWithRedeemableTokens":{"description":"Get all vaults with non-zero redeemable tokens, ordered in descending order of this amount","params":[],"type":"Vec<(AccountId, BalanceWrapper)>"},"getIssueableTokensFromVault":{"description":"Get the amount of tokens a vault can issue","params":[{"name":"vault","type":"AccountId"}],"type":"BalanceWrapper"},"getCollateralizationFromVault":{"description":"Returns the collateralization of a specific vault","params":[{"name":"vault_id","type":"AccountId"},{"name":"only_issued","type":"bool"}],"type":"UnsignedFixedPoint"},"getCollateralizationFromVaultAndCollateral":{"description":"Returns the collateralization of a specific vault and collateral","params":[{"name":"vault_id","type":"AccountId"},{"name":"collateral","type":"BalanceWrapper"},{"name":"only_issued","type":"bool"}],"type":"UnsignedFixedPoint"},"getTotalCollateralization":{"description":"Get the total collateralization of the system","params":[],"type":"UnsignedFixedPoint"},"getRequiredCollateralForWrapped":{"description":"Get the amount of collateral required to issue an amount of InterBTC","params":[{"name":"amount_btc","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"getRequiredCollateralForVault":{"description":"Get the amount of collateral required for the given vault to be at the current SecureCollateralThreshold with the current exchange rate","params":[{"name":"vault_id","type":"AccountId"}],"type":"BalanceWrapper"},"isVaultBelowAuctionThreshold":{"description":"Check if the identified vault is below the auction threshold","params":[{"name":"vault_id","type":"AccountId"}],"type":"bool"}},"oracle":{"wrappedToCollateral":{"description":"Wrapped to Collateral exchange rate","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"},"collateralToWrapped":{"description":"Collateral to Wrapped exchange rate","params":[{"name":"amount","type":"BalanceWrapper"},{"name":"currency_id","type":"CurrencyId"}],"type":"BalanceWrapper"}},"relay":{"isTransactionInvalid":{"description":"Given a sender\'s AccountId and the raw transaction data, determine if it\'s invalid","params":[{"name":"vault_id","type":"AccountId"},{"name":"raw_tx","type":"Vec<u8>"}],"type":"void"}},"issue":{"getIssueRequests":{"description":"Get all issue requests for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, IssueRequest)>"},"getVaultIssueRequests":{"description":"Get all issue requests for a particular vault","params":[{"name":"vault_id","type":"AccountId"}],"type":"Vec<(H256, IssueRequest)>"}},"redeem":{"getRedeemRequests":{"description":"Get all redeem requests for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, RedeemRequest)>"},"getVaultRedeemRequests":{"description":"Get all redeem requests for a particular vault","params":[{"name":"vault_id","type":"AccountId"}],"type":"Vec<(H256, RedeemRequest)>"}},"replace":{"getOldVaultReplaceRequests":{"description":"Get all replace requests from a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, ReplaceRequest)>"},"getNewVaultReplaceRequests":{"description":"Get all replace requests to a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, ReplaceRequest)>"}},"refund":{"getRefundRequests":{"description":"Get all refund requests for a particular account","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, RefundRequest)>"},"getRefundRequestsByIssueId":{"description":"Get all refund requests for a particular issue ID","params":[{"name":"issue_id","type":"H256"}],"type":"(H256, RefundRequest)"},"getVaultRefundRequests":{"description":"Get all refund requests for a particular vault","params":[{"name":"account_id","type":"AccountId"}],"type":"Vec<(H256, RefundRequest)>"}},"btcRelay":{"verifyBlockHeaderInclusion":{"description":"Verify that the block with the given hash is included","params":[{"name":"block_hash","type":"H256Le"}],"type":"void"}}},"alias":{"tokens":{"AccountData":"OrmlAccountData","BalanceLock":"OrmlBalanceLock"}},"instances":{"balances":["ksm","dot","interBTC"]}}')})(0,t,e),t})()})); |
@@ -201,2 +201,3 @@ { | ||
}, | ||
"DefaultSystemVault": "SystemVault", | ||
"FixedPoint": "FixedI128", | ||
@@ -203,0 +204,0 @@ "SignedFixedPoint": "FixedI128", |
{ | ||
"name": "@interlay/interbtc-types", | ||
"version": "0.12.3", | ||
"version": "0.12.4", | ||
"description": "Substrate types used in InterBTC parachain", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
42019
549