@medialane/sdk 0.120.0 → 0.121.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/starknet/index.cjs +446 -0
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +186 -3
- package/dist/starknet/index.d.ts +186 -3
- package/dist/starknet/index.js +427 -2
- package/dist/starknet/index.js.map +1 -1
- package/package.json +2 -7
- package/dist/guardian-4rnV78dm.d.cts +0 -28
- package/dist/guardian-4rnV78dm.d.ts +0 -28
- package/dist/wallet/index.cjs +0 -808
- package/dist/wallet/index.cjs.map +0 -1
- package/dist/wallet/index.d.cts +0 -163
- package/dist/wallet/index.d.ts +0 -163
- package/dist/wallet/index.js +0 -786
- package/dist/wallet/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medialane/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Framework-agnostic TypeScript SDK for Medialane.io
|
|
3
|
+
"version": "0.121.0",
|
|
4
|
+
"description": "Framework-agnostic TypeScript SDK for Medialane.io \u2014 the IP marketplace on Starknet",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -31,11 +31,6 @@
|
|
|
31
31
|
"types": "./dist/stellar/index.d.ts",
|
|
32
32
|
"import": "./dist/stellar/index.js",
|
|
33
33
|
"require": "./dist/stellar/index.cjs"
|
|
34
|
-
},
|
|
35
|
-
"./wallet": {
|
|
36
|
-
"types": "./dist/wallet/index.d.ts",
|
|
37
|
-
"import": "./dist/wallet/index.js",
|
|
38
|
-
"require": "./dist/wallet/index.cjs"
|
|
39
34
|
}
|
|
40
35
|
},
|
|
41
36
|
"license": "MIT",
|
|
@@ -1,28 +0,0 @@
|
|
|
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,28 +0,0 @@
|
|
|
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 };
|