@tari-project/tarijs 0.1.21 → 0.1.23

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.
Files changed (109) hide show
  1. package/dist/builders/helpers/index.d.ts +2 -0
  2. package/dist/builders/helpers/index.js +2 -0
  3. package/dist/builders/helpers/submitTransaction.d.ts +13 -0
  4. package/dist/builders/helpers/submitTransaction.js +59 -0
  5. package/dist/builders/helpers/workspace.d.ts +23 -0
  6. package/dist/builders/helpers/workspace.js +29 -0
  7. package/dist/builders/index.d.ts +3 -0
  8. package/dist/builders/index.js +3 -0
  9. package/dist/builders/transaction/TransactionBuilder.d.ts +44 -0
  10. package/dist/builders/transaction/TransactionBuilder.js +164 -0
  11. package/dist/builders/transaction/TransactionRequest.d.ts +27 -0
  12. package/dist/builders/transaction/TransactionRequest.js +67 -0
  13. package/dist/builders/transaction/index.d.ts +2 -0
  14. package/dist/builders/transaction/index.js +2 -0
  15. package/dist/builders/types/Amount.d.ts +23 -0
  16. package/dist/builders/types/Amount.js +93 -0
  17. package/dist/builders/types/Arg.d.ts +1 -0
  18. package/dist/builders/types/Arg.js +1 -0
  19. package/dist/builders/types/Builder.d.ts +47 -0
  20. package/dist/builders/types/Builder.js +1 -0
  21. package/dist/builders/types/ComponentAddress.d.ts +1 -0
  22. package/dist/builders/types/ComponentAddress.js +1 -0
  23. package/dist/builders/types/ConfidentialClaim.d.ts +8 -0
  24. package/dist/builders/types/ConfidentialClaim.js +1 -0
  25. package/dist/builders/types/ConfidentialOutput.d.ts +8 -0
  26. package/dist/builders/types/ConfidentialOutput.js +1 -0
  27. package/dist/builders/types/ConfidentialOutputStatement.d.ts +9 -0
  28. package/dist/builders/types/ConfidentialOutputStatement.js +1 -0
  29. package/dist/builders/types/ConfidentialStatement.d.ts +8 -0
  30. package/dist/builders/types/ConfidentialStatement.js +1 -0
  31. package/dist/builders/types/ConfidentialWithdrawProof.d.ts +7 -0
  32. package/dist/builders/types/ConfidentialWithdrawProof.js +1 -0
  33. package/dist/builders/types/ElgamalVerifiableBalance.d.ts +4 -0
  34. package/dist/builders/types/ElgamalVerifiableBalance.js +1 -0
  35. package/dist/builders/types/Epoch.d.ts +1 -0
  36. package/dist/builders/types/Epoch.js +1 -0
  37. package/dist/builders/types/FinalizeResult.d.ts +20 -0
  38. package/dist/builders/types/FinalizeResult.js +1 -0
  39. package/dist/builders/types/Instruction.d.ts +56 -0
  40. package/dist/builders/types/Instruction.js +1 -0
  41. package/dist/builders/types/ResourceAddress.d.ts +1 -0
  42. package/dist/builders/types/ResourceAddress.js +2 -0
  43. package/dist/builders/types/SubstateDiff.d.ts +7 -0
  44. package/dist/builders/types/SubstateDiff.js +1 -0
  45. package/dist/builders/types/SubstateRequirement.d.ts +5 -0
  46. package/dist/builders/types/SubstateRequirement.js +1 -0
  47. package/dist/builders/types/TemplateAddress.d.ts +1 -0
  48. package/dist/builders/types/TemplateAddress.js +2 -0
  49. package/dist/builders/types/Transaction.d.ts +15 -0
  50. package/dist/builders/types/Transaction.js +1 -0
  51. package/dist/builders/types/TransactionId.d.ts +1 -0
  52. package/dist/builders/types/TransactionId.js +1 -0
  53. package/dist/builders/types/TransactionResult.d.ts +22 -0
  54. package/dist/builders/types/TransactionResult.js +10 -0
  55. package/dist/builders/types/TransactionSignature.d.ts +4 -0
  56. package/dist/builders/types/TransactionSignature.js +1 -0
  57. package/dist/builders/types/UnsignedTransaction.d.ts +12 -0
  58. package/dist/builders/types/UnsignedTransaction.js +1 -0
  59. package/dist/builders/types/VersionedSubstateId.d.ts +5 -0
  60. package/dist/builders/types/VersionedSubstateId.js +1 -0
  61. package/dist/builders/types/ViewableBalanceProof.d.ts +10 -0
  62. package/dist/builders/types/ViewableBalanceProof.js +2 -0
  63. package/dist/builders/types/Workspace.d.ts +3 -0
  64. package/dist/builders/types/Workspace.js +1 -0
  65. package/dist/builders/types/index.d.ts +24 -0
  66. package/dist/builders/types/index.js +2 -0
  67. package/dist/index.d.ts +13 -0
  68. package/dist/index.js +12 -0
  69. package/dist/providers/index.d.ts +16 -0
  70. package/dist/providers/index.js +1 -0
  71. package/dist/providers/metamask/index.d.ts +30 -0
  72. package/dist/providers/metamask/index.js +169 -0
  73. package/dist/providers/metamask/utils.d.ts +38 -0
  74. package/dist/providers/metamask/utils.js +55 -0
  75. package/dist/providers/tari_universe/index.d.ts +3 -0
  76. package/dist/providers/tari_universe/index.js +3 -0
  77. package/dist/providers/tari_universe/provider.d.ts +23 -0
  78. package/dist/providers/tari_universe/provider.js +88 -0
  79. package/dist/providers/tari_universe/types.d.ts +30 -0
  80. package/dist/providers/tari_universe/types.js +1 -0
  81. package/dist/providers/types.d.ts +66 -0
  82. package/dist/providers/types.js +10 -0
  83. package/dist/providers/wallet_daemon/index.d.ts +3 -0
  84. package/dist/providers/wallet_daemon/index.js +3 -0
  85. package/dist/providers/wallet_daemon/provider.d.ts +35 -0
  86. package/dist/providers/wallet_daemon/provider.js +173 -0
  87. package/dist/providers/wallet_daemon/tari_permissions.d.ts +216 -0
  88. package/dist/providers/wallet_daemon/tari_permissions.js +282 -0
  89. package/dist/providers/wallet_daemon/webrtc.d.ts +20 -0
  90. package/dist/providers/wallet_daemon/webrtc.js +201 -0
  91. package/dist/providers/wallet_daemon/webrtc_transport.d.ts +10 -0
  92. package/dist/providers/wallet_daemon/webrtc_transport.js +18 -0
  93. package/dist/providers/walletconnect/index.d.ts +23 -0
  94. package/dist/providers/walletconnect/index.js +217 -0
  95. package/dist/templates/Account.d.ts +65 -0
  96. package/dist/templates/Account.js +31 -0
  97. package/dist/templates/Pool.d.ts +30 -0
  98. package/dist/templates/Pool.js +20 -0
  99. package/dist/templates/Tariswap.d.ts +65 -0
  100. package/dist/templates/Tariswap.js +36 -0
  101. package/dist/templates/TemplateFactory.d.ts +9 -0
  102. package/dist/templates/TemplateFactory.js +18 -0
  103. package/dist/templates/TestFaucet.d.ts +49 -0
  104. package/dist/templates/TestFaucet.js +31 -0
  105. package/dist/templates/index.d.ts +4 -0
  106. package/dist/templates/index.js +4 -0
  107. package/dist/utils.d.ts +2 -0
  108. package/dist/utils.js +22 -0
  109. package/package.json +9 -5
@@ -0,0 +1,216 @@
1
+ export declare class Hash {
2
+ private value;
3
+ constructor(value: number[]);
4
+ toJSON(): number[];
5
+ }
6
+ export declare enum TAG {
7
+ ComponentAddress = 128,
8
+ Metadata = 129,
9
+ NonFungibleAddress = 130,
10
+ ResourceAddress = 131,
11
+ VaultId = 132,
12
+ TransactionReceipt = 134,
13
+ FeeClaim = 135
14
+ }
15
+ export declare class Tagged {
16
+ private value;
17
+ private tag;
18
+ constructor(tag: number, value: any);
19
+ toJSON(): {
20
+ "@@TAGGED@@": any[];
21
+ };
22
+ }
23
+ export declare class ResourceAddress {
24
+ private tagged;
25
+ constructor(hash: Hash);
26
+ toJSON(): {
27
+ "@@TAGGED@@": any[];
28
+ };
29
+ }
30
+ export declare class UnclaimedConfidentialOutputAddress {
31
+ private hash;
32
+ constructor(hash: Hash);
33
+ toJSON(): number[];
34
+ }
35
+ export type u64 = number;
36
+ export type u32 = number;
37
+ export declare class U256 {
38
+ private value;
39
+ constructor(value: number[]);
40
+ toJSON(): number[];
41
+ }
42
+ export type NonFungibleIdType = u32 | u64 | string | U256;
43
+ export declare class NonFungibleId {
44
+ private value;
45
+ constructor(value: NonFungibleIdType);
46
+ toJSON(): {
47
+ string: string;
48
+ Uint64?: undefined;
49
+ U256?: undefined;
50
+ } | {
51
+ Uint64: number;
52
+ string?: undefined;
53
+ U256?: undefined;
54
+ } | {
55
+ U256: U256;
56
+ string?: undefined;
57
+ Uint64?: undefined;
58
+ };
59
+ }
60
+ export declare class NonFungibleAddressContents {
61
+ private resource_address;
62
+ private id;
63
+ constructor(resource_address: ResourceAddress, id: NonFungibleId);
64
+ toJSON(): {
65
+ resource_address: ResourceAddress;
66
+ id: NonFungibleId;
67
+ };
68
+ }
69
+ export declare class NonFungibleAddress {
70
+ private tagged;
71
+ constructor(value: NonFungibleAddressContents);
72
+ toJSON(): {
73
+ "@@TAGGED@@": any[];
74
+ };
75
+ }
76
+ export declare class NonFungibleIndexAddress {
77
+ private resource_address;
78
+ private index;
79
+ constructor(resource_address: ResourceAddress, index: number);
80
+ toJSON(): {
81
+ resource_address: ResourceAddress;
82
+ index: number;
83
+ };
84
+ }
85
+ export declare class ComponentAddress {
86
+ private tagged;
87
+ constructor(hash: Hash);
88
+ toJSON(): {
89
+ "@@TAGGED@@": any[];
90
+ };
91
+ }
92
+ export declare class VaultId {
93
+ private tagged;
94
+ constructor(hash: Hash);
95
+ toJSON(): {
96
+ "@@TAGGED@@": any[];
97
+ };
98
+ }
99
+ export type SubstateAddressType = ResourceAddress | ComponentAddress | VaultId | UnclaimedConfidentialOutputAddress | NonFungibleAddress | NonFungibleIndexAddress;
100
+ export declare class SubstateAddress {
101
+ private value;
102
+ constructor(value: SubstateAddressType);
103
+ toJSON(): {
104
+ Component: ComponentAddress;
105
+ Resource?: undefined;
106
+ Vault?: undefined;
107
+ UnclaimedConfidentialOutput?: undefined;
108
+ NonFungible?: undefined;
109
+ NonFungibleIndex?: undefined;
110
+ } | {
111
+ Resource: ResourceAddress;
112
+ Component?: undefined;
113
+ Vault?: undefined;
114
+ UnclaimedConfidentialOutput?: undefined;
115
+ NonFungible?: undefined;
116
+ NonFungibleIndex?: undefined;
117
+ } | {
118
+ Vault: VaultId;
119
+ Component?: undefined;
120
+ Resource?: undefined;
121
+ UnclaimedConfidentialOutput?: undefined;
122
+ NonFungible?: undefined;
123
+ NonFungibleIndex?: undefined;
124
+ } | {
125
+ UnclaimedConfidentialOutput: UnclaimedConfidentialOutputAddress;
126
+ Component?: undefined;
127
+ Resource?: undefined;
128
+ Vault?: undefined;
129
+ NonFungible?: undefined;
130
+ NonFungibleIndex?: undefined;
131
+ } | {
132
+ NonFungible: NonFungibleAddress;
133
+ Component?: undefined;
134
+ Resource?: undefined;
135
+ Vault?: undefined;
136
+ UnclaimedConfidentialOutput?: undefined;
137
+ NonFungibleIndex?: undefined;
138
+ } | {
139
+ NonFungibleIndex: NonFungibleIndexAddress;
140
+ Component?: undefined;
141
+ Resource?: undefined;
142
+ Vault?: undefined;
143
+ UnclaimedConfidentialOutput?: undefined;
144
+ NonFungible?: undefined;
145
+ };
146
+ }
147
+ export declare class TariPermissionAccountBalance {
148
+ private value;
149
+ constructor(value: SubstateAddress);
150
+ toJSON(): {
151
+ AccountBalance: SubstateAddress;
152
+ };
153
+ }
154
+ export declare class TariPermissionAccountInfo {
155
+ constructor();
156
+ toJSON(): string;
157
+ }
158
+ export declare class TariPermissionAccountList {
159
+ private value?;
160
+ constructor(value?: ComponentAddress);
161
+ toJSON(): {
162
+ AccountList: ComponentAddress | null;
163
+ };
164
+ }
165
+ export declare class TariPermissionKeyList {
166
+ constructor();
167
+ toJSON(): string;
168
+ }
169
+ export declare class TariPermissionTransactionGet {
170
+ constructor();
171
+ toJSON(): string;
172
+ }
173
+ export declare class TariPermissionTransactionSend {
174
+ private value?;
175
+ constructor(value?: SubstateAddress);
176
+ toJSON(): {
177
+ TransactionSend: null;
178
+ } | {
179
+ TransactionSend: SubstateAddress;
180
+ };
181
+ }
182
+ export declare class TariPermissionGetNft {
183
+ private value0?;
184
+ private value1?;
185
+ constructor(value0?: SubstateAddress, value1?: ResourceAddress);
186
+ toJSON(): {
187
+ GetNft: (ResourceAddress | SubstateAddress | undefined)[];
188
+ };
189
+ }
190
+ export declare class TariPermissionNftGetOwnershipProof {
191
+ private value?;
192
+ constructor(value?: ResourceAddress);
193
+ toJSON(): {
194
+ NftGetOwnershipProof: ResourceAddress | undefined;
195
+ };
196
+ }
197
+ export declare class TariPermissionTransactionsGet {
198
+ constructor();
199
+ toJSON(): string;
200
+ }
201
+ export declare class TariPermissionSubstatesRead {
202
+ constructor();
203
+ toJSON(): string;
204
+ }
205
+ export declare class TariPermissionTemplatesRead {
206
+ constructor();
207
+ toJSON(): string;
208
+ }
209
+ export type TariPermission = TariPermissionNftGetOwnershipProof | TariPermissionAccountBalance | TariPermissionAccountInfo | TariPermissionAccountList | TariPermissionKeyList | TariPermissionTransactionGet | TariPermissionTransactionSend | TariPermissionGetNft | TariPermissionTransactionsGet | TariPermissionSubstatesRead | TariPermissionTemplatesRead | string;
210
+ export declare class TariPermissions {
211
+ private permissions;
212
+ constructor();
213
+ addPermission(permission: TariPermission): this;
214
+ addPermissions(other: TariPermissions): this;
215
+ toJSON(): TariPermission[];
216
+ }
@@ -0,0 +1,282 @@
1
+ export class Hash {
2
+ value;
3
+ constructor(value) {
4
+ this.value = value;
5
+ }
6
+ toJSON() {
7
+ return this.value;
8
+ }
9
+ }
10
+ export var TAG;
11
+ (function (TAG) {
12
+ TAG[TAG["ComponentAddress"] = 128] = "ComponentAddress";
13
+ TAG[TAG["Metadata"] = 129] = "Metadata";
14
+ TAG[TAG["NonFungibleAddress"] = 130] = "NonFungibleAddress";
15
+ TAG[TAG["ResourceAddress"] = 131] = "ResourceAddress";
16
+ TAG[TAG["VaultId"] = 132] = "VaultId";
17
+ TAG[TAG["TransactionReceipt"] = 134] = "TransactionReceipt";
18
+ TAG[TAG["FeeClaim"] = 135] = "FeeClaim";
19
+ })(TAG || (TAG = {}));
20
+ export class Tagged {
21
+ value;
22
+ tag;
23
+ constructor(tag, value) {
24
+ this.tag = tag;
25
+ this.value = value;
26
+ }
27
+ toJSON() {
28
+ return { "@@TAGGED@@": [this.tag, this.value] };
29
+ }
30
+ }
31
+ export class ResourceAddress {
32
+ tagged;
33
+ constructor(hash) {
34
+ this.tagged = new Tagged(TAG.ResourceAddress, hash);
35
+ }
36
+ toJSON() {
37
+ return this.tagged.toJSON();
38
+ }
39
+ }
40
+ export class UnclaimedConfidentialOutputAddress {
41
+ hash;
42
+ constructor(hash) {
43
+ this.hash = hash;
44
+ }
45
+ toJSON() {
46
+ return this.hash.toJSON();
47
+ }
48
+ }
49
+ export class U256 {
50
+ value;
51
+ constructor(value) {
52
+ this.value = value;
53
+ }
54
+ toJSON() {
55
+ return this.value;
56
+ }
57
+ }
58
+ export class NonFungibleId {
59
+ value;
60
+ constructor(value) {
61
+ this.value = value;
62
+ }
63
+ toJSON() {
64
+ switch (typeof this.value) {
65
+ case 'string':
66
+ return { 'string': this.value };
67
+ case 'number':
68
+ return { 'Uint64': this.value };
69
+ }
70
+ return { 'U256': this.value };
71
+ }
72
+ }
73
+ export class NonFungibleAddressContents {
74
+ resource_address;
75
+ id;
76
+ constructor(resource_address, id) {
77
+ this.resource_address = resource_address;
78
+ this.id = id;
79
+ }
80
+ toJSON() {
81
+ return { "resource_address": this.resource_address, "id": this.id };
82
+ }
83
+ }
84
+ export class NonFungibleAddress {
85
+ tagged;
86
+ constructor(value) {
87
+ this.tagged = new Tagged(TAG.NonFungibleAddress, value);
88
+ }
89
+ toJSON() {
90
+ return this.tagged.toJSON();
91
+ }
92
+ }
93
+ export class NonFungibleIndexAddress {
94
+ resource_address;
95
+ index;
96
+ constructor(resource_address, index) {
97
+ this.resource_address = resource_address;
98
+ this.index = index;
99
+ }
100
+ toJSON() {
101
+ return { "resource_address": this.resource_address, "index": this.index };
102
+ }
103
+ }
104
+ export class ComponentAddress {
105
+ tagged;
106
+ constructor(hash) {
107
+ this.tagged = new Tagged(TAG.ComponentAddress, hash);
108
+ }
109
+ toJSON() {
110
+ return this.tagged.toJSON();
111
+ }
112
+ }
113
+ export class VaultId {
114
+ tagged;
115
+ constructor(hash) {
116
+ this.tagged = new Tagged(TAG.VaultId, hash);
117
+ }
118
+ toJSON() {
119
+ return this.tagged.toJSON();
120
+ }
121
+ }
122
+ export class SubstateAddress {
123
+ value;
124
+ constructor(value) {
125
+ this.value = value;
126
+ }
127
+ toJSON() {
128
+ if (this.value instanceof ComponentAddress) {
129
+ return { "Component": this.value };
130
+ }
131
+ else if (this.value instanceof ResourceAddress) {
132
+ return { "Resource": this.value };
133
+ }
134
+ else if (this.value instanceof VaultId) {
135
+ return { "Vault": this.value };
136
+ }
137
+ else if (this.value instanceof UnclaimedConfidentialOutputAddress) {
138
+ return { "UnclaimedConfidentialOutput": this.value };
139
+ }
140
+ else if (this.value instanceof NonFungibleAddress) {
141
+ return { "NonFungible": this.value };
142
+ }
143
+ else if (this.value instanceof NonFungibleIndexAddress) {
144
+ return { "NonFungibleIndex": this.value };
145
+ }
146
+ throw "Unknown type";
147
+ }
148
+ }
149
+ export class TariPermissionAccountBalance {
150
+ value;
151
+ constructor(value) {
152
+ this.value = value;
153
+ }
154
+ toJSON() {
155
+ console.log("stringify", this.value);
156
+ return { "AccountBalance": this.value };
157
+ }
158
+ }
159
+ export class TariPermissionAccountInfo {
160
+ constructor() { }
161
+ toJSON() {
162
+ return "AccountInfo";
163
+ }
164
+ }
165
+ export class TariPermissionAccountList {
166
+ value;
167
+ constructor(value) {
168
+ if (value === undefined) {
169
+ this.value = null;
170
+ }
171
+ else {
172
+ this.value = value;
173
+ }
174
+ }
175
+ toJSON() {
176
+ console.log('JSON TariPermissionAccountList', this.value);
177
+ if (this.value === undefined) {
178
+ return { "AccountList": null };
179
+ }
180
+ else {
181
+ return { "AccountList": this.value };
182
+ }
183
+ }
184
+ }
185
+ export class TariPermissionKeyList {
186
+ constructor() { }
187
+ toJSON() {
188
+ return "KeyList";
189
+ }
190
+ }
191
+ export class TariPermissionTransactionGet {
192
+ constructor() { }
193
+ toJSON() {
194
+ return "TransactionGet";
195
+ }
196
+ }
197
+ export class TariPermissionTransactionSend {
198
+ value;
199
+ constructor(value) {
200
+ this.value = value;
201
+ }
202
+ toJSON() {
203
+ console.log('JSON TariPermissionTransactionSend', this.value);
204
+ if (this.value === undefined) {
205
+ return { "TransactionSend": null };
206
+ }
207
+ else {
208
+ return { "TransactionSend": this.value };
209
+ }
210
+ }
211
+ }
212
+ export class TariPermissionGetNft {
213
+ value0;
214
+ value1;
215
+ constructor(value0, value1) {
216
+ this.value0 = value0;
217
+ this.value1 = value1;
218
+ }
219
+ toJSON() {
220
+ return { "GetNft": [this.value0, this.value1] };
221
+ }
222
+ }
223
+ export class TariPermissionNftGetOwnershipProof {
224
+ value;
225
+ constructor(value) {
226
+ this.value = value;
227
+ }
228
+ toJSON() {
229
+ return { "NftGetOwnershipProof": this.value };
230
+ }
231
+ }
232
+ export class TariPermissionTransactionsGet {
233
+ constructor() { }
234
+ toJSON() {
235
+ return "TransactionGet";
236
+ }
237
+ }
238
+ export class TariPermissionSubstatesRead {
239
+ constructor() { }
240
+ toJSON() {
241
+ return "SubstatesRead";
242
+ }
243
+ }
244
+ export class TariPermissionTemplatesRead {
245
+ constructor() { }
246
+ toJSON() {
247
+ return "TemplatesRead";
248
+ }
249
+ }
250
+ // export enum TariPermission {
251
+ // AccountBalance = "AccountBalance",
252
+ // AccountInfo = "AccountInfo",
253
+ // AccountList = "AccountList",
254
+ // KeyList = "KeyList",
255
+ // TransactionGet = "TransactionGet",
256
+ // TransactionSend = "TransactionSend",
257
+ // GetNft = "GetNft",
258
+ // NftGetOwnershipProof = "NftGetOwnershipProof",
259
+ // TransactionsGet = "TransactionsGet",
260
+ // SubstatesRead = "SubstatesRead",
261
+ // TemplatesRead = "TemplatesRead",
262
+ // }
263
+ export class TariPermissions {
264
+ permissions;
265
+ constructor() {
266
+ this.permissions = [];
267
+ }
268
+ addPermission(permission) {
269
+ this.permissions.push(permission);
270
+ return this;
271
+ }
272
+ addPermissions(other) {
273
+ this.permissions.push(...other.permissions);
274
+ return this;
275
+ }
276
+ toJSON() {
277
+ return this.permissions;
278
+ }
279
+ }
280
+ // TariPermissionType.prototype.toString = function () {
281
+ // return "wtf"
282
+ // }
@@ -0,0 +1,20 @@
1
+ import { TariPermissions } from "./tari_permissions";
2
+ import { transports } from "@tari-project/wallet_jrpc_client";
3
+ export declare class TariConnection {
4
+ private _peerConnection;
5
+ private _dataChannel;
6
+ private _signalingServer;
7
+ private _callbacks;
8
+ private _offer?;
9
+ private _walletToken;
10
+ onopen: (() => void) | undefined;
11
+ onConnection: ((conn: TariConnection) => void) | undefined;
12
+ constructor(signalig_server_url?: string, config?: RTCConfiguration);
13
+ get token(): string | undefined;
14
+ init(permissions: TariPermissions, onConnection: ((conn: TariConnection) => void) | undefined): Promise<void>;
15
+ private setAnswer;
16
+ private signalingServerPolling;
17
+ isConnected(): boolean;
18
+ sendMessage<T>(request: transports.RpcRequest, token: string | undefined, timeout_secs?: number | null): Promise<T>;
19
+ private config;
20
+ }