Skip to content

Instantly share code, notes, and snippets.

@justmoon
Created January 29, 2017 17:45
Show Gist options
  • Save justmoon/bb042c08cad6679e1f4ea7fb4653d623 to your computer and use it in GitHub Desktop.
Save justmoon/bb042c08cad6679e1f4ea7fb4653d623 to your computer and use it in GitHub Desktop.
First ever SSP payment
ilp:receiver receiver id: OGlra9cQAos +0ms
ilp-plugin-bells:plugin connecting to account https://localhost/ledger/accounts/bob +5ms
ilp-plugin-bells:plugin request ledger metadata https://localhost/ledger +49ms
ilp-plugin-bells:ledger-context using service urls: { transfer: 'https://localhost/ledger/transfers/:id',
transfer_fulfillment: 'https://localhost/ledger/transfers/:id/fulfillment',
transfer_rejection: 'https://localhost/ledger/transfers/:id/rejection',
account: 'https://localhost/ledger/accounts/:name',
auth_token: 'https://localhost/ledger/auth_token',
websocket: 'wss://localhost/ledger/websocket',
message: 'https://localhost/ledger/messages' } +31ms
ilp-plugin-bells:plugin ws connected to wss://localhost/ledger/websocket?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0ODU3MTE4MzUsImV4cCI6MTQ4NjMxNjYzNSwiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3QvbGVkZ2VyIiwic3ViIjoiaHR0cHM6Ly9sb2NhbGhvc3QvbGVkZ2VyL2FjY291bnRzL2JvYiJ9.u2xWXRTzyuZt9tLnomSj5Yq5HPcaQ6MSxlggu3XKaCE +62ms
ilp:receiver account: us.usd.localhost.bob ledger info: { prefix: 'us.usd.localhost.',
connectors: [ 'us.usd.localhost.connector' ],
precision: 10,
scale: 2,
currencyCode: 'USD',
currencySymbol: '$' } +30ms
ilp:receiver receiver listening +10ms
token _qdi9qJwoKXyyUD3aI_w3Q
secret: { destination_account: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
shared_secret: 'lsm-8f4B-quTSelZMu1NpQ' }
obj { address: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
amount: '10',
expires_at: '2017-01-29T17:44:25.506Z' }
sharedSecret 96c9bef1fe01faab9349e95932ed4da5
request: { address: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
amount: '10',
expires_at: '2017-01-29T17:44:25.506Z',
condition: 'cc:0:3:Ws3X3T9tbdOs64M9hoNN_e5PnNktsd-Wn4jTBlAplQw:32' }
ilp-plugin-bells:plugin connecting to account https://localhost/ledger/accounts/alice +7ms
ilp-plugin-bells:plugin request ledger metadata https://localhost/ledger +11ms
ilp-plugin-bells:ledger-context using service urls: { transfer: 'https://localhost/ledger/transfers/:id',
transfer_fulfillment: 'https://localhost/ledger/transfers/:id/fulfillment',
transfer_rejection: 'https://localhost/ledger/transfers/:id/rejection',
account: 'https://localhost/ledger/accounts/:name',
auth_token: 'https://localhost/ledger/auth_token',
websocket: 'wss://localhost/ledger/websocket',
message: 'https://localhost/ledger/messages' } +23ms
ilp-plugin-bells:plugin ws connected to wss://localhost/ledger/websocket?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0ODU3MTE4MzUsImV4cCI6MTQ4NjMxNjYzNSwiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3QvbGVkZ2VyIiwic3ViIjoiaHR0cHM6Ly9sb2NhbGhvc3QvbGVkZ2VyL2FjY291bnRzL2FsaWNlIn0.7In3l--FUkuDu7oPV0xNfj1x8cFCeice1SD9lnuOUTA +41ms
ilp:sender got quote response { sourceAmount: '10', destinationAmount: '10' } +18ms
paymentParams { sourceAmount: '10',
connectorAccount: undefined,
destinationAmount: '10',
destinationAccount: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
destinationMemo: { data: undefined, expires_at: '2017-01-29T17:44:25.506Z' },
expiresAt: '2017-01-29T17:44:05.609Z',
executionCondition: 'cc:0:3:Ws3X3T9tbdOs64M9hoNN_e5PnNktsd-Wn4jTBlAplQw:32' }
ilp:sender sending payment: { sourceAmount: '10',
connectorAccount: undefined,
destinationAmount: '10',
destinationAccount: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
destinationMemo: { data: undefined, expires_at: '2017-01-29T17:44:25.506Z' },
expiresAt: '2017-01-29T17:44:05.609Z',
executionCondition: 'cc:0:3:Ws3X3T9tbdOs64M9hoNN_e5PnNktsd-Wn4jTBlAplQw:32',
uuid: '2b5f1ee8-629b-4383-8822-c127c2c72452' } +7ms
ilp-plugin-bells:plugin already connected, ignoring connection request +0ms
ilp-plugin-bells:plugin submitting transfer: {"id":"https://localhost/ledger/transfers/2b5f1ee8-629b-4383-8822-c127c2c72452","ledger":"https://localhost/ledger","debits":[{"account":"https://localhost/ledger/accounts/alice","amount":"10","authorized":true}],"credits":[{"account":"https://localhost/ledger/accounts/bob","amount":"10","memo":{"ilp_header":{"account":"us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q","amount":"10","data":{"expires_at":"2017-01-29T17:44:25.506Z"}}}}],"execution_condition":"cc:0:3:Ws3X3T9tbdOs64M9hoNN_e5PnNktsd-Wn4jTBlAplQw:32","expires_at":"2017-01-29T17:44:05.609Z"} +1ms
ilp:sender payment sent { sourceAmount: '10',
connectorAccount: undefined,
destinationAmount: '10',
destinationAccount: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
destinationMemo: { data: undefined, expires_at: '2017-01-29T17:44:25.506Z' },
expiresAt: '2017-01-29T17:44:05.609Z',
executionCondition: 'cc:0:3:Ws3X3T9tbdOs64M9hoNN_e5PnNktsd-Wn4jTBlAplQw:32',
uuid: '2b5f1ee8-629b-4383-8822-c127c2c72452' } +109ms
ilp-plugin-bells:translate notify transfer prepared https://localhost/ledger/transfers/2b5f1ee8-629b-4383-8822-c127c2c72452 +3ms
ilp-plugin-bells:translate notify transfer prepared https://localhost/ledger/transfers/2b5f1ee8-629b-4383-8822-c127c2c72452 +1ms
ilp:receiver parsed payment request from transfer: { address: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
amount: '10',
expires_at: '2017-01-29T17:44:25.506Z' } +1ms
token _qdi9qJwoKXyyUD3aI_w3Q
obj { address: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
amount: '10',
expires_at: '2017-01-29T17:44:25.506Z' }
sharedSecret 96c9bef1fe01faab9349e95932ed4da5
ilp:receiver about to submit fulfillment: cf:0:uVZ6myPGywP9v0Ck0shw3mYLtPe0byiZofhwXjOMXzo +1ms
ilp:receiver successfully submitted fulfillment cf:0:uVZ6myPGywP9v0Ck0shw3mYLtPe0byiZofhwXjOMXzo for request us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q (transfer 2b5f1ee8-629b-4383-8822-c127c2c72452) +106ms
received transfer: { id: '2b5f1ee8-629b-4383-8822-c127c2c72452',
direction: 'incoming',
account: 'us.usd.localhost.alice',
from: 'us.usd.localhost.alice',
to: 'us.usd.localhost.bob',
ledger: 'us.usd.localhost.',
amount: '10',
data:
{ ilp_header:
{ account: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
amount: '10',
data: [Object] } },
executionCondition: 'cc:0:3:Ws3X3T9tbdOs64M9hoNN_e5PnNktsd-Wn4jTBlAplQw:32',
expiresAt: '2017-01-29T17:44:05.609Z' }
fulfilled transfer hold with fulfillment: cf:0:uVZ6myPGywP9v0Ck0shw3mYLtPe0byiZofhwXjOMXzo
ilp-plugin-bells:translate notify transfer executed https://localhost/ledger/transfers/2b5f1ee8-629b-4383-8822-c127c2c72452 +4ms
ilp:sender outgoing transfer fulfilled cf:0:uVZ6myPGywP9v0Ck0shw3mYLtPe0byiZofhwXjOMXzo { id: '2b5f1ee8-629b-4383-8822-c127c2c72452',
direction: 'outgoing',
account: 'us.usd.localhost.bob',
from: 'us.usd.localhost.alice',
to: 'us.usd.localhost.bob',
ledger: 'us.usd.localhost.',
amount: '10',
data:
{ ilp_header:
{ account: 'us.usd.localhost.bob.~ssp.OGlra9cQAos._qdi9qJwoKXyyUD3aI_w3Q',
amount: '10',
data: [Object] } },
executionCondition: 'cc:0:3:Ws3X3T9tbdOs64M9hoNN_e5PnNktsd-Wn4jTBlAplQw:32',
expiresAt: '2017-01-29T17:44:05.609Z' } +0ms
sender result: cf:0:uVZ6myPGywP9v0Ck0shw3mYLtPe0byiZofhwXjOMXzo
ilp-plugin-bells:translate notify transfer executed https://localhost/ledger/transfers/2b5f1ee8-629b-4383-8822-c127c2c72452 +1ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment