Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release 3.1.0 #314

Open
wants to merge 46 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
8cd5587
fix(eth signer): use a unique anchor in ans-104 headers
fedellen Dec 10, 2024
eb030e8
refactor: use crypto for random text PE-7158
fedellen Dec 11, 2024
6dc8ba5
refactor: use crypto for random text PE-7158
fedellen Dec 11, 2024
73383ed
test: update expectation
fedellen Dec 11, 2024
5d814dd
Merge pull request #312 from ar-io/main
fedellen Dec 11, 2024
3f56726
Merge branch 'alpha' into PE-7158-unique-anchors
fedellen Dec 11, 2024
9ddd591
Merge pull request #311 from ar-io/PE-7158-unique-anchors
fedellen Dec 11, 2024
f024f14
chore(release): 3.0.1-alpha.1 [skip ci]
semantic-release-bot Dec 11, 2024
4c58402
test(cost-details): init coverage of new method PE-7114
fedellen Dec 11, 2024
c6910c8
feat(cost-details): init new cost method for exposing fundingPlan and…
fedellen Dec 11, 2024
674626e
feat(cost-details): init cli command get-cost-details PE-7114
fedellen Dec 11, 2024
1eb04ae
docs(cost-details): add getCostDetails to README PE-7114
fedellen Dec 11, 2024
eaaa25e
refactor: excise un-used helper PE-7114
fedellen Dec 11, 2024
08f3ffe
Merge branch 'alpha' into PE-7114-get-cost-details
fedellen Dec 11, 2024
3e76ec4
refactor: use `as const` on type helpers PE-7114
fedellen Dec 11, 2024
2910506
docs: use valid intent PE-7114
fedellen Dec 11, 2024
fa63b28
docs: use valid arns name PE-7114
fedellen Dec 11, 2024
ee4a024
refactor: expose `fromAddress` on process.read action over `Owner` PE…
fedellen Dec 11, 2024
7166683
refactor: change mIO -> mARIO in CLI tokenCost and balance responses …
fedellen Dec 11, 2024
ff7b816
Merge pull request #313 from ar-io/PE-7114-get-cost-details
fedellen Dec 12, 2024
3a9cff6
chore(release): 3.1.0-alpha.1 [skip ci]
semantic-release-bot Dec 12, 2024
4d47270
feat(fund-from): add Fund-From tag to eligible methods/commands PE-7291
fedellen Dec 12, 2024
23761b4
Merge branch 'alpha' into PE-7291-fund-from
fedellen Dec 12, 2024
d2ec493
refactor: remove redundant `...` concat PE-7291
fedellen Dec 12, 2024
786c677
refactor: update naming pattern PE-7291
fedellen Dec 12, 2024
f7f9290
Merge pull request #315 from ar-io/PE-7291-fund-from
fedellen Dec 12, 2024
b5f0cac
chore(release): 3.1.0-alpha.2 [skip ci]
semantic-release-bot Dec 12, 2024
858dba6
chore(test): update e2e test to leverage typescript
Dec 14, 2024
092484c
chore(tsconfig): add tsconfig and update tests
Dec 14, 2024
357383b
Merge pull request #316 from ar-io/typescript-e2e-tests
dtfiedler Dec 15, 2024
e01e6ce
feat(primary names): add processID to read APIs PE-7307
fedellen Dec 16, 2024
8e1a163
Merge pull request #317 from ar-io/PE-7307-forward-process-id-on-prim…
dtfiedler Dec 16, 2024
3f85f23
chore(release): 3.1.0-alpha.3 [skip ci]
semantic-release-bot Dec 16, 2024
72454fb
chore(deps): bump axios in the npm_and_yarn group across 1 directory
dependabot[bot] Dec 10, 2024
a33f031
Merge pull request #301 from ar-io/dependabot/npm_and_yarn/npm_and_ya…
dtfiedler Dec 17, 2024
c5873e6
fix: dont return null when stringified null is found in message data …
fedellen Dec 17, 2024
3531b2f
Merge pull request #319 from ar-io/dont-return-null
fedellen Dec 17, 2024
bbbf50b
chore(release): 3.1.0-alpha.4 [skip ci]
semantic-release-bot Dec 17, 2024
de0ec83
fix(tags): prune out empty tags
Dec 17, 2024
99a0df4
Merge pull request #320 from ar-io/prune-tags-fix
dtfiedler Dec 17, 2024
c0529be
chore(release): 3.1.0-alpha.5 [skip ci]
semantic-release-bot Dec 17, 2024
1ba3588
fix(io): fix `AoEpochData` type, add prescribedNames
Dec 17, 2024
84b964d
Merge pull request #318 from ar-io/PE-7203-prescribed-observers-type
dtfiedler Dec 17, 2024
f05517c
chore(release): 3.1.0-alpha.6 [skip ci]
semantic-release-bot Dec 17, 2024
0656f30
chore(test): disable test while we sort out type
Dec 18, 2024
a4e178d
Merge pull request #321 from ar-io/type-test
dtfiedler Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
# [3.1.0-alpha.6](https://github.com/ar-io/ar-io-sdk/compare/v3.1.0-alpha.5...v3.1.0-alpha.6) (2024-12-17)


### Bug Fixes

* **io:** fix `AoEpochData` type, add prescribedNames ([1ba3588](https://github.com/ar-io/ar-io-sdk/commit/1ba358814d7019475ce049e0d5d8af1f76c429fc))

# [3.1.0-alpha.5](https://github.com/ar-io/ar-io-sdk/compare/v3.1.0-alpha.4...v3.1.0-alpha.5) (2024-12-17)


### Bug Fixes

* **tags:** prune out empty tags ([de0ec83](https://github.com/ar-io/ar-io-sdk/commit/de0ec83803ad536121cb8e1a2c269e50dec9341f))

# [3.1.0-alpha.4](https://github.com/ar-io/ar-io-sdk/compare/v3.1.0-alpha.3...v3.1.0-alpha.4) (2024-12-17)


### Bug Fixes

* dont return null when stringified null is found in message data on ao.read ([c5873e6](https://github.com/ar-io/ar-io-sdk/commit/c5873e6b686efa547b006e248337fcca0793446d))

# [3.1.0-alpha.3](https://github.com/ar-io/ar-io-sdk/compare/v3.1.0-alpha.2...v3.1.0-alpha.3) (2024-12-16)


### Features

* **primary names:** add processID to read APIs PE-7307 ([e01e6ce](https://github.com/ar-io/ar-io-sdk/commit/e01e6cee4e39c2e17eb38a04818e28770f7cbf97))

# [3.1.0-alpha.2](https://github.com/ar-io/ar-io-sdk/compare/v3.1.0-alpha.1...v3.1.0-alpha.2) (2024-12-12)


### Features

* **fund-from:** add Fund-From tag to eligible methods/commands PE-7291 ([4d47270](https://github.com/ar-io/ar-io-sdk/commit/4d4727082f408c523be5c2f01d21907c93e2e098))

# [3.1.0-alpha.1](https://github.com/ar-io/ar-io-sdk/compare/v3.0.1-alpha.1...v3.1.0-alpha.1) (2024-12-12)


### Features

* **cost-details:** init cli command get-cost-details PE-7114 ([674626e](https://github.com/ar-io/ar-io-sdk/commit/674626eaef7863b1601452e15b84c82f1f2a621c))
* **cost-details:** init new cost method for exposing fundingPlan and discounts PE-7114 ([c6910c8](https://github.com/ar-io/ar-io-sdk/commit/c6910c85b9cb801c86b2f5f754e567f0fe0c35d3))

## [3.0.1-alpha.1](https://github.com/ar-io/ar-io-sdk/compare/v3.0.0...v3.0.1-alpha.1) (2024-12-11)


### Bug Fixes

* **eth signer:** use a unique anchor in ans-104 headers ([8cd5587](https://github.com/ar-io/ar-io-sdk/commit/8cd5587630141b8eb048505ffa424e9a37add80f))

# [3.0.0](https://github.com/ar-io/ar-io-sdk/compare/v2.6.0...v3.0.0) (2024-12-10)


Expand Down
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ This is the home of [ar.io] SDK. This SDK provides functionality for interacting
- [`increaseUndernameLimit({ name, qty })`](#increaseundernamelimit-name-qty-)
- [`extendLease({ name, years })`](#extendlease-name-years-)
- [`getTokenCost({ intent, ...args })`](#gettokencost-intent-args-)
- [`getCostDetails({ intent, fromAddress, fundFrom, ...args})`](#getcostdetails-intent-fromaddress-fundfrom-args)
- [`getDemandFactor()`](#getdemandfactor)
- [`getArNSReturnedNames({ cursor, limit, sortBy, sortOrder })`](#getarnsreturnednames-cursor-limit-sortby-sortorder-)
- [`getArNSReturnedName({ name })`](#getarnsreturnedname-name-)
Expand Down Expand Up @@ -1200,6 +1201,43 @@ const price = await ario

</details>

#### `getCostDetails({ intent, fromAddress, fundFrom, ...args})`

Calculates the expanded cost details for the interaction in question, e.g a 'Buy-Record' interaction, where args are the specific params for that interaction. The fromAddress is the address that would be charged for the interaction, and fundFrom is where the funds would be taken from, either `balance`, `stakes`, or `any`.

```typescript
const costDetails = await ario.getCostDetails({
intent: 'Buy-Record',
fromAddress: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3',
fundFrom: 'stakes',
name: 'ar-io',
type: 'permabuy',
});
```

<details>
<summary>Output</summary>

```json
{
"tokenCost": 2384252273,
"fundingPlan": {
"address": "t4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3",
"balance": 0,
"stakes": {
"Rc80LG6h27Y3p9TN6J5hwDeG5M51cu671YwZpU9uAVE": {
"vaults": [],
"delegatedStake": 2384252273
}
},
"shortfall": 0
},
"discounts": []
}
```

</details>

#### `getDemandFactor()`

Retrieves the current demand factor of the network. The demand factor is a multiplier applied to the cost of ArNS interactions based on the current network demand.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ar.io/sdk",
"version": "3.0.0",
"version": "3.1.0-alpha.6",
"repository": {
"type": "git",
"url": "git+https://github.com/ar-io/ar-io-sdk.git"
Expand Down Expand Up @@ -127,7 +127,7 @@
"@dha-team/arbundles": "^1.0.1",
"@permaweb/aoconnect": "^0.0.57",
"arweave": "1.14.4",
"axios": "1.7.8",
"axios": "1.7.9",
"axios-retry": "^4.3.0",
"commander": "^12.1.0",
"eventemitter3": "^5.0.1",
Expand Down
Loading
Loading