Skip to content

Commit 84ba24c

Browse files
committed
docs: update dependencies
1 parent 8449968 commit 84ba24c

File tree

177 files changed

+16763
-11411
lines changed

Some content is hidden

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

177 files changed

+16763
-11411
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ This library would not be possible without these rockstars.
8282

8383
## 📜 License
8484

85-
Copyright (c) 2024 StarkWare
85+
Copyright (c) 2025 StarkWare
8686

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

__tests__/account.outsideExecution.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ describe('Account and OutsideExecution', () => {
334334
calldata: [getDecimalString(recipientAccount.address), '300', '0'],
335335
},
336336
]);
337-
// get outside transaction of a multiCall :
337+
// get outside transaction of a multiCall:
338338
const outsideTransaction2: OutsideTransaction = await signerAccount.getOutsideTransaction(
339339
callOptions,
340340
[call1, call2]

__tests__/utils/hash.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ describe('getSelector', () => {
5151

5252
describe('L1->L2 messaging', () => {
5353
// L1 tx for a message L1->L2
54-
// data extracted from :
54+
// data extracted from:
5555
// https://sepolia.etherscan.io/tx/0xd82ce7dd9f3964d89d2eb9d555e1460fb7792be274950abe578d610f95cc40f5
56-
// data extracted from etherscan :
56+
// data extracted from etherscan:
5757
const l1FromAddress = '0x0000000000000000000000008453fc6cd1bcfe8d4dfc069c400b433054d47bdc';
5858
const l2ToAddress = 2158142789748719025684046545159279785659305214176670733242887773692203401023n;
5959
const l2Selector = 774397379524139446221206168840917193112228400237242521560346153613428128537n;

src/account/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export abstract class AccountInterface extends ProviderInterface {
146146
* Estimate Fee for executing a list of transactions on starknet
147147
* Contract must be deployed for fee estimation to be possible
148148
*
149-
* @param invocations array of transaction object containing :
149+
* @param invocations array of transaction object containing:
150150
* - type - the type of transaction : 'DECLARE' | (multi)'DEPLOY' | (multi)'INVOKE_FUNCTION' | 'DEPLOY_ACCOUNT'
151151
* - payload - the payload of the transaction
152152
*

src/provider/interface.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export abstract class ProviderInterface {
9090
* @param {BigNumberish} l2TxHash L2 transaction hash
9191
* @returns {string} Hex string of L1 message hash
9292
* @example
93-
* In Sepolia Testnet :
93+
* In Sepolia Testnet:
9494
* ```typescript
9595
* const result = provider.getL1MessageHash('0x28dfc05eb4f261b37ddad451ff22f1d08d4e3c24dc646af0ec69fa20e096819');
9696
* // result = '0x55b3f8b6e607fffd9b4d843dfe8f9b5c05822cd94fcad8797deb01d77805532a'
@@ -133,7 +133,7 @@ export abstract class ProviderInterface {
133133
* Get the value of the storage (contract's variable) at the given address and key
134134
*
135135
* @param contractAddress
136-
* @param key - from getStorageVarAddress('<STORAGE_VARIABLE_NAME>') (WIP)
136+
* @param key - from starknetKeccak()
137137
* @param blockIdentifier - block identifier
138138
* @returns the value of the storage variable
139139
*/
@@ -147,7 +147,7 @@ export abstract class ProviderInterface {
147147
* Gets the transaction information from a tx id.
148148
*
149149
* @param transactionHash
150-
* @returns the transaction object \{ transaction_id, status, transaction, block_number?, block_number?, transaction_index?, transaction_failure_reason? \}
150+
* @returns the transaction object `{ transaction_id, status, transaction, block_number?, transaction_index?, transaction_failure_reason? }`
151151
*/
152152
public abstract getTransaction(transactionHash: BigNumberish): Promise<GetTransactionResponse>;
153153

src/provider/rpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class RpcProvider implements ProviderInterface {
171171

172172
/**
173173
* Pause the execution of the script until a specified block is created.
174-
* @param {BlockIdentifier} blockIdentifier bloc number (BigNumberish) or 'pending' or 'latest'.
174+
* @param {BlockIdentifier} blockIdentifier block number (BigNumberish) or 'pending' or 'latest'.
175175
* Use of 'latest" or of a block already created will generate no pause.
176176
* @param {number} [retryInterval] number of milliseconds between 2 requests to the node
177177
* @example

src/signer/ledgerSigner221.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class LedgerSigner221<Transport extends Record<any, any> = any>
6262
* @param {LedgerPathCalculation} [pathFunction=getLedgerPathBuffer221]
6363
* defines the function that will calculate the path. By default `getLedgerPathBuffer221` is selected.
6464
*
65-
* If you are using APP v2.2.1 with an account created with the v1.1.1, you need to use :
65+
* If you are using APP v2.2.1 with an account created with the v1.1.1, you need to use:
6666
* ```typescript
6767
* const myLedgerSigner = new LedgerSigner211(myNodeTransport, 0, undefined, getLedgerPathBuffer111);
6868
* ```

src/types/lib/contract/abi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export type AbiEnum = {
4444
type: 'enum';
4545
};
4646

47-
// AbiEvents type is an arborescence :
47+
// AbiEvents type is an arborescence:
4848
// - Nodes are hashes of either Cairo 1 components names, or of Cairo 0 or 1 event names,
4949
// - With Cairo 1 abi, the nodes are linked in accordance with the components arborescence ; the tree can have several levels of nodes.
5050
// - With Cairo 0 abi : the tree has only one level of nodes (no component concept)

src/utils/cairoDataTypes/uint256.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class CairoUint256 {
5555
}
5656

5757
/**
58-
* Validate if BigNumberish can be represented as Unit256
58+
* Validate if BigNumberish can be represented as Uint256
5959
*/
6060
static validate(bigNumberish: BigNumberish) {
6161
const bigInt = BigInt(bigNumberish);
@@ -65,7 +65,7 @@ export class CairoUint256 {
6565
}
6666

6767
/**
68-
* Validate if low and high can be represented as Unit256
68+
* Validate if low and high can be represented as Uint256
6969
*/
7070
static validateProps(low: BigNumberish, high: BigNumberish) {
7171
const bigIntLow = BigInt(low);
@@ -80,7 +80,7 @@ export class CairoUint256 {
8080
}
8181

8282
/**
83-
* Check if BigNumberish can be represented as Unit256
83+
* Check if BigNumberish can be represented as Uint256
8484
*/
8585
static is(bigNumberish: BigNumberish) {
8686
try {
@@ -107,7 +107,7 @@ export class CairoUint256 {
107107

108108
/**
109109
* Return Uint256 structure with HexString props
110-
* {low: HexString, high: HexString}
110+
* `{low: HexString, high: HexString}`
111111
*/
112112
toUint256HexString() {
113113
return {
@@ -118,7 +118,7 @@ export class CairoUint256 {
118118

119119
/**
120120
* Return Uint256 structure with DecimalString props
121-
* {low: DecString, high: DecString}
121+
* `{low: DecString, high: DecString}`
122122
*/
123123
toUint256DecimalString() {
124124
return {

src/utils/calldata/byteArray.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@ export function stringFromByteArray(myByteArray: ByteArray): string {
3737
* @example
3838
* ```typescript
3939
* const myByteArray: ByteArray = byteArrayFromString("ABCDEFGHI");
40+
* // result is: {
41+
* // data: [],
42+
* // pending_word: '0x414243444546474849',
43+
* // pending_word_len: 9
44+
* // }
4045
* ```
41-
* Result is :
42-
* {
43-
* data: [],
44-
* pending_word: '0x414243444546474849',
45-
* pending_word_len: 9
46-
* }
4746
*/
4847
export function byteArrayFromString(targetString: string): ByteArray {
4948
const shortStrings: string[] = splitLongString(targetString);

0 commit comments

Comments
 (0)