From 7b3909fb9def0e864dc59d87d1d78c9718feb830 Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Wed, 18 Sep 2024 13:04:55 -0600 Subject: [PATCH 01/26] feat(io): add api for querying get registration fees handler to AoIORead class --- src/common/io.ts | 7 ++++ src/io.ts | 62 ++++++++++++++++++++++++++++++++++ tests/e2e/cjs/index.test.js | 13 +++++++ tests/e2e/esm/index.test.js | 14 ++++++++ tests/e2e/web/src/App.test.tsx | 17 ++++++++++ 5 files changed, 113 insertions(+) diff --git a/src/common/io.ts b/src/common/io.ts index 247f9e26..1e4d77b0 100644 --- a/src/common/io.ts +++ b/src/common/io.ts @@ -23,6 +23,7 @@ import { AoGateway, AoIORead, AoIOWrite, + AoRegistrationFees, EpochInput, isProcessConfiguration, isProcessIdConfiguration, @@ -572,6 +573,12 @@ export class IOReadable implements AoIORead { tags: prunedTags, }); } + + async getRegistrationFees(): Promise { + return this.process.read({ + tags: [{ name: 'Action', value: 'Get-Registration-Fees' }], + }); + } } export class IOWriteable extends IOReadable implements AoIOWrite { diff --git a/src/io.ts b/src/io.ts index 38b61c3a..acf6ceb4 100644 --- a/src/io.ts +++ b/src/io.ts @@ -67,6 +67,67 @@ export type EpochInput = // AO/IO Contract export type AoBalances = Record; export type AoFees = Record; + +export type AoArNSNameLengths = + | 1 + | 2 + | 3 + | 4 + | 5 + | 6 + | 7 + | 8 + | 9 + | 10 + | 11 + | 12 + | 13 + | 14 + | 15 + | 16 + | 17 + | 18 + | 19 + | 20 + | 21 + | 22 + | 23 + | 24 + | 25 + | 26 + | 27 + | 28 + | 29 + | 30 + | 31 + | 32 + | 33 + | 34 + | 35 + | 36 + | 37 + | 38 + | 39 + | 40 + | 41 + | 42 + | 43 + | 44 + | 45 + | 46 + | 47 + | 48 + | 49 + | 50 + | 51; +export type AoRegistrationFeeList = Record< + 1 | 2 | 3 | 4 | 5 | 'permabuy', + number +>; +export type AoRegistrationFees = Record< + AoArNSNameLengths, + AoRegistrationFeeList +>; export type AoObservations = Record; export type AoEpochIndex = number; @@ -337,6 +398,7 @@ export interface AoIORead { name?: string; quantity?: number; }): Promise; + getRegistrationFees(): Promise; } export interface AoIOWrite extends AoIORead { diff --git a/tests/e2e/cjs/index.test.js b/tests/e2e/cjs/index.test.js index 134e4233..1641c874 100644 --- a/tests/e2e/cjs/index.test.js +++ b/tests/e2e/cjs/index.test.js @@ -310,6 +310,19 @@ describe('IO', async () => { assert.ok(tokenCost); }); + it('should be able to get registration fees', async () => { + const registrationFees = await io.getRegistrationFees(); + assert(registrationFees); + assert.equal(Object.keys(registrationFees).length, 51); + for (const nameLength of Object.keys(registrationFees)) { + assert(registrationFees[nameLength]['1']); + assert(registrationFees[nameLength]['2']); + assert(registrationFees[nameLength]['3']); + assert(registrationFees[nameLength]['4']); + assert(registrationFees[nameLength]['5']); + assert(registrationFees[nameLength]['permabuy']); + } + }); it('should be able to create IOWriteable with valid signers', async () => { for (const signer of signers) { const io = IO.init({ signer }); diff --git a/tests/e2e/esm/index.test.js b/tests/e2e/esm/index.test.js index 02422f2d..92f7a68b 100644 --- a/tests/e2e/esm/index.test.js +++ b/tests/e2e/esm/index.test.js @@ -313,6 +313,20 @@ describe('IO', async () => { assert.ok(tokenCost); }); + it('should be able to get registration fees', async () => { + const registrationFees = await io.getRegistrationFees(); + assert(registrationFees); + assert.equal(Object.keys(registrationFees).length, 51); + for (const nameLength of Object.keys(registrationFees)) { + assert(registrationFees[nameLength]['1']); + assert(registrationFees[nameLength]['2']); + assert(registrationFees[nameLength]['3']); + assert(registrationFees[nameLength]['4']); + assert(registrationFees[nameLength]['5']); + assert(registrationFees[nameLength]['permabuy']); + } + }); + it('should be able to create IOWriteable with valid signers', async () => { for (const signer of signers) { const io = IO.init({ signer }); diff --git a/tests/e2e/web/src/App.test.tsx b/tests/e2e/web/src/App.test.tsx index 241211bd..3a36b143 100644 --- a/tests/e2e/web/src/App.test.tsx +++ b/tests/e2e/web/src/App.test.tsx @@ -52,4 +52,21 @@ describe('ESM browser validation', () => { const result = screen.getByTestId('load-registry-result'); expect(result).toHaveTextContent('true'); }); + + it('should retrieve registration fees', async () => { + await act(async () => render()); + + await waitFor( + () => { + screen.getByTestId('load-registration-fees-result'); + }, + { + interval: 5_000, + timeout: 60_000, + }, + ); + + const result = screen.getByTestId('load-registration-fees-result'); + expect(result).toHaveTextContent('true'); + }); }); From 877b03f4124894cafbd0bc60b9d55b8803365cec Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Wed, 25 Sep 2024 07:59:19 -0600 Subject: [PATCH 02/26] fix(types): update type and tests --- src/io.ts | 71 ++++++---------------------------- tests/e2e/cjs/index.test.js | 13 ++++--- tests/e2e/esm/index.test.js | 13 ++++--- tests/e2e/web/src/App.test.tsx | 17 -------- 4 files changed, 25 insertions(+), 89 deletions(-) diff --git a/src/io.ts b/src/io.ts index acf6ceb4..f97a98ef 100644 --- a/src/io.ts +++ b/src/io.ts @@ -66,67 +66,18 @@ export type EpochInput = // AO/IO Contract export type AoBalances = Record; -export type AoFees = Record; - -export type AoArNSNameLengths = - | 1 - | 2 - | 3 - | 4 - | 5 - | 6 - | 7 - | 8 - | 9 - | 10 - | 11 - | 12 - | 13 - | 14 - | 15 - | 16 - | 17 - | 18 - | 19 - | 20 - | 21 - | 22 - | 23 - | 24 - | 25 - | 26 - | 27 - | 28 - | 29 - | 30 - | 31 - | 32 - | 33 - | 34 - | 35 - | 36 - | 37 - | 38 - | 39 - | 40 - | 41 - | 42 - | 43 - | 44 - | 45 - | 46 - | 47 - | 48 - | 49 - | 50 - | 51; -export type AoRegistrationFeeList = Record< - 1 | 2 | 3 | 4 | 5 | 'permabuy', - number ->; +const nameLengthArray = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, +] as const; +const leaseLengthArray = [1, 2, 3, 4, 5] as const; export type AoRegistrationFees = Record< - AoArNSNameLengths, - AoRegistrationFeeList + (typeof nameLengthArray)[number], + { + lease: Record<(typeof leaseLengthArray)[number], number>; + permabuy: number; + } >; export type AoObservations = Record; export type AoEpochIndex = number; diff --git a/tests/e2e/cjs/index.test.js b/tests/e2e/cjs/index.test.js index 1641c874..9375c1c6 100644 --- a/tests/e2e/cjs/index.test.js +++ b/tests/e2e/cjs/index.test.js @@ -315,12 +315,13 @@ describe('IO', async () => { assert(registrationFees); assert.equal(Object.keys(registrationFees).length, 51); for (const nameLength of Object.keys(registrationFees)) { - assert(registrationFees[nameLength]['1']); - assert(registrationFees[nameLength]['2']); - assert(registrationFees[nameLength]['3']); - assert(registrationFees[nameLength]['4']); - assert(registrationFees[nameLength]['5']); - assert(registrationFees[nameLength]['permabuy']); + // assert lease is length of 5 + assert(registrationFees[nameLength]['lease']['1'] > 0); + assert(registrationFees[nameLength]['lease']['2'] > 0); + assert(registrationFees[nameLength]['lease']['3'] > 0); + assert(registrationFees[nameLength]['lease']['4'] > 0); + assert(registrationFees[nameLength]['lease']['5'] > 0); + assert(registrationFees[nameLength]['permabuy'] > 0); } }); it('should be able to create IOWriteable with valid signers', async () => { diff --git a/tests/e2e/esm/index.test.js b/tests/e2e/esm/index.test.js index 92f7a68b..1007b1a1 100644 --- a/tests/e2e/esm/index.test.js +++ b/tests/e2e/esm/index.test.js @@ -318,12 +318,13 @@ describe('IO', async () => { assert(registrationFees); assert.equal(Object.keys(registrationFees).length, 51); for (const nameLength of Object.keys(registrationFees)) { - assert(registrationFees[nameLength]['1']); - assert(registrationFees[nameLength]['2']); - assert(registrationFees[nameLength]['3']); - assert(registrationFees[nameLength]['4']); - assert(registrationFees[nameLength]['5']); - assert(registrationFees[nameLength]['permabuy']); + // assert lease is length of 5 + assert(registrationFees[nameLength]['lease']['1'] > 0); + assert(registrationFees[nameLength]['lease']['2'] > 0); + assert(registrationFees[nameLength]['lease']['3'] > 0); + assert(registrationFees[nameLength]['lease']['4'] > 0); + assert(registrationFees[nameLength]['lease']['5'] > 0); + assert(registrationFees[nameLength]['permabuy'] > 0); } }); diff --git a/tests/e2e/web/src/App.test.tsx b/tests/e2e/web/src/App.test.tsx index 3a36b143..241211bd 100644 --- a/tests/e2e/web/src/App.test.tsx +++ b/tests/e2e/web/src/App.test.tsx @@ -52,21 +52,4 @@ describe('ESM browser validation', () => { const result = screen.getByTestId('load-registry-result'); expect(result).toHaveTextContent('true'); }); - - it('should retrieve registration fees', async () => { - await act(async () => render()); - - await waitFor( - () => { - screen.getByTestId('load-registration-fees-result'); - }, - { - interval: 5_000, - timeout: 60_000, - }, - ); - - const result = screen.getByTestId('load-registration-fees-result'); - expect(result).toHaveTextContent('true'); - }); }); From 86984d90d4724eb5e872aafb6c4d375a411c7c43 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 25 Sep 2024 20:10:49 +0000 Subject: [PATCH 03/26] chore(release): 2.3.0-alpha.1 [skip ci] # [2.3.0-alpha.1](https://github.com/ar-io/ar-io-sdk/compare/v2.2.3...v2.3.0-alpha.1) (2024-09-25) ### Bug Fixes * **types:** update type and tests ([877b03f](https://github.com/ar-io/ar-io-sdk/commit/877b03f4124894cafbd0bc60b9d55b8803365cec)) ### Features * **io:** add api for querying get registration fees handler to AoIORead class ([7b3909f](https://github.com/ar-io/ar-io-sdk/commit/7b3909fb9def0e864dc59d87d1d78c9718feb830)) --- CHANGELOG.md | 12 ++++++++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ad656f9..ac685e3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# [2.3.0-alpha.1](https://github.com/ar-io/ar-io-sdk/compare/v2.2.3...v2.3.0-alpha.1) (2024-09-25) + + +### Bug Fixes + +* **types:** update type and tests ([877b03f](https://github.com/ar-io/ar-io-sdk/commit/877b03f4124894cafbd0bc60b9d55b8803365cec)) + + +### Features + +* **io:** add api for querying get registration fees handler to AoIORead class ([7b3909f](https://github.com/ar-io/ar-io-sdk/commit/7b3909fb9def0e864dc59d87d1d78c9718feb830)) + ## [2.2.3](https://github.com/ar-io/ar-io-sdk/compare/v2.2.2...v2.2.3) (2024-09-25) diff --git a/package.json b/package.json index cc1b6140..fb51fa16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.2.3", + "version": "2.3.0-alpha.1", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/version.ts b/src/version.ts index da8d0a18..8f2d27cf 100644 --- a/src/version.ts +++ b/src/version.ts @@ -16,4 +16,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.2.3'; +export const version = '2.3.0-alpha.1'; From 3edd57a19d716321abe3eb83f0300d38bcb57b79 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 26 Sep 2024 21:24:34 +0000 Subject: [PATCH 04/26] chore(release): 2.3.0-alpha.2 [skip ci] # [2.3.0-alpha.2](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.1...v2.3.0-alpha.2) (2024-09-26) ### Bug Fixes * **ant:** allow sending tags on ant write interactions ([99c24f8](https://github.com/ar-io/ar-io-sdk/commit/99c24f85e7e5829fb009f23702fa25243cf603da)) * **main:** merge main back to alpha, release hotfixes on alpha ([9299427](https://github.com/ar-io/ar-io-sdk/commit/929942755b09204e4d142e673b82f6400b8fe596)) * **types:** update getInfo types on IO ([7a0d20d](https://github.com/ar-io/ar-io-sdk/commit/7a0d20da45373ef370617db9dc07e7bf54feab4f)) --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a8bc123..02a7dbc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# [2.3.0-alpha.2](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.1...v2.3.0-alpha.2) (2024-09-26) + + +### Bug Fixes + +* **ant:** allow sending tags on ant write interactions ([99c24f8](https://github.com/ar-io/ar-io-sdk/commit/99c24f85e7e5829fb009f23702fa25243cf603da)) +* **main:** merge main back to alpha, release hotfixes on alpha ([9299427](https://github.com/ar-io/ar-io-sdk/commit/929942755b09204e4d142e673b82f6400b8fe596)) +* **types:** update getInfo types on IO ([7a0d20d](https://github.com/ar-io/ar-io-sdk/commit/7a0d20da45373ef370617db9dc07e7bf54feab4f)) + # [2.3.0-alpha.1](https://github.com/ar-io/ar-io-sdk/compare/v2.2.3...v2.3.0-alpha.1) (2024-09-25) ### Features diff --git a/package.json b/package.json index fb51fa16..baa4a9af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.3.0-alpha.1", + "version": "2.3.0-alpha.2", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/version.ts b/src/version.ts index 8f2d27cf..f75e8a57 100644 --- a/src/version.ts +++ b/src/version.ts @@ -16,4 +16,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.3.0-alpha.1'; +export const version = '2.3.0-alpha.2'; From 45022eb58e29122613011c2546c2365351c61995 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Thu, 26 Sep 2024 15:26:14 -0600 Subject: [PATCH 05/26] chore(docs): update CHANGELOG --- CHANGELOG.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02a7dbc7..c8f6fcb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,5 @@ # [2.3.0-alpha.2](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.1...v2.3.0-alpha.2) (2024-09-26) - -### Bug Fixes - -* **ant:** allow sending tags on ant write interactions ([99c24f8](https://github.com/ar-io/ar-io-sdk/commit/99c24f85e7e5829fb009f23702fa25243cf603da)) -* **main:** merge main back to alpha, release hotfixes on alpha ([9299427](https://github.com/ar-io/ar-io-sdk/commit/929942755b09204e4d142e673b82f6400b8fe596)) -* **types:** update getInfo types on IO ([7a0d20d](https://github.com/ar-io/ar-io-sdk/commit/7a0d20da45373ef370617db9dc07e7bf54feab4f)) - -# [2.3.0-alpha.1](https://github.com/ar-io/ar-io-sdk/compare/v2.2.3...v2.3.0-alpha.1) (2024-09-25) - ### Features * **io:** add api for querying get registration fees handler to AoIORead class ([7b3909f](https://github.com/ar-io/ar-io-sdk/commit/7b3909fb9def0e864dc59d87d1d78c9718feb830)) @@ -17,6 +8,8 @@ ## [2.2.5](https://github.com/ar-io/ar-io-sdk/compare/v2.2.4...v2.2.5) (2024-09-26) +### Bug Fixes + * **ant:** allow sending tags on ant write interactions ([99c24f8](https://github.com/ar-io/ar-io-sdk/commit/99c24f85e7e5829fb009f23702fa25243cf603da)) ## [2.2.4](https://github.com/ar-io/ar-io-sdk/compare/v2.2.3...v2.2.4) (2024-09-26) From b1fac7505484bf62fde044ca0c6c9895b3678859 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Thu, 26 Sep 2024 16:23:49 -0600 Subject: [PATCH 06/26] fix(types): remove restricted type This makes the type frustrating to use when using something computed like `name.length` --- src/io.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/io.ts b/src/io.ts index 9e817b73..92abbe48 100644 --- a/src/io.ts +++ b/src/io.ts @@ -66,16 +66,10 @@ export type EpochInput = // AO/IO Contract export type AoBalances = Record; -const nameLengthArray = [ - 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -] as const; -const leaseLengthArray = [1, 2, 3, 4, 5] as const; export type AoRegistrationFees = Record< - (typeof nameLengthArray)[number], + number, { - lease: Record<(typeof leaseLengthArray)[number], number>; + lease: Record; permabuy: number; } >; From 3bdb3a6e8c30fc55780b716ea9a05619b19bfcee Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Thu, 26 Sep 2024 16:30:30 -0600 Subject: [PATCH 07/26] fix(types): fix types on ant --- src/io.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/io.ts b/src/io.ts index 92abbe48..4b4c8cb7 100644 --- a/src/io.ts +++ b/src/io.ts @@ -472,7 +472,10 @@ export interface AoANTRead { } export interface AoANTWrite extends AoANTRead { - transfer({ target }: { target: WalletAddress }): Promise; + transfer( + { target }: { target: WalletAddress }, + options?: WriteOptions, + ): Promise; addController( { controller, @@ -499,14 +502,20 @@ export interface AoANTWrite extends AoANTRead { transactionId: string; ttlSeconds: number; }, - options, + options?: WriteOptions, ): Promise; removeRecord( { undername }: { undername: string }, - options, + options?: WriteOptions, + ): Promise; + setTicker( + { ticker }: { ticker: string }, + options?: WriteOptions, + ): Promise; + setName( + { name }: { name: string }, + options?: WriteOptions, ): Promise; - setTicker({ ticker }, options): Promise; - setName({ name }, options): Promise; } export interface AoANTRegistryRead { From 34b831f7ad399b25ebc92f09e04c2d99ee10ac1c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 26 Sep 2024 22:33:40 +0000 Subject: [PATCH 08/26] chore(release): 2.3.0-alpha.3 [skip ci] # [2.3.0-alpha.3](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.2...v2.3.0-alpha.3) (2024-09-26) ### Bug Fixes * **types:** fix types on ant ([3bdb3a6](https://github.com/ar-io/ar-io-sdk/commit/3bdb3a6e8c30fc55780b716ea9a05619b19bfcee)) * **types:** remove restricted type ([b1fac75](https://github.com/ar-io/ar-io-sdk/commit/b1fac7505484bf62fde044ca0c6c9895b3678859)) --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8f6fcb9..1812d88e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# [2.3.0-alpha.3](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.2...v2.3.0-alpha.3) (2024-09-26) + + +### Bug Fixes + +* **types:** fix types on ant ([3bdb3a6](https://github.com/ar-io/ar-io-sdk/commit/3bdb3a6e8c30fc55780b716ea9a05619b19bfcee)) +* **types:** remove restricted type ([b1fac75](https://github.com/ar-io/ar-io-sdk/commit/b1fac7505484bf62fde044ca0c6c9895b3678859)) + # [2.3.0-alpha.2](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.1...v2.3.0-alpha.2) (2024-09-26) ### Features diff --git a/package.json b/package.json index baa4a9af..4b89a36f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.3.0-alpha.2", + "version": "2.3.0-alpha.3", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/version.ts b/src/version.ts index f75e8a57..54e904f0 100644 --- a/src/version.ts +++ b/src/version.ts @@ -16,4 +16,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.3.0-alpha.2'; +export const version = '2.3.0-alpha.3'; From 6e0f0ba9ac5603cbb09daeb5dfec9d67ef862ea9 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 26 Sep 2024 17:07:00 -0600 Subject: [PATCH 09/26] chore(release): 2.3.0-alpha.3 [skip ci] # [2.3.0-alpha.3](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.2...v2.3.0-alpha.3) (2024-09-26) ### Bug Fixes * **types:** fix types on ant ([3bdb3a6](https://github.com/ar-io/ar-io-sdk/commit/3bdb3a6e8c30fc55780b716ea9a05619b19bfcee)) * **types:** remove restricted type ([b1fac75](https://github.com/ar-io/ar-io-sdk/commit/b1fac7505484bf62fde044ca0c6c9895b3678859)) --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1812d88e..361bd14a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # [2.3.0-alpha.3](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.2...v2.3.0-alpha.3) (2024-09-26) +### Bug Fixes + +* **types:** fix types on ant ([3bdb3a6](https://github.com/ar-io/ar-io-sdk/commit/3bdb3a6e8c30fc55780b716ea9a05619b19bfcee)) +* **types:** remove restricted type ([b1fac75](https://github.com/ar-io/ar-io-sdk/commit/b1fac7505484bf62fde044ca0c6c9895b3678859)) + +# [2.3.0-alpha.3](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.2...v2.3.0-alpha.3) (2024-09-26) + + ### Bug Fixes * **types:** fix types on ant ([3bdb3a6](https://github.com/ar-io/ar-io-sdk/commit/3bdb3a6e8c30fc55780b716ea9a05619b19bfcee)) From 883ffb35549d8fe40963489d93a6423f534d29e8 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Thu, 26 Sep 2024 17:11:13 -0600 Subject: [PATCH 10/26] fix(types): update types From ee3cd2497a06b0d6ac1a705a62f4f0e6015b2acd Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 26 Sep 2024 23:13:57 +0000 Subject: [PATCH 11/26] chore(release): 2.3.0-alpha.4 [skip ci] # [2.3.0-alpha.4](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.3...v2.3.0-alpha.4) (2024-09-26) ### Bug Fixes * **types:** update types ([883ffb3](https://github.com/ar-io/ar-io-sdk/commit/883ffb35549d8fe40963489d93a6423f534d29e8)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 361bd14a..50e6ac2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.3.0-alpha.4](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.3...v2.3.0-alpha.4) (2024-09-26) + + +### Bug Fixes + +* **types:** update types ([883ffb3](https://github.com/ar-io/ar-io-sdk/commit/883ffb35549d8fe40963489d93a6423f534d29e8)) + # [2.3.0-alpha.3](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.2...v2.3.0-alpha.3) (2024-09-26) diff --git a/package.json b/package.json index 4b89a36f..38b0a8d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.3.0-alpha.3", + "version": "2.3.0-alpha.4", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/version.ts b/src/version.ts index 54e904f0..e6da03b3 100644 --- a/src/version.ts +++ b/src/version.ts @@ -16,4 +16,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.3.0-alpha.3'; +export const version = '2.3.0-alpha.4'; From 9c13dd37b5feec69cd0a5f7dba64f85b5285888b Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Tue, 1 Oct 2024 07:29:30 -0600 Subject: [PATCH 12/26] fix(luaID): update lua id to latest for ant source code --- src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index d5c8cc1b..e41a63c0 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -40,6 +40,6 @@ export const IO_TESTNET_PROCESS_ID = export const ANT_REGISTRY_ID = 'i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc'; export const MIO_PER_IO = 1_000_000; export const AOS_MODULE_ID = 'cbn0KKrBZH7hdNkNokuXLtGryrWM--PjSTBqIzw9Kkk'; -export const ANT_LUA_ID = 'zeglqubvIKvBEZaxAUuenLGGtQ1pJp9LZjd5hDe0-J0'; +export const ANT_LUA_ID = 'pOh2yupSaQCrLI_-ah8tVTiusUdVNTxxeWTQQHNdf30'; export const DEFAULT_SCHEDULER_ID = '_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA'; From e413e24200b1cdd9f88ee0a0f287616ca23bf4f8 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 1 Oct 2024 13:41:57 +0000 Subject: [PATCH 13/26] chore(release): 2.3.0-alpha.5 [skip ci] # [2.3.0-alpha.5](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.4...v2.3.0-alpha.5) (2024-10-01) ### Bug Fixes * **luaID:** update lua id to latest for ant source code ([9c13dd3](https://github.com/ar-io/ar-io-sdk/commit/9c13dd37b5feec69cd0a5f7dba64f85b5285888b)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50e6ac2a..a1af503d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.3.0-alpha.5](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.4...v2.3.0-alpha.5) (2024-10-01) + + +### Bug Fixes + +* **luaID:** update lua id to latest for ant source code ([9c13dd3](https://github.com/ar-io/ar-io-sdk/commit/9c13dd37b5feec69cd0a5f7dba64f85b5285888b)) + # [2.3.0-alpha.4](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.3...v2.3.0-alpha.4) (2024-09-26) diff --git a/package.json b/package.json index 38b0a8d6..06f483b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.3.0-alpha.4", + "version": "2.3.0-alpha.5", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/version.ts b/src/version.ts index e6da03b3..dd3ffc48 100644 --- a/src/version.ts +++ b/src/version.ts @@ -16,4 +16,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.3.0-alpha.4'; +export const version = '2.3.0-alpha.5'; From 8949f04889741cc2c895bacea4ef3831c9c2ac15 Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Tue, 1 Oct 2024 14:58:03 -0600 Subject: [PATCH 14/26] fix(types): add source code tx id to ant state type --- src/common/ant.ts | 17 +++-------------- src/io.ts | 21 ++++++++++++++------- src/utils/ao.ts | 1 + tests/unit/ant.test.ts | 1 + 4 files changed, 19 insertions(+), 21 deletions(-) diff --git a/src/common/ant.ts b/src/common/ant.ts index 7b6602c9..74f97056 100644 --- a/src/common/ant.ts +++ b/src/common/ant.ts @@ -14,6 +14,7 @@ * limitations under the License. */ import { + AoANTInfo, AoANTRead, AoANTRecord, AoANTState, @@ -78,21 +79,9 @@ export class AoANTReadable implements AoANTRead { return res; } - async getInfo(): Promise<{ - Name: string; - Ticker: string; - Denomination: number; - Owner: string; - ['Source-Code-TX-ID']?: string; - }> { + async getInfo(): Promise { const tags = [{ name: 'Action', value: 'Info' }]; - const info = await this.process.read<{ - Name: string; - Ticker: string; - Denomination: number; - Owner: string; - ['Source-Code-TX-ID']?: string; - }>({ + const info = await this.process.read({ tags, }); return info; diff --git a/src/io.ts b/src/io.ts index 4b4c8cb7..20ffdc6a 100644 --- a/src/io.ts +++ b/src/io.ts @@ -247,6 +247,19 @@ export type AoANTState = { Logo: string; TotalSupply: number; Initialized: boolean; + ['Source-Code-TX-ID']: string; +}; + +export type AoANTInfo = { + Name: string; + Owner: string; + Handlers: string[]; + ['Source-Code-TX-ID']: string; + // token related + Ticker: string; + ['Total-Supply']: string; + Logo: string; + Denomination: string; }; export type AoANTRecord = { @@ -454,13 +467,7 @@ export interface AoIOWrite extends AoIORead { export interface AoANTRead { getState(): Promise; - getInfo(): Promise<{ - Name: string; - Ticker: string; - Denomination: number; - Owner: string; - ['Source-Code-TX-ID']?: string; - }>; + getInfo(): Promise; getRecord({ undername }): Promise; getRecords(): Promise>; getOwner(): Promise; diff --git a/src/utils/ao.ts b/src/utils/ao.ts index 2883353d..289854fd 100644 --- a/src/utils/ao.ts +++ b/src/utils/ao.ts @@ -231,6 +231,7 @@ export const AntStateSchema = z .passthrough(), ), Balances: z.record(z.string(), z.number()), + ['Source-Code-TX-ID']: z.string(), }) .passthrough(); diff --git a/tests/unit/ant.test.ts b/tests/unit/ant.test.ts index 06b5c6a7..97e6ba43 100644 --- a/tests/unit/ant.test.ts +++ b/tests/unit/ant.test.ts @@ -21,6 +21,7 @@ const testAoANTState = { Logo: ''.padEnd(43, '1'), TotalSupply: 0, Initialized: true, + ['Source-Code-TX-ID']: ''.padEnd(43, '1'), }; describe('ANT', () => { it('should validate accurate ANT state', () => { From 799a310730f5ecc7781c9d8dd797f04d5eb8f73b Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 2 Oct 2024 16:25:33 +0000 Subject: [PATCH 15/26] chore(release): 2.3.0-alpha.6 [skip ci] # [2.3.0-alpha.6](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.5...v2.3.0-alpha.6) (2024-10-02) ### Bug Fixes * **types:** add source code tx id to ant state type ([8949f04](https://github.com/ar-io/ar-io-sdk/commit/8949f04889741cc2c895bacea4ef3831c9c2ac15)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1af503d..64c583b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.3.0-alpha.6](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.5...v2.3.0-alpha.6) (2024-10-02) + + +### Bug Fixes + +* **types:** add source code tx id to ant state type ([8949f04](https://github.com/ar-io/ar-io-sdk/commit/8949f04889741cc2c895bacea4ef3831c9c2ac15)) + # [2.3.0-alpha.5](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.4...v2.3.0-alpha.5) (2024-10-01) diff --git a/package.json b/package.json index 06f483b1..12974dc4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.3.0-alpha.5", + "version": "2.3.0-alpha.6", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/version.ts b/src/version.ts index dd3ffc48..786f37ba 100644 --- a/src/version.ts +++ b/src/version.ts @@ -16,4 +16,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.3.0-alpha.5'; +export const version = '2.3.0-alpha.6'; From a7b495334f5d3962807de9f630518a270a6e35a6 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Wed, 2 Oct 2024 14:21:44 -0500 Subject: [PATCH 16/26] fix(ao): check messages is not empty to avoid `.length` error when evaluating outputs of `dryrun` --- src/common/contracts/ao-process.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/contracts/ao-process.ts b/src/common/contracts/ao-process.ts index a36a2632..2de06a03 100644 --- a/src/common/contracts/ao-process.ts +++ b/src/common/contracts/ao-process.ts @@ -60,7 +60,7 @@ export class AOProcess implements AOContract { tags, }); - if (result.Messages.length === 0) { + if (result.Messages === undefined || result.Messages.length === 0) { throw new Error( `Process ${this.processId} does not support provided action.`, ); From 1130e83a9d3b3c02847f47c7641d4bdfea7cc9ab Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Wed, 2 Oct 2024 14:22:19 -0500 Subject: [PATCH 17/26] chore(docs): prep CHANGELOG for release --- CHANGELOG.md | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64c583b6..7b03a652 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,47 +1,3 @@ -# [2.3.0-alpha.6](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.5...v2.3.0-alpha.6) (2024-10-02) - - -### Bug Fixes - -* **types:** add source code tx id to ant state type ([8949f04](https://github.com/ar-io/ar-io-sdk/commit/8949f04889741cc2c895bacea4ef3831c9c2ac15)) - -# [2.3.0-alpha.5](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.4...v2.3.0-alpha.5) (2024-10-01) - - -### Bug Fixes - -* **luaID:** update lua id to latest for ant source code ([9c13dd3](https://github.com/ar-io/ar-io-sdk/commit/9c13dd37b5feec69cd0a5f7dba64f85b5285888b)) - -# [2.3.0-alpha.4](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.3...v2.3.0-alpha.4) (2024-09-26) - - -### Bug Fixes - -* **types:** update types ([883ffb3](https://github.com/ar-io/ar-io-sdk/commit/883ffb35549d8fe40963489d93a6423f534d29e8)) - -# [2.3.0-alpha.3](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.2...v2.3.0-alpha.3) (2024-09-26) - - -### Bug Fixes - -* **types:** fix types on ant ([3bdb3a6](https://github.com/ar-io/ar-io-sdk/commit/3bdb3a6e8c30fc55780b716ea9a05619b19bfcee)) -* **types:** remove restricted type ([b1fac75](https://github.com/ar-io/ar-io-sdk/commit/b1fac7505484bf62fde044ca0c6c9895b3678859)) - -# [2.3.0-alpha.3](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.2...v2.3.0-alpha.3) (2024-09-26) - - -### Bug Fixes - -* **types:** fix types on ant ([3bdb3a6](https://github.com/ar-io/ar-io-sdk/commit/3bdb3a6e8c30fc55780b716ea9a05619b19bfcee)) -* **types:** remove restricted type ([b1fac75](https://github.com/ar-io/ar-io-sdk/commit/b1fac7505484bf62fde044ca0c6c9895b3678859)) - -# [2.3.0-alpha.2](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.1...v2.3.0-alpha.2) (2024-09-26) - -### Features - -* **io:** add api for querying get registration fees handler to AoIORead class ([7b3909f](https://github.com/ar-io/ar-io-sdk/commit/7b3909fb9def0e864dc59d87d1d78c9718feb830)) - - ## [2.2.5](https://github.com/ar-io/ar-io-sdk/compare/v2.2.4...v2.2.5) (2024-09-26) From b540326fe8b3331e59f6003e965221f66a568ab1 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 2 Oct 2024 19:24:54 +0000 Subject: [PATCH 18/26] chore(release): 2.3.0-alpha.7 [skip ci] # [2.3.0-alpha.7](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.6...v2.3.0-alpha.7) (2024-10-02) ### Bug Fixes * **ao:** check messages is not empty to avoid `.length` error when evaluating outputs of `dryrun` ([a7b4953](https://github.com/ar-io/ar-io-sdk/commit/a7b495334f5d3962807de9f630518a270a6e35a6)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b03a652..478f2d88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.3.0-alpha.7](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.6...v2.3.0-alpha.7) (2024-10-02) + + +### Bug Fixes + +* **ao:** check messages is not empty to avoid `.length` error when evaluating outputs of `dryrun` ([a7b4953](https://github.com/ar-io/ar-io-sdk/commit/a7b495334f5d3962807de9f630518a270a6e35a6)) + ## [2.2.5](https://github.com/ar-io/ar-io-sdk/compare/v2.2.4...v2.2.5) (2024-09-26) diff --git a/package.json b/package.json index 12974dc4..708acfcb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.3.0-alpha.6", + "version": "2.3.0-alpha.7", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/version.ts b/src/version.ts index 786f37ba..d02c21dc 100644 --- a/src/version.ts +++ b/src/version.ts @@ -16,4 +16,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.3.0-alpha.6'; +export const version = '2.3.0-alpha.7'; From a3827dcd83f35e9fc9fbde26e6dbb38f88ab9f36 Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Thu, 3 Oct 2024 21:42:13 -0600 Subject: [PATCH 19/26] feat(delegates): add cancel delegate withdrawal method --- src/common/io.ts | 16 ++++++++++++++++ src/io.ts | 7 +++++++ 2 files changed, 23 insertions(+) diff --git a/src/common/io.ts b/src/common/io.ts index 50a1e5b5..4193f711 100644 --- a/src/common/io.ts +++ b/src/common/io.ts @@ -960,4 +960,20 @@ export class IOWriteable extends IOReadable implements AoIOWrite { ], }); } + + async cancelDelegateWithdrawal( + params: { address: string; vaultId: string }, + options?: WriteOptions | undefined, + ): Promise { + const { tags = [] } = options || {}; + return this.process.send({ + signer: this.signer, + tags: [ + ...tags, + { name: 'Action', value: 'Cancel-Delegate-Withdrawal' }, + { name: 'Address', value: params.address }, + { name: 'Vault-Id', value: params.vaultId }, + ], + }); + } } diff --git a/src/io.ts b/src/io.ts index 20ffdc6a..a1302dcb 100644 --- a/src/io.ts +++ b/src/io.ts @@ -463,6 +463,13 @@ export interface AoIOWrite extends AoIORead { }, options?: WriteOptions, ): Promise; + cancelDelegateWithdrawal( + params: { + address: string; + vaultId: string; + }, + options?: WriteOptions, + ): Promise; } export interface AoANTRead { From ae93d713469c48f27a90b9b7b5367c3e09772a2f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 4 Oct 2024 16:32:01 +0000 Subject: [PATCH 20/26] chore(release): 2.3.0-alpha.8 [skip ci] # [2.3.0-alpha.8](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.7...v2.3.0-alpha.8) (2024-10-04) ### Features * **delegates:** add cancel delegate withdrawal method ([a3827dc](https://github.com/ar-io/ar-io-sdk/commit/a3827dcd83f35e9fc9fbde26e6dbb38f88ab9f36)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 478f2d88..ad6ee16a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.3.0-alpha.8](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.7...v2.3.0-alpha.8) (2024-10-04) + + +### Features + +* **delegates:** add cancel delegate withdrawal method ([a3827dc](https://github.com/ar-io/ar-io-sdk/commit/a3827dcd83f35e9fc9fbde26e6dbb38f88ab9f36)) + # [2.3.0-alpha.7](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.6...v2.3.0-alpha.7) (2024-10-02) diff --git a/package.json b/package.json index 708acfcb..0d079e21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.3.0-alpha.7", + "version": "2.3.0-alpha.8", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/version.ts b/src/version.ts index d02c21dc..b796d691 100644 --- a/src/version.ts +++ b/src/version.ts @@ -16,4 +16,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.3.0-alpha.7'; +export const version = '2.3.0-alpha.8'; From 08ce71a2cfed30b09138194d8841ff1b1adccde4 Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Thu, 3 Oct 2024 18:48:35 -0600 Subject: [PATCH 21/26] fix(logs): enable logging in spawn and evolve utils --- src/utils/ao.ts | 55 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 48 insertions(+), 7 deletions(-) diff --git a/src/utils/ao.ts b/src/utils/ao.ts index 289854fd..b5b6cfc7 100644 --- a/src/utils/ao.ts +++ b/src/utils/ao.ts @@ -15,6 +15,7 @@ */ import { createData } from '@dha-team/arbundles'; import { connect, createDataItemSigner } from '@permaweb/aoconnect'; +import Arweave from 'arweave'; import { z } from 'zod'; import { defaultArweave } from '../common/arweave.js'; @@ -43,6 +44,8 @@ export async function spawnANT({ state, stateContractTxId, antRegistryId = ANT_REGISTRY_ID, + logger = Logger.default, + arweave = defaultArweave, }: { signer: AoSigner; module?: string; @@ -59,16 +62,19 @@ export async function spawnANT({ }; stateContractTxId?: string; antRegistryId?: string; + logger?: Logger; + arweave?: Arweave; }): Promise { const registryClient = ANTRegistry.init({ process: new AOProcess({ processId: antRegistryId, ao, + logger, }), signer: signer, }); //TODO: cache locally and only fetch if not cached - const luaString = (await defaultArweave.transactions.getData(luaCodeTxId, { + const luaString = (await arweave.transactions.getData(luaCodeTxId, { decode: true, string: true, })) as string; @@ -88,9 +94,10 @@ export async function spawnANT({ const aosClient = new AOProcess({ processId, ao, + logger, }); - await aosClient.send({ + const { id: evalId } = await aosClient.send({ tags: [ { name: 'Action', value: 'Eval' }, { name: 'App-Name', value: 'ArNS-ANT' }, @@ -100,8 +107,16 @@ export async function spawnANT({ signer, }); + logger.info(`Spawned ANT`, { + processId, + module, + scheduler, + luaCodeTxId, + evalId, + }); + if (state) { - await aosClient.send({ + const { id: initializeMsgId } = await aosClient.send({ tags: [ { name: 'Action', value: 'Initialize-State' }, ...(stateContractTxId !== undefined @@ -111,9 +126,25 @@ export async function spawnANT({ data: JSON.stringify(state), signer, }); + logger.info(`Initialized ANT`, { + processId, + module, + scheduler, + initializeMsgId, + }); } - await registryClient.register({ processId }); + const { id: antRegistrationMsgId } = await registryClient.register({ + processId, + }); + + logger.info(`Registered ANT to ANT Registry`, { + processId, + module, + scheduler, + antRegistrationMsgId, + antRegistryId, + }); return processId; } @@ -123,24 +154,29 @@ export async function evolveANT({ processId, luaCodeTxId = ANT_LUA_ID, ao = connect(), + logger = Logger.default, + arweave = defaultArweave, }: { signer: AoSigner; processId: string; luaCodeTxId?: string; ao?: AoClient; + logger?: Logger; + arweave?: Arweave; }): Promise { const aosClient = new AOProcess({ processId, ao, + logger, }); //TODO: cache locally and only fetch if not cached - const luaString = (await defaultArweave.transactions.getData(luaCodeTxId, { + const luaString = (await arweave.transactions.getData(luaCodeTxId, { decode: true, string: true, })) as string; - const { id } = await aosClient.send({ + const { id: evolveMsgId } = await aosClient.send({ tags: [ { name: 'Action', value: 'Eval' }, { name: 'App-Name', value: 'ArNS-ANT' }, @@ -149,8 +185,13 @@ export async function evolveANT({ data: luaString, signer, }); + logger.info(`Evolved ANT`, { + processId, + luaCodeTxId, + evalMsgId: evolveMsgId, + }); - return id; + return evolveMsgId; } export function isAoSigner(value: unknown): value is AoSigner { From 37199656b52fc157dd3d3ae71c7596ecfa9348c1 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 4 Oct 2024 16:46:13 +0000 Subject: [PATCH 22/26] chore(release): 2.3.0-alpha.9 [skip ci] # [2.3.0-alpha.9](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.8...v2.3.0-alpha.9) (2024-10-04) ### Bug Fixes * **logs:** enable logging in spawn and evolve utils ([08ce71a](https://github.com/ar-io/ar-io-sdk/commit/08ce71a2cfed30b09138194d8841ff1b1adccde4)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad6ee16a..d7db7231 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.3.0-alpha.9](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.8...v2.3.0-alpha.9) (2024-10-04) + + +### Bug Fixes + +* **logs:** enable logging in spawn and evolve utils ([08ce71a](https://github.com/ar-io/ar-io-sdk/commit/08ce71a2cfed30b09138194d8841ff1b1adccde4)) + # [2.3.0-alpha.8](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.7...v2.3.0-alpha.8) (2024-10-04) diff --git a/package.json b/package.json index 0d079e21..54c76fcd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.3.0-alpha.8", + "version": "2.3.0-alpha.9", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/version.ts b/src/version.ts index b796d691..aea43b23 100644 --- a/src/version.ts +++ b/src/version.ts @@ -16,4 +16,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.3.0-alpha.8'; +export const version = '2.3.0-alpha.9'; From 56df62cca57da5c2e31de9f7c24e32e6f1f9efa4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:00:47 +0000 Subject: [PATCH 23/26] chore(deps): bump the npm_and_yarn group across 2 directories with 1 update Bumps the npm_and_yarn group with 1 update in the /examples/vite directory: [rollup](https://github.com/rollup/rollup). Bumps the npm_and_yarn group with 1 update in the /tests/e2e/web directory: [rollup](https://github.com/rollup/rollup). Updates `rollup` from 4.17.2 to 4.22.4 - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.17.2...v4.22.4) Updates `rollup` from 4.18.0 to 4.22.4 - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.17.2...v4.22.4) --- updated-dependencies: - dependency-name: rollup dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: rollup dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] --- examples/vite/yarn.lock | 196 ++++++++++++++++++++-------------------- tests/e2e/web/yarn.lock | 196 ++++++++++++++++++++-------------------- 2 files changed, 196 insertions(+), 196 deletions(-) diff --git a/examples/vite/yarn.lock b/examples/vite/yarn.lock index 60215f00..8b1eaf2a 100644 --- a/examples/vite/yarn.lock +++ b/examples/vite/yarn.lock @@ -784,85 +784,85 @@ estree-walker "^2.0.2" picomatch "^2.3.1" -"@rollup/rollup-android-arm-eabi@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.17.2.tgz#1a32112822660ee104c5dd3a7c595e26100d4c2d" - integrity sha512-NM0jFxY8bB8QLkoKxIQeObCaDlJKewVlIEkuyYKm5An1tdVZ966w2+MPQ2l8LBZLjR+SgyV+nRkTIunzOYBMLQ== - -"@rollup/rollup-android-arm64@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.17.2.tgz#5aeef206d65ff4db423f3a93f71af91b28662c5b" - integrity sha512-yeX/Usk7daNIVwkq2uGoq2BYJKZY1JfyLTaHO/jaiSwi/lsf8fTFoQW/n6IdAsx5tx+iotu2zCJwz8MxI6D/Bw== - -"@rollup/rollup-darwin-arm64@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.17.2.tgz#6b66aaf003c70454c292cd5f0236ebdc6ffbdf1a" - integrity sha512-kcMLpE6uCwls023+kknm71ug7MZOrtXo+y5p/tsg6jltpDtgQY1Eq5sGfHcQfb+lfuKwhBmEURDga9N0ol4YPw== - -"@rollup/rollup-darwin-x64@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.17.2.tgz#f64fc51ed12b19f883131ccbcea59fc68cbd6c0b" - integrity sha512-AtKwD0VEx0zWkL0ZjixEkp5tbNLzX+FCqGG1SvOu993HnSz4qDI6S4kGzubrEJAljpVkhRSlg5bzpV//E6ysTQ== - -"@rollup/rollup-linux-arm-gnueabihf@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.17.2.tgz#1a7641111be67c10111f7122d1e375d1226cbf14" - integrity sha512-3reX2fUHqN7sffBNqmEyMQVj/CKhIHZd4y631duy0hZqI8Qoqf6lTtmAKvJFYa6bhU95B1D0WgzHkmTg33In0A== - -"@rollup/rollup-linux-arm-musleabihf@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.17.2.tgz#c93fd632923e0fee25aacd2ae414288d0b7455bb" - integrity sha512-uSqpsp91mheRgw96xtyAGP9FW5ChctTFEoXP0r5FAzj/3ZRv3Uxjtc7taRQSaQM/q85KEKjKsZuiZM3GyUivRg== - -"@rollup/rollup-linux-arm64-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.17.2.tgz#fa531425dd21d058a630947527b4612d9d0b4a4a" - integrity sha512-EMMPHkiCRtE8Wdk3Qhtciq6BndLtstqZIroHiiGzB3C5LDJmIZcSzVtLRbwuXuUft1Cnv+9fxuDtDxz3k3EW2A== - -"@rollup/rollup-linux-arm64-musl@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.17.2.tgz#8acc16f095ceea5854caf7b07e73f7d1802ac5af" - integrity sha512-NMPylUUZ1i0z/xJUIx6VUhISZDRT+uTWpBcjdv0/zkp7b/bQDF+NfnfdzuTiB1G6HTodgoFa93hp0O1xl+/UbA== - -"@rollup/rollup-linux-powerpc64le-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.17.2.tgz#94e69a8499b5cf368911b83a44bb230782aeb571" - integrity sha512-T19My13y8uYXPw/L/k0JYaX1fJKFT/PWdXiHr8mTbXWxjVF1t+8Xl31DgBBvEKclw+1b00Chg0hxE2O7bTG7GQ== - -"@rollup/rollup-linux-riscv64-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.17.2.tgz#7ef1c781c7e59e85a6ce261cc95d7f1e0b56db0f" - integrity sha512-BOaNfthf3X3fOWAB+IJ9kxTgPmMqPPH5f5k2DcCsRrBIbWnaJCgX2ll77dV1TdSy9SaXTR5iDXRL8n7AnoP5cg== - -"@rollup/rollup-linux-s390x-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.17.2.tgz#f15775841c3232fca9b78cd25a7a0512c694b354" - integrity sha512-W0UP/x7bnn3xN2eYMql2T/+wpASLE5SjObXILTMPUBDB/Fg/FxC+gX4nvCfPBCbNhz51C+HcqQp2qQ4u25ok6g== - -"@rollup/rollup-linux-x64-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.17.2.tgz#b521d271798d037ad70c9f85dd97d25f8a52e811" - integrity sha512-Hy7pLwByUOuyaFC6mAr7m+oMC+V7qyifzs/nW2OJfC8H4hbCzOX07Ov0VFk/zP3kBsELWNFi7rJtgbKYsav9QQ== - -"@rollup/rollup-linux-x64-musl@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.17.2.tgz#9254019cc4baac35800991315d133cc9fd1bf385" - integrity sha512-h1+yTWeYbRdAyJ/jMiVw0l6fOOm/0D1vNLui9iPuqgRGnXA0u21gAqOyB5iHjlM9MMfNOm9RHCQ7zLIzT0x11Q== - -"@rollup/rollup-win32-arm64-msvc@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.17.2.tgz#27f65a89f6f52ee9426ec11e3571038e4671790f" - integrity sha512-tmdtXMfKAjy5+IQsVtDiCfqbynAQE/TQRpWdVataHmhMb9DCoJxp9vLcCBjEQWMiUYxO1QprH/HbY9ragCEFLA== - -"@rollup/rollup-win32-ia32-msvc@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.17.2.tgz#a2fbf8246ed0bb014f078ca34ae6b377a90cb411" - integrity sha512-7II/QCSTAHuE5vdZaQEwJq2ZACkBpQDOmQsE6D6XUbnBHW8IAhm4eTufL6msLJorzrHDFv3CF8oCA/hSIRuZeQ== - -"@rollup/rollup-win32-x64-msvc@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.17.2.tgz#5a2d08b81e8064b34242d5cc9973ef8dd1e60503" - integrity sha512-TGGO7v7qOq4CYmSBVEYpI1Y5xDuCEnbVC5Vth8mOsW0gDSzxNrVERPc790IGHsrT2dQSimgMr9Ub3Y1Jci5/8w== +"@rollup/rollup-android-arm-eabi@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.22.4.tgz#8b613b9725e8f9479d142970b106b6ae878610d5" + integrity sha512-Fxamp4aEZnfPOcGA8KSNEohV8hX7zVHOemC8jVBoBUHu5zpJK/Eu3uJwt6BMgy9fkvzxDaurgj96F/NiLukF2w== + +"@rollup/rollup-android-arm64@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.22.4.tgz#654ca1049189132ff602bfcf8df14c18da1f15fb" + integrity sha512-VXoK5UMrgECLYaMuGuVTOx5kcuap1Jm8g/M83RnCHBKOqvPPmROFJGQaZhGccnsFtfXQ3XYa4/jMCJvZnbJBdA== + +"@rollup/rollup-darwin-arm64@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.22.4.tgz#6d241d099d1518ef0c2205d96b3fa52e0fe1954b" + integrity sha512-xMM9ORBqu81jyMKCDP+SZDhnX2QEVQzTcC6G18KlTQEzWK8r/oNZtKuZaCcHhnsa6fEeOBionoyl5JsAbE/36Q== + +"@rollup/rollup-darwin-x64@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.22.4.tgz#42bd19d292a57ee11734c980c4650de26b457791" + integrity sha512-aJJyYKQwbHuhTUrjWjxEvGnNNBCnmpHDvrb8JFDbeSH3m2XdHcxDd3jthAzvmoI8w/kSjd2y0udT+4okADsZIw== + +"@rollup/rollup-linux-arm-gnueabihf@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.22.4.tgz#f23555ee3d8fe941c5c5fd458cd22b65eb1c2232" + integrity sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ== + +"@rollup/rollup-linux-arm-musleabihf@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.22.4.tgz#f3bbd1ae2420f5539d40ac1fde2b38da67779baa" + integrity sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg== + +"@rollup/rollup-linux-arm64-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.22.4.tgz#7abe900120113e08a1f90afb84c7c28774054d15" + integrity sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw== + +"@rollup/rollup-linux-arm64-musl@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.22.4.tgz#9e655285c8175cd44f57d6a1e8e5dedfbba1d820" + integrity sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA== + +"@rollup/rollup-linux-powerpc64le-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.22.4.tgz#9a79ae6c9e9d8fe83d49e2712ecf4302db5bef5e" + integrity sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg== + +"@rollup/rollup-linux-riscv64-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.22.4.tgz#67ac70eca4ace8e2942fabca95164e8874ab8128" + integrity sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA== + +"@rollup/rollup-linux-s390x-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.22.4.tgz#9f883a7440f51a22ed7f99e1d070bd84ea5005fc" + integrity sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q== + +"@rollup/rollup-linux-x64-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.22.4.tgz#70116ae6c577fe367f58559e2cffb5641a1dd9d0" + integrity sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg== + +"@rollup/rollup-linux-x64-musl@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.22.4.tgz#f473f88219feb07b0b98b53a7923be716d1d182f" + integrity sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g== + +"@rollup/rollup-win32-arm64-msvc@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.22.4.tgz#4349482d17f5d1c58604d1c8900540d676f420e0" + integrity sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw== + +"@rollup/rollup-win32-ia32-msvc@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.22.4.tgz#a6fc39a15db618040ec3c2a24c1e26cb5f4d7422" + integrity sha512-SiWG/1TuUdPvYmzmYnmd3IEifzR61Tragkbx9D3+R8mzQqDBz8v+BvZNDlkiTtI9T15KYZhP0ehn3Dld4n9J5g== + +"@rollup/rollup-win32-x64-msvc@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.22.4.tgz#3dd5d53e900df2a40841882c02e56f866c04d202" + integrity sha512-j8pPKp53/lq9lMXN57S8cFz0MynJk8OWNuUnXct/9KCpKU7DgU3bYMJhwWmcqC0UU29p8Lr0/7KEVcaM6bf47Q== "@sinclair/typebox@^0.27.8": version "0.27.8" @@ -4189,28 +4189,28 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: inherits "^2.0.1" rollup@^4.13.0: - version "4.17.2" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.17.2.tgz#26d1785d0144122277fdb20ab3a24729ae68301f" - integrity sha512-/9ClTJPByC0U4zNLowV1tMBe8yMEAxewtR3cUNX5BoEpGH3dQEWpJLr6CLp0fPdYRF/fzVOgvDb1zXuakwF5kQ== + version "4.22.4" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.22.4.tgz#4135a6446671cd2a2453e1ad42a45d5973ec3a0f" + integrity sha512-vD8HJ5raRcWOyymsR6Z3o6+RzfEPCnVLMFJ6vRslO1jt4LO6dUo5Qnpg7y4RkZFM2DMe3WUirkI5c16onjrc6A== dependencies: "@types/estree" "1.0.5" optionalDependencies: - "@rollup/rollup-android-arm-eabi" "4.17.2" - "@rollup/rollup-android-arm64" "4.17.2" - "@rollup/rollup-darwin-arm64" "4.17.2" - "@rollup/rollup-darwin-x64" "4.17.2" - "@rollup/rollup-linux-arm-gnueabihf" "4.17.2" - "@rollup/rollup-linux-arm-musleabihf" "4.17.2" - "@rollup/rollup-linux-arm64-gnu" "4.17.2" - "@rollup/rollup-linux-arm64-musl" "4.17.2" - "@rollup/rollup-linux-powerpc64le-gnu" "4.17.2" - "@rollup/rollup-linux-riscv64-gnu" "4.17.2" - "@rollup/rollup-linux-s390x-gnu" "4.17.2" - "@rollup/rollup-linux-x64-gnu" "4.17.2" - "@rollup/rollup-linux-x64-musl" "4.17.2" - "@rollup/rollup-win32-arm64-msvc" "4.17.2" - "@rollup/rollup-win32-ia32-msvc" "4.17.2" - "@rollup/rollup-win32-x64-msvc" "4.17.2" + "@rollup/rollup-android-arm-eabi" "4.22.4" + "@rollup/rollup-android-arm64" "4.22.4" + "@rollup/rollup-darwin-arm64" "4.22.4" + "@rollup/rollup-darwin-x64" "4.22.4" + "@rollup/rollup-linux-arm-gnueabihf" "4.22.4" + "@rollup/rollup-linux-arm-musleabihf" "4.22.4" + "@rollup/rollup-linux-arm64-gnu" "4.22.4" + "@rollup/rollup-linux-arm64-musl" "4.22.4" + "@rollup/rollup-linux-powerpc64le-gnu" "4.22.4" + "@rollup/rollup-linux-riscv64-gnu" "4.22.4" + "@rollup/rollup-linux-s390x-gnu" "4.22.4" + "@rollup/rollup-linux-x64-gnu" "4.22.4" + "@rollup/rollup-linux-x64-musl" "4.22.4" + "@rollup/rollup-win32-arm64-msvc" "4.22.4" + "@rollup/rollup-win32-ia32-msvc" "4.22.4" + "@rollup/rollup-win32-x64-msvc" "4.22.4" fsevents "~2.3.2" run-parallel-limit@^1.1.0: diff --git a/tests/e2e/web/yarn.lock b/tests/e2e/web/yarn.lock index ca06b00f..e3f08cb1 100644 --- a/tests/e2e/web/yarn.lock +++ b/tests/e2e/web/yarn.lock @@ -797,85 +797,85 @@ estree-walker "^2.0.2" picomatch "^2.3.1" -"@rollup/rollup-android-arm-eabi@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz#bbd0e616b2078cd2d68afc9824d1fadb2f2ffd27" - integrity sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ== - -"@rollup/rollup-android-arm64@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.0.tgz#97255ef6384c5f73f4800c0de91f5f6518e21203" - integrity sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA== - -"@rollup/rollup-darwin-arm64@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.0.tgz#b6dd74e117510dfe94541646067b0545b42ff096" - integrity sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w== - -"@rollup/rollup-darwin-x64@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.0.tgz#e07d76de1cec987673e7f3d48ccb8e106d42c05c" - integrity sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA== - -"@rollup/rollup-linux-arm-gnueabihf@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.0.tgz#9f1a6d218b560c9d75185af4b8bb42f9f24736b8" - integrity sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA== - -"@rollup/rollup-linux-arm-musleabihf@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.0.tgz#53618b92e6ffb642c7b620e6e528446511330549" - integrity sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A== - -"@rollup/rollup-linux-arm64-gnu@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.0.tgz#99a7ba5e719d4f053761a698f7b52291cefba577" - integrity sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw== - -"@rollup/rollup-linux-arm64-musl@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.0.tgz#f53db99a45d9bc00ce94db8a35efa7c3c144a58c" - integrity sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ== - -"@rollup/rollup-linux-powerpc64le-gnu@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.0.tgz#cbb0837408fe081ce3435cf3730e090febafc9bf" - integrity sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA== - -"@rollup/rollup-linux-riscv64-gnu@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.0.tgz#8ed09c1d1262ada4c38d791a28ae0fea28b80cc9" - integrity sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg== - -"@rollup/rollup-linux-s390x-gnu@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.0.tgz#938138d3c8e0c96f022252a28441dcfb17afd7ec" - integrity sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg== - -"@rollup/rollup-linux-x64-gnu@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.0.tgz#1a7481137a54740bee1ded4ae5752450f155d942" - integrity sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w== - -"@rollup/rollup-linux-x64-musl@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.0.tgz#f1186afc601ac4f4fc25fac4ca15ecbee3a1874d" - integrity sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg== - -"@rollup/rollup-win32-arm64-msvc@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.0.tgz#ed6603e93636a96203c6915be4117245c1bd2daf" - integrity sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA== - -"@rollup/rollup-win32-ia32-msvc@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.0.tgz#14e0b404b1c25ebe6157a15edb9c46959ba74c54" - integrity sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg== - -"@rollup/rollup-win32-x64-msvc@4.18.0": - version "4.18.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.0.tgz#5d694d345ce36b6ecf657349e03eb87297e68da4" - integrity sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g== +"@rollup/rollup-android-arm-eabi@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.22.4.tgz#8b613b9725e8f9479d142970b106b6ae878610d5" + integrity sha512-Fxamp4aEZnfPOcGA8KSNEohV8hX7zVHOemC8jVBoBUHu5zpJK/Eu3uJwt6BMgy9fkvzxDaurgj96F/NiLukF2w== + +"@rollup/rollup-android-arm64@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.22.4.tgz#654ca1049189132ff602bfcf8df14c18da1f15fb" + integrity sha512-VXoK5UMrgECLYaMuGuVTOx5kcuap1Jm8g/M83RnCHBKOqvPPmROFJGQaZhGccnsFtfXQ3XYa4/jMCJvZnbJBdA== + +"@rollup/rollup-darwin-arm64@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.22.4.tgz#6d241d099d1518ef0c2205d96b3fa52e0fe1954b" + integrity sha512-xMM9ORBqu81jyMKCDP+SZDhnX2QEVQzTcC6G18KlTQEzWK8r/oNZtKuZaCcHhnsa6fEeOBionoyl5JsAbE/36Q== + +"@rollup/rollup-darwin-x64@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.22.4.tgz#42bd19d292a57ee11734c980c4650de26b457791" + integrity sha512-aJJyYKQwbHuhTUrjWjxEvGnNNBCnmpHDvrb8JFDbeSH3m2XdHcxDd3jthAzvmoI8w/kSjd2y0udT+4okADsZIw== + +"@rollup/rollup-linux-arm-gnueabihf@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.22.4.tgz#f23555ee3d8fe941c5c5fd458cd22b65eb1c2232" + integrity sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ== + +"@rollup/rollup-linux-arm-musleabihf@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.22.4.tgz#f3bbd1ae2420f5539d40ac1fde2b38da67779baa" + integrity sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg== + +"@rollup/rollup-linux-arm64-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.22.4.tgz#7abe900120113e08a1f90afb84c7c28774054d15" + integrity sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw== + +"@rollup/rollup-linux-arm64-musl@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.22.4.tgz#9e655285c8175cd44f57d6a1e8e5dedfbba1d820" + integrity sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA== + +"@rollup/rollup-linux-powerpc64le-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.22.4.tgz#9a79ae6c9e9d8fe83d49e2712ecf4302db5bef5e" + integrity sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg== + +"@rollup/rollup-linux-riscv64-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.22.4.tgz#67ac70eca4ace8e2942fabca95164e8874ab8128" + integrity sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA== + +"@rollup/rollup-linux-s390x-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.22.4.tgz#9f883a7440f51a22ed7f99e1d070bd84ea5005fc" + integrity sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q== + +"@rollup/rollup-linux-x64-gnu@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.22.4.tgz#70116ae6c577fe367f58559e2cffb5641a1dd9d0" + integrity sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg== + +"@rollup/rollup-linux-x64-musl@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.22.4.tgz#f473f88219feb07b0b98b53a7923be716d1d182f" + integrity sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g== + +"@rollup/rollup-win32-arm64-msvc@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.22.4.tgz#4349482d17f5d1c58604d1c8900540d676f420e0" + integrity sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw== + +"@rollup/rollup-win32-ia32-msvc@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.22.4.tgz#a6fc39a15db618040ec3c2a24c1e26cb5f4d7422" + integrity sha512-SiWG/1TuUdPvYmzmYnmd3IEifzR61Tragkbx9D3+R8mzQqDBz8v+BvZNDlkiTtI9T15KYZhP0ehn3Dld4n9J5g== + +"@rollup/rollup-win32-x64-msvc@4.22.4": + version "4.22.4" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.22.4.tgz#3dd5d53e900df2a40841882c02e56f866c04d202" + integrity sha512-j8pPKp53/lq9lMXN57S8cFz0MynJk8OWNuUnXct/9KCpKU7DgU3bYMJhwWmcqC0UU29p8Lr0/7KEVcaM6bf47Q== "@sinclair/typebox@^0.27.8": version "0.27.8" @@ -4546,28 +4546,28 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: inherits "^2.0.1" rollup@^4.13.0: - version "4.18.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.18.0.tgz#497f60f0c5308e4602cf41136339fbf87d5f5dda" - integrity sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg== + version "4.22.4" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.22.4.tgz#4135a6446671cd2a2453e1ad42a45d5973ec3a0f" + integrity sha512-vD8HJ5raRcWOyymsR6Z3o6+RzfEPCnVLMFJ6vRslO1jt4LO6dUo5Qnpg7y4RkZFM2DMe3WUirkI5c16onjrc6A== dependencies: "@types/estree" "1.0.5" optionalDependencies: - "@rollup/rollup-android-arm-eabi" "4.18.0" - "@rollup/rollup-android-arm64" "4.18.0" - "@rollup/rollup-darwin-arm64" "4.18.0" - "@rollup/rollup-darwin-x64" "4.18.0" - "@rollup/rollup-linux-arm-gnueabihf" "4.18.0" - "@rollup/rollup-linux-arm-musleabihf" "4.18.0" - "@rollup/rollup-linux-arm64-gnu" "4.18.0" - "@rollup/rollup-linux-arm64-musl" "4.18.0" - "@rollup/rollup-linux-powerpc64le-gnu" "4.18.0" - "@rollup/rollup-linux-riscv64-gnu" "4.18.0" - "@rollup/rollup-linux-s390x-gnu" "4.18.0" - "@rollup/rollup-linux-x64-gnu" "4.18.0" - "@rollup/rollup-linux-x64-musl" "4.18.0" - "@rollup/rollup-win32-arm64-msvc" "4.18.0" - "@rollup/rollup-win32-ia32-msvc" "4.18.0" - "@rollup/rollup-win32-x64-msvc" "4.18.0" + "@rollup/rollup-android-arm-eabi" "4.22.4" + "@rollup/rollup-android-arm64" "4.22.4" + "@rollup/rollup-darwin-arm64" "4.22.4" + "@rollup/rollup-darwin-x64" "4.22.4" + "@rollup/rollup-linux-arm-gnueabihf" "4.22.4" + "@rollup/rollup-linux-arm-musleabihf" "4.22.4" + "@rollup/rollup-linux-arm64-gnu" "4.22.4" + "@rollup/rollup-linux-arm64-musl" "4.22.4" + "@rollup/rollup-linux-powerpc64le-gnu" "4.22.4" + "@rollup/rollup-linux-riscv64-gnu" "4.22.4" + "@rollup/rollup-linux-s390x-gnu" "4.22.4" + "@rollup/rollup-linux-x64-gnu" "4.22.4" + "@rollup/rollup-linux-x64-musl" "4.22.4" + "@rollup/rollup-win32-arm64-msvc" "4.22.4" + "@rollup/rollup-win32-ia32-msvc" "4.22.4" + "@rollup/rollup-win32-x64-msvc" "4.22.4" fsevents "~2.3.2" rrweb-cssom@^0.6.0: From 64087e5ad40c59d7b2c6f4f93c6c945717d070f3 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Tue, 8 Oct 2024 10:41:22 -0500 Subject: [PATCH 24/26] chore(docs): update README --- CHANGELOG.md | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7db7231..7b03a652 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,24 +1,3 @@ -# [2.3.0-alpha.9](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.8...v2.3.0-alpha.9) (2024-10-04) - - -### Bug Fixes - -* **logs:** enable logging in spawn and evolve utils ([08ce71a](https://github.com/ar-io/ar-io-sdk/commit/08ce71a2cfed30b09138194d8841ff1b1adccde4)) - -# [2.3.0-alpha.8](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.7...v2.3.0-alpha.8) (2024-10-04) - - -### Features - -* **delegates:** add cancel delegate withdrawal method ([a3827dc](https://github.com/ar-io/ar-io-sdk/commit/a3827dcd83f35e9fc9fbde26e6dbb38f88ab9f36)) - -# [2.3.0-alpha.7](https://github.com/ar-io/ar-io-sdk/compare/v2.3.0-alpha.6...v2.3.0-alpha.7) (2024-10-02) - - -### Bug Fixes - -* **ao:** check messages is not empty to avoid `.length` error when evaluating outputs of `dryrun` ([a7b4953](https://github.com/ar-io/ar-io-sdk/commit/a7b495334f5d3962807de9f630518a270a6e35a6)) - ## [2.2.5](https://github.com/ar-io/ar-io-sdk/compare/v2.2.4...v2.2.5) (2024-09-26) From 8a1db4939176f594e7e36acd171d3afbcf1e66e2 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Tue, 8 Oct 2024 10:45:57 -0500 Subject: [PATCH 25/26] chore(docs): prep CHANGELOG --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d9052ea..107fb09b 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ This is the home of [ar.io] SDK. This SDK provides functionality for interacting - [`transfer({ target, qty })`](#transfer-target-qty-) - [`increaseUndernameLimit({ name, qty })`](#increaseundernamelimit-name-qty-) - [`extendLease({ name, years })`](#extendlease-name-years-) + - [`cancelDelegateWithdrawal({ address, vaultId })`](#canceldelegatewithdrawal-address-vaultid-) - [Configuration](#configuration) - [Arweave Name Tokens (ANT's)](#arweave-name-tokens-ants) - [ANT APIs](#ant-apis) @@ -997,6 +998,26 @@ const { id: txId } = await io.extendLease( ); ``` +#### `cancelDelegateWithdrawal({ address, vaultId })` + +Cancels a pending delegate withdrawal. + +_Note: Requires `signer` to be provided on `IO.init` to sign the transaction._ + +````typescript +const io = IO.init({ signer: new ArweaveSigner(jwk) }); +const { id: txId } = await io.cancelDelegateWithdrawal( + { + // gateway address where vault exists + address: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3', + // vault id to cancel + vaultId: 'fDrr0_J4Iurt7caNST02cMotaz2FIbWQ4Kcj616RHl3', + }, + // optional additional tags + { tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] }, +); +``` + ### Configuration The IO client class exposes APIs relevant to the ar.io process. It can be configured to use any AO Process ID that adheres to the [IO Network Spec]. By default, it will use the current [IO testnet process]. Refer to [AO Connect] for more information on how to configure an IO process to use specific AO infrastructure. @@ -1014,7 +1035,7 @@ const io = IO.init({ }) }) }); -``` +```` ## Arweave Name Tokens (ANT's) From 22c8f08833d57df97f5568124c4a1c5a1daade6e Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Tue, 8 Oct 2024 12:58:21 -0500 Subject: [PATCH 26/26] chore(docs): update README to include `--ignore-engines` reccomendation for `yarn` --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 107fb09b..5103f05d 100644 --- a/README.md +++ b/README.md @@ -99,9 +99,12 @@ npm install @ar.io/sdk or ```shell -yarn add @ar.io/sdk +yarn add @ar.io/sdk --ignore-engines ``` +> [!Info] +> The `--ignore-engines` flag is required when using yarn, as [permaweb/aoconnect] recommends only the use of npm. Alternatively, you can add a `.yarnrc.yml` file to your project containing `ignore-engines true` to ignore the engines check. + ## Quick Start ```typescript @@ -1004,7 +1007,7 @@ Cancels a pending delegate withdrawal. _Note: Requires `signer` to be provided on `IO.init` to sign the transaction._ -````typescript +```typescript const io = IO.init({ signer: new ArweaveSigner(jwk) }); const { id: txId } = await io.cancelDelegateWithdrawal( { @@ -1020,7 +1023,7 @@ const { id: txId } = await io.cancelDelegateWithdrawal( ### Configuration -The IO client class exposes APIs relevant to the ar.io process. It can be configured to use any AO Process ID that adheres to the [IO Network Spec]. By default, it will use the current [IO testnet process]. Refer to [AO Connect] for more information on how to configure an IO process to use specific AO infrastructure. +The IO client class exposes APIs relevant to the ar.io process. It can be configured to use any AO Process ID that adheres to the [IO Network Spec]. By default, it will use the current [IO Testnet Process]. Refer to [AO Connect] for more information on how to configure an IO process to use specific AO infrastructure. ```typescript // provide a custom ao infrastructure and process id @@ -1035,7 +1038,7 @@ const io = IO.init({ }) }) }); -```` +``` ## Arweave Name Tokens (ANT's) @@ -1437,14 +1440,15 @@ For more information on how to contribute, please see [CONTRIBUTING.md]. [ar.io]: https://ar.io +[permaweb/aoconnect]: https://github.com/permaweb/aoconnect [package.json]: ./package.json [examples]: ./examples [examples/webpack]: ./examples/webpack [examples/vite]: ./examples/vite [CONTRIBUTING.md]: ./CONTRIBUTING.md [AO Connect]: https://github.com/permaweb/ao/tree/main/connect -[IO testnet process]: https://www.ao.link/#/entity/agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA -[IO Network spec]: https://github.com/ar-io/ar-io-network-process?tab=readme-ov-file#contract-spec +[IO Testnet Process]: https://www.ao.link/#/entity/agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA +[IO Network Spec]: https://github.com/ar-io/ar-io-network-process?tab=readme-ov-file#contract-spec [Winston]: https://www.npmjs.com/package/winston [AO]: https://github.com/permaweb/ao [ar-io-node repository]: https://github.com/ar-io/ar-io-node