bet-test-sdk 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
@@ -349,10 +349,15 @@ const setupEventListeners = async (sdk) => {
|
|
349
349
|
});
|
350
350
|
console.log("Subscribed to createEvent with ID:", createEventId);
|
351
351
|
|
352
|
-
const
|
353
|
-
console.log("
|
352
|
+
const buyEventId = sdk.addEventListener("buyEvent", (event, slot, signature) => {
|
353
|
+
console.log("buyEvent", event, slot, signature);
|
354
354
|
});
|
355
|
-
console.log("Subscribed to
|
355
|
+
console.log("Subscribed to buyEvent with ID:", buyEventId);
|
356
|
+
|
357
|
+
const sellEventId = sdk.addEventListener("sellEvent", (event, slot, signature) => {
|
358
|
+
console.log("sellEvent", event, slot, signature);
|
359
|
+
});
|
360
|
+
console.log("Subscribed to sellEvent with ID:", sellEventId);
|
356
361
|
|
357
362
|
const completeEventId = sdk.addEventListener("completeEvent", (event, slot, signature) => {
|
358
363
|
console.log("completeEvent", event, slot, signature);
|