@medialane/sdk 0.142.0 → 0.143.0
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/dist/{errors-DP-VnOWP.d.ts → errors-DUiebYFo.d.ts} +2 -3
- package/dist/{errors-BRCRmVep.d.cts → errors-SGwgtvtF.d.cts} +2 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +7 -5
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +3 -2
- package/dist/starknet/index.d.ts +3 -2
- package/dist/starknet/index.js +7 -5
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/starknet/index.cjs
CHANGED
|
@@ -646,7 +646,7 @@ var ApiClient = class {
|
|
|
646
646
|
registerBusinessProvisioning(params) {
|
|
647
647
|
return this.post(
|
|
648
648
|
"/v1/business/provisioning",
|
|
649
|
-
{ chain: params.chain ?? "STARKNET",
|
|
649
|
+
{ chain: params.chain ?? "STARKNET", email: params.email }
|
|
650
650
|
);
|
|
651
651
|
}
|
|
652
652
|
getCollectionProfile(contractAddress) {
|
|
@@ -12465,7 +12465,7 @@ function ownerAliveCalldata(proof) {
|
|
|
12465
12465
|
function buildChangeOwnersCall(accountAddress, removeOwnerPubkey, addOwnerPubkey, ownerAlive) {
|
|
12466
12466
|
if (!ownerAlive) {
|
|
12467
12467
|
throw new Error(
|
|
12468
|
-
"
|
|
12468
|
+
"Replacing the signing owner requires an owner-alive proof from the new owner. Sign ownerAliveTypedData with the new owner key and pass it here."
|
|
12469
12469
|
);
|
|
12470
12470
|
}
|
|
12471
12471
|
return changeOwners(
|
|
@@ -12777,12 +12777,14 @@ function isValidStarknetAddress(address) {
|
|
|
12777
12777
|
return false;
|
|
12778
12778
|
}
|
|
12779
12779
|
}
|
|
12780
|
+
var CONTRACT_NOT_FOUND = 20;
|
|
12780
12781
|
async function isDeployed(provider, address) {
|
|
12781
12782
|
try {
|
|
12782
12783
|
await provider.getClassHashAt(normalizeWalletAddress(address));
|
|
12783
12784
|
return true;
|
|
12784
|
-
} catch {
|
|
12785
|
-
return false;
|
|
12785
|
+
} catch (err) {
|
|
12786
|
+
if (err?.code === CONTRACT_NOT_FOUND) return false;
|
|
12787
|
+
throw err;
|
|
12786
12788
|
}
|
|
12787
12789
|
}
|
|
12788
12790
|
|
|
@@ -13031,7 +13033,7 @@ async function waitUntilDeployed(provider, address, timeoutMs = 9e4, sleep2 = (m
|
|
|
13031
13033
|
const deadline = Date.now() + timeoutMs;
|
|
13032
13034
|
let wait = 1e3;
|
|
13033
13035
|
for (; ; ) {
|
|
13034
|
-
if (await isDeployed(provider, address)) return;
|
|
13036
|
+
if (await isDeployed(provider, address).catch(() => false)) return;
|
|
13035
13037
|
if (Date.now() >= deadline) {
|
|
13036
13038
|
throw new Error(
|
|
13037
13039
|
"Your wallet was submitted but has not appeared on Starknet yet. Please try again in a moment."
|