@medialane/sdk 0.119.2 → 0.120.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/guardian-4rnV78dm.d.cts +28 -0
- package/dist/guardian-4rnV78dm.d.ts +28 -0
- package/dist/starknet/index.d.cts +2 -26
- package/dist/starknet/index.d.ts +2 -26
- package/dist/wallet/index.cjs +808 -0
- package/dist/wallet/index.cjs.map +1 -0
- package/dist/wallet/index.d.cts +163 -0
- package/dist/wallet/index.d.ts +163 -0
- package/dist/wallet/index.js +786 -0
- package/dist/wallet/index.js.map +1 -0
- package/package.json +6 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Call, ProviderInterface } from 'starknet';
|
|
2
|
+
|
|
3
|
+
declare const SIGNER_TYPE_NAMES: readonly ["Starknet", "Secp256k1", "Secp256r1"];
|
|
4
|
+
type SignerTypeName = (typeof SIGNER_TYPE_NAMES)[number];
|
|
5
|
+
interface GuardianInfo {
|
|
6
|
+
type: SignerTypeName;
|
|
7
|
+
guid: string;
|
|
8
|
+
storedValue: string;
|
|
9
|
+
}
|
|
10
|
+
declare function buildSetFirstGuardianCall(address: string, guardianPubkey: string): Call;
|
|
11
|
+
declare function buildTriggerEscapeOwnerCall(targetAddress: string, newOwnerPubkey: string): Call;
|
|
12
|
+
declare function buildCompleteEscapeOwnerCall(targetAddress: string): Call;
|
|
13
|
+
declare function buildCancelEscapeCall(address: string): Call;
|
|
14
|
+
declare function decodeGuardiansInfo(res: string[]): GuardianInfo[];
|
|
15
|
+
type EscapeTypeName = "None" | "Guardian" | "Owner";
|
|
16
|
+
type EscapeStatusName = "None" | "NotReady" | "Ready" | "Expired";
|
|
17
|
+
interface EscapeInfo {
|
|
18
|
+
readyAt: number;
|
|
19
|
+
escapeType: EscapeTypeName;
|
|
20
|
+
status: EscapeStatusName;
|
|
21
|
+
}
|
|
22
|
+
declare function decodeEscapeAndStatus(res: string[]): EscapeInfo;
|
|
23
|
+
declare function getGuardians(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
24
|
+
declare function getOwners(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
25
|
+
declare function getEscape(provider: ProviderInterface, address: string): Promise<EscapeInfo>;
|
|
26
|
+
declare function getEscapeSecurityPeriod(provider: ProviderInterface, address: string): Promise<number>;
|
|
27
|
+
|
|
28
|
+
export { type EscapeInfo as E, type GuardianInfo as G, type EscapeStatusName as a, type EscapeTypeName as b, buildCancelEscapeCall as c, buildCompleteEscapeOwnerCall as d, buildSetFirstGuardianCall as e, buildTriggerEscapeOwnerCall as f, decodeEscapeAndStatus as g, decodeGuardiansInfo as h, getEscape as i, getEscapeSecurityPeriod as j, getGuardians as k, getOwners as l };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Call, ProviderInterface } from 'starknet';
|
|
2
|
+
|
|
3
|
+
declare const SIGNER_TYPE_NAMES: readonly ["Starknet", "Secp256k1", "Secp256r1"];
|
|
4
|
+
type SignerTypeName = (typeof SIGNER_TYPE_NAMES)[number];
|
|
5
|
+
interface GuardianInfo {
|
|
6
|
+
type: SignerTypeName;
|
|
7
|
+
guid: string;
|
|
8
|
+
storedValue: string;
|
|
9
|
+
}
|
|
10
|
+
declare function buildSetFirstGuardianCall(address: string, guardianPubkey: string): Call;
|
|
11
|
+
declare function buildTriggerEscapeOwnerCall(targetAddress: string, newOwnerPubkey: string): Call;
|
|
12
|
+
declare function buildCompleteEscapeOwnerCall(targetAddress: string): Call;
|
|
13
|
+
declare function buildCancelEscapeCall(address: string): Call;
|
|
14
|
+
declare function decodeGuardiansInfo(res: string[]): GuardianInfo[];
|
|
15
|
+
type EscapeTypeName = "None" | "Guardian" | "Owner";
|
|
16
|
+
type EscapeStatusName = "None" | "NotReady" | "Ready" | "Expired";
|
|
17
|
+
interface EscapeInfo {
|
|
18
|
+
readyAt: number;
|
|
19
|
+
escapeType: EscapeTypeName;
|
|
20
|
+
status: EscapeStatusName;
|
|
21
|
+
}
|
|
22
|
+
declare function decodeEscapeAndStatus(res: string[]): EscapeInfo;
|
|
23
|
+
declare function getGuardians(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
24
|
+
declare function getOwners(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
25
|
+
declare function getEscape(provider: ProviderInterface, address: string): Promise<EscapeInfo>;
|
|
26
|
+
declare function getEscapeSecurityPeriod(provider: ProviderInterface, address: string): Promise<number>;
|
|
27
|
+
|
|
28
|
+
export { type EscapeInfo as E, type GuardianInfo as G, type EscapeStatusName as a, type EscapeTypeName as b, buildCancelEscapeCall as c, buildCompleteEscapeOwnerCall as d, buildSetFirstGuardianCall as e, buildTriggerEscapeOwnerCall as f, decodeEscapeAndStatus as g, decodeGuardiansInfo as h, getEscape as i, getEscapeSecurityPeriod as j, getGuardians as k, getOwners as l };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { bh as ResolvedConfig, bp as TxResult, aD as CreatePopCollectionParams, ao as ClaimConditions, az as CreateDropParams, aI as CreateTicketParams, b2 as MintTicketsParams, aB as CreateMembershipParams, b1 as MintMembershipsParams, aG as CreateSponsorshipOfferParams, be as ProposeSponsorshipParams, l as ApiClient, a$ as MedialaneConfig, b0 as MedialaneErrorCode, b7 as OrderDetails, R as ResolvedFeeConfig, F as ApiIntentCreated } from '../services-CkUqZ75g.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-CuSlc_YE.cjs';
|
|
4
|
+
export { E as EscapeInfo, a as EscapeStatusName, b as EscapeTypeName, G as GuardianInfo, c as buildCancelEscapeCall, d as buildCompleteEscapeOwnerCall, e as buildSetFirstGuardianCall, f as buildTriggerEscapeOwnerCall, g as decodeEscapeAndStatus, h as decodeGuardiansInfo, i as getEscape, j as getEscapeSecurityPeriod, k as getGuardians, l as getOwners } from '../guardian-4rnV78dm.cjs';
|
|
4
5
|
import 'zod';
|
|
5
6
|
|
|
6
7
|
declare class PopService {
|
|
@@ -7920,31 +7921,6 @@ declare function buildRemoveOwnerByGuidCall(accountAddress: string, ownerGuid: B
|
|
|
7920
7921
|
|
|
7921
7922
|
declare function buildDeployAccountParams(ownerPubkey: BigNumberish, salt?: BigNumberish): DeployAccountContractPayload;
|
|
7922
7923
|
|
|
7923
|
-
declare const SIGNER_TYPE_NAMES: readonly ["Starknet", "Secp256k1", "Secp256r1"];
|
|
7924
|
-
type SignerTypeName = (typeof SIGNER_TYPE_NAMES)[number];
|
|
7925
|
-
interface GuardianInfo {
|
|
7926
|
-
type: SignerTypeName;
|
|
7927
|
-
guid: string;
|
|
7928
|
-
storedValue: string;
|
|
7929
|
-
}
|
|
7930
|
-
declare function buildSetFirstGuardianCall(address: string, guardianPubkey: string): Call;
|
|
7931
|
-
declare function buildTriggerEscapeOwnerCall(targetAddress: string, newOwnerPubkey: string): Call;
|
|
7932
|
-
declare function buildCompleteEscapeOwnerCall(targetAddress: string): Call;
|
|
7933
|
-
declare function buildCancelEscapeCall(address: string): Call;
|
|
7934
|
-
declare function decodeGuardiansInfo(res: string[]): GuardianInfo[];
|
|
7935
|
-
type EscapeTypeName = "None" | "Guardian" | "Owner";
|
|
7936
|
-
type EscapeStatusName = "None" | "NotReady" | "Ready" | "Expired";
|
|
7937
|
-
interface EscapeInfo {
|
|
7938
|
-
readyAt: number;
|
|
7939
|
-
escapeType: EscapeTypeName;
|
|
7940
|
-
status: EscapeStatusName;
|
|
7941
|
-
}
|
|
7942
|
-
declare function decodeEscapeAndStatus(res: string[]): EscapeInfo;
|
|
7943
|
-
declare function getGuardians(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
7944
|
-
declare function getOwners(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
7945
|
-
declare function getEscape(provider: ProviderInterface, address: string): Promise<EscapeInfo>;
|
|
7946
|
-
declare function getEscapeSecurityPeriod(provider: ProviderInterface, address: string): Promise<number>;
|
|
7947
|
-
|
|
7948
7924
|
declare function deriveAesKey(prfSecret: Uint8Array, hkdfInfo: Uint8Array): Promise<CryptoKey>;
|
|
7949
7925
|
declare function generateStarkKeyPair(): {
|
|
7950
7926
|
privateKeyHex: string;
|
|
@@ -7963,4 +7939,4 @@ declare function signWithPrivateKey(privateKeyHex: string, msgHash: string): [st
|
|
|
7963
7939
|
|
|
7964
7940
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
7965
7941
|
|
|
7966
|
-
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, type DeployingServiceId, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type
|
|
7942
|
+
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, type DeployingServiceId, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type ExecuteIntentOpts, type FeeSurface, 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 ReceiptLike, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancellationTypedData, buildChangeOwnersCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getOrderDetails, getOrderDetails1155, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, ownerAliveTypedData, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, userMayPayInstead, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
|
package/dist/starknet/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { bh as ResolvedConfig, bp as TxResult, aD as CreatePopCollectionParams, ao as ClaimConditions, az as CreateDropParams, aI as CreateTicketParams, b2 as MintTicketsParams, aB as CreateMembershipParams, b1 as MintMembershipsParams, aG as CreateSponsorshipOfferParams, be as ProposeSponsorshipParams, l as ApiClient, a$ as MedialaneConfig, b0 as MedialaneErrorCode, b7 as OrderDetails, R as ResolvedFeeConfig, F as ApiIntentCreated } from '../services-4Z16tkFa.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-CuSlc_YE.js';
|
|
4
|
+
export { E as EscapeInfo, a as EscapeStatusName, b as EscapeTypeName, G as GuardianInfo, c as buildCancelEscapeCall, d as buildCompleteEscapeOwnerCall, e as buildSetFirstGuardianCall, f as buildTriggerEscapeOwnerCall, g as decodeEscapeAndStatus, h as decodeGuardiansInfo, i as getEscape, j as getEscapeSecurityPeriod, k as getGuardians, l as getOwners } from '../guardian-4rnV78dm.js';
|
|
4
5
|
import 'zod';
|
|
5
6
|
|
|
6
7
|
declare class PopService {
|
|
@@ -7920,31 +7921,6 @@ declare function buildRemoveOwnerByGuidCall(accountAddress: string, ownerGuid: B
|
|
|
7920
7921
|
|
|
7921
7922
|
declare function buildDeployAccountParams(ownerPubkey: BigNumberish, salt?: BigNumberish): DeployAccountContractPayload;
|
|
7922
7923
|
|
|
7923
|
-
declare const SIGNER_TYPE_NAMES: readonly ["Starknet", "Secp256k1", "Secp256r1"];
|
|
7924
|
-
type SignerTypeName = (typeof SIGNER_TYPE_NAMES)[number];
|
|
7925
|
-
interface GuardianInfo {
|
|
7926
|
-
type: SignerTypeName;
|
|
7927
|
-
guid: string;
|
|
7928
|
-
storedValue: string;
|
|
7929
|
-
}
|
|
7930
|
-
declare function buildSetFirstGuardianCall(address: string, guardianPubkey: string): Call;
|
|
7931
|
-
declare function buildTriggerEscapeOwnerCall(targetAddress: string, newOwnerPubkey: string): Call;
|
|
7932
|
-
declare function buildCompleteEscapeOwnerCall(targetAddress: string): Call;
|
|
7933
|
-
declare function buildCancelEscapeCall(address: string): Call;
|
|
7934
|
-
declare function decodeGuardiansInfo(res: string[]): GuardianInfo[];
|
|
7935
|
-
type EscapeTypeName = "None" | "Guardian" | "Owner";
|
|
7936
|
-
type EscapeStatusName = "None" | "NotReady" | "Ready" | "Expired";
|
|
7937
|
-
interface EscapeInfo {
|
|
7938
|
-
readyAt: number;
|
|
7939
|
-
escapeType: EscapeTypeName;
|
|
7940
|
-
status: EscapeStatusName;
|
|
7941
|
-
}
|
|
7942
|
-
declare function decodeEscapeAndStatus(res: string[]): EscapeInfo;
|
|
7943
|
-
declare function getGuardians(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
7944
|
-
declare function getOwners(provider: ProviderInterface, address: string): Promise<GuardianInfo[]>;
|
|
7945
|
-
declare function getEscape(provider: ProviderInterface, address: string): Promise<EscapeInfo>;
|
|
7946
|
-
declare function getEscapeSecurityPeriod(provider: ProviderInterface, address: string): Promise<number>;
|
|
7947
|
-
|
|
7948
7924
|
declare function deriveAesKey(prfSecret: Uint8Array, hkdfInfo: Uint8Array): Promise<CryptoKey>;
|
|
7949
7925
|
declare function generateStarkKeyPair(): {
|
|
7950
7926
|
privateKeyHex: string;
|
|
@@ -7963,4 +7939,4 @@ declare function signWithPrivateKey(privateKeyHex: string, msgHash: string): [st
|
|
|
7963
7939
|
|
|
7964
7940
|
type StarknetVenueSigner = VenueSigner<TypedData, Call>;
|
|
7965
7941
|
|
|
7966
|
-
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, type DeployingServiceId, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type
|
|
7942
|
+
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, type DeployingServiceId, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, type EkuboLaunchParams, type EkuboPoolParams, type ExecuteIntentOpts, type FeeSurface, 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 ReceiptLike, type ReceiptProvider, type RequestSiwsTokenArgs, type ResolvedOrder, SUGGESTED_DEFAULT_PRICE, type SiwsSigner, SponsoredCallRejectedError, type SponsoredExecuteConfig, type SponsoredExecuteResult, type SponsorshipFailureCode, SponsorshipService, StarknetVenue, type StarknetVenueDeps, type StarknetVenueSigner, TicketService, type TypedDataSigner, VALIDATED_EKUBO_PARAMS, VenueSigner, adminRequestDigest, assertTransactionSucceeded, build1155CancellationTypedData, build1155OrderTypedData, buildAddOwnerCall, buildAdminSessionTypedData, buildCancellationTypedData, buildChangeOwnersCall, buildCreateCreatorCoinCall, buildDeployAccountParams, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buybackQuoteRaw, toRaw as coinToRaw, computeAccountAddress, computeOwnerGuid, confirmIntentBestEffort, createAdminSessionGrant, deployedCollectionFromReceipt, deriveAesKey, deriveOwnerKeyPair, encodeAdminHeaders, encodeByteArray, executeIntent, executeIntents, executeSponsored, fdvHuman, generateStarkKeyPair, getCounter, getCounter1155, getCreatorCoinGuarantees, getOrderDetails, getOrderDetails1155, getSiwsStorageKey, getStoredSiwsToken, isSiwsTokenValid, mintedTokenIdFromReceipt, normalizeSiwsSignature, ownerAliveTypedData, ownerConstructorCalldata, parseAdminHeaders, parseCreatorCoinCreated, priceToEkuboParams, randomNonce, requestSiwsToken, sealPrivateKey, sessionKeyHashOf, signAdminRequest, signWithPrivateKey, starkKeyPairFromPrivateKey, storeSiwsToken, syncTransactionBestEffort, teamCoinsRaw, toContractConditions as toDropContractConditions, unsealPrivateKey, userMayPayInstead, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, validatePrice, verifyAdminRequestSig };
|