@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.
@@ -683,10 +683,12 @@ class IOWriteable extends IOReadable {
683
683
  const { tags = [] } = options || {};
684
684
  const allTags = [
685
685
  ...tags,
686
- { name: 'Action', value: 'Submit-Auction-Bid' },
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({
@@ -17,4 +17,4 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.version = void 0;
19
19
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
20
- exports.version = '2.4.0-alpha.2';
20
+ exports.version = '2.4.0-alpha.3';
@@ -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: 'Submit-Auction-Bid' },
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({
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '2.4.0-alpha.2';
17
+ export const version = '2.4.0-alpha.3';
@@ -174,5 +174,7 @@ export declare class IOWriteable extends IOReadable implements AoIOWrite {
174
174
  name: string;
175
175
  processId: string;
176
176
  quantity?: number;
177
+ type?: 'lease' | 'permabuy';
178
+ years?: number;
177
179
  }, options?: WriteOptions): Promise<AoMessageResult>;
178
180
  }
@@ -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 {
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "2.4.0-alpha.1";
16
+ export declare const version = "2.4.0-alpha.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "2.4.0-alpha.2",
3
+ "version": "2.4.0-alpha.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"