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

Develop to beta #21

Open
wants to merge 231 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
370cab1
chore: init
tabaktoni Oct 10, 2023
f71a646
Merge branch 'develop' into feat/wallet-rpc
tabaktoni Oct 10, 2023
d1f5496
wip
tabaktoni Oct 16, 2023
f4f52e6
wip
tabaktoni Oct 16, 2023
ab7fa19
feat: get-starknet-core repacked for mjs, and initial implementation
tabaktoni Oct 17, 2023
9921406
test: wallet test placeholder
tabaktoni Oct 17, 2023
dbf53b6
feat: wallet deploy contract and patches
tabaktoni Oct 18, 2023
584d172
Merge pull request #831 from starknet-io/develop
tabaktoni Nov 14, 2023
2b6ed1d
chore: extend Account and overide write wallet methods
tabaktoni Nov 14, 2023
4661483
Merge pull request #839 from starknet-io/develop
tabaktoni Nov 17, 2023
102f170
chore: copy paste types after failed type import
tabaktoni Nov 17, 2023
2dbc4f0
chore: manual copyed types
tabaktoni Nov 17, 2023
5249f36
Merge branch 'develop' into feat/wallet-rpc
tabaktoni Nov 20, 2023
4afdc3a
chore: update
tabaktoni Nov 20, 2023
5c45815
Merge branch 'develop' into feat/wallet-rpc
tabaktoni Nov 20, 2023
d72b1be
Merge pull request #848 from starknet-io/develop
tabaktoni Nov 21, 2023
9434bcd
fix(Calldata.compile): do not split long `entrypoint` names before ca…
avimak Nov 21, 2023
64a664f
Merge pull request #889 from starknet-io/beta
tabaktoni Feb 5, 2024
de6f87f
chore(release): 6.0.0 [skip ci]
semantic-release-bot Feb 5, 2024
9862bd5
build(deps): bump typescript-eslint to "6.21.0", eslint to "8.56.0"
tabaktoni Feb 8, 2024
9cdef5f
Merge pull request #955 from starknet-io/bump/ts-eslint
tabaktoni Feb 8, 2024
09fc563
docs: repair and modify migration guide
penovicp Feb 8, 2024
5a56485
feat: use fetch-cookie package for cookie based sticky sessions
piwonskp Feb 13, 2024
ca2905b
chore(release): 6.1.0 [skip ci]
semantic-release-bot Feb 13, 2024
71c4e29
Merge branch 'develop' into feat/wallet-rpc
tabaktoni Feb 15, 2024
63e0cef
chore: post develop merge package fix
tabaktoni Feb 15, 2024
682f407
chore: cick
tabaktoni Feb 19, 2024
21c1e17
docs: update docs for v6 (#949)
PhilippeR26 Feb 19, 2024
ae3e265
fix: rpc event
tabaktoni Feb 19, 2024
c327bfe
Merge pull request #969 from starknet-io/fix/rpc0.6
tabaktoni Feb 19, 2024
ecfd509
chore(release): 6.1.1 [skip ci]
semantic-release-bot Feb 19, 2024
1f53c4d
chore: bump abi-wan v2 (#970)
ivpavici Feb 19, 2024
30a4681
fix: drop abi-wan-kanabi-v1 support
PhilippeR26 Feb 20, 2024
ee92106
chore(release): 6.1.2 [skip ci]
semantic-release-bot Feb 20, 2024
fab83dc
docs: solve visual display of the tables for snjs versions
PhilippeR26 Feb 20, 2024
8bf55bf
ci: bump devnet
penovicp Feb 21, 2024
469064e
chore: bump dependencies
penovicp Feb 20, 2024
518330c
fix: update fetch-cookie dependency
Feb 22, 2024
ddb0a2e
chore(release): 6.1.3 [skip ci]
semantic-release-bot Feb 23, 2024
fd17826
chore: update package
tabaktoni Feb 24, 2024
5cce8b5
Merge branch 'develop' into fix/support-long-entrypoints
tabaktoni Feb 26, 2024
74ee7cf
Merge pull request #981 from starknet-io/fix/support-long-entrypoints
tabaktoni Feb 26, 2024
d56be0c
chore(release): 6.1.4 [skip ci]
semantic-release-bot Feb 26, 2024
ae8cf8e
fix(RpcChannel): allow client to provide `specVersion`
avimak Feb 29, 2024
7e09d18
Merge pull request #988 from starknet-io/fix/spec-version-options
avimak Mar 2, 2024
5efa196
chore(release): 6.1.5 [skip ci]
semantic-release-bot Mar 2, 2024
9635a26
ci: bump devnet
penovicp Mar 2, 2024
de32936
feat: implement RPC v0.7.0-rc2 specification
penovicp Feb 19, 2024
f529354
chore: apply RPC v0.7.0-rc1 updates
penovicp Feb 27, 2024
e66caf2
test: update tests for RPC upgrade
penovicp Mar 2, 2024
57a8709
chore: rectify intersection types
penovicp Mar 3, 2024
e644b5c
chore: apply RPC v0.7.0-rc2 updates
penovicp Mar 5, 2024
fdcc7fb
chore(release): 6.2.0 [skip ci]
semantic-release-bot Mar 7, 2024
ce2e541
fix: repair Cairo 1 nested and enum tuple handling
PhilippeR26 Mar 11, 2024
fb4bd58
chore(release): 6.2.1 [skip ci]
semantic-release-bot Mar 11, 2024
ae71c97
feat: update starknetId class and add getStarkProfile function
irisdv Mar 11, 2024
6cd35aa
chore(release): 6.3.0 [skip ci]
semantic-release-bot Mar 11, 2024
5157e04
Merge branch 'develop' into feat/wallet-rpc
tabaktoni Mar 12, 2024
318b006
chore: package lock local update
tabaktoni Mar 12, 2024
b992446
fix: expand encoding type for preset types
penovicp Mar 11, 2024
0104c59
feat: enable cairo 2.6.0 contract declaration
PhilippeR26 Mar 12, 2024
6f784ea
feat: skip signatures when skipValidate is true
dhruvkelawala Mar 12, 2024
3f5f48d
chore: resolve lint issues
penovicp Mar 12, 2024
880b906
chore(release): 6.4.0 [skip ci]
semantic-release-bot Mar 12, 2024
653acc4
fix: byteArray encoding for less than 31 chars (#1011)
PhilippeR26 Mar 14, 2024
bff0f5a
chore(release): 6.4.1 [skip ci]
semantic-release-bot Mar 14, 2024
b50a3bd
fix: update starknetid sepolia contract addresses (#1016)
irisdv Mar 14, 2024
fd206a1
chore(release): 6.4.2 [skip ci]
semantic-release-bot Mar 14, 2024
621ae2d
fix: wallet circular dependency fix
tabaktoni Mar 14, 2024
5e49fc6
Merge branch 'develop' into feat/wallet-rpc
tabaktoni Mar 14, 2024
dd34cdb
fix: adjust max amount bound calculation for RPC v0.7.0
penovicp Mar 13, 2024
cedd984
feat: make fee margins configurable
penovicp Mar 13, 2024
94ec7ce
chore(release): 6.5.0 [skip ci]
semantic-release-bot Mar 14, 2024
0315d3d
ci: default rpc spec is 0_7 (#1017)
PhilippeR26 Mar 15, 2024
6f87298
docs: Add docker approach guide for dev setup (#1010)
lukasaric Mar 18, 2024
0dfb5db
feat: walletAccount extract methods and update new ones
tabaktoni Mar 18, 2024
73603e1
feat: the WalletAccount handle changed channel
tabaktoni Mar 18, 2024
ecbe1e0
Update src/wallet/connect.ts
tabaktoni Mar 19, 2024
1f2771e
chore: cleanups
tabaktoni Mar 19, 2024
017702f
fix: update to latest get-starknet dev
tabaktoni Mar 19, 2024
ac5267a
chore: clenup
tabaktoni Mar 19, 2024
1a06b9e
Merge branch 'feat/wallet-rpc-2' into feat/wallet-rpc
tabaktoni Mar 19, 2024
747f1f7
Merge pull request #792 from starknet-io/feat/wallet-rpc
tabaktoni Mar 19, 2024
3d7dc90
Merge pull request #1023 from starknet-io/next-version
tabaktoni Mar 19, 2024
3a6c924
fix: test ci fix
tabaktoni Mar 19, 2024
c90f9b2
fix: second option bump semantic release to 0.5
tabaktoni Mar 19, 2024
c1f3f27
Merge pull request #1025 from starknet-io/fix/ci-release
tabaktoni Mar 19, 2024
70e7ba6
chore(release): 6.6.0 [skip ci]
semantic-release-bot Mar 19, 2024
6235080
chore: refactor various typeof comparisons with util methods (#1007)
ikrcatov Mar 20, 2024
07d4a26
fix: next version (#1024)
tabaktoni Mar 25, 2024
b16db6d
chore(release): 6.6.6 [skip ci]
semantic-release-bot Mar 25, 2024
e74ba31
docs: fix nodeUrl code typo (#1046)
9oelM Mar 27, 2024
c5c849d
Next version (#1043)
tabaktoni Apr 3, 2024
5341c42
feat: readme & trigger release
tabaktoni Apr 3, 2024
a85d48e
chore(release): 6.7.0 [skip ci]
semantic-release-bot Apr 3, 2024
2c27daf
ci: bump devnet
penovicp Apr 3, 2024
51b694c
docs: goerli testnet deprecated (#1059)
PhilippeR26 Apr 4, 2024
da4ddce
test: CairoFelt tests (#1035)
ikrcatov Apr 4, 2024
dd7dc10
fix: tslib (#1068)
tabaktoni Apr 5, 2024
d396275
feat: add getGasPrice rpc provider method (#1056)
princeibs Apr 8, 2024
d5f0b75
test: Test setup refactor & remove RPC sequencer (#1044)
lukasaric Apr 8, 2024
c213c29
docs: types format fix for generated docs (#1075)
ivpavici Apr 11, 2024
11dc600
feat: rpc 0.7.1 (#1071)
tabaktoni Apr 11, 2024
0a3499d
fix(utils): fix block identifier (#1076)
tabaktoni Apr 11, 2024
4d59658
feat: Export function parseCalldataField()
PhilippeR26 Apr 12, 2024
64ac7e3
docs: repair dark theme search styling (#1080)
bhavyagosai Apr 15, 2024
23c5fd6
docs: word <any> not authorized in jsdoc (#1082)
PhilippeR26 Apr 15, 2024
cb35e34
docs: adding missing jsdocs on methods (#1036)
ikrcatov Apr 19, 2024
a344f37
chore: added discord link to all relavant places (#1086)
hemantwasthere Apr 22, 2024
d35f154
refactor: getStarkName & getStarkProfile for latest version of contract
irisdv Apr 22, 2024
b038c76
fix: starkne types 0.7 (#1087)
tabaktoni Apr 23, 2024
e946a60
Merge pull request #1067 from starknet-io/next-version
tabaktoni Apr 23, 2024
b3a2946
chore(release): 6.8.0 [skip ci]
semantic-release-bot Apr 23, 2024
23ae319
Snjs enc dec doc (#1101)
PhilippeR26 Apr 25, 2024
ae5dcf9
chore: add examples to JsDoc for num.ts file (#1100)
NueloSE Apr 26, 2024
8ba8d10
Merge pull request #1093 from irisdv/ref/starknetid_address_to_domain
tabaktoni Apr 29, 2024
f77bae5
chore: Add JsDoc comments and examples for merkle.ts file (#1107)
NueloSE Apr 29, 2024
0b25aba
chore: Add JsDoc comments and examples for selector.ts file (#1106)
NueloSE Apr 29, 2024
0ab0de7
chore: add examples to JsDoc for transaction.ts file (#1105)
petersdt Apr 29, 2024
59eb01e
Revert "chore: add examples to JsDoc for transaction.ts file (#1105)"…
ivpavici Apr 29, 2024
366c960
Update CONTRIBUTING.md (#1117)
ivpavici May 2, 2024
1f3c934
chore/add JsDoc for address.ts file (#1096)
BlackStarkGoku May 2, 2024
ba35b6c
docs: add example to url.ts (#1112)
CollinsC1O May 2, 2024
0303b21
Revert "chore: Add JsDoc comments and examples for merkle.ts file (#1…
tabaktoni May 6, 2024
cc4b0af
Revert "chore: Add JsDoc comments and examples for selector.ts file (…
tabaktoni May 6, 2024
3a58b84
Revert "chore: add examples to JsDoc for num.ts file (#1100)"
tabaktoni May 6, 2024
933220a
chore: curent changelog
tabaktoni May 6, 2024
d002bae
test: Improve tests performance (#1121)
lukasaric May 6, 2024
eceda5d
feat: add type coverage (#1120)
saimeunt May 6, 2024
ce48afc
feat: rpc batch requests
ugur-eren May 13, 2024
01f48ef
feat: rpc batch remove delayedAction class
ugur-eren May 14, 2024
04ad50d
fix: rpc batch type errors
ugur-eren May 14, 2024
37526cf
Update _test.yml (#1126)
ivpavici May 15, 2024
f1c3b8e
fix: cannot infer ts2742 types from [email protected] (#1098)
0xknwn May 17, 2024
cfcf93b
Verify message fix (#1128)
tabaktoni May 17, 2024
57e4e17
Remove all code for Goerli testnet (#1122)
PhilippeR26 May 17, 2024
1489cf2
feat: provider.getL1MessageHash (#1123)
PhilippeR26 May 17, 2024
195186f
fix: remove [warning] from typedoc for external usage (#1095)
0xknwn May 17, 2024
242baff
docs: relocate documentation of eth randomness (#1130)
PhilippeR26 May 20, 2024
fe24214
Merge pull request #1110 from starknet-io/next-version
tabaktoni May 21, 2024
66a5c03
chore(release): 6.9.0 [skip ci]
semantic-release-bot May 21, 2024
d6c1ce2
Next version (#1143)
tabaktoni Jun 18, 2024
1687dd2
feat: next-version
tabaktoni Jun 18, 2024
e79da4e
chore(release): 6.10.0 [skip ci]
semantic-release-bot Jun 18, 2024
cf407b3
docs: update licence, package, readme (#1157)
tabaktoni Jun 19, 2024
57e51f9
test: add starknet rpc spec json schemas
Jun 9, 2024
270b1f2
test: import starknet schemas as dependency
penovicp Jun 14, 2024
07faca1
ci: bump devnet
penovicp Jun 21, 2024
f4d5d09
docs: fix format pb in create account guide (#1161)
PhilippeR26 Jun 24, 2024
a63d31c
Fix invalid reference in create_contract.md (#1162)
FabijanC Jun 24, 2024
bb4a93d
fix: change build cjs and mjs to unbuild (#1163)
b0rza Jun 28, 2024
995b90f
chore(release): 6.10.1 [skip ci]
semantic-release-bot Jun 28, 2024
ee3d776
chore: bump dependencies
penovicp Jun 27, 2024
dc5e124
chore: replace type coverage dependency with simpler variant
penovicp Jul 1, 2024
57b2c72
fix: revert enums partially & tsup build (#1165)
lukasaric Jul 2, 2024
3f37994
chore(release): 6.10.2 [skip ci]
semantic-release-bot Jul 2, 2024
bd8efec
Release v6 (#1170)
tabaktoni Jul 2, 2024
7cd0a16
feat: release v6 audit package
tabaktoni Jul 2, 2024
04c67df
feat: v6 version release CI retry
tabaktoni Jul 2, 2024
70cd028
feat: dummy change
tabaktoni Jul 2, 2024
2af4ea9
Merge pull request #1172 from starknet-io/relesedv
tabaktoni Jul 2, 2024
b15fe2d
chore(release): 6.11.0 [skip ci]
semantic-release-bot Jul 2, 2024
fd7a097
Merge branch 'main' into main-to-develop
penovicp Jul 3, 2024
3e3990a
Merge pull request #1174 from starknet-io/main-to-develop
penovicp Jul 3, 2024
642ecaf
chore(release): 7.0.0 [skip ci]
semantic-release-bot Jul 3, 2024
8eecfd0
docs: generate documentation version
web-flow Jul 3, 2024
cbd1519
Merge pull request #1175 from starknet-io/ci/docs-version
tabaktoni Jul 3, 2024
d2fb60e
chore: fix version
tabaktoni Jul 3, 2024
f494902
fix: move BatchClient to utils
ugur-eren Jul 6, 2024
257c68e
test: add BatchClient tests
ugur-eren Jul 6, 2024
1791134
Merge branch 'develop' into feat-rpc-batch
ugur-eren Jul 6, 2024
07d5060
docs: added examples and tests for typedData (#1179)
ivpavici Jul 18, 2024
6f34a1a
Update README.md
ivpavici Jul 18, 2024
307ce3e
ci: bump devnet
penovicp Jul 18, 2024
7f5e42d
docs: fix interface error (#1183)
PoulavBhowmick03 Jul 19, 2024
b1d10a1
fix: jest debut fix api requests match using uid
tabaktoni Jul 19, 2024
f1ca022
test: provider
tabaktoni Jul 19, 2024
b30dc33
Merge branch 'next-version' into feat-rpc-batch
ugur-eren Jul 23, 2024
078c37d
feat: ledger Signer
PhilippeR26 Jul 24, 2024
f8c1dac
feat: add L1->L2 hashes
PhilippeR26 Jul 25, 2024
c10cfe3
Merge pull request #1125 from ugur-eren/feat-rpc-batch
tabaktoni Jul 26, 2024
e80f120
Merge pull request #1184 from starknet-io/fix/jest-debug
tabaktoni Jul 26, 2024
13ef078
docs: batchClient
tabaktoni Jul 26, 2024
72c0ec0
Merge pull request #1188 from starknet-io/docs/batch
tabaktoni Jul 26, 2024
90bef27
Merge branch 'next-version' into LedgerNano
tabaktoni Jul 26, 2024
6e5e89a
Merge pull request #1185 from PhilippeR26/LedgerNano
tabaktoni Jul 26, 2024
4559bcc
Merge branch 'next-version' into L1toL2message
tabaktoni Jul 26, 2024
96a3dfb
Merge pull request #1186 from PhilippeR26/L1toL2message
tabaktoni Jul 26, 2024
df78f60
Merge pull request #1187 from starknet-io/next-version
tabaktoni Jul 26, 2024
613f4de
chore(release): 6.12.0 [skip ci]
semantic-release-bot Jul 26, 2024
aa88d5f
test: repair lint
penovicp Jul 29, 2024
91493bb
fix: remove ledger transport dependency
penovicp Jul 29, 2024
bbbf3d8
fix: deprecate url utility methods
penovicp Jul 30, 2024
a00e86e
chore(release): 6.12.1 [skip ci]
semantic-release-bot Jul 30, 2024
b96e3d3
docs: guides variable name fixes (#1200)
ivpavici Aug 14, 2024
36f8c3c
fix: repair enum type lookup for typed data hashing
penovicp Aug 13, 2024
da20310
fix: sync cryptographic dependencies
penovicp Jul 30, 2024
53d8e14
docs: bump ArgentX account to v0.4.0 (#1167)
PhilippeR26 Aug 20, 2024
9526f26
docs: enable github pages deployment
penovicp Aug 25, 2024
ea6636f
docs: adjust banner migration link
penovicp Aug 25, 2024
bdad9a5
feat: improve message verification utilities (#1198)
PhilippeR26 Aug 26, 2024
e3c80c5
feat: implement SNIP-9 outside execution functionality (#1208)
penovicp Aug 27, 2024
07aecf6
chore: bump dependencies
penovicp Aug 17, 2024
84f9f02
chore(release): 6.13.0 [skip ci]
semantic-release-bot Aug 27, 2024
ebf9f35
fix: revert companion pattern except constants (#1193)
lukasaric Sep 3, 2024
e435903
chore(release): 6.13.1 [skip ci]
semantic-release-bot Sep 3, 2024
9fdf54f
feat: isClassDeclared prepareInvocations, fix cairo0 test (#1211)
tabaktoni Sep 3, 2024
ab52e23
chore: remove duplicate values type import (#1215)
lukasaric Sep 4, 2024
cfddab6
chore(release): 6.14.0 [skip ci]
semantic-release-bot Sep 4, 2024
aac437b
test: bump devnet, hotfix devnet create block (#1219)
tabaktoni Sep 5, 2024
453ad48
Chore: Types & utils improvements (#1212)
lukasaric Sep 5, 2024
41ed6e6
chore: add events util tests (#1218)
lukasaric Sep 5, 2024
8f30b33
docs: Improve JSDocs by adding examples of usages
RuneRogue Sep 6, 2024
b4198bd
chore: calldata utils improvements & tests (#1221)
lukasaric Sep 11, 2024
7d61482
chore: introduce calldata `requestParser.test.ts` (#1224)
lukasaric Sep 13, 2024
47e52cf
fix: adjust module configuration
penovicp Sep 13, 2024
88c00f8
ci: bump devnet
penovicp Sep 20, 2024
9e6cbf1
chore: sync configuration options for both channel versions
penovicp Sep 24, 2024
dc11b96
chore(release): 6.14.1 [skip ci]
semantic-release-bot Sep 30, 2024
312aa13
refactor: add default for ledger signer transport generic type
penovicp Oct 1, 2024
6bd26a1
Fix detection of Abi version in contract with only constructor (#1243)
taco-paco Oct 7, 2024
d8639e5
test: reorganize compiled contract handling
penovicp Aug 23, 2024
55e28bc
test: inline compiled contract variables
penovicp Oct 3, 2024
f546d0e
docs: add Openzeppelin as SNIP-9 compatible (#1244)
PhilippeR26 Oct 10, 2024
56020cd
feat: num.toHex64 ensure 0x(64 char) format (#1222)
tabaktoni Oct 16, 2024
d9826c9
chore(release): 6.15.0 [skip ci]
semantic-release-bot Oct 16, 2024
947e8b4
feat: increase rpc error information propagation (#1213)
penovicp Oct 24, 2024
5e39815
chore(release): 6.16.0 [skip ci]
semantic-release-bot Oct 24, 2024
06f0a80
feat: Cairo u96 implementation (#1247)
PhilippeR26 Oct 24, 2024
ad70b45
chore(release): 6.17.0 [skip ci]
semantic-release-bot Oct 24, 2024
7113401
Update _test.yml
penovicp Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 23 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@
"node": true,
"jest": true
},
"extends": ["airbnb-base", "airbnb-typescript/base", "prettier", "plugin:prettier/recommended"],
"ignorePatterns": ["tsup.config.ts"],
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"prettier",
"plugin:prettier/recommended"
],
"ignorePatterns": [
"tsup.config.ts"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
Expand All @@ -17,13 +24,24 @@
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"plugins": ["@typescript-eslint"],
"plugins": [
"@typescript-eslint"
],
"rules": {
"class-methods-use-this": 0,
"import/prefer-default-export": 0,
"@typescript-eslint/no-redeclare": 0,
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-use-before-define": ["error", "nofunc"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-use-before-define": [
"error",
"nofunc"
],
"func-names": 0
}
}
4 changes: 2 additions & 2 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# TODO - periodically check if conditional services are supported; https://github.com/actions/runner/issues/822
services:
devnet:
image: ${{ (inputs.use-devnet) && 'shardlabs/starknet-devnet-rs:85495efb71a37ad3921c8986474b7e78a9a9f5fc-amd-seed0' || '' }}
image: ${{ (inputs.use-devnet) && 'shardlabs/starknet-devnet-rs:0.2.2' || '' }}
ports:
- 5050:5050

Expand All @@ -38,4 +38,4 @@ jobs:
node-version: lts/*
cache: 'npm'
- run: npm ci --ignore-scripts
- run: npm test
- run: npm run test:coverage
52 changes: 52 additions & 0 deletions .github/workflows/manual-docs-deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: '[Manual] Documentation Deploy Pages'
on: workflow_dispatch

# populate the following environment variables for the "github-pages" environment
# - default:
# ORGANIZATION_NAME
# PROJECT_NAME
# DEPLOYMENT_BRANCH
# - custom:
# DOCS_BASE_URL

jobs:
build:
name: Documentation build
runs-on: ubuntu-latest
environment: github-pages
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Setup
run: |
npm ci --ignore-scripts
cd www/
npm ci --ignore-scripts
- name: Build
run: |
rm -rf www/docs/API/
npm run docs:build
env:
DOCS_BASE_URL: ${{ vars.DOCS_BASE_URL || '/starknet.js/' }}
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
path: www/build

deploy:
name: documentation deploy
runs-on: ubuntu-latest
needs: [build]
permissions:
pages: write # to deploy to pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: deploy
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/manual-tests-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
name: [rpc-goerli]
name: [rpc-sepolia]

uses: ./.github/workflows/_test.yml
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
name: [rpc-goerli]
name: [rpc-sepolia]

uses: ./.github/workflows/_test.yml
secrets:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
.env
.eslintcache
.vscode
.idea
coverage
coverage-ts
dist
node_modules
npm-debug.log
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
393 changes: 393 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

30 changes: 26 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@ If you want to contribute but don’t know what to do, take a look at these two

_[Use GitHub interface](https://blog.sapegin.me/all/open-source-for-everyone/) for simple documentation changes, otherwise follow the steps below._

> :warning: IMPORTANT NOTE :warning:
>
> All contributions are expected to be of the highest possible quality! That means the PR is thoroughly tested and documented, and without blindly generated ChatGPT code and documentation! We will not consider nor merge PR-s that do not comply to these rules!

## Prerequisites

- If it’s your first pull request, watch [this amazing course](http://makeapullrequest.com/) by [Kent C. Dodds](https://twitter.com/kentcdodds).
- Fork the repository and clone your fork.
- Checkout to the `develop` branch.
- Install dependencies: `npm install`.

## Development workflow

Start from the `develop` branch.
Start from the `develop` branch (or `next-version` if latest).

To build your changes, run:

Expand All @@ -34,15 +39,27 @@ Or run tests in watch mode:
npm test --watch
```

By default the tests are executed in your local Devnet. If you want to use a specific rpc node, you have to set some global variables before executing the tests :
By default the tests are executed in your local Devnet and everything should run automatically.

If you want to use a specific RPC node, you have to set some global variables before executing the tests:

```bash
export TEST_RPC_URL=http://192.168.1.44:9545/rpc/v0.5 # example of a Pathfinder node located in your local network
export TEST_RPC_URL=https://starknet-testnet.public.blastapi.io/rpc/v0.5 # example of a public testnet node
export TEST_RPC_URL=http://192.168.1.44:9545/rpc/v0_7 # example of a Pathfinder node located in your local network
export TEST_RPC_URL=https://starknet-sepolia.public.blastapi.io/rpc/v0_7 # example of a public Sepolia testnet node
export TEST_ACCOUNT_ADDRESS=0x065A822f0000000000000000000000000c26641
export TEST_ACCOUNT_PRIVATE_KEY=0x02a80000000000000000000000001754438a
```

The global variables above will only be valid for some of the tests.
The recommended and more straightforward approach is to go with the docker.
You just need to do the following steps:

- Install [Docker](https://docs.docker.com/engine/install/) (it can also be installed via a package manager, e.g. `brew` for Mac)
- Run `Docker` on your machine (open the application).
- Go to the [starknet-devnet-rs](https://hub.docker.com/r/shardlabs/starknet-devnet-rs/tags) and copy the `docker pull` command from the latest tag
- Run `docker pull shardlabs/starknet-devnet-rs:latest` in your terminal
- Run tests locally with `npm run test`

**Don’t forget to add tests and [update documentation](./www/README.md) for your changes.**
Documentation can be archived by using JSDoc.

Expand Down Expand Up @@ -86,7 +103,12 @@ For major changes that markedly transform the existing API or significantly alte
- We’re using [Prettier](https://github.com/prettier/prettier) to format code, so don’t worry much about code formatting.
- Don’t commit generated files, like minified JavaScript.
- Don’t change the version number or changelog.
- Use `npm run test:coverage` for a complete project test coverage.
- Use for example `npm run test:coverage __tests__/utils/uint256.test.ts` for a single file coverage.
- Use `npm run ts:coverage` to check the global type coverage rate and `npm run ts:coverage:report` to generate a complete report (summary displayed in the console, full HTML report available in the `coverage-ts` folder by launching `./coverage-ts/index.html` in your browser) and find files having low coverage.

## Need help?

If you want to contribute but have any questions, concerns or doubts, feel free to ping maintainers. Ideally create a pull request with `WIP` (Work in progress) in its title and ask questions in the pull request description.

You can also ask your query on our dedicated channel for [Starknet.js](https://discord.com/channels/793094838509764618/927918707613786162) on the [Starknet Discord](https://discord.com/invite/YgsdxEx3)
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Sean James Han
Copyright (c) StarkWare Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,33 @@
</a>
</p>

## 🕹️ Usage

Install starknet with `npm`
## Installation

```bash
# latest official release (main branch)
$ npm install starknet

# or for latest pre-release version (develop branch):
# or for latest pre-release version (develop branch)
$ npm install starknet@next

# or for latest beta release version (beta branch)
$ npm install starknet@beta
```

Import `starknet` and use the [API](https://www.starknetjs.com/docs/API/).

## 🌐 API
## 🌐 Documentation

[Click Here](https://www.starknetjs.com/docs/API/)
How to [Guides](https://www.starknetjs.com/docs/guides/intro) :book: & [API](https://www.starknetjs.com/docs/API/) 💻

Please refer to the following code examples [here](https://github.com/PhilippeR26/starknet.js-workshop-typescript)! :video_game:

Guides can be found [here](https://www.starknetjs.com/docs/guides/intro) :book:
Play with [Code Examples](https://github.com/PhilippeR26/starknet.js-workshop-typescript) :video_game:

## ✏️ Contributing

If you consider to contribute to this project please read [CONTRIBUTING.md](https://github.com/starknet-io/starknet.js/blob/main/CONTRIBUTING.md) first.

You can also join our dedicated channel for [Starknet.js](https://discord.com/channels/793094838509764618/927918707613786162) on the [Starknet Discord](https://discord.com/invite/YgsdxEx3)

## ❤️ Special Thanks

Special thanks to all the [contributors](https://github.com/starknet-io/starknet.js/graphs/contributors), especially to:
Expand All @@ -68,7 +69,7 @@ Special thanks to all the [contributors](https://github.com/starknet-io/starknet

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

- Toni ([@tabaktoni](https://github.com/tabaktoni)) and Ivan ([@ivpavici](https://github.com/ivpavici)) from [SpaceShard](https://www.spaceshard.io/)
- Toni ([@tabaktoni](https://github.com/tabaktoni)), Petar ([@penovicp](https://github.com/penovicp)) and Ivan ([@ivpavici](https://github.com/ivpavici)) from [SpaceShard](https://www.spaceshard.io/)

- Philippe ROSTAN ([@PhilippeR26](https://github.com/PhilippeR26))

Expand All @@ -78,6 +79,6 @@ This library would not be possible without these rockstars.

## 📜 License

Copyright (c) 2023 StarkWare
Copyright (c) 2024 StarkWare

Licensed under the [MIT license](https://github.com/starknet-io/starknet.js/blob/main/LICENSE).
Loading
Loading