Skip to content

Commit dab8a75

Browse files
authored
Merge pull request #741 from 0xs34n/develop
Release v5.19.5
2 parents 829f5f4 + ce57fdc commit dab8a75

File tree

146 files changed

+44568
-2467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+44568
-2467
lines changed

.github/workflows/_test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: _ Run Tests
22
on:
33
workflow_call:
44
inputs:
5-
is-rpc:
5+
use-rpc-devnet:
6+
type: boolean
7+
default: false
8+
use-seq-devnet:
69
type: boolean
710
default: false
811
secrets:
@@ -23,11 +26,15 @@ jobs:
2326
# TODO - periodically check if conditional services are supported; https://github.com/actions/runner/issues/822
2427
services:
2528
devnet:
26-
# image: ${{ inputs.is-rpc && 'shardlabs/starknet-devnet:0.5.3-seed0' || 'shardlabs/starknet-devnet:0.5.2-seed0' }}
27-
image: shardlabs/starknet-devnet:0.5.4-seed0
29+
# image: ${{ inputs.use-rpc-devnet && 'shardlabs/starknet-devnet:0.6.1-seed0' || inputs.use-seq-devnet && 'shardlabs/starknet-devnet:0.6.1-seed0' || '' }}
30+
image: ${{ (inputs.use-rpc-devnet || inputs.use-seq-devnet) && 'shardlabs/starknet-devnet:0.6.1-seed0' || '' }}
31+
# image: shardlabs/starknet-devnet:0.6.1-seed0
2832
ports:
2933
- 5050:5050
3034

35+
# TODO - temporary conditional, remove if/when devnet RPC support is restored
36+
if: ${{ (!inputs.use-rpc-devnet) }}
37+
3138
env:
3239
TEST_PROVIDER_BASE_URL: ${{ secrets.TEST_PROVIDER_BASE_URL }}
3340
TEST_RPC_URL: ${{ secrets.TEST_RPC_URL }}

.github/workflows/manual-tests-devnet.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616

1717
uses: ./.github/workflows/_test.yml
1818
with:
19-
is-rpc: ${{ matrix.TEST_RPC_URL != '' }}
19+
use-rpc-devnet: ${{ matrix.TEST_RPC_URL != '' }}
20+
use-seq-devnet: ${{ matrix.TEST_PROVIDER_BASE_URL != '' }}
2021
secrets:
2122
TEST_PROVIDER_BASE_URL: ${{ matrix.TEST_PROVIDER_BASE_URL }}
2223
TEST_RPC_URL: ${{ matrix.TEST_RPC_URL }}

.github/workflows/pr-push-dev.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- beta
66
- develop
7+
- next-version
78
paths:
89
- '__mocks__/**'
910
- '__tests__/**'
@@ -15,6 +16,7 @@ on:
1516
branches:
1617
- beta
1718
- develop
19+
- next-version
1820
paths:
1921
- '__mocks__/**'
2022
- '__tests__/**'
@@ -51,7 +53,8 @@ jobs:
5153

5254
uses: ./.github/workflows/_test.yml
5355
with:
54-
is-rpc: ${{ matrix.TEST_RPC_URL != '' }}
56+
use-rpc-devnet: ${{ matrix.TEST_RPC_URL != '' }}
57+
use-seq-devnet: ${{ matrix.TEST_PROVIDER_BASE_URL != '' }}
5558
secrets:
5659
TEST_PROVIDER_BASE_URL: ${{ matrix.TEST_PROVIDER_BASE_URL }}
5760
TEST_RPC_URL: ${{ matrix.TEST_RPC_URL }}

CHANGELOG.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,96 @@
1+
## [5.19.5](https://github.com/0xs34n/starknet.js/compare/v5.19.4...v5.19.5) (2023-08-29)
2+
3+
### Bug Fixes
4+
5+
- status case ([5ba7983](https://github.com/0xs34n/starknet.js/commit/5ba798309d2c8567840b8f6a6031ec0e6b582d53))
6+
7+
## [5.19.4](https://github.com/0xs34n/starknet.js/compare/v5.19.3...v5.19.4) (2023-08-29)
8+
9+
### Bug Fixes
10+
11+
- use BigNumberish for u256 ([3a7be10](https://github.com/0xs34n/starknet.js/commit/3a7be1075b0ca4f217cf28aabaa870c93c08f6d1))
12+
- waitForTransaction for Infura ([c871fe6](https://github.com/0xs34n/starknet.js/commit/c871fe65a0b08e368218f51327cd64591f2b7f49))
13+
14+
## [5.19.3](https://github.com/0xs34n/starknet.js/compare/v5.19.2...v5.19.3) (2023-08-22)
15+
16+
### Bug Fixes
17+
18+
- expose event parsing utilities ([50cb64c](https://github.com/0xs34n/starknet.js/commit/50cb64cadc9a382a336e20e25bdf65814efca332))
19+
20+
## [5.19.2](https://github.com/0xs34n/starknet.js/compare/v5.19.1...v5.19.2) (2023-08-20)
21+
22+
### Bug Fixes
23+
24+
- handle ContractAddress array validation ([0748ec6](https://github.com/0xs34n/starknet.js/commit/0748ec61b510d4d2939b1feb8ca19c15740a0f2a))
25+
26+
## [5.19.1](https://github.com/0xs34n/starknet.js/compare/v5.19.0...v5.19.1) (2023-08-16)
27+
28+
### Bug Fixes
29+
30+
- repair CallData compilation faulty ordering ([e8cbedc](https://github.com/0xs34n/starknet.js/commit/e8cbedc3eac39cb0662e958ad5056750f8dc4069))
31+
32+
# [5.19.0](https://github.com/0xs34n/starknet.js/compare/v5.18.0...v5.19.0) (2023-08-11)
33+
34+
### Bug Fixes
35+
36+
- add function definition to the contract interface + doc ([06498d5](https://github.com/0xs34n/starknet.js/commit/06498d539bc2b816982e0245ae3b6508665f03f7))
37+
- contract test status ([53cfaf9](https://github.com/0xs34n/starknet.js/commit/53cfaf935d1b053f5bcd17ffcb1ae48d9e8a4eef))
38+
- fix multiple same events + add cairo code + seperate tests, legacy and Cairo1 ([7c93157](https://github.com/0xs34n/starknet.js/commit/7c93157d60864989efec37a05521979a2548e4d8))
39+
- modify parseEvents structure + add testcase for multiple different event in same tx ([b63b0d6](https://github.com/0xs34n/starknet.js/commit/b63b0d631d163e181c8a42a634f107d2761e35ca))
40+
- optional struct and enum in responseParser ([14d3cca](https://github.com/0xs34n/starknet.js/commit/14d3cca97a3cebedf07466f98dd46639999421c2))
41+
- patch merge, and add enums to event parser ([00f8073](https://github.com/0xs34n/starknet.js/commit/00f8073418eef1e2eebf105884357561b959fb7c))
42+
- remove exports from responseParser functions ([3d86446](https://github.com/0xs34n/starknet.js/commit/3d864463579fc68c4538bbbc7820420ec64b15eb))
43+
- repair SequencerProvider network resolution ([e42dfc1](https://github.com/0xs34n/starknet.js/commit/e42dfc1e722d4a77bc52102a94295ee7ab6a460d))
44+
- restore package-lock to previous state ([2fe0564](https://github.com/0xs34n/starknet.js/commit/2fe0564ed042537e480ea8481c787fe7359ba4a8))
45+
46+
### Features
47+
48+
- add ethAddress handling ([2a93f90](https://github.com/0xs34n/starknet.js/commit/2a93f90cc9e7e697a153e42b9ebd19dec6f1880f))
49+
- cairo enum in request parser ([ad44481](https://github.com/0xs34n/starknet.js/commit/ad4448129058b76fede61675d46a37a6c74f0d16))
50+
- cairo enum in response parser ([a936a11](https://github.com/0xs34n/starknet.js/commit/a936a11ca34af628ec187740616b8c5a804e9d65)), closes [#670](https://github.com/0xs34n/starknet.js/issues/670) [#665](https://github.com/0xs34n/starknet.js/issues/665) [#664](https://github.com/0xs34n/starknet.js/issues/664) [#1](https://github.com/0xs34n/starknet.js/issues/1) [#675](https://github.com/0xs34n/starknet.js/issues/675) [#1](https://github.com/0xs34n/starknet.js/issues/1) [#675](https://github.com/0xs34n/starknet.js/issues/675) [#1](https://github.com/0xs34n/starknet.js/issues/1) [#670](https://github.com/0xs34n/starknet.js/issues/670) [#665](https://github.com/0xs34n/starknet.js/issues/665) [#664](https://github.com/0xs34n/starknet.js/issues/664) [#1](https://github.com/0xs34n/starknet.js/issues/1) [#675](https://github.com/0xs34n/starknet.js/issues/675) [#1](https://github.com/0xs34n/starknet.js/issues/1)
51+
- implement event parsing ([86cc430](https://github.com/0xs34n/starknet.js/commit/86cc430cff2b6f338edecce29819260b475a3907))
52+
- new Cairo types ([f9db09e](https://github.com/0xs34n/starknet.js/commit/f9db09eeab05fd0c1692229fcdbbc020b4954f3e))
53+
54+
# [5.17.0](https://github.com/0xs34n/starknet.js/compare/v5.16.0...v5.17.0) (2023-07-18)
55+
56+
### Bug Fixes
57+
58+
- add FailedTransactionResponse ([994925e](https://github.com/0xs34n/starknet.js/commit/994925e87a4fde3cfcffd9103793d44bc96fc96c))
59+
- remedy type declaration roll-up issues ([48625f4](https://github.com/0xs34n/starknet.js/commit/48625f4a9eaf4e3c294ad840dae78ebab4ab9a12))
60+
- transaction_failure_reason ([77329b7](https://github.com/0xs34n/starknet.js/commit/77329b7ddfc63d708685f0dcbffbe1b9094f7824))
61+
62+
### Features
63+
64+
- add Enum in contract ([515e233](https://github.com/0xs34n/starknet.js/commit/515e233a0b29e125936192da540b83af8591b507)), closes [#670](https://github.com/0xs34n/starknet.js/issues/670) [#665](https://github.com/0xs34n/starknet.js/issues/665) [#664](https://github.com/0xs34n/starknet.js/issues/664) [#1](https://github.com/0xs34n/starknet.js/issues/1)
65+
- calldata result in populate ([d44dc56](https://github.com/0xs34n/starknet.js/commit/d44dc56c0b6db68fcd664b8f02d7a4b72bcdfd28)), closes [#675](https://github.com/0xs34n/starknet.js/issues/675) [#1](https://github.com/0xs34n/starknet.js/issues/1)
66+
- contractFactory Cairo1 & changed constructor signature, 0.12 test fixes ([9b44c54](https://github.com/0xs34n/starknet.js/commit/9b44c54857896019c2545c945695e525392e8dbd))
67+
- rename Failed to Rejected for transaction type ([65b1ef4](https://github.com/0xs34n/starknet.js/commit/65b1ef432e2eda9f37574771d60b409a3f7ab049))
68+
69+
# [5.16.0](https://github.com/0xs34n/starknet.js/compare/v5.15.1...v5.16.0) (2023-07-03)
70+
71+
### Features
72+
73+
- cairo1 version2 support ([e564033](https://github.com/0xs34n/starknet.js/commit/e564033273ac49e971bbf1db843fb3de236976c0))
74+
- extract parser from CallData and Cairo ([b7eba2a](https://github.com/0xs34n/starknet.js/commit/b7eba2a1eada3dddb4dc0575c16ac76a42a78678))
75+
- parsers ([cce9029](https://github.com/0xs34n/starknet.js/commit/cce90299e59e60090b568be14331378de3918924))
76+
77+
## [5.15.1](https://github.com/0xs34n/starknet.js/compare/v5.15.0...v5.15.1) (2023-06-29)
78+
79+
### Bug Fixes
80+
81+
- eradicate static strings ([597d2b5](https://github.com/0xs34n/starknet.js/commit/597d2b525709c0fa2607af70b6f8b6289fb32448))
82+
83+
# [5.15.0](https://github.com/0xs34n/starknet.js/compare/v5.14.1...v5.15.0) (2023-06-29)
84+
85+
### Bug Fixes
86+
87+
- remove DeployContractPayload type ([8908a90](https://github.com/0xs34n/starknet.js/commit/8908a900986244d615b91d35d61906d2dba580b4))
88+
- removed old Struct type ([8ec8a0d](https://github.com/0xs34n/starknet.js/commit/8ec8a0dca2e5548d6ad0d5d63d1431c84f668410))
89+
90+
### Features
91+
92+
- removed pending transaction status, typing update ([a76b35c](https://github.com/0xs34n/starknet.js/commit/a76b35cf5bd9eb8c0a5b9ea33d689ed53c8ff8ab))
93+
194
## [5.14.1](https://github.com/0xs34n/starknet.js/compare/v5.14.0...v5.14.1) (2023-06-26)
295

396
### Bug Fixes
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//Cairo 2.1.0
2+
3+
#[starknet::interface]
4+
trait ITestC210<TContractState> {
5+
fn test_felt(
6+
self: @TContractState,
7+
p1: felt252,
8+
p2: u128,
9+
p3: u8
10+
) -> u128;
11+
}
12+
13+
#[starknet::contract]
14+
mod MyTestFelt {
15+
16+
17+
#[storage]
18+
struct Storage {
19+
counter: u128,
20+
}
21+
22+
#[external(v0)]
23+
impl TestFelt of super::ITestC210<ContractState> {
24+
fn test_felt(
25+
self: @ContractState,
26+
p1: felt252,
27+
p2: u128,
28+
p3: u8
29+
) -> u128 {
30+
p2+1
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)