@caatinga/client 0.2.0 → 0.2.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Kaleido contributors
3
+ Copyright (c) Caatinga contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caatinga/client",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Browser and Node client for Soroban smart contracts — connects generated bindings, Caatinga artifacts, and wallet adapters",
5
5
  "keywords": [
6
6
  "stellar",
@@ -46,7 +46,7 @@
46
46
  "LICENSE"
47
47
  ],
48
48
  "dependencies": {
49
- "@caatinga/core": "^0.2.0"
49
+ "@caatinga/core": "^0.2.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "tsup": "^8.3.5",
@@ -1,66 +0,0 @@
1
- import { KaleidoArtifacts } from '@kaleido/core';
2
-
3
- interface KaleidoNetwork {
4
- name: string;
5
- rpcUrl: string;
6
- networkPassphrase: string;
7
- }
8
- interface KaleidoWalletAdapter {
9
- getPublicKey(): Promise<string>;
10
- signTransaction(input: {
11
- xdr: string;
12
- networkPassphrase: string;
13
- }): Promise<string>;
14
- }
15
- interface KaleidoContractRegistration {
16
- binding: unknown;
17
- contractId?: string;
18
- }
19
- interface KaleidoClientConfig {
20
- network: KaleidoNetwork;
21
- artifacts: KaleidoArtifacts;
22
- wallet: KaleidoWalletAdapter;
23
- contracts: Record<string, KaleidoContractRegistration>;
24
- }
25
- type KaleidoInvokeStatus = "built" | "prepared" | "signed" | "submitted" | "confirmed" | "failed";
26
- interface KaleidoInvokeOptions {
27
- debugXdr?: boolean;
28
- debugRaw?: boolean;
29
- }
30
- interface KaleidoInvokeResult<T = unknown> {
31
- status: KaleidoInvokeStatus;
32
- contract: string;
33
- method: string;
34
- contractId: string;
35
- transactionHash?: string;
36
- result?: T;
37
- xdr?: {
38
- unsigned?: string;
39
- prepared?: string;
40
- signed?: string;
41
- };
42
- raw?: unknown;
43
- }
44
- interface KaleidoXdrBuildResult {
45
- contract: string;
46
- method: string;
47
- contractId: string;
48
- unsignedXdr?: string;
49
- preparedXdr: string;
50
- raw?: unknown;
51
- }
52
- interface KaleidoBindingAdapter {
53
- createClient(input: {
54
- contractId: string;
55
- publicKey: string;
56
- rpcUrl: string;
57
- networkPassphrase: string;
58
- }): unknown;
59
- callMethod(input: {
60
- client: unknown;
61
- method: string;
62
- args?: Record<string, unknown>;
63
- }): Promise<unknown>;
64
- }
65
-
66
- export type { KaleidoWalletAdapter as K, KaleidoBindingAdapter as a, KaleidoClientConfig as b, KaleidoContractRegistration as c, KaleidoXdrBuildResult as d, KaleidoInvokeOptions as e, KaleidoInvokeResult as f, KaleidoInvokeStatus as g, KaleidoNetwork as h };
@@ -1,66 +0,0 @@
1
- import { KaleidoArtifacts } from '@kaleido/core';
2
-
3
- interface KaleidoNetwork {
4
- name: string;
5
- rpcUrl: string;
6
- networkPassphrase: string;
7
- }
8
- interface KaleidoWalletAdapter {
9
- getPublicKey(): Promise<string>;
10
- signTransaction(input: {
11
- xdr: string;
12
- networkPassphrase: string;
13
- }): Promise<string>;
14
- }
15
- interface KaleidoContractRegistration {
16
- binding: unknown;
17
- contractId?: string;
18
- }
19
- interface KaleidoClientConfig {
20
- network: KaleidoNetwork;
21
- artifacts: KaleidoArtifacts;
22
- wallet: KaleidoWalletAdapter;
23
- contracts: Record<string, KaleidoContractRegistration>;
24
- }
25
- type KaleidoInvokeStatus = "built" | "prepared" | "signed" | "submitted" | "confirmed" | "failed";
26
- interface KaleidoInvokeOptions {
27
- debugXdr?: boolean;
28
- debugRaw?: boolean;
29
- }
30
- interface KaleidoInvokeResult<T = unknown> {
31
- status: KaleidoInvokeStatus;
32
- contract: string;
33
- method: string;
34
- contractId: string;
35
- transactionHash?: string;
36
- result?: T;
37
- xdr?: {
38
- unsigned?: string;
39
- prepared?: string;
40
- signed?: string;
41
- };
42
- raw?: unknown;
43
- }
44
- interface KaleidoXdrBuildResult {
45
- contract: string;
46
- method: string;
47
- contractId: string;
48
- unsignedXdr?: string;
49
- preparedXdr: string;
50
- raw?: unknown;
51
- }
52
- interface KaleidoBindingAdapter {
53
- createClient(input: {
54
- contractId: string;
55
- publicKey: string;
56
- rpcUrl: string;
57
- networkPassphrase: string;
58
- }): unknown;
59
- callMethod(input: {
60
- client: unknown;
61
- method: string;
62
- args?: Record<string, unknown>;
63
- }): Promise<unknown>;
64
- }
65
-
66
- export type { KaleidoWalletAdapter as K, KaleidoBindingAdapter as a, KaleidoClientConfig as b, KaleidoContractRegistration as c, KaleidoXdrBuildResult as d, KaleidoInvokeOptions as e, KaleidoInvokeResult as f, KaleidoInvokeStatus as g, KaleidoNetwork as h };
@@ -1,66 +0,0 @@
1
- import { KaleidoArtifacts } from '@kaleido-xlm/core';
2
-
3
- interface KaleidoNetwork {
4
- name: string;
5
- rpcUrl: string;
6
- networkPassphrase: string;
7
- }
8
- interface KaleidoWalletAdapter {
9
- getPublicKey(): Promise<string>;
10
- signTransaction(input: {
11
- xdr: string;
12
- networkPassphrase: string;
13
- }): Promise<string>;
14
- }
15
- interface KaleidoContractRegistration {
16
- binding: unknown;
17
- contractId?: string;
18
- }
19
- interface KaleidoClientConfig {
20
- network: KaleidoNetwork;
21
- artifacts: KaleidoArtifacts;
22
- wallet: KaleidoWalletAdapter;
23
- contracts: Record<string, KaleidoContractRegistration>;
24
- }
25
- type KaleidoInvokeStatus = "built" | "prepared" | "signed" | "submitted" | "confirmed" | "failed";
26
- interface KaleidoInvokeOptions {
27
- debugXdr?: boolean;
28
- debugRaw?: boolean;
29
- }
30
- interface KaleidoInvokeResult<T = unknown> {
31
- status: KaleidoInvokeStatus;
32
- contract: string;
33
- method: string;
34
- contractId: string;
35
- transactionHash?: string;
36
- result?: T;
37
- xdr?: {
38
- unsigned?: string;
39
- prepared?: string;
40
- signed?: string;
41
- };
42
- raw?: unknown;
43
- }
44
- interface KaleidoXdrBuildResult {
45
- contract: string;
46
- method: string;
47
- contractId: string;
48
- unsignedXdr?: string;
49
- preparedXdr: string;
50
- raw?: unknown;
51
- }
52
- interface KaleidoBindingAdapter {
53
- createClient(input: {
54
- contractId: string;
55
- publicKey: string;
56
- rpcUrl: string;
57
- networkPassphrase: string;
58
- }): unknown;
59
- callMethod(input: {
60
- client: unknown;
61
- method: string;
62
- args?: Record<string, unknown>;
63
- }): Promise<unknown>;
64
- }
65
-
66
- export type { KaleidoWalletAdapter as K, KaleidoBindingAdapter as a, KaleidoClientConfig as b, KaleidoContractRegistration as c, KaleidoXdrBuildResult as d, KaleidoInvokeOptions as e, KaleidoInvokeResult as f, KaleidoInvokeStatus as g, KaleidoNetwork as h };
@@ -1,66 +0,0 @@
1
- import { KaleidoArtifacts } from '@kaleido-xlm/core';
2
-
3
- interface KaleidoNetwork {
4
- name: string;
5
- rpcUrl: string;
6
- networkPassphrase: string;
7
- }
8
- interface KaleidoWalletAdapter {
9
- getPublicKey(): Promise<string>;
10
- signTransaction(input: {
11
- xdr: string;
12
- networkPassphrase: string;
13
- }): Promise<string>;
14
- }
15
- interface KaleidoContractRegistration {
16
- binding: unknown;
17
- contractId?: string;
18
- }
19
- interface KaleidoClientConfig {
20
- network: KaleidoNetwork;
21
- artifacts: KaleidoArtifacts;
22
- wallet: KaleidoWalletAdapter;
23
- contracts: Record<string, KaleidoContractRegistration>;
24
- }
25
- type KaleidoInvokeStatus = "built" | "prepared" | "signed" | "submitted" | "confirmed" | "failed";
26
- interface KaleidoInvokeOptions {
27
- debugXdr?: boolean;
28
- debugRaw?: boolean;
29
- }
30
- interface KaleidoInvokeResult<T = unknown> {
31
- status: KaleidoInvokeStatus;
32
- contract: string;
33
- method: string;
34
- contractId: string;
35
- transactionHash?: string;
36
- result?: T;
37
- xdr?: {
38
- unsigned?: string;
39
- prepared?: string;
40
- signed?: string;
41
- };
42
- raw?: unknown;
43
- }
44
- interface KaleidoXdrBuildResult {
45
- contract: string;
46
- method: string;
47
- contractId: string;
48
- unsignedXdr?: string;
49
- preparedXdr: string;
50
- raw?: unknown;
51
- }
52
- interface KaleidoBindingAdapter {
53
- createClient(input: {
54
- contractId: string;
55
- publicKey: string;
56
- rpcUrl: string;
57
- networkPassphrase: string;
58
- }): unknown;
59
- callMethod(input: {
60
- client: unknown;
61
- method: string;
62
- args?: Record<string, unknown>;
63
- }): Promise<unknown>;
64
- }
65
-
66
- export type { KaleidoWalletAdapter as K, KaleidoBindingAdapter as a, KaleidoClientConfig as b, KaleidoContractRegistration as c, KaleidoXdrBuildResult as d, KaleidoInvokeOptions as e, KaleidoInvokeResult as f, KaleidoInvokeStatus as g, KaleidoNetwork as h };
@@ -1,66 +0,0 @@
1
- import { KaleidoArtifacts } from '@kaleido-stellar/core';
2
-
3
- interface KaleidoNetwork {
4
- name: string;
5
- rpcUrl: string;
6
- networkPassphrase: string;
7
- }
8
- interface KaleidoWalletAdapter {
9
- getPublicKey(): Promise<string>;
10
- signTransaction(input: {
11
- xdr: string;
12
- networkPassphrase: string;
13
- }): Promise<string>;
14
- }
15
- interface KaleidoContractRegistration {
16
- binding: unknown;
17
- contractId?: string;
18
- }
19
- interface KaleidoClientConfig {
20
- network: KaleidoNetwork;
21
- artifacts: KaleidoArtifacts;
22
- wallet: KaleidoWalletAdapter;
23
- contracts: Record<string, KaleidoContractRegistration>;
24
- }
25
- type KaleidoInvokeStatus = "built" | "prepared" | "signed" | "submitted" | "confirmed" | "failed";
26
- interface KaleidoInvokeOptions {
27
- debugXdr?: boolean;
28
- debugRaw?: boolean;
29
- }
30
- interface KaleidoInvokeResult<T = unknown> {
31
- status: KaleidoInvokeStatus;
32
- contract: string;
33
- method: string;
34
- contractId: string;
35
- transactionHash?: string;
36
- result?: T;
37
- xdr?: {
38
- unsigned?: string;
39
- prepared?: string;
40
- signed?: string;
41
- };
42
- raw?: unknown;
43
- }
44
- interface KaleidoXdrBuildResult {
45
- contract: string;
46
- method: string;
47
- contractId: string;
48
- unsignedXdr?: string;
49
- preparedXdr: string;
50
- raw?: unknown;
51
- }
52
- interface KaleidoBindingAdapter {
53
- createClient(input: {
54
- contractId: string;
55
- publicKey: string;
56
- rpcUrl: string;
57
- networkPassphrase: string;
58
- }): unknown;
59
- callMethod(input: {
60
- client: unknown;
61
- method: string;
62
- args?: Record<string, unknown>;
63
- }): Promise<unknown>;
64
- }
65
-
66
- export type { KaleidoWalletAdapter as K, KaleidoBindingAdapter as a, KaleidoClientConfig as b, KaleidoContractRegistration as c, KaleidoXdrBuildResult as d, KaleidoInvokeOptions as e, KaleidoInvokeResult as f, KaleidoInvokeStatus as g, KaleidoNetwork as h };
@@ -1,66 +0,0 @@
1
- import { KaleidoArtifacts } from '@kaleido-stellar/core';
2
-
3
- interface KaleidoNetwork {
4
- name: string;
5
- rpcUrl: string;
6
- networkPassphrase: string;
7
- }
8
- interface KaleidoWalletAdapter {
9
- getPublicKey(): Promise<string>;
10
- signTransaction(input: {
11
- xdr: string;
12
- networkPassphrase: string;
13
- }): Promise<string>;
14
- }
15
- interface KaleidoContractRegistration {
16
- binding: unknown;
17
- contractId?: string;
18
- }
19
- interface KaleidoClientConfig {
20
- network: KaleidoNetwork;
21
- artifacts: KaleidoArtifacts;
22
- wallet: KaleidoWalletAdapter;
23
- contracts: Record<string, KaleidoContractRegistration>;
24
- }
25
- type KaleidoInvokeStatus = "built" | "prepared" | "signed" | "submitted" | "confirmed" | "failed";
26
- interface KaleidoInvokeOptions {
27
- debugXdr?: boolean;
28
- debugRaw?: boolean;
29
- }
30
- interface KaleidoInvokeResult<T = unknown> {
31
- status: KaleidoInvokeStatus;
32
- contract: string;
33
- method: string;
34
- contractId: string;
35
- transactionHash?: string;
36
- result?: T;
37
- xdr?: {
38
- unsigned?: string;
39
- prepared?: string;
40
- signed?: string;
41
- };
42
- raw?: unknown;
43
- }
44
- interface KaleidoXdrBuildResult {
45
- contract: string;
46
- method: string;
47
- contractId: string;
48
- unsignedXdr?: string;
49
- preparedXdr: string;
50
- raw?: unknown;
51
- }
52
- interface KaleidoBindingAdapter {
53
- createClient(input: {
54
- contractId: string;
55
- publicKey: string;
56
- rpcUrl: string;
57
- networkPassphrase: string;
58
- }): unknown;
59
- callMethod(input: {
60
- client: unknown;
61
- method: string;
62
- args?: Record<string, unknown>;
63
- }): Promise<unknown>;
64
- }
65
-
66
- export type { KaleidoWalletAdapter as K, KaleidoBindingAdapter as a, KaleidoClientConfig as b, KaleidoContractRegistration as c, KaleidoXdrBuildResult as d, KaleidoInvokeOptions as e, KaleidoInvokeResult as f, KaleidoInvokeStatus as g, KaleidoNetwork as h };