Skip to content

Commit

Permalink
Merge pull request #947 from starknet-io/develop-to-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
penovicp authored Feb 2, 2024
2 parents 7e10e53 + 09bd994 commit a2647f3
Show file tree
Hide file tree
Showing 132 changed files with 1,582 additions and 112,377 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
name: Run release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:

steps:
- run: echo ${{ secrets.TEST_RPC_URL }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/manual-docs-version-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
name: Documentation build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
Expand All @@ -33,7 +33,7 @@ jobs:
git add www/versioned_docs www/versioned_sidebars www/versions.json
git checkout .
- name: Create pull request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
branch: ci/docs-version
committer: CI <[email protected]>
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
# [5.29.0](https://github.com/starknet-io/starknet.js/compare/v5.28.0...v5.29.0) (2024-02-02)

### Features

- add provider.decodeParameters ([39595f3](https://github.com/starknet-io/starknet.js/commit/39595f3303204b273fadd53764c59767ce6c5b36))

# [5.28.0](https://github.com/starknet-io/starknet.js/compare/v5.27.0...v5.28.0) (2024-02-01)

### Features

- expand structured data hashing in line with SNIP-12 ([#920](https://github.com/starknet-io/starknet.js/issues/920)) ([cb20590](https://github.com/starknet-io/starknet.js/commit/cb2059039e3b42501cdfefec7802da83eb73645b))

# [5.27.0](https://github.com/starknet-io/starknet.js/compare/v5.26.1...v5.27.0) (2024-01-23)

### Features

- trigger release ([fbf983f](https://github.com/starknet-io/starknet.js/commit/fbf983f7820768f919cddb2c5806178a20e38bdd))

## [5.26.1](https://github.com/starknet-io/starknet.js/compare/v5.26.0...v5.26.1) (2024-01-18)

### Bug Fixes

- move abiwan from dev dependencies to regular dependencies ([#925](https://github.com/starknet-io/starknet.js/issues/925)) ([6b7ee49](https://github.com/starknet-io/starknet.js/commit/6b7ee49918d704f8143f51ab7a0360446ea4cf5e))

# [5.26.0](https://github.com/starknet-io/starknet.js/compare/v5.25.0...v5.26.0) (2024-01-15)

### Features

- abi-wan trigger ([c10150a](https://github.com/starknet-io/starknet.js/commit/c10150a328051054a7bba1260296c0c92fdd2051))

# [6.0.0-beta.13](https://github.com/starknet-io/starknet.js/compare/v6.0.0-beta.12...v6.0.0-beta.13) (2024-01-23)

### Bug Fixes
Expand Down
7 changes: 7 additions & 0 deletions FUNDING.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"drips": {
"ethereum": {
"ownedBy": "0x0360D2E7A038388D6DAdcaD933Ef0881550FcD75"
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ If you consider to contribute to this project please read [CONTRIBUTING.md](http

Special thanks to all the [contributors](https://github.com/starknet-io/starknet.js/graphs/contributors), especially to:

- Sean ([@0xs34n](https://github.com/0xs34n)), the original creator of Straknet.js!
- Sean ([@0xs34n](https://github.com/0xs34n)), the original creator of Starknet.js!

- Janek ([@janek26](https://github.com/janek26)) and Dhruv ([@dhruvkelawala](https://github.com/dhruvkelawala)) from [Argent](https://github.com/argentlabs)

Expand Down
2 changes: 1 addition & 1 deletion __mocks__/cairo/helloCairo2/hellocairo
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ mod HelloStarknet {
}
}

// return Option<litteral>
// return Option<literal>
fn option_u8_output(self: @ContractState, val1: u8) -> Option<u8> {
if val1 < 100 {
return Option::None(());
Expand Down
File renamed without changes.
39 changes: 39 additions & 0 deletions __mocks__/typedData/example_baseTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"types": {
"StarknetDomain": [
{ "name": "name", "type": "shortstring" },
{ "name": "version", "type": "shortstring" },
{ "name": "chainId", "type": "shortstring" },
{ "name": "revision", "type": "shortstring" }
],
"Example": [
{ "name": "n0", "type": "felt" },
{ "name": "n1", "type": "bool" },
{ "name": "n2", "type": "string" },
{ "name": "n3", "type": "selector" },
{ "name": "n4", "type": "u128" },
{ "name": "n5", "type": "ContractAddress" },
{ "name": "n6", "type": "ClassHash" },
{ "name": "n7", "type": "timestamp" },
{ "name": "n8", "type": "shortstring" }
]
},
"primaryType": "Example",
"domain": {
"name": "StarkNet Mail",
"version": "1",
"chainId": "1",
"revision": "1"
},
"message": {
"n0": "0x3e8",
"n1": true,
"n2": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"n3": "transfer",
"n4": "0x3e8",
"n5": "0x3e8",
"n6": "0x3e8",
"n7": 1000,
"n8": "transfer"
}
}
28 changes: 28 additions & 0 deletions __mocks__/typedData/example_enum.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"types": {
"StarknetDomain": [
{ "name": "name", "type": "shortstring" },
{ "name": "version", "type": "shortstring" },
{ "name": "chainId", "type": "shortstring" },
{ "name": "revision", "type": "shortstring" }
],
"Example": [{ "name": "someEnum", "type": "enum", "contains": "MyEnum" }],
"MyEnum": [
{ "name": "Variant 1", "type": "()" },
{ "name": "Variant 2", "type": "(u128,u128*)" },
{ "name": "Variant 3", "type": "(u128)" }
]
},
"primaryType": "Example",
"domain": {
"name": "StarkNet Mail",
"version": "1",
"chainId": "1",
"revision": "1"
},
"message": {
"someEnum": {
"Variant 2": [2, [0, 1]]
}
}
}
37 changes: 37 additions & 0 deletions __mocks__/typedData/example_presetTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"types": {
"StarknetDomain": [
{ "name": "name", "type": "shortstring" },
{ "name": "version", "type": "shortstring" },
{ "name": "chainId", "type": "shortstring" },
{ "name": "revision", "type": "shortstring" }
],
"Example": [
{ "name": "n0", "type": "TokenAmount" },
{ "name": "n1", "type": "NftId" }
]
},
"primaryType": "Example",
"domain": {
"name": "StarkNet Mail",
"version": "1",
"chainId": "1",
"revision": "1"
},
"message": {
"n0": {
"token_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
"amount": {
"low": "0x3e8",
"high": "0x0"
}
},
"n1": {
"collection_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
"token_id": {
"low": "0x3e8",
"high": "0x0"
}
}
}
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion __tests__/account.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import typedDataExample from '../__mocks__/typedDataExample.json';
import typedDataExample from '../__mocks__/typedData/baseExample.json';
import {
Account,
Contract,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/cairo1v2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe('Cairo 1', () => {
expect(balance).toBe(200n);
});

test('Cairo 1 Contract Interaction - uint 8, 16, 32, 64, 128, litterals', async () => {
test('Cairo 1 Contract Interaction - uint 8, 16, 32, 64, 128, literals', async () => {
const tx = await cairo1Contract.increase_balance_u8(255n);
await account.waitForTransaction(tx.transaction_hash);
const balance = await cairo1Contract.get_balance_u8();
Expand Down
2 changes: 1 addition & 1 deletion __tests__/contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ describe('Complex interaction', () => {
expect(json.stringify(compiled)).toBe(reference);
expect(json.stringify(doubleCompiled)).toBe(reference);

// mix of complex and litteral
// mix of complex and literal
const mySetArgs = {
validators: [234, 235],
powers: { a1: 562, a2: 567 },
Expand Down
2 changes: 1 addition & 1 deletion __tests__/utils/ethSigner.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import typedDataExample from '../../__mocks__/typedDataExample.json';
import typedDataExample from '../../__mocks__/typedData/baseExample.json';
import {
Call,
DeclareSignerDetails,
Expand Down
Loading

0 comments on commit a2647f3

Please sign in to comment.