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

Release v0.18.0 #305

Merged
merged 43 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
17d2258
feat: add checkPermissions function
YamenMerhi Mar 16, 2023
d04ebbc
test: add test for checkPermissions function
YamenMerhi Mar 16, 2023
8fc90a4
chore: remove `.only`
YamenMerhi Mar 16, 2023
1dc1912
chore: add error handling for edge cases
YamenMerhi Mar 18, 2023
6ee932e
test: test edge cases
YamenMerhi Mar 18, 2023
e530675
chore: add function natspec
YamenMerhi Mar 18, 2023
4109d4e
test: remove `.only`
YamenMerhi Mar 18, 2023
44b4785
fix: variable naming
frozeman Mar 24, 2023
9e075c4
Merge pull request #286 from YamenMerhi/checkPermission
CallumGrindle Apr 13, 2023
099bafb
refactor: support getDataBatch in ERC725Y
YamenMerhi Jul 6, 2023
51f2f58
test: add e2e tests for luksoTestnet
YamenMerhi Jul 6, 2023
a67fa84
chore(deps): bump tough-cookie and web3 in /examples
dependabot[bot] Jul 8, 2023
0db8e85
refactor: change 0.7.0 interfaceId to 0.10.2
YamenMerhi Jul 10, 2023
9efc0b3
test: adjust the tests accordingly
YamenMerhi Jul 10, 2023
0c574ad
chore: Update permission name from `CHANGEPERMISSIONS` to `EDITPERMIS…
YamenMerhi Jul 10, 2023
ec70c91
test: update permission name in tests
YamenMerhi Jul 10, 2023
cf0326b
docs: update permission name in docs
YamenMerhi Jul 10, 2023
94f8c59
Update index.test.ts
YamenMerhi Jul 11, 2023
1d21c04
Merge pull request #296 from ERC725Alliance/dependabot/npm_and_yarn/e…
Hugoo Jul 12, 2023
6cadab8
Merge pull request #297 from YamenMerhi/interfaceId
Hugoo Jul 12, 2023
65dcc1b
docs: fix missing array square brackets for encodeData
CJ42 May 24, 2023
99e202a
Merge pull request #290 from ERC725Alliance/fix-docs-encodedata
Hugoo Jul 12, 2023
6a8345b
Merge pull request #298 from YamenMerhi/permissionName
Hugoo Jul 12, 2023
cef2dce
Add comments about version 4
YamenMerhi Jul 13, 2023
ad34165
chore: rename by version instead of feature
YamenMerhi Jul 14, 2023
ee8445b
refactor: refactor getAllData into generic function
YamenMerhi Jul 14, 2023
3892ade
test: add types for schema
YamenMerhi Jul 14, 2023
0f611ed
chore: resolve linter
YamenMerhi Jul 14, 2023
5e265b4
test: add test cases using HttpProvider
YamenMerhi Jul 14, 2023
55a08aa
chore: missing - rename ERC725 to ERC725_v2
YamenMerhi Jul 14, 2023
2fd0a8c
refactor: apply type for method
YamenMerhi Jul 14, 2023
1ee2700
Merge pull request #294 from YamenMerhi/supportGetDataBatch
Hugoo Jul 14, 2023
de3732b
chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 19, 2023
c95ee8a
refactor!: change `ArrayLength` value from `uint256` to `uint128` (#287)
b00ste Jul 24, 2023
d4ad8ff
Merge pull request #299 from ERC725Alliance/dependabot/npm_and_yarn/w…
Hugoo Jul 24, 2023
f0b04da
refactor!: new encoding for static value types (not arrays `[]`) (#288)
CJ42 Aug 1, 2023
a168de2
chore: update web3 to v1.10.0 and prettier to v3 (#301)
Hugoo Aug 1, 2023
37203f1
fix: decode any uint256 as number not string (#289)
CJ42 Aug 3, 2023
9979e89
fix: dependencies & example (#302)
kalote Aug 3, 2023
239bbf0
docs: use toggles to display better examples of encoding (#300)
CJ42 Aug 3, 2023
287f5dd
chore: use web3-utils instead of bignumber.js (#304)
Hugoo Aug 3, 2023
6a7e696
refactor: expose `checkPermissions` function (#306)
YamenMerhi Aug 3, 2023
866ba2c
chore(release): 0.18.0
Hugoo Aug 3, 2023
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
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [0.18.0](https://github.com/ERC725Alliance/erc725.js/compare/v0.17.2...v0.18.0) (2023-08-03)

### ⚠ BREAKING CHANGES

- new encoding for static value types (not arrays `[]`) (#288)
- change `ArrayLength` value from `uint256` to `uint128` (#287)

### Features

- add checkPermissions function ([17d2258](https://github.com/ERC725Alliance/erc725.js/commit/17d225843c236951ef1515a0ff91095b5ef27cd3))
- Add new feature "Decode Mapping Key" ([8c1f1fc](https://github.com/ERC725Alliance/erc725.js/commit/8c1f1fcfb15fa43d1d3934b0b15f09d47902bb41))

### Bug Fixes

- decode any uint256 as number not string ([#289](https://github.com/ERC725Alliance/erc725.js/issues/289)) ([37203f1](https://github.com/ERC725Alliance/erc725.js/commit/37203f14d313a0caff75724dc74175c741c1b540))
- variable naming ([44b4785](https://github.com/ERC725Alliance/erc725.js/commit/44b47851ed63b817edc21c63655d67bac13a7e7f))

### improvement

- change `ArrayLength` value from `uint256` to `uint128` ([#287](https://github.com/ERC725Alliance/erc725.js/issues/287)) ([c95ee8a](https://github.com/ERC725Alliance/erc725.js/commit/c95ee8a53bf25bcf47777054af27cae1fbad8b2f))
- new encoding for static value types (not arrays `[]`) ([#288](https://github.com/ERC725Alliance/erc725.js/issues/288)) ([f0b04da](https://github.com/ERC725Alliance/erc725.js/commit/f0b04daa57a281c537a8f28594439573188f0dce))

### [0.17.2](https://github.com/ERC725Alliance/erc725.js/compare/v0.17.1...v0.17.2) (2023-03-14)

- removed ERC725JSONSchemaKeyType duplicate value ([060ee6c](https://github.com/ERC725Alliance/erc725.js/commit/060ee6ce23bda328f727140419de7590f48fc394))
Expand Down Expand Up @@ -103,7 +125,6 @@ Minor update to update the LSP-2 schemas.

### improvement

- change fetchData output to non object ([1d4d570](https://github.com/ERC725Alliance/erc725.js/commit/1d4d57077a7766b3490477efb20f194fc4e00da4))
- fetchData as same output as decodeData ([59c3a87](https://github.com/ERC725Alliance/erc725.js/commit/59c3a879fefb2b9bfe46b9bea91ff6bd2a528df1))
- getData as same output as decodeData ([0f3b149](https://github.com/ERC725Alliance/erc725.js/commit/0f3b149f2280e6025a05e8e9ed306facfa63601a))
- use array for decodeData ([261d100](https://github.com/ERC725Alliance/erc725.js/commit/261d1007f4ff63abd9d794f4e64e5b408ce7c1a3))
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import ERC725 from '@erc725/erc725.js';

If you install it on the backend side, you may need to also install [`isomorphic-fetch`](https://www.npmjs.com/package/isomorphic-fetch).

## Example Instantiation
## Usage

```js
import { ERC725 } from '@erc725/erc725.js';
Expand Down Expand Up @@ -71,18 +71,18 @@ const schema = [
];

const address = '0x3000783905Cc7170cCCe49a4112Deda952DDBe24';
const RPC_URL = 'https://rpc.l16.lukso.network';
const RPC_URL = 'https://rpc.testnet.lukso.network';
const config = {
ipfsGateway: 'https://2eff.lukso.dev/ipfs/',
};

const erc725 = new ERC725(schema, address, RPC_URL, config);
const myErc725 = new ERC725(schema, address, RPC_URL, config);
```

## Usage

```js
await erc725.getOwner();
await myErc725.getOwner();
// > '0x28D25E70819140daF65b724158D00c373D1a18ee'

await myErc725.getData();
Expand Down
Loading
Loading