Code Monkey home page Code Monkey logo

Comments (4)

gregdhill avatar gregdhill commented on May 24, 2024

@timbotro what endpoint are you talking to here? Is this a local instance or a remote node? i.e. what is the wss URL?

from interbtc.

timbotro avatar timbotro commented on May 24, 2024

@gregdhill this is production: wss://api-kusama.interlay.io/parachain

image

from interbtc.

gregdhill avatar gregdhill commented on May 24, 2024

I believe this is an issue with polkadot-js/apps itself, note that the following call is successful over the HTTP RPC:

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "vaultRegistry_getCollateralizationFromVault", "params": [{"account_id": "$ACCOUNT_ID", "currencies": {"collateral": {"Token": "KSM"}, "wrapped": {"Token": "KBTC"}}}, false]}' http://localhost:9933/

The error occurs when using lowercase "token" instead of "Token". Even our deprecated interbtc-types definitions use the correct casing.

See: polkadot-js/apps#7645

from interbtc.

timbotro avatar timbotro commented on May 24, 2024

The RPC endpoints in question are listed here, which gets printed everytime i connect to the WSS:

2022-05-28 16:32:45        API/INIT: RPC methods not decorated: btcRelay_verifyBlockHeaderInclusion, issue_getIssueRequests, issue_getVaultIssueRequests, oracle_collateralToWrapped, oracle_wrappedToCollateral, redeem_getRedeemRequests, redeem_getVaultRedeemRequests, refund_getRefundRequests, refund_getRefundRequestsByIssueId, refund_getVaultRefundRequests, relay_isTransactionInvalid, replace_getNewVaultReplaceRequests, replace_getOldVaultReplaceRequests, vaultRegistry_getCollateralizationFromVault, vaultRegistry_getCollateralizationFromVaultAndCollateral, vaultRegistry_getIssueableTokensFromVault, vaultRegistry_getPremiumRedeemVaults, vaultRegistry_getRequiredCollateralForVault, vaultRegistry_getRequiredCollateralForWrapped, vaultRegistry_getVaultCollateral, vaultRegistry_getVaultTotalCollateral, vaultRegistry_getVaultsByAccountId, vaultRegistry_getVaultsWithIssuableTokens, vaultRegistry_getVaultsWithRedeemableTokens

Which may be an indicator no?

from interbtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.