@medialane/sdk 0.107.0 → 0.109.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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{services-CtdateUS.d.ts → services-Dt23Y7HU.d.ts} +2 -2
- package/dist/{services-DhcDmDVP.d.cts → services-EPrTjAA4.d.cts} +2 -2
- package/dist/starknet/index.cjs +34 -3
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +6 -2
- package/dist/starknet/index.d.ts +6 -2
- package/dist/starknet/index.js +31 -4
- package/dist/starknet/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bb as ResolvedConfig, bj as TxResult, ay as CreatePopCollectionParams, aj as ClaimConditions, au as CreateDropParams, aD as CreateTicketParams, aY as MintTicketsParams, aw as CreateMembershipParams, aX as MintMembershipsParams, aB as CreateSponsorshipOfferParams, b8 as ProposeSponsorshipParams, l as ApiClient, aV as MedialaneConfig, aW as MedialaneErrorCode, b1 as OrderDetails, R as ResolvedFeeConfig, C as ApiIntentCreated } from '../services-
|
|
1
|
+
import { bb as ResolvedConfig, bj as TxResult, ay as CreatePopCollectionParams, aj as ClaimConditions, au as CreateDropParams, aD as CreateTicketParams, aY as MintTicketsParams, aw as CreateMembershipParams, aX as MintMembershipsParams, aB as CreateSponsorshipOfferParams, b8 as ProposeSponsorshipParams, l as ApiClient, aV as MedialaneConfig, aW as MedialaneErrorCode, b1 as OrderDetails, R as ResolvedFeeConfig, C as ApiIntentCreated } from '../services-EPrTjAA4.cjs';
|
|
2
2
|
import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload } from 'starknet';
|
|
3
3
|
import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-BzLfeLF9.cjs';
|
|
4
4
|
import 'zod';
|
|
@@ -7892,6 +7892,9 @@ declare function computeAccountAddress(ownerPubkey: BigNumberish, salt?: BigNumb
|
|
|
7892
7892
|
|
|
7893
7893
|
declare function computeOwnerGuid(ownerPubkey: BigNumberish): string;
|
|
7894
7894
|
declare function buildChangeOwnersCall(accountAddress: string, removeOwnerPubkey: BigNumberish, addOwnerPubkey: BigNumberish): Call;
|
|
7895
|
+
declare function buildAddOwnerCall(accountAddress: string, addOwnerPubkey: BigNumberish): Call;
|
|
7896
|
+
declare function buildRemoveOwnerCall(accountAddress: string, removeOwnerPubkey: BigNumberish): Call;
|
|
7897
|
+
declare function buildRemoveOwnerByGuidCall(accountAddress: string, ownerGuid: BigNumberish): Call;
|
|
7895
7898
|
|
|
7896
7899
|
declare function buildDeployAccountParams(ownerPubkey: BigNumberish, salt?: BigNumberish): DeployAccountContractPayload;
|
|
7897
7900
|
|
|
@@ -7916,6 +7919,7 @@ interface EscapeInfo {
|
|
|
7916
7919
|
}
|
|
7917
7920
|
declare function decodeEscapeAndStatus(res: string[]): EscapeInfo;
|
|
7918
7921
|
declare function getGuardians(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
7922
|
+
declare function getOwners(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
7919
7923
|
declare function getEscape(provider: ProviderInterface, address: string): Promise<EscapeInfo>;
|
|
7920
7924
|
declare function getEscapeSecurityPeriod(provider: ProviderInterface, address: string): Promise<number>;
|
|
7921
7925
|
|
|
@@ -7947,4 +7951,4 @@ declare function signWithPrivateKey(privateKeyHex: string, msgHash: string): [st
|
|
|
7947
7951
|
|
|
7948
7952
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
7949
7953
|
|
|
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, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, 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, 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 };
|
|
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 };
|
package/dist/starknet/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bb as ResolvedConfig, bj as TxResult, ay as CreatePopCollectionParams, aj as ClaimConditions, au as CreateDropParams, aD as CreateTicketParams, aY as MintTicketsParams, aw as CreateMembershipParams, aX as MintMembershipsParams, aB as CreateSponsorshipOfferParams, b8 as ProposeSponsorshipParams, l as ApiClient, aV as MedialaneConfig, aW as MedialaneErrorCode, b1 as OrderDetails, R as ResolvedFeeConfig, C as ApiIntentCreated } from '../services-
|
|
1
|
+
import { bb as ResolvedConfig, bj as TxResult, ay as CreatePopCollectionParams, aj as ClaimConditions, au as CreateDropParams, aD as CreateTicketParams, aY as MintTicketsParams, aw as CreateMembershipParams, aX as MintMembershipsParams, aB as CreateSponsorshipOfferParams, b8 as ProposeSponsorshipParams, l as ApiClient, aV as MedialaneConfig, aW as MedialaneErrorCode, b1 as OrderDetails, R as ResolvedFeeConfig, C as ApiIntentCreated } from '../services-Dt23Y7HU.js';
|
|
2
2
|
import { AccountInterface, Call, ProviderInterface, TypedData, constants, BigNumberish, DeployAccountContractPayload } from 'starknet';
|
|
3
3
|
import { V as VenueAdapter, O as OrderRef, A as AdapterTxResult, R as RegisterOrderParams, j as VenueSigner } from '../types-BzLfeLF9.js';
|
|
4
4
|
import 'zod';
|
|
@@ -7892,6 +7892,9 @@ declare function computeAccountAddress(ownerPubkey: BigNumberish, salt?: BigNumb
|
|
|
7892
7892
|
|
|
7893
7893
|
declare function computeOwnerGuid(ownerPubkey: BigNumberish): string;
|
|
7894
7894
|
declare function buildChangeOwnersCall(accountAddress: string, removeOwnerPubkey: BigNumberish, addOwnerPubkey: BigNumberish): Call;
|
|
7895
|
+
declare function buildAddOwnerCall(accountAddress: string, addOwnerPubkey: BigNumberish): Call;
|
|
7896
|
+
declare function buildRemoveOwnerCall(accountAddress: string, removeOwnerPubkey: BigNumberish): Call;
|
|
7897
|
+
declare function buildRemoveOwnerByGuidCall(accountAddress: string, ownerGuid: BigNumberish): Call;
|
|
7895
7898
|
|
|
7896
7899
|
declare function buildDeployAccountParams(ownerPubkey: BigNumberish, salt?: BigNumberish): DeployAccountContractPayload;
|
|
7897
7900
|
|
|
@@ -7916,6 +7919,7 @@ interface EscapeInfo {
|
|
|
7916
7919
|
}
|
|
7917
7920
|
declare function decodeEscapeAndStatus(res: string[]): EscapeInfo;
|
|
7918
7921
|
declare function getGuardians(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
7922
|
+
declare function getOwners(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
7919
7923
|
declare function getEscape(provider: ProviderInterface, address: string): Promise<EscapeInfo>;
|
|
7920
7924
|
declare function getEscapeSecurityPeriod(provider: ProviderInterface, address: string): Promise<number>;
|
|
7921
7925
|
|
|
@@ -7947,4 +7951,4 @@ declare function signWithPrivateKey(privateKeyHex: string, msgHash: string): [st
|
|
|
7947
7951
|
|
|
7948
7952
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
7949
7953
|
|
|
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, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, 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, 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 };
|
|
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 };
|
package/dist/starknet/index.js
CHANGED
|
@@ -11698,17 +11698,36 @@ function computeAccountAddress(ownerPubkey, salt = 0) {
|
|
|
11698
11698
|
);
|
|
11699
11699
|
}
|
|
11700
11700
|
var STARKNET_SIGNER_TYPE = "0x537461726b6e6574205369676e6572";
|
|
11701
|
+
var OPTION_NONE = "0x1";
|
|
11702
|
+
var SIGNER_STARKNET = "0x0";
|
|
11701
11703
|
function computeOwnerGuid(ownerPubkey) {
|
|
11702
11704
|
return hash.computePoseidonHash(STARKNET_SIGNER_TYPE, num.toHex(ownerPubkey));
|
|
11703
11705
|
}
|
|
11704
|
-
function
|
|
11705
|
-
const guidToRemove = computeOwnerGuid(removeOwnerPubkey);
|
|
11706
|
+
function changeOwners(accountAddress, guidsToRemove, pubkeysToAdd) {
|
|
11706
11707
|
return {
|
|
11707
11708
|
contractAddress: accountAddress,
|
|
11708
11709
|
entrypoint: "change_owners",
|
|
11709
|
-
calldata: [
|
|
11710
|
+
calldata: [
|
|
11711
|
+
num.toHex(guidsToRemove.length),
|
|
11712
|
+
...guidsToRemove,
|
|
11713
|
+
num.toHex(pubkeysToAdd.length),
|
|
11714
|
+
...pubkeysToAdd.flatMap((p) => [SIGNER_STARKNET, num.toHex(p)]),
|
|
11715
|
+
OPTION_NONE
|
|
11716
|
+
]
|
|
11710
11717
|
};
|
|
11711
11718
|
}
|
|
11719
|
+
function buildChangeOwnersCall(accountAddress, removeOwnerPubkey, addOwnerPubkey) {
|
|
11720
|
+
return changeOwners(accountAddress, [computeOwnerGuid(removeOwnerPubkey)], [addOwnerPubkey]);
|
|
11721
|
+
}
|
|
11722
|
+
function buildAddOwnerCall(accountAddress, addOwnerPubkey) {
|
|
11723
|
+
return changeOwners(accountAddress, [], [addOwnerPubkey]);
|
|
11724
|
+
}
|
|
11725
|
+
function buildRemoveOwnerCall(accountAddress, removeOwnerPubkey) {
|
|
11726
|
+
return changeOwners(accountAddress, [computeOwnerGuid(removeOwnerPubkey)], []);
|
|
11727
|
+
}
|
|
11728
|
+
function buildRemoveOwnerByGuidCall(accountAddress, ownerGuid) {
|
|
11729
|
+
return changeOwners(accountAddress, [num.toHex(ownerGuid)], []);
|
|
11730
|
+
}
|
|
11712
11731
|
function buildDeployAccountParams(ownerPubkey, salt = 0) {
|
|
11713
11732
|
return {
|
|
11714
11733
|
classHash: STARKNET_MEDIAWALLET_CLASS_HASH,
|
|
@@ -11779,6 +11798,14 @@ async function getGuardians(provider, address) {
|
|
|
11779
11798
|
});
|
|
11780
11799
|
return decodeGuardiansInfo(res);
|
|
11781
11800
|
}
|
|
11801
|
+
async function getOwners(provider, address) {
|
|
11802
|
+
const res = await provider.callContract({
|
|
11803
|
+
contractAddress: norm(address),
|
|
11804
|
+
entrypoint: "get_owners_info",
|
|
11805
|
+
calldata: []
|
|
11806
|
+
});
|
|
11807
|
+
return decodeGuardiansInfo(res);
|
|
11808
|
+
}
|
|
11782
11809
|
async function getEscape(provider, address) {
|
|
11783
11810
|
const res = await provider.callContract({
|
|
11784
11811
|
contractAddress: norm(address),
|
|
@@ -11843,6 +11870,6 @@ function signWithPrivateKey(privateKeyHex, msgHash) {
|
|
|
11843
11870
|
return [num.toHex(sig.r), num.toHex(sig.s)];
|
|
11844
11871
|
}
|
|
11845
11872
|
|
|
11846
|
-
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, buildAdminSessionTypedData, buildCancelEscapeCall, buildCancellationTypedData, buildChangeOwnersCall, buildCompleteEscapeOwnerCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, 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, 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 };
|
|
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 };
|
|
11847
11874
|
//# sourceMappingURL=index.js.map
|
|
11848
11875
|
//# sourceMappingURL=index.js.map
|