@ar.io/sdk 2.4.0-alpha.2 → 2.4.0-alpha.3
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 +27 -0
- package/bundles/web.bundle.min.js +2 -2
- package/lib/cjs/common/io.js +3 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/io.js +3 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/common/io.d.ts +2 -0
- package/lib/types/types/io.d.ts +2 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/common/io.js
CHANGED
|
@@ -683,10 +683,12 @@ class IOWriteable extends IOReadable {
|
|
|
683
683
|
const { tags = [] } = options || {};
|
|
684
684
|
const allTags = [
|
|
685
685
|
...tags,
|
|
686
|
-
{ name: 'Action', value: '
|
|
686
|
+
{ name: 'Action', value: 'Auction-Bid' },
|
|
687
687
|
{ name: 'Name', value: params.name },
|
|
688
688
|
{ name: 'Process-Id', value: params.processId },
|
|
689
689
|
{ name: 'Quantity', value: params.quantity?.toString() ?? undefined },
|
|
690
|
+
{ name: 'Purchase-Type', value: params.type || 'lease' },
|
|
691
|
+
{ name: 'Years', value: params.years?.toString() ?? undefined },
|
|
690
692
|
];
|
|
691
693
|
const prunedTags = allTags.filter((tag) => tag.value !== undefined);
|
|
692
694
|
return this.process.send({
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/common/io.js
CHANGED
|
@@ -678,10 +678,12 @@ export class IOWriteable extends IOReadable {
|
|
|
678
678
|
const { tags = [] } = options || {};
|
|
679
679
|
const allTags = [
|
|
680
680
|
...tags,
|
|
681
|
-
{ name: 'Action', value: '
|
|
681
|
+
{ name: 'Action', value: 'Auction-Bid' },
|
|
682
682
|
{ name: 'Name', value: params.name },
|
|
683
683
|
{ name: 'Process-Id', value: params.processId },
|
|
684
684
|
{ name: 'Quantity', value: params.quantity?.toString() ?? undefined },
|
|
685
|
+
{ name: 'Purchase-Type', value: params.type || 'lease' },
|
|
686
|
+
{ name: 'Years', value: params.years?.toString() ?? undefined },
|
|
685
687
|
];
|
|
686
688
|
const prunedTags = allTags.filter((tag) => tag.value !== undefined);
|
|
687
689
|
return this.process.send({
|
package/lib/esm/version.js
CHANGED
package/lib/types/common/io.d.ts
CHANGED
package/lib/types/types/io.d.ts
CHANGED
|
@@ -333,6 +333,8 @@ export interface AoIOWrite extends AoIORead {
|
|
|
333
333
|
name: string;
|
|
334
334
|
processId: string;
|
|
335
335
|
quantity?: number;
|
|
336
|
+
type?: 'lease' | 'permabuy';
|
|
337
|
+
years?: number;
|
|
336
338
|
}, options?: WriteOptions): Promise<AoMessageResult>;
|
|
337
339
|
}
|
|
338
340
|
export declare function isProcessConfiguration(config: object): config is {
|
package/lib/types/version.d.ts
CHANGED