@kynesyslabs/demosdk 2.0.5 → 2.0.8
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/build/abstraction/Identities.d.ts +2 -2
- package/build/abstraction/Identities.js.map +1 -1
- package/build/abstraction/index.d.ts +2 -2
- package/build/abstraction/index.js.map +1 -1
- package/build/types/abstraction/index.d.ts +11 -3
- package/build/types/abstraction/index.js +1 -0
- package/build/types/abstraction/index.js.map +1 -1
- package/build/types/blockchain/Transaction.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { XMCoreTargetIdentityPayload, InferFromSignaturePayload, InferFromWritePayload } from "../types/abstraction";
|
|
2
2
|
import { Demos } from "../websdk/demosclass";
|
|
3
3
|
export default class Identities {
|
|
4
4
|
/**
|
|
@@ -16,7 +16,7 @@ export default class Identities {
|
|
|
16
16
|
* @param payload The payload to remove the identity from.
|
|
17
17
|
* @returns The response from the RPC call.
|
|
18
18
|
*/
|
|
19
|
-
removeXmIdentity(demos: Demos, payload:
|
|
19
|
+
removeXmIdentity(demos: Demos, payload: XMCoreTargetIdentityPayload): Promise<any>;
|
|
20
20
|
/**
|
|
21
21
|
* Get the identities associated with an address.
|
|
22
22
|
* If no address is provided, the address of the connected wallet will be used.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Identities.js","sourceRoot":"","sources":["../../../src/abstraction/Identities.ts"],"names":[],"mappings":";AAAA,4CAA4C;AAC5C,8EAA8E;;
|
|
1
|
+
{"version":3,"file":"Identities.js","sourceRoot":"","sources":["../../../src/abstraction/Identities.ts"],"names":[],"mappings":";AAAA,4CAA4C;AAC5C,8EAA8E;;AAY9E,MAAqB,UAAU;IAC3B,gEAAgE;IAChE;;;;;;OAMG;IACH,KAAK,CAAC,aAAa,CACf,KAAY,EACZ,OAA0D;QAE1D,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,aAAa;YACrB,MAAM,EAAE;gBACJ;oBACI,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,MAAM,EAAE,CAAC,OAAO,CAAC;iBACpB;aACJ;SACJ,CAAA;QAED,OAAO,MAAM,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;IACjD,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,gBAAgB,CAAC,KAAY,EAAE,OAAoC;QACrE,MAAM,OAAO,GAAG;YACZ,MAAM,EAAE,aAAa;YACrB,MAAM,EAAE;gBACJ;oBACI,MAAM,EAAE,iBAAiB;oBACzB,MAAM,EAAE,CAAC,OAAO,CAAC;iBACpB;aACJ;SACJ,CAAA;QAED,OAAO,MAAM,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAC7C,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,aAAa,CAAC,KAAY,EAAE,OAAgB;QAC9C,MAAM,OAAO,GAAG;YACZ,MAAM,EAAE,aAAa;YACrB,MAAM,EAAE;gBACJ;oBACI,MAAM,EAAE,eAAe;oBACvB,MAAM,EAAE,CAAC,OAAO,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;iBAC1C;aACJ;SACJ,CAAA;QAED,OAAO,MAAM,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAC7C,CAAC;CACJ;AApED,6BAoEC"}
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
import { EvmCoinFinder } from "./EvmCoinFinder";
|
|
8
8
|
import { CoinFinder } from "./CoinFinder";
|
|
9
9
|
import Identities from "./Identities";
|
|
10
|
-
import { InferFromWritePayload, InferFromSignaturePayload,
|
|
11
|
-
export { EvmCoinFinder, CoinFinder, Identities, InferFromWritePayload, InferFromSignaturePayload,
|
|
10
|
+
import { InferFromWritePayload, InferFromSignaturePayload, XMCoreTargetIdentityPayload, Web2CoreTargetIdentityPayload, InferFromGithubPayload, GithubProof } from "../types/abstraction";
|
|
11
|
+
export { EvmCoinFinder, CoinFinder, Identities, InferFromWritePayload, InferFromSignaturePayload, XMCoreTargetIdentityPayload, Web2CoreTargetIdentityPayload, InferFromGithubPayload, GithubProof, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/abstraction/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,mDAA+C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/abstraction/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,mDAA+C;AAa3C,8FAbK,6BAAa,OAaL;AAZjB,6CAAyC;AAarC,2FAbK,uBAAU,OAaL;AAZd,8DAAqC;AAajC,qBAbG,oBAAU,CAaH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface XMCoreTargetIdentityPayload {
|
|
2
2
|
chain: string;
|
|
3
3
|
subchain: string;
|
|
4
4
|
targetAddress: string;
|
|
@@ -6,7 +6,7 @@ export interface CoreTargetIdentityPayload {
|
|
|
6
6
|
/**
|
|
7
7
|
* The identity of the target address to bind to the Demos identity
|
|
8
8
|
*/
|
|
9
|
-
export interface InferFromSignatureTargetIdentityPayload extends
|
|
9
|
+
export interface InferFromSignatureTargetIdentityPayload extends XMCoreTargetIdentityPayload {
|
|
10
10
|
chainId: number | string;
|
|
11
11
|
isEVM: boolean;
|
|
12
12
|
signature: string;
|
|
@@ -17,7 +17,7 @@ export interface InferFromSignatureTargetIdentityPayload extends CoreTargetIdent
|
|
|
17
17
|
/**
|
|
18
18
|
* The identity of the target address to bind to the Demos identity
|
|
19
19
|
*/
|
|
20
|
-
export interface InferFromWriteTargetIdentityPayload extends
|
|
20
|
+
export interface InferFromWriteTargetIdentityPayload extends XMCoreTargetIdentityPayload {
|
|
21
21
|
txHash: string;
|
|
22
22
|
isEVM: boolean;
|
|
23
23
|
chainId: number | string;
|
|
@@ -37,3 +37,11 @@ export interface InferFromSignaturePayload {
|
|
|
37
37
|
*/
|
|
38
38
|
target_identity: InferFromSignatureTargetIdentityPayload;
|
|
39
39
|
}
|
|
40
|
+
export interface Web2CoreTargetIdentityPayload {
|
|
41
|
+
context: string;
|
|
42
|
+
proof: string;
|
|
43
|
+
}
|
|
44
|
+
export type GithubProof = `https://github.com/${string}/${string}`;
|
|
45
|
+
export interface InferFromGithubPayload extends Web2CoreTargetIdentityPayload {
|
|
46
|
+
proof: GithubProof;
|
|
47
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/abstraction/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/abstraction/index.ts"],"names":[],"mappings":";AACA,gCAAgC"}
|
|
@@ -9,7 +9,7 @@ import { INativePayload } from "../native";
|
|
|
9
9
|
import { SubnetPayload } from "../../l2ps";
|
|
10
10
|
export type TransactionContentData = ["web2Request", IWeb2Payload] | ["crosschainOperation", XMScript] | ["native", INativePayload] | ["demoswork", DemoScript] | ["subnet", SubnetPayload];
|
|
11
11
|
export interface TransactionContent {
|
|
12
|
-
type: "web2Request" | "crosschainOperation" | "subnet" | "native" | "demoswork" | "genesis";
|
|
12
|
+
type: "web2Request" | "crosschainOperation" | "subnet" | "native" | "demoswork" | "genesis" | "NODE_ONLINE";
|
|
13
13
|
from: forge.pki.ed25519.BinaryBuffer | forge.pki.PublicKey | ISignature;
|
|
14
14
|
to: forge.pki.ed25519.BinaryBuffer | forge.pki.PrivateKey | ISignature;
|
|
15
15
|
amount: number;
|