@bsv/sdk 1.3.23 → 1.3.25
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/dist/cjs/package.json +1 -1
- package/dist/cjs/src/primitives/utils.js +40 -11
- package/dist/cjs/src/primitives/utils.js.map +1 -1
- package/dist/cjs/src/script/templates/PushDrop.js +6 -4
- package/dist/cjs/src/script/templates/PushDrop.js.map +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/src/primitives/utils.js +40 -11
- package/dist/esm/src/primitives/utils.js.map +1 -1
- package/dist/esm/src/script/templates/PushDrop.js +7 -4
- package/dist/esm/src/script/templates/PushDrop.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/types/src/primitives/utils.d.ts.map +1 -1
- package/dist/types/src/script/templates/PushDrop.d.ts +3 -1
- package/dist/types/src/script/templates/PushDrop.d.ts.map +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/umd/bundle.js +1 -1
- package/docs/overlay-tools.md +3 -3
- package/docs/script.md +5 -2
- package/docs/swagger/dist/swagger-initializer.js +7 -7
- package/docs/swagger/dist/swagger-ui-bundle.js +1 -1
- package/docs/swagger/dist/swagger-ui-es-bundle-core.js +2 -2
- package/docs/swagger/dist/swagger-ui-es-bundle.js +1 -1
- package/docs/swagger/dist/swagger-ui-standalone-preset.js +1 -1
- package/docs/swagger/dist/swagger-ui.js +2 -2
- package/package.json +1 -1
- package/src/primitives/__tests/utils.test.ts +51 -1
- package/src/primitives/utils.ts +52 -10
- package/src/script/templates/PushDrop.ts +7 -4
package/docs/overlay-tools.md
CHANGED
|
@@ -262,7 +262,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
262
262
|
| [HTTPSOverlayLookupFacilitator](#class-httpsoverlaylookupfacilitator) |
|
|
263
263
|
| [LookupResolver](#class-lookupresolver) |
|
|
264
264
|
| [OverlayAdminTokenTemplate](#class-overlayadmintokentemplate) |
|
|
265
|
-
| [
|
|
265
|
+
| [SHIPBroadcaster](#class-shipbroadcaster) |
|
|
266
266
|
|
|
267
267
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
268
268
|
|
|
@@ -430,12 +430,12 @@ Argument Details
|
|
|
430
430
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Enums](#enums), [Variables](#variables)
|
|
431
431
|
|
|
432
432
|
---
|
|
433
|
-
### Class:
|
|
433
|
+
### Class: SHIPBroadcaster
|
|
434
434
|
|
|
435
435
|
Represents a SHIP transaction broadcaster.
|
|
436
436
|
|
|
437
437
|
```ts
|
|
438
|
-
export default class
|
|
438
|
+
export default class SHIPBroadcaster implements Broadcaster {
|
|
439
439
|
constructor(topics: string[], config?: SHIPBroadcasterConfig)
|
|
440
440
|
async broadcast(tx: Transaction): Promise<BroadcastResponse | BroadcastFailure>
|
|
441
441
|
}
|
package/docs/script.md
CHANGED
|
@@ -211,11 +211,12 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
211
211
|
```ts
|
|
212
212
|
export default class PushDrop implements ScriptTemplate {
|
|
213
213
|
wallet: WalletInterface;
|
|
214
|
+
originator?: string;
|
|
214
215
|
static decode(script: LockingScript): {
|
|
215
216
|
lockingPublicKey: PublicKey;
|
|
216
217
|
fields: number[][];
|
|
217
218
|
}
|
|
218
|
-
constructor(wallet: WalletInterface)
|
|
219
|
+
constructor(wallet: WalletInterface, originator?: string)
|
|
219
220
|
async lock(fields: number[][], protocolID: [
|
|
220
221
|
SecurityLevel,
|
|
221
222
|
string
|
|
@@ -237,7 +238,7 @@ See also: [LockingScript](./script.md#class-lockingscript), [PublicKey](./primit
|
|
|
237
238
|
Constructs a new instance of the PushDrop class.
|
|
238
239
|
|
|
239
240
|
```ts
|
|
240
|
-
constructor(wallet: WalletInterface)
|
|
241
|
+
constructor(wallet: WalletInterface, originator?: string)
|
|
241
242
|
```
|
|
242
243
|
See also: [WalletInterface](./wallet.md#interface-walletinterface)
|
|
243
244
|
|
|
@@ -245,6 +246,8 @@ Argument Details
|
|
|
245
246
|
|
|
246
247
|
+ **wallet**
|
|
247
248
|
+ The wallet interface used for creating signatures and accessing public keys.
|
|
249
|
+
+ **originator**
|
|
250
|
+
+ — The originator to use with Wallet requests
|
|
248
251
|
|
|
249
252
|
#### Method decode
|
|
250
253
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
window.onload = function
|
|
2
|
-
|
|
1
|
+
window.onload = function() {
|
|
2
|
+
//<editor-fold desc="Changeable Configuration Block">
|
|
3
3
|
|
|
4
4
|
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
|
|
5
5
|
window.ui = SwaggerUIBundle({
|
|
6
|
-
url:
|
|
6
|
+
url: "swagger.yaml",
|
|
7
7
|
dom_id: '#swagger-ui',
|
|
8
8
|
deepLinking: true,
|
|
9
9
|
presets: [
|
|
@@ -13,8 +13,8 @@ window.onload = function () {
|
|
|
13
13
|
plugins: [
|
|
14
14
|
SwaggerUIBundle.plugins.DownloadUrl
|
|
15
15
|
],
|
|
16
|
-
layout:
|
|
17
|
-
})
|
|
16
|
+
layout: "StandaloneLayout"
|
|
17
|
+
});
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
}
|
|
19
|
+
//</editor-fold>
|
|
20
|
+
};
|