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

Merge main in feat/next #459

Merged
merged 39 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b877bbe
Merge pull request #445 from multiversx/feat/next
andreibancioiu Apr 18, 2024
1d41828
Minor refactoring: use "isTyped".
andreibancioiu May 13, 2024
a2e9df6
Minor tests adjustments (extra assertions)
andreibancioiu May 13, 2024
a5b5768
Align Address with specs, as much as possible (without breaking chang…
andreibancioiu May 14, 2024
1e8de30
Additional tests.
andreibancioiu May 14, 2024
dbf259a
Tiny behavioral breaking change: remove some constraints when validat…
andreibancioiu May 14, 2024
26a3b31
Re-add dropped constant. Mark it as deprecated.
andreibancioiu May 14, 2024
7c117d7
Adjust transaction factories, to allow custom HRPs.
andreibancioiu May 15, 2024
ee4345e
Additional comment.
andreibancioiu May 15, 2024
6e1e4f5
Add LibraryConfig.
andreibancioiu May 15, 2024
1e201d2
Adjust comment.
andreibancioiu May 15, 2024
a0829a5
Additional comment.
andreibancioiu May 15, 2024
c65ba7a
Sketch loading of "upgradeConstructor" from the ABI.json file.
andreibancioiu May 27, 2024
090efd5
Use "upgradeConstructorDefinition", if available.
andreibancioiu May 27, 2024
2ac40c2
Fix abi registry, add unit test.
andreibancioiu May 27, 2024
db67314
Adjust unit test.
andreibancioiu May 27, 2024
2571997
Bump minor version.
andreibancioiu May 27, 2024
3480316
Fix after review.
andreibancioiu May 27, 2024
2f9d03a
Merge pull request #450 from multiversx/upgrade-ctor-01
andreibancioiu May 27, 2024
734c042
Merge branch 'main' into custom-hrp
andreibancioiu May 27, 2024
1e2ee14
Merge pull request #448 from multiversx/custom-hrp
andreibancioiu May 27, 2024
7f62882
Apply npm audit fixes.
andreibancioiu May 27, 2024
9cb8aa1
Merge pull request #451 from multiversx/audit-fixes-05-27
andreibancioiu May 27, 2024
ddea99b
Merge pull request #447 from multiversx/tests-05-13
andreibancioiu May 27, 2024
a62a324
Merge pull request #446 from multiversx/refactor-05-13
andreibancioiu May 27, 2024
2f4eb38
Native serializer: for option and optional, handle "undefined" the sa…
andreibancioiu May 27, 2024
4604253
Merge branch 'main' into serializer-null-or-undefined
andreibancioiu May 27, 2024
5d47501
Merge pull request #452 from multiversx/serializer-null-or-undefined
andreibancioiu May 27, 2024
912fc5e
Minor refactoring.
andreibancioiu May 27, 2024
471f089
Query improvements: add SmartContractQueriesController.query().
andreibancioiu May 30, 2024
db6ba7d
Adjust "ITransactionStatus" (not a breaking change).
andreibancioiu Jun 3, 2024
5741d96
Bump version.
andreibancioiu Jun 3, 2024
01dbe51
Merge pull request #456 from multiversx/txstatus-interface
andreibancioiu Jun 3, 2024
b4d8b2e
Minor refactoring (tests).
andreibancioiu Jun 3, 2024
5b408ac
Merge pull request #457 from multiversx/minor-refactor-06-03
andreibancioiu Jun 4, 2024
add4011
Merge pull request #453 from multiversx/refactor-05-27
andreibancioiu Jun 4, 2024
fc14c4e
Merge pull request #454 from multiversx/query-improvements
andreibancioiu Jun 4, 2024
d2d78c1
run pretty
popenta Jun 5, 2024
b50a0cc
Merge pull request #458 from multiversx/run-pretty
popenta Jun 5, 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
109 changes: 42 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiversx/sdk-core",
"version": "13.1.0",
"version": "13.2.1",
"description": "MultiversX SDK for JavaScript and TypeScript",
"main": "out/index.js",
"types": "out/index.d.js",
Expand Down Expand Up @@ -34,8 +34,8 @@
"keccak": "3.0.2"
},
"devDependencies": {
"@multiversx/sdk-network-providers": "2.4.1",
"@multiversx/sdk-wallet": "4.4.0",
"@multiversx/sdk-network-providers": "2.4.3",
"@multiversx/sdk-wallet": "4.5.0",
"@types/assert": "1.4.6",
"@types/chai": "4.2.11",
"@types/mocha": "9.1.0",
Expand Down
12 changes: 12 additions & 0 deletions src/address.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ describe("test address", () => {
assert.equal(new Address(new Uint8Array(Buffer.from(bobHex, "hex"))).toHex(), bobHex);
});

it("should create address (custom hrp)", async () => {
let address = Address.fromHex(aliceHex, "test");
assert.deepEqual(address.getPublicKey(), Buffer.from(aliceHex, "hex"));
assert.equal(address.getHrp(), "test");
assert.equal(address.toBech32(), "test1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ss5hqhtr");

address = Address.fromHex(bobHex, "xerd");
assert.deepEqual(address.getPublicKey(), Buffer.from(bobHex, "hex"));
assert.equal(address.getHrp(), "xerd");
assert.equal(address.toBech32(), "xerd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruq9thc9j");
});

it("should create empty address", async () => {
const nobody = Address.empty();

Expand Down
Loading
Loading