starknet 7.6.0 → 7.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.global.js +10 -6
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [7.6.2](https://github.com/starknet-io/starknet.js/compare/v7.6.1...v7.6.2) (2025-06-24)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- enable passing UniversalDetails into ContractOptions ([#1427](https://github.com/starknet-io/starknet.js/issues/1427)) ([4cde813](https://github.com/starknet-io/starknet.js/commit/4cde813afffe08681d61bd624a3429ca3b47cc6e))
|
|
6
|
+
|
|
7
|
+
## [7.6.1](https://github.com/starknet-io/starknet.js/compare/v7.6.0...v7.6.1) (2025-06-24)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- verification of signature in a Braavos account with a juno node … ([#1426](https://github.com/starknet-io/starknet.js/issues/1426)) ([e3dca62](https://github.com/starknet-io/starknet.js/commit/e3dca628ee08d98522a98dc9748d841c5e9f075c))
|
|
12
|
+
|
|
1
13
|
# [7.6.0](https://github.com/starknet-io/starknet.js/compare/v7.5.1...v7.6.0) (2025-06-23)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -1031,6 +1031,9 @@ type AccountInvocationsFactoryDetails = {
|
|
|
1031
1031
|
interface UniversalDetails {
|
|
1032
1032
|
nonce?: BigNumberish;
|
|
1033
1033
|
blockIdentifier?: BlockIdentifier;
|
|
1034
|
+
/**
|
|
1035
|
+
* Max fee to pay for V2 transaction
|
|
1036
|
+
*/
|
|
1034
1037
|
maxFee?: BigNumberish;
|
|
1035
1038
|
tip?: BigNumberish;
|
|
1036
1039
|
paymasterData?: BigNumberish[];
|
|
@@ -1161,13 +1164,11 @@ type ContractOptions = {
|
|
|
1161
1164
|
formatResponse?: {
|
|
1162
1165
|
[key: string]: any;
|
|
1163
1166
|
};
|
|
1164
|
-
maxFee?: BigNumberish;
|
|
1165
|
-
nonce?: BigNumberish;
|
|
1166
1167
|
signature?: Signature;
|
|
1167
1168
|
addressSalt?: string;
|
|
1168
|
-
}
|
|
1169
|
+
} & Partial<UniversalDetails>;
|
|
1169
1170
|
type CallOptions = Pick<ContractOptions, 'blockIdentifier' | 'parseRequest' | 'parseResponse' | 'formatResponse'>;
|
|
1170
|
-
type InvokeOptions =
|
|
1171
|
+
type InvokeOptions = ContractOptions;
|
|
1171
1172
|
type ParsedEvent = {
|
|
1172
1173
|
[name: string]: ParsedStruct;
|
|
1173
1174
|
} & {
|
|
@@ -4510,7 +4511,7 @@ declare class Contract implements ContractInterface {
|
|
|
4510
4511
|
connect(providerOrAccount: ProviderInterface | AccountInterface): void;
|
|
4511
4512
|
deployed(): Promise<Contract>;
|
|
4512
4513
|
call(method: string, args?: ArgsOrCalldata, { parseRequest, parseResponse, formatResponse, blockIdentifier, }?: CallOptions): Promise<Result>;
|
|
4513
|
-
invoke(method: string, args?: ArgsOrCalldata, { parseRequest,
|
|
4514
|
+
invoke(method: string, args?: ArgsOrCalldata, { parseRequest, signature, ...RestInvokeOptions }?: InvokeOptions): Promise<InvokeFunctionResponse>;
|
|
4514
4515
|
estimate(method: string, args?: ArgsOrCalldata): Promise<EstimateFeeResponse>;
|
|
4515
4516
|
populate(method: string, args?: RawArgs): Call;
|
|
4516
4517
|
parseEvents(receipt: GetTransactionReceiptResponse): ParsedEvents;
|
package/dist/index.global.js
CHANGED
|
@@ -15121,10 +15121,13 @@ ${indent}}` : "}";
|
|
|
15121
15121
|
],
|
|
15122
15122
|
error: [
|
|
15123
15123
|
"argent/invalid-signature",
|
|
15124
|
+
"0x617267656e742f696e76616c69642d7369676e6174757265",
|
|
15124
15125
|
// ArgentX 0.3.0 to 0.3.1
|
|
15125
15126
|
"is invalid, with respect to the public key",
|
|
15127
|
+
"0x697320696e76616c6964",
|
|
15126
15128
|
// OpenZeppelin until 0.6.1, Braavos 0.0.11
|
|
15127
|
-
"INVALID_SIG"
|
|
15129
|
+
"INVALID_SIG",
|
|
15130
|
+
"0x494e56414c49445f534947"
|
|
15128
15131
|
// Braavos 1.0.0
|
|
15129
15132
|
]
|
|
15130
15133
|
};
|
|
@@ -19068,7 +19071,7 @@ ${indent}}` : "}";
|
|
|
19068
19071
|
return this.callData.parse(method, it);
|
|
19069
19072
|
});
|
|
19070
19073
|
}
|
|
19071
|
-
invoke(method, args = [], { parseRequest = true,
|
|
19074
|
+
invoke(method, args = [], { parseRequest = true, signature, ...RestInvokeOptions } = {}) {
|
|
19072
19075
|
assert(this.address !== null, "contract is not connected to an address");
|
|
19073
19076
|
const calldata = getCalldata(args, () => {
|
|
19074
19077
|
if (parseRequest) {
|
|
@@ -19085,11 +19088,11 @@ ${indent}}` : "}";
|
|
|
19085
19088
|
};
|
|
19086
19089
|
if ("execute" in this.providerOrAccount) {
|
|
19087
19090
|
return this.providerOrAccount.execute(invocation, {
|
|
19088
|
-
|
|
19089
|
-
nonce
|
|
19091
|
+
...RestInvokeOptions
|
|
19090
19092
|
});
|
|
19091
19093
|
}
|
|
19092
|
-
if (!nonce)
|
|
19094
|
+
if (!RestInvokeOptions.nonce)
|
|
19095
|
+
throw new Error(`Nonce is required when invoking a function without an account`);
|
|
19093
19096
|
logger.warn(`Invoking ${method} without an account. This will not work on a public node.`);
|
|
19094
19097
|
return this.providerOrAccount.invokeFunction(
|
|
19095
19098
|
{
|
|
@@ -19097,7 +19100,8 @@ ${indent}}` : "}";
|
|
|
19097
19100
|
signature
|
|
19098
19101
|
},
|
|
19099
19102
|
{
|
|
19100
|
-
|
|
19103
|
+
...RestInvokeOptions,
|
|
19104
|
+
nonce: RestInvokeOptions.nonce
|
|
19101
19105
|
}
|
|
19102
19106
|
);
|
|
19103
19107
|
}
|