@medialane/sdk 0.109.0 → 0.110.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/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -83
- package/dist/index.d.ts +0 -83
- package/dist/index.js.map +1 -1
- package/dist/starknet/index.cjs +48 -4
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +8 -12
- package/dist/starknet/index.d.ts +8 -12
- package/dist/starknet/index.js +48 -5
- package/dist/starknet/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -7891,7 +7891,13 @@ declare function ownerConstructorCalldata(ownerPubkey: BigNumberish): string[];
|
|
|
7891
7891
|
declare function computeAccountAddress(ownerPubkey: BigNumberish, salt?: BigNumberish): string;
|
|
7892
7892
|
|
|
7893
7893
|
declare function computeOwnerGuid(ownerPubkey: BigNumberish): string;
|
|
7894
|
-
|
|
7894
|
+
interface OwnerAliveProof {
|
|
7895
|
+
newOwnerPubkey: BigNumberish;
|
|
7896
|
+
signature: string[];
|
|
7897
|
+
expiration: number;
|
|
7898
|
+
}
|
|
7899
|
+
declare function ownerAliveTypedData(newOwnerGuid: string, expiration: number, chainId: string): TypedData;
|
|
7900
|
+
declare function buildChangeOwnersCall(accountAddress: string, removeOwnerPubkey: BigNumberish, addOwnerPubkey: BigNumberish, ownerAlive?: OwnerAliveProof): Call;
|
|
7895
7901
|
declare function buildAddOwnerCall(accountAddress: string, addOwnerPubkey: BigNumberish): Call;
|
|
7896
7902
|
declare function buildRemoveOwnerCall(accountAddress: string, removeOwnerPubkey: BigNumberish): Call;
|
|
7897
7903
|
declare function buildRemoveOwnerByGuidCall(accountAddress: string, ownerGuid: BigNumberish): Call;
|
|
@@ -7923,16 +7929,6 @@ declare function getOwners(provider: ProviderInterface, address: string): Promis
|
|
|
7923
7929
|
declare function getEscape(provider: ProviderInterface, address: string): Promise<EscapeInfo>;
|
|
7924
7930
|
declare function getEscapeSecurityPeriod(provider: ProviderInterface, address: string): Promise<number>;
|
|
7925
7931
|
|
|
7926
|
-
/**
|
|
7927
|
-
* Pure crypto primitives behind a passkey-sealed Starknet wallet — HKDF key
|
|
7928
|
-
* derivation, AES-GCM seal/unseal, Stark keypair generation, Stark-curve
|
|
7929
|
-
* signing. Deliberately excludes the WebAuthn calls (`navigator.credentials`)
|
|
7930
|
-
* that produce the PRF secret these functions consume — that stays app-local
|
|
7931
|
-
* because it's untestable in this SDK's Node-based test environment and
|
|
7932
|
-
* because RP_NAME/PRF_SALT are legitimately per-app identity, not protocol
|
|
7933
|
-
* facts. `hkdfInfo` is always an explicit caller-supplied parameter, never
|
|
7934
|
-
* defaulted — see the design doc's "load-bearing constraint" for why.
|
|
7935
|
-
*/
|
|
7936
7932
|
declare function deriveAesKey(prfSecret: Uint8Array, hkdfInfo: Uint8Array): Promise<CryptoKey>;
|
|
7937
7933
|
declare function generateStarkKeyPair(): {
|
|
7938
7934
|
privateKeyHex: string;
|
|
@@ -7951,4 +7947,4 @@ declare function signWithPrivateKey(privateKeyHex: string, msgHash: string): [st
|
|
|
7951
7947
|
|
|
7952
7948
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
7953
7949
|
|
|
7954
|
-
export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, type FeeSurface, type GuardianInfo, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, POPCollectionABI, POPFactoryABI, type ParsedAdminHeaders, PopService, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, decodeEscapeAndStatus, decodeGuardiansInfo, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, normalizeSiwsSignature, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
|
|
7950
|
+
export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, type FeeSurface, type GuardianInfo, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, POPCollectionABI, POPFactoryABI, type ParsedAdminHeaders, PopService, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, decodeEscapeAndStatus, decodeGuardiansInfo, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, normalizeSiwsSignature, ownerAliveTypedData, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
|
package/dist/starknet/index.d.ts
CHANGED
|
@@ -7891,7 +7891,13 @@ declare function ownerConstructorCalldata(ownerPubkey: BigNumberish): string[];
|
|
|
7891
7891
|
declare function computeAccountAddress(ownerPubkey: BigNumberish, salt?: BigNumberish): string;
|
|
7892
7892
|
|
|
7893
7893
|
declare function computeOwnerGuid(ownerPubkey: BigNumberish): string;
|
|
7894
|
-
|
|
7894
|
+
interface OwnerAliveProof {
|
|
7895
|
+
newOwnerPubkey: BigNumberish;
|
|
7896
|
+
signature: string[];
|
|
7897
|
+
expiration: number;
|
|
7898
|
+
}
|
|
7899
|
+
declare function ownerAliveTypedData(newOwnerGuid: string, expiration: number, chainId: string): TypedData;
|
|
7900
|
+
declare function buildChangeOwnersCall(accountAddress: string, removeOwnerPubkey: BigNumberish, addOwnerPubkey: BigNumberish, ownerAlive?: OwnerAliveProof): Call;
|
|
7895
7901
|
declare function buildAddOwnerCall(accountAddress: string, addOwnerPubkey: BigNumberish): Call;
|
|
7896
7902
|
declare function buildRemoveOwnerCall(accountAddress: string, removeOwnerPubkey: BigNumberish): Call;
|
|
7897
7903
|
declare function buildRemoveOwnerByGuidCall(accountAddress: string, ownerGuid: BigNumberish): Call;
|
|
@@ -7923,16 +7929,6 @@ declare function getOwners(provider: ProviderInterface, address: string): Promis
|
|
|
7923
7929
|
declare function getEscape(provider: ProviderInterface, address: string): Promise<EscapeInfo>;
|
|
7924
7930
|
declare function getEscapeSecurityPeriod(provider: ProviderInterface, address: string): Promise<number>;
|
|
7925
7931
|
|
|
7926
|
-
/**
|
|
7927
|
-
* Pure crypto primitives behind a passkey-sealed Starknet wallet — HKDF key
|
|
7928
|
-
* derivation, AES-GCM seal/unseal, Stark keypair generation, Stark-curve
|
|
7929
|
-
* signing. Deliberately excludes the WebAuthn calls (`navigator.credentials`)
|
|
7930
|
-
* that produce the PRF secret these functions consume — that stays app-local
|
|
7931
|
-
* because it's untestable in this SDK's Node-based test environment and
|
|
7932
|
-
* because RP_NAME/PRF_SALT are legitimately per-app identity, not protocol
|
|
7933
|
-
* facts. `hkdfInfo` is always an explicit caller-supplied parameter, never
|
|
7934
|
-
* defaulted — see the design doc's "load-bearing constraint" for why.
|
|
7935
|
-
*/
|
|
7936
7932
|
declare function deriveAesKey(prfSecret: Uint8Array, hkdfInfo: Uint8Array): Promise<CryptoKey>;
|
|
7937
7933
|
declare function generateStarkKeyPair(): {
|
|
7938
7934
|
privateKeyHex: string;
|
|
@@ -7951,4 +7947,4 @@ declare function signWithPrivateKey(privateKeyHex: string, msgHash: string): [st
|
|
|
7951
7947
|
|
|
7952
7948
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
7953
7949
|
|
|
7954
|
-
export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, type FeeSurface, type GuardianInfo, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, POPCollectionABI, POPFactoryABI, type ParsedAdminHeaders, PopService, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, decodeEscapeAndStatus, decodeGuardiansInfo, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, normalizeSiwsSignature, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
|
|
7950
|
+
export { ADMIN_HEADERS, ADMIN_SCOPE, type AddSupplyParams, type AdminGrant, type AdminRequest, type AdminRequestSig, type AdminSession, type AdminSessionTypedDataInput, type BatchMintEditionParams, type BuildFeeCallParams, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClaimConditions, ClubService, type CreateCreatorCoinParams, CreateDropParams, type CreateGrantOpts, CreatePopCollectionParams, CreatorCoinFactoryABI, type CreatorCoinGuarantees, type CreatorCoinReceiptLike, CreatorCoinService, type DeployCollectionParams, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecuteIntentOpts, type FeeSurface, type GuardianInfo, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, type MintEditionParams, POPCollectionABI, POPFactoryABI, type ParsedAdminHeaders, PopService, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, decodeEscapeAndStatus, decodeGuardiansInfo, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, normalizeSiwsSignature, ownerAliveTypedData, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
|
package/dist/starknet/index.js
CHANGED
|
@@ -11699,11 +11699,12 @@ function computeAccountAddress(ownerPubkey, salt = 0) {
|
|
|
11699
11699
|
}
|
|
11700
11700
|
var STARKNET_SIGNER_TYPE = "0x537461726b6e6574205369676e6572";
|
|
11701
11701
|
var OPTION_NONE = "0x1";
|
|
11702
|
+
var OPTION_SOME = "0x0";
|
|
11702
11703
|
var SIGNER_STARKNET = "0x0";
|
|
11703
11704
|
function computeOwnerGuid(ownerPubkey) {
|
|
11704
11705
|
return hash.computePoseidonHash(STARKNET_SIGNER_TYPE, num.toHex(ownerPubkey));
|
|
11705
11706
|
}
|
|
11706
|
-
function changeOwners(accountAddress, guidsToRemove, pubkeysToAdd) {
|
|
11707
|
+
function changeOwners(accountAddress, guidsToRemove, pubkeysToAdd, ownerAlive) {
|
|
11707
11708
|
return {
|
|
11708
11709
|
contractAddress: accountAddress,
|
|
11709
11710
|
entrypoint: "change_owners",
|
|
@@ -11712,12 +11713,54 @@ function changeOwners(accountAddress, guidsToRemove, pubkeysToAdd) {
|
|
|
11712
11713
|
...guidsToRemove,
|
|
11713
11714
|
num.toHex(pubkeysToAdd.length),
|
|
11714
11715
|
...pubkeysToAdd.flatMap((p) => [SIGNER_STARKNET, num.toHex(p)]),
|
|
11715
|
-
OPTION_NONE
|
|
11716
|
+
...ownerAlive ? ownerAliveCalldata(ownerAlive) : [OPTION_NONE]
|
|
11716
11717
|
]
|
|
11717
11718
|
};
|
|
11718
11719
|
}
|
|
11719
|
-
function
|
|
11720
|
-
return
|
|
11720
|
+
function ownerAliveTypedData(newOwnerGuid, expiration, chainId) {
|
|
11721
|
+
return {
|
|
11722
|
+
types: {
|
|
11723
|
+
StarknetDomain: [
|
|
11724
|
+
{ name: "name", type: "shortstring" },
|
|
11725
|
+
{ name: "version", type: "shortstring" },
|
|
11726
|
+
{ name: "chainId", type: "shortstring" },
|
|
11727
|
+
{ name: "revision", type: "shortstring" }
|
|
11728
|
+
],
|
|
11729
|
+
"Owner Alive": [
|
|
11730
|
+
{ name: "Owner GUID", type: "felt" },
|
|
11731
|
+
{ name: "Signature expiration", type: "timestamp" }
|
|
11732
|
+
]
|
|
11733
|
+
},
|
|
11734
|
+
primaryType: "Owner Alive",
|
|
11735
|
+
domain: { name: "Owner Alive", version: "1", chainId, revision: "1" },
|
|
11736
|
+
message: { "Owner GUID": newOwnerGuid, "Signature expiration": expiration }
|
|
11737
|
+
};
|
|
11738
|
+
}
|
|
11739
|
+
function ownerAliveCalldata(proof) {
|
|
11740
|
+
if (proof.signature.length !== 2) {
|
|
11741
|
+
throw new Error("owner-alive proof needs an r and s from the incoming owner");
|
|
11742
|
+
}
|
|
11743
|
+
return [
|
|
11744
|
+
OPTION_SOME,
|
|
11745
|
+
SIGNER_STARKNET,
|
|
11746
|
+
num.toHex(proof.newOwnerPubkey),
|
|
11747
|
+
num.toHex(proof.signature[0]),
|
|
11748
|
+
num.toHex(proof.signature[1]),
|
|
11749
|
+
num.toHex(proof.expiration)
|
|
11750
|
+
];
|
|
11751
|
+
}
|
|
11752
|
+
function buildChangeOwnersCall(accountAddress, removeOwnerPubkey, addOwnerPubkey, ownerAlive) {
|
|
11753
|
+
if (!ownerAlive) {
|
|
11754
|
+
throw new Error(
|
|
11755
|
+
"Handing an account over removes the signing owner, so the account requires an owner-alive proof from the incoming owner. Sign ownerAliveTypedData with the new owner key and pass it here."
|
|
11756
|
+
);
|
|
11757
|
+
}
|
|
11758
|
+
return changeOwners(
|
|
11759
|
+
accountAddress,
|
|
11760
|
+
[computeOwnerGuid(removeOwnerPubkey)],
|
|
11761
|
+
[addOwnerPubkey],
|
|
11762
|
+
ownerAlive
|
|
11763
|
+
);
|
|
11721
11764
|
}
|
|
11722
11765
|
function buildAddOwnerCall(accountAddress, addOwnerPubkey) {
|
|
11723
11766
|
return changeOwners(accountAddress, [], [addOwnerPubkey]);
|
|
@@ -11870,6 +11913,6 @@ function signWithPrivateKey(privateKeyHex, msgHash) {
|
|
|
11870
11913
|
return [num.toHex(sig.r), num.toHex(sig.s)];
|
|
11871
11914
|
}
|
|
11872
11915
|
|
|
11873
|
-
export { ADMIN_HEADERS, ADMIN_SCOPE, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClubService, CreatorCoinFactoryABI, CreatorCoinService, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, POPCollectionABI, POPFactoryABI, PopService, SUGGESTED_DEFAULT_PRICE, SponsoredCallRejectedError, SponsorshipService, StarknetVenue, TicketService, VALIDATED_EKUBO_PARAMS, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, decodeEscapeAndStatus, decodeGuardiansInfo, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, normalizeSiwsSignature, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
|
|
11916
|
+
export { ADMIN_HEADERS, ADMIN_SCOPE, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClubService, CreatorCoinFactoryABI, CreatorCoinService, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, IPClubCollectionABI, IPClubFactoryABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, InvalidStarkPrivateKeyError, MAX_HOLDERS_AT_LAUNCH, MAX_TEAM_ALLOCATION_PERCENT, Medialane1155ABI, MedialaneClient, MedialaneError, POPCollectionABI, POPFactoryABI, PopService, SUGGESTED_DEFAULT_PRICE, SponsoredCallRejectedError, SponsorshipService, StarknetVenue, TicketService, VALIDATED_EKUBO_PARAMS, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, decodeEscapeAndStatus, decodeGuardiansInfo, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getEscape, getEscapeSecurityPeriod, getGuardians, getOrderDetails, getOrderDetails1155, getOwners, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, normalizeSiwsSignature, ownerAliveTypedData, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
|
|
11874
11917
|
//# sourceMappingURL=index.js.map
|
|
11875
11918
|
//# sourceMappingURL=index.js.map
|