-
Throughout the code for IST Vault's, I've noticed the use of While I believe to have a decent grasp on the use of ephemeral objects, I'm confused about the use of agoric-sdk/packages/inter-protocol/src/vaultFactory/vaultHolder.js Lines 45 to 58 in c680b92 I can't find any references to the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Each ephemera object holds references that can be lost and the object is keyed by whatever was passed to The object on line 53 isn't strictly necessary. Those lines could be, Object.assign(provideEphemera(holderId), { subscriber, publisher }); The values written into the ephemera object are read without binding an |
Beta Was this translation helpful? Give feedback.
provideEphemera
is the function returned bymakeEphemeraProvider
which holds the "ephemeras" in a closureagoric-sdk/packages/inter-protocol/src/contractSupport.js
Line 150 in d7652cb
Each ephemera object holds references that can be lost and the object is keyed by whatever was passed to
provideEphemera
. In this case it'sholderId
. (Though in master at the moment it'ssubscriber
which is 1:1 with the holder object).The object on line 53 isn't strictly necessary. Those lines could be,
The values written into the ephemera object are read without binding an
ephemera
const. E.g.