@huma-finance/soroban-sep41 0.0.11-beta.7

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/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # underlyingToken JS
2
+
3
+ JS library for interacting with [Soroban](https://soroban.stellar.org/) smart contract `underlyingToken` via Soroban RPC.
4
+
5
+ This library was automatically generated by Soroban CLI using a command similar to:
6
+
7
+ ```bash
8
+ soroban contract bindings ts \
9
+ --rpc-url https://soroban-testnet.stellar.org \
10
+ --network-passphrase "Test SDF Network ; September 2015" \
11
+ --contract-id CBHVVFYF3LZA7JUUBF3KK5SUQ3NWWT2MNCKJPZW6KVV7O7ZMPALFOPHR \
12
+ --output-dir ./path/to/underlyingToken
13
+ ```
14
+
15
+ The network passphrase and contract ID are exported from [index.ts](./src/index.ts) in the `networks` constant. If you are the one who generated this library and you know that this contract is also deployed to other networks, feel free to update `networks` with other valid options. This will help your contract consumers use this library more easily.
16
+
17
+ # To publish or not to publish
18
+
19
+ This library is suitable for publishing to NPM. You can publish it to NPM using the `npm publish` command.
20
+
21
+ But you don't need to publish this library to NPM to use it. You can add it to your project's `package.json` using a file path:
22
+
23
+ ```json
24
+ "dependencies": {
25
+ "underlyingToken": "./path/to/this/folder"
26
+ }
27
+ ```
28
+
29
+ However, we've actually encountered [frustration](https://github.com/stellar/soroban-example-dapp/pull/117#discussion_r1232873560) using local libraries with NPM in this way. Though it seems a bit messy, we suggest generating the library directly to your `node_modules` folder automatically after each install by using a `postinstall` script. We've had the least trouble with this approach. NPM will automatically remove what it sees as erroneous directories during the `install` step, and then regenerate them when it gets to your `postinstall` step, which will keep the library up-to-date with your contract.
30
+
31
+ ```json
32
+ "scripts": {
33
+ "postinstall": "soroban contract bindings ts --rpc-url https://soroban-testnet.stellar.org --network-passphrase \"Test SDF Network ; September 2015\" --id CBHVVFYF3LZA7JUUBF3KK5SUQ3NWWT2MNCKJPZW6KVV7O7ZMPALFOPHR --name underlyingToken"
34
+ }
35
+ ```
36
+
37
+ Obviously you need to adjust the above command based on the actual command you used to generate the library.
38
+
39
+ # Use it
40
+
41
+ Now that you have your library up-to-date and added to your project, you can import it in a file and see inline documentation for all of its exported methods:
42
+
43
+ ```js
44
+ import { Contract, networks } from "underlyingToken"
45
+
46
+ const contract = new Contract({
47
+ ...networks.futurenet, // for example; check which networks this library exports
48
+ rpcUrl: '...', // use your own, or find one for testing at https://soroban.stellar.org/docs/reference/rpc#public-rpc-providers
49
+ })
50
+
51
+ contract.|
52
+ ```
53
+
54
+ As long as your editor is configured to show JavaScript/TypeScript documentation, you can pause your typing at that `|` to get a list of all exports and inline-documentation for each. It exports a separate [async](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) function for each method in the smart contract, with documentation for each generated from the comments the contract's author included in the original source code.
@@ -0,0 +1,344 @@
1
+ import { AssembledTransaction, ContractClient, ContractClientOptions } from "@stellar/stellar-sdk/lib/contract_client/index.js";
2
+ import type { u32, i128 } from "@stellar/stellar-sdk/lib/contract_client";
3
+ export * from "@stellar/stellar-sdk";
4
+ export * from "@stellar/stellar-sdk/lib/contract_client/index.js";
5
+ export * from "@stellar/stellar-sdk/lib/rust_types/index.js";
6
+ export declare const networks: {
7
+ readonly testnet: {
8
+ readonly networkPassphrase: "Test SDF Network ; September 2015";
9
+ readonly contractId: "CBHVVFYF3LZA7JUUBF3KK5SUQ3NWWT2MNCKJPZW6KVV7O7ZMPALFOPHR";
10
+ };
11
+ };
12
+ /**
13
+ * The error codes for the contract.
14
+ */
15
+ export declare const Errors: {
16
+ 1: {
17
+ message: string;
18
+ };
19
+ 2: {
20
+ message: string;
21
+ };
22
+ 3: {
23
+ message: string;
24
+ };
25
+ 4: {
26
+ message: string;
27
+ };
28
+ 8: {
29
+ message: string;
30
+ };
31
+ 9: {
32
+ message: string;
33
+ };
34
+ 10: {
35
+ message: string;
36
+ };
37
+ 12: {
38
+ message: string;
39
+ };
40
+ };
41
+ export interface TokenMetadata {
42
+ decimal: u32;
43
+ name: string;
44
+ symbol: string;
45
+ }
46
+ export interface AllowanceDataKey {
47
+ from: string;
48
+ spender: string;
49
+ }
50
+ export interface AllowanceValue {
51
+ amount: i128;
52
+ expiration_ledger: u32;
53
+ }
54
+ export type DataKey = {
55
+ tag: "Allowance";
56
+ values: readonly [AllowanceDataKey];
57
+ } | {
58
+ tag: "Balance";
59
+ values: readonly [string];
60
+ } | {
61
+ tag: "Nonce";
62
+ values: readonly [string];
63
+ } | {
64
+ tag: "State";
65
+ values: readonly [string];
66
+ };
67
+ export interface Client {
68
+ /**
69
+ * Construct and simulate a initialize transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
70
+ */
71
+ initialize: ({ admin, decimal, name, symbol, }: {
72
+ admin: string;
73
+ decimal: u32;
74
+ name: string;
75
+ symbol: string;
76
+ }, options?: {
77
+ /**
78
+ * The fee to pay for the transaction. Default: BASE_FEE
79
+ */
80
+ fee?: number;
81
+ /**
82
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
83
+ */
84
+ timeoutInSeconds?: number;
85
+ /**
86
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
87
+ */
88
+ simulate?: boolean;
89
+ }) => Promise<AssembledTransaction<null>>;
90
+ /**
91
+ * Construct and simulate a mint transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
92
+ */
93
+ mint: ({ to, amount }: {
94
+ to: string;
95
+ amount: i128;
96
+ }, options?: {
97
+ /**
98
+ * The fee to pay for the transaction. Default: BASE_FEE
99
+ */
100
+ fee?: number;
101
+ /**
102
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
103
+ */
104
+ timeoutInSeconds?: number;
105
+ /**
106
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
107
+ */
108
+ simulate?: boolean;
109
+ }) => Promise<AssembledTransaction<null>>;
110
+ /**
111
+ * Construct and simulate a set_admin transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
112
+ */
113
+ set_admin: ({ new_admin }: {
114
+ new_admin: string;
115
+ }, options?: {
116
+ /**
117
+ * The fee to pay for the transaction. Default: BASE_FEE
118
+ */
119
+ fee?: number;
120
+ /**
121
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
122
+ */
123
+ timeoutInSeconds?: number;
124
+ /**
125
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
126
+ */
127
+ simulate?: boolean;
128
+ }) => Promise<AssembledTransaction<null>>;
129
+ /**
130
+ * Construct and simulate a allowance transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
131
+ */
132
+ allowance: ({ from, spender }: {
133
+ from: string;
134
+ spender: string;
135
+ }, options?: {
136
+ /**
137
+ * The fee to pay for the transaction. Default: BASE_FEE
138
+ */
139
+ fee?: number;
140
+ /**
141
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
142
+ */
143
+ timeoutInSeconds?: number;
144
+ /**
145
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
146
+ */
147
+ simulate?: boolean;
148
+ }) => Promise<AssembledTransaction<i128>>;
149
+ /**
150
+ * Construct and simulate a approve transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
151
+ */
152
+ approve: ({ from, spender, amount, expiration_ledger, }: {
153
+ from: string;
154
+ spender: string;
155
+ amount: i128;
156
+ expiration_ledger: u32;
157
+ }, options?: {
158
+ /**
159
+ * The fee to pay for the transaction. Default: BASE_FEE
160
+ */
161
+ fee?: number;
162
+ /**
163
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
164
+ */
165
+ timeoutInSeconds?: number;
166
+ /**
167
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
168
+ */
169
+ simulate?: boolean;
170
+ }) => Promise<AssembledTransaction<null>>;
171
+ /**
172
+ * Construct and simulate a balance transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
173
+ */
174
+ balance: ({ id }: {
175
+ id: string;
176
+ }, options?: {
177
+ /**
178
+ * The fee to pay for the transaction. Default: BASE_FEE
179
+ */
180
+ fee?: number;
181
+ /**
182
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
183
+ */
184
+ timeoutInSeconds?: number;
185
+ /**
186
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
187
+ */
188
+ simulate?: boolean;
189
+ }) => Promise<AssembledTransaction<i128>>;
190
+ /**
191
+ * Construct and simulate a transfer transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
192
+ */
193
+ transfer: ({ from, to, amount }: {
194
+ from: string;
195
+ to: string;
196
+ amount: i128;
197
+ }, options?: {
198
+ /**
199
+ * The fee to pay for the transaction. Default: BASE_FEE
200
+ */
201
+ fee?: number;
202
+ /**
203
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
204
+ */
205
+ timeoutInSeconds?: number;
206
+ /**
207
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
208
+ */
209
+ simulate?: boolean;
210
+ }) => Promise<AssembledTransaction<null>>;
211
+ /**
212
+ * Construct and simulate a transfer_from transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
213
+ */
214
+ transfer_from: ({ spender, from, to, amount, }: {
215
+ spender: string;
216
+ from: string;
217
+ to: string;
218
+ amount: i128;
219
+ }, options?: {
220
+ /**
221
+ * The fee to pay for the transaction. Default: BASE_FEE
222
+ */
223
+ fee?: number;
224
+ /**
225
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
226
+ */
227
+ timeoutInSeconds?: number;
228
+ /**
229
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
230
+ */
231
+ simulate?: boolean;
232
+ }) => Promise<AssembledTransaction<null>>;
233
+ /**
234
+ * Construct and simulate a burn transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
235
+ */
236
+ burn: ({ from, amount }: {
237
+ from: string;
238
+ amount: i128;
239
+ }, options?: {
240
+ /**
241
+ * The fee to pay for the transaction. Default: BASE_FEE
242
+ */
243
+ fee?: number;
244
+ /**
245
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
246
+ */
247
+ timeoutInSeconds?: number;
248
+ /**
249
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
250
+ */
251
+ simulate?: boolean;
252
+ }) => Promise<AssembledTransaction<null>>;
253
+ /**
254
+ * Construct and simulate a burn_from transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
255
+ */
256
+ burn_from: ({ spender, from, amount }: {
257
+ spender: string;
258
+ from: string;
259
+ amount: i128;
260
+ }, options?: {
261
+ /**
262
+ * The fee to pay for the transaction. Default: BASE_FEE
263
+ */
264
+ fee?: number;
265
+ /**
266
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
267
+ */
268
+ timeoutInSeconds?: number;
269
+ /**
270
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
271
+ */
272
+ simulate?: boolean;
273
+ }) => Promise<AssembledTransaction<null>>;
274
+ /**
275
+ * Construct and simulate a decimals transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
276
+ */
277
+ decimals: (options?: {
278
+ /**
279
+ * The fee to pay for the transaction. Default: BASE_FEE
280
+ */
281
+ fee?: number;
282
+ /**
283
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
284
+ */
285
+ timeoutInSeconds?: number;
286
+ /**
287
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
288
+ */
289
+ simulate?: boolean;
290
+ }) => Promise<AssembledTransaction<u32>>;
291
+ /**
292
+ * Construct and simulate a name transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
293
+ */
294
+ name: (options?: {
295
+ /**
296
+ * The fee to pay for the transaction. Default: BASE_FEE
297
+ */
298
+ fee?: number;
299
+ /**
300
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
301
+ */
302
+ timeoutInSeconds?: number;
303
+ /**
304
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
305
+ */
306
+ simulate?: boolean;
307
+ }) => Promise<AssembledTransaction<string>>;
308
+ /**
309
+ * Construct and simulate a symbol transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
310
+ */
311
+ symbol: (options?: {
312
+ /**
313
+ * The fee to pay for the transaction. Default: BASE_FEE
314
+ */
315
+ fee?: number;
316
+ /**
317
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
318
+ */
319
+ timeoutInSeconds?: number;
320
+ /**
321
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
322
+ */
323
+ simulate?: boolean;
324
+ }) => Promise<AssembledTransaction<string>>;
325
+ }
326
+ export declare class Client extends ContractClient {
327
+ readonly options: ContractClientOptions;
328
+ constructor(options: ContractClientOptions);
329
+ readonly fromJSON: {
330
+ initialize: (json: string) => AssembledTransaction<null>;
331
+ mint: (json: string) => AssembledTransaction<null>;
332
+ set_admin: (json: string) => AssembledTransaction<null>;
333
+ allowance: (json: string) => AssembledTransaction<bigint>;
334
+ approve: (json: string) => AssembledTransaction<null>;
335
+ balance: (json: string) => AssembledTransaction<bigint>;
336
+ transfer: (json: string) => AssembledTransaction<null>;
337
+ transfer_from: (json: string) => AssembledTransaction<null>;
338
+ burn: (json: string) => AssembledTransaction<null>;
339
+ burn_from: (json: string) => AssembledTransaction<null>;
340
+ decimals: (json: string) => AssembledTransaction<number>;
341
+ name: (json: string) => AssembledTransaction<string>;
342
+ symbol: (json: string) => AssembledTransaction<string>;
343
+ };
344
+ }
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.Client = exports.Errors = exports.networks = void 0;
18
+ const stellar_sdk_1 = require("@stellar/stellar-sdk");
19
+ const buffer_1 = require("buffer");
20
+ const index_js_1 = require("@stellar/stellar-sdk/lib/contract_client/index.js");
21
+ __exportStar(require("@stellar/stellar-sdk"), exports);
22
+ __exportStar(require("@stellar/stellar-sdk/lib/contract_client/index.js"), exports);
23
+ __exportStar(require("@stellar/stellar-sdk/lib/rust_types/index.js"), exports);
24
+ if (typeof window !== "undefined") {
25
+ //@ts-ignore Buffer exists
26
+ window.Buffer = window.Buffer || buffer_1.Buffer;
27
+ }
28
+ exports.networks = {
29
+ testnet: {
30
+ networkPassphrase: "Test SDF Network ; September 2015",
31
+ contractId: "CBHVVFYF3LZA7JUUBF3KK5SUQ3NWWT2MNCKJPZW6KVV7O7ZMPALFOPHR",
32
+ },
33
+ };
34
+ /**
35
+ * The error codes for the contract.
36
+ */
37
+ exports.Errors = {
38
+ 1: { message: "" },
39
+ 2: { message: "" },
40
+ 3: { message: "" },
41
+ 4: { message: "" },
42
+ 8: { message: "" },
43
+ 9: { message: "" },
44
+ 10: { message: "" },
45
+ 12: { message: "" },
46
+ };
47
+ class Client extends index_js_1.ContractClient {
48
+ options;
49
+ constructor(options) {
50
+ super(new stellar_sdk_1.ContractSpec([
51
+ "AAAAAAAAAAAAAAAKaW5pdGlhbGl6ZQAAAAAABAAAAAAAAAAFYWRtaW4AAAAAAAATAAAAAAAAAAdkZWNpbWFsAAAAAAQAAAAAAAAABG5hbWUAAAAQAAAAAAAAAAZzeW1ib2wAAAAAABAAAAAA",
52
+ "AAAAAAAAAAAAAAAEbWludAAAAAIAAAAAAAAAAnRvAAAAAAATAAAAAAAAAAZhbW91bnQAAAAAAAsAAAAA",
53
+ "AAAAAAAAAAAAAAAJc2V0X2FkbWluAAAAAAAAAQAAAAAAAAAJbmV3X2FkbWluAAAAAAAAEwAAAAA=",
54
+ "AAAAAAAAAAAAAAAJYWxsb3dhbmNlAAAAAAAAAgAAAAAAAAAEZnJvbQAAABMAAAAAAAAAB3NwZW5kZXIAAAAAEwAAAAEAAAAL",
55
+ "AAAAAAAAAAAAAAAHYXBwcm92ZQAAAAAEAAAAAAAAAARmcm9tAAAAEwAAAAAAAAAHc3BlbmRlcgAAAAATAAAAAAAAAAZhbW91bnQAAAAAAAsAAAAAAAAAEWV4cGlyYXRpb25fbGVkZ2VyAAAAAAAABAAAAAA=",
56
+ "AAAAAAAAAAAAAAAHYmFsYW5jZQAAAAABAAAAAAAAAAJpZAAAAAAAEwAAAAEAAAAL",
57
+ "AAAAAAAAAAAAAAAIdHJhbnNmZXIAAAADAAAAAAAAAARmcm9tAAAAEwAAAAAAAAACdG8AAAAAABMAAAAAAAAABmFtb3VudAAAAAAACwAAAAA=",
58
+ "AAAAAAAAAAAAAAANdHJhbnNmZXJfZnJvbQAAAAAAAAQAAAAAAAAAB3NwZW5kZXIAAAAAEwAAAAAAAAAEZnJvbQAAABMAAAAAAAAAAnRvAAAAAAATAAAAAAAAAAZhbW91bnQAAAAAAAsAAAAA",
59
+ "AAAAAAAAAAAAAAAEYnVybgAAAAIAAAAAAAAABGZyb20AAAATAAAAAAAAAAZhbW91bnQAAAAAAAsAAAAA",
60
+ "AAAAAAAAAAAAAAAJYnVybl9mcm9tAAAAAAAAAwAAAAAAAAAHc3BlbmRlcgAAAAATAAAAAAAAAARmcm9tAAAAEwAAAAAAAAAGYW1vdW50AAAAAAALAAAAAA==",
61
+ "AAAAAAAAAAAAAAAIZGVjaW1hbHMAAAAAAAAAAQAAAAQ=",
62
+ "AAAAAAAAAAAAAAAEbmFtZQAAAAAAAAABAAAAEA==",
63
+ "AAAAAAAAAAAAAAAGc3ltYm9sAAAAAAAAAAAAAQAAABA=",
64
+ "AAAABAAAACFUaGUgZXJyb3IgY29kZXMgZm9yIHRoZSBjb250cmFjdC4AAAAAAAAAAAAAClRva2VuRXJyb3IAAAAAAAgAAAAAAAAADUludGVybmFsRXJyb3IAAAAAAAABAAAAAAAAABpPcGVyYXRpb25Ob3RTdXBwb3J0ZWRFcnJvcgAAAAAAAgAAAAAAAAAXQWxyZWFkeUluaXRpYWxpemVkRXJyb3IAAAAAAwAAAAAAAAARVW5hdXRob3JpemVkRXJyb3IAAAAAAAAEAAAAAAAAABNOZWdhdGl2ZUFtb3VudEVycm9yAAAAAAgAAAAAAAAADkFsbG93YW5jZUVycm9yAAAAAAAJAAAAAAAAAAxCYWxhbmNlRXJyb3IAAAAKAAAAAAAAAA1PdmVyZmxvd0Vycm9yAAAAAAAADA==",
65
+ "AAAAAQAAAAAAAAAAAAAADVRva2VuTWV0YWRhdGEAAAAAAAADAAAAAAAAAAdkZWNpbWFsAAAAAAQAAAAAAAAABG5hbWUAAAAQAAAAAAAAAAZzeW1ib2wAAAAAABA=",
66
+ "AAAAAQAAAAAAAAAAAAAAEEFsbG93YW5jZURhdGFLZXkAAAACAAAAAAAAAARmcm9tAAAAEwAAAAAAAAAHc3BlbmRlcgAAAAAT",
67
+ "AAAAAQAAAAAAAAAAAAAADkFsbG93YW5jZVZhbHVlAAAAAAACAAAAAAAAAAZhbW91bnQAAAAAAAsAAAAAAAAAEWV4cGlyYXRpb25fbGVkZ2VyAAAAAAAABA==",
68
+ "AAAAAgAAAAAAAAAAAAAAB0RhdGFLZXkAAAAABAAAAAEAAAAAAAAACUFsbG93YW5jZQAAAAAAAAEAAAfQAAAAEEFsbG93YW5jZURhdGFLZXkAAAABAAAAAAAAAAdCYWxhbmNlAAAAAAEAAAATAAAAAQAAAAAAAAAFTm9uY2UAAAAAAAABAAAAEwAAAAEAAAAAAAAABVN0YXRlAAAAAAAAAQAAABM=",
69
+ ]), options);
70
+ this.options = options;
71
+ }
72
+ fromJSON = {
73
+ initialize: (this.txFromJSON),
74
+ mint: (this.txFromJSON),
75
+ set_admin: (this.txFromJSON),
76
+ allowance: (this.txFromJSON),
77
+ approve: (this.txFromJSON),
78
+ balance: (this.txFromJSON),
79
+ transfer: (this.txFromJSON),
80
+ transfer_from: (this.txFromJSON),
81
+ burn: (this.txFromJSON),
82
+ burn_from: (this.txFromJSON),
83
+ decimals: (this.txFromJSON),
84
+ name: (this.txFromJSON),
85
+ symbol: (this.txFromJSON),
86
+ };
87
+ }
88
+ exports.Client = Client;