@super-protocol/sdk-js 0.8.1-beta.1 → 0.8.1-beta.2
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.
|
@@ -23,6 +23,12 @@ declare class TeeOffersFactory {
|
|
|
23
23
|
*/
|
|
24
24
|
static createTeeOffer(providerAuthorityAccount: string, teeOfferInfo: TeeOfferInfo, externalId?: string, transactionOptions?: TransactionOptions): Promise<void>;
|
|
25
25
|
static getOffer(creator: string, externalId: string): Promise<OfferCreatedEvent>;
|
|
26
|
+
/**
|
|
27
|
+
* Function for fetching TEE offer id by TEE deviceId
|
|
28
|
+
* @param deviceId - unque TEE device id (unparsed, from blockchain)
|
|
29
|
+
* @return TEE offer id
|
|
30
|
+
*/
|
|
31
|
+
static getByDeviceId(deviceId: string): Promise<string>;
|
|
26
32
|
/**
|
|
27
33
|
* Function for adding event listeners on TEE offer created event in TEE offers factory contract
|
|
28
34
|
* @param callback - function for processing created TEE offer
|
|
@@ -158,6 +158,15 @@ var TeeOffersFactory = /** @class */ (function () {
|
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
160
|
};
|
|
161
|
+
/**
|
|
162
|
+
* Function for fetching TEE offer id by TEE deviceId
|
|
163
|
+
* @param deviceId - unque TEE device id (unparsed, from blockchain)
|
|
164
|
+
* @return TEE offer id
|
|
165
|
+
*/
|
|
166
|
+
TeeOffersFactory.getByDeviceId = function (deviceId) {
|
|
167
|
+
var contract = this.checkInit();
|
|
168
|
+
return contract.methods.getTeeOfferByDeviceId(deviceId);
|
|
169
|
+
};
|
|
161
170
|
/**
|
|
162
171
|
* Function for adding event listeners on TEE offer created event in TEE offers factory contract
|
|
163
172
|
* @param callback - function for processing created TEE offer
|