New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid quoteQuery checking #28
Comments
What versions of the client and connector are you running? |
ilp: "version": "4.0.2" |
Looking into it. I think there is a mismatch between functionality of some of those components. The integration tests weren't being run for |
Okey, cool. Thanks. Is it means that I can face some major bugs, or mostly it should be stable? |
It's possible the integration between |
no worries I have 2 ledgers and 2 connectors as well: 2 Connector pairs: Issue happens when I ask a quote, in my opinion, it should work. Also, could you clarify me, please, what is the quote exactly? UPD: Output 2016-08-24T15:45:28.228Z koa INFO <-- GET /quote?source_ledger=http%3A%2F%2Flocalhost%3A3002%2Fnode2_ledger&destination_ledger=http%3A%2F%2Flocalhost%3A3001%2Fnode1_ledger&destination_amount=50 |
The pairs thing is admittedly a bit confusing. Try using You can check that it worked by going to the connector's In general quotes tell you how much you need to pay a connector in order for them to pay out a certain amount (or vice versa). For |
It seems my ledger plugin don't set into multiledger.js module. Well, I add some trace and figure out:
I bit confused, could you help me, please. Either I do something wrong or Connector don't work correctly. Do I have to set special flags of Connector or maybe configure it especially? Thanks advance. |
Please try what I suggested before and see if the pairs show up in the |
I think your connector version is quite out of date actually. The latest is 9.2.1 |
Yes, sure. Accordingly the sample my Credentials looks like: |
Seems fail with five-bells-ledger.js as well 2016-08-25T16:01:40.518Z app INFO connector listening on 0.0.0.0:4002 |
Which version of the connector is that with? |
At this moment this is five-bells-connector: "version": "7.0.3" I've seen info about old version. I'm going to update connector to 9.2.1 and tell you results Today later. |
That error makes sense then, because one of the big breaking changes introduced in the latest versions was the new ILP address format (that's the dot-separated ledger/account bit) |
After update I still have an error. Seems my sources is empty and I can't get a hop.: $ [2016-08-26T11:56:21.226Z] INFO: connector/11135 on akopnin-ubuntu: creating quote sourceAddress=http://localhost:3002/node1_ledger sourceAmount=undefined destinationAddress=http://localhost:3001/node2_ledger destinationAmount=50 destinationPrecisionAndScale=undefined slippage=undefined (module=route-builder) Pairs are UPD |
The fact that the source address is a URL ( |
Thank you, Evan I used latest version of libs, but still had the errors. While I tried to connect my ledger I figure out:
Default plugin inside the Connector is ilp-plugin-bells. It operates with five-bells-ledger. To fix it I should (1) pass additional field type: name to CONNECTOR_CREDENTIALS params. And (2) put custom plugin along with Connector with name: ilp-plugin-< name > If I don't do this actions (1 and 2) Connector works with ilp-plugin-bells instead of mine. It's okey if ilp-plugin-bells universal, but it isn't, is it?
FAB1, FAB2.. won't work, because Interledger has a length restriction: 3 symbols. Also, Connectors have a backends to retrieve the ratio info. It means that I can't to use the custom pairs.
Could you clarify please, how the ilp make a transfer? Who is responsible for transaction delivering? Is it plugin or connector? What exactly plugin should do after "payRequest" (inside the send(transfer))? My apologies for a long thread and huge number of questions. And very thank you for help in my tries to set up Interledger network |
Re: plugins. Right now the connector defaults to using the ledger plugin for the Where do you see the length restriction on currency symbols? If that exists I'm not aware of it. Connectors use the "backends" to get rate information so if you want to make it work with custom ledgers/assets you would need to also define a backend that provides the exchange rates. The way you make an ILP payment is by putting a local transfer on hold to a connector with an ILP Packet attached in the data/memo field. The connector gets the incoming transfer and uses the route builder to create the corresponding destination transfer using the ILP Packet. The plugin turns the standard Transfer object created by the connector into whatever a real transfer looks like on that ledger. Hope that helps, let me know if you have more questions! |
Thank you, Evan You would like to make an universal plugin, this is good call. When do you have a plans to do it? Evan, I'm trying to draw and understand transactions flow diagram. And I still have a lot of questions. How connector holds the transfer, is it has an accounts (wallet addresses) in ledgers? Is client send assets to the connector's account? Do the Connector has a balance (if yes who and when set the initial one)? Also, is connector has a different plugins to connect to different ledgers at the same time? Or flow is - one connector to one ledger over one plugin? Your idea looks very attractive and I'm really interesting in it. Thanks for your time. |
Thanks. I'll check about the length restriction. 3 letter currency codes come from the ISO 4217 standard, but we probably want to support >3 letter codes. We don't yet have a specific timeline for the standard ledger API and corresponding plugin. My guess is that it'll end up looking somewhat similar to the Regarding transaction flows, have you read through the whitepaper? Senders, receivers, and connectors all have accounts on ledgers. The sending client puts a transfer on hold for the first connector with an ILP packet attached. The connector parses the ILP packet and puts a transfer on hold on the next ledger, and so on all the way to the receiver. All parties get balances on their ledgers the same way you would get a balance at a bank (depositing) or on the Bitcoin ledger (buying bitcoin from someone else). A connector connects at minimum two ledgers. It needs one plugin per ledger type. A connector that connects two |
@kopnin you should also look at the proposal for a standard REST API from @diminator here: interledger/rfcs#90 Your feedback would be valuable! |
Hi, |
@kopnin we are using Gitter: https://gitter.im/interledger/Lobby |
I think the original issue here was addressed so I'm going to close this now |
Hi guys,
I investigate how to integrate Interledger with two private ledgers.
Previously you said that I can use ilp directly with five-bells-connector. Seems you have an error with quoteQuery params checking.
Have a look here:
connector-name 2016-08-24T13:25:23.356Z koa INFO <-- GET /quote?source_address=http%3A%2F%2Flocalhost%3A3001%2Filp_account&destination_address=http%3A%2F%2Flocalhost%3A3001%2Filp_account&destination_amount=50
connector-name 2016-08-24T13:25:23.362Z error-handler WARN Invalid URI parameter: Missing required parameter: source_ledger or source_account
connector-name 2016-08-24T13:26:27.834Z koa INFO <-- GET /quote?source_ledger=http%3A%2F%2Flocalhost%3A3001%2Filp_account&destination_address=http%3A%2F%2Flocalhost%3A3001%2Filp_account&destination_amount=50
connector-name 2016-08-24T13:26:27.840Z error-handler WARN Invalid URI parameter: Missing required parameter: destination_ledger or destination_account
`
To solve it you can either make changes here ilp-core->src->lib->client.js or modify five-bells-connectors
For client.js you can do:
const quoteQuery = {
source_ledger: (yield plugin.getAccount()),
...
destination_ledger: params.destinationAddress,
...
}
The text was updated successfully, but these errors were encountered: