@algorandfoundation/algorand-typescript 1.0.0-alpha.62 → 1.0.0-alpha.64

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/arc-28.d.ts CHANGED
@@ -7,8 +7,8 @@ import { DeliberateAny } from './internal/typescript-helpers';
7
7
  * @param event An ARC4Struct instance, or a plain object with a named type
8
8
  *
9
9
  * @example
10
- * class Demo extends Struct<{ a: UintN64 }> {}
11
- * emit(new Demo({ a: new UintN64(123) }))
10
+ * class Demo extends Struct<{ a: Uint64 }> {}
11
+ * emit(new Demo({ a: new Uint64(123) }))
12
12
  *
13
13
  * @example
14
14
  * type Demo = { a: uint64 }
@@ -25,7 +25,7 @@ export declare function emit<TEvent extends Record<string, DeliberateAny>>(event
25
25
  * @param eventProps A set of event properties (order is significant)
26
26
  *
27
27
  * @example
28
- * emit("Demo", new UintN64(123))
28
+ * emit("Demo", new Uint64(123))
29
29
  *
30
30
  * @example
31
31
  * const a: uint64 = 123
package/arc4/c2c.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import { CompileContractOptions, CompiledContract } from '../compiled';
2
- import * as gtxn from '../gtxn';
2
+ import { gtxn } from '../gtxn';
3
3
  import { AnyFunction, ConstructorFor, DeliberateAny, InstanceMethod } from '../internal/typescript-helpers';
4
- import * as itxn from '../itxn';
5
- import { ApplicationCallFields, ApplicationCallInnerTxn } from '../itxn';
4
+ import { itxn } from '../itxn';
6
5
  import { Contract } from './index';
7
6
  /**
8
7
  * Defines txn fields that are available for a bare create application call.
@@ -11,7 +10,7 @@ import { Contract } from './index';
11
10
  * - appId: because the appId is not known when creating an application
12
11
  * - appArgs: because a bare call cannot have arguments
13
12
  */
14
- export type BareCreateApplicationCallFields = Omit<ApplicationCallFields, 'appId' | 'appArgs'>;
13
+ export type BareCreateApplicationCallFields = Omit<itxn.ApplicationCallFields, 'appId' | 'appArgs'>;
15
14
  /**
16
15
  * Conditional type which given a group transaction type, returns the equivalent inner transaction
17
16
  * params type.
@@ -27,24 +26,24 @@ export type TypedApplicationArg<TArg> = TArg extends gtxn.Transaction ? GtxnToIt
27
26
  /**
28
27
  * Conditional type which maps a tuple of application arguments to a tuple of input types for specifying those arguments.
29
28
  */
30
- export type TypedApplicationArgs<TArgs> = TArgs extends [] ? [] : TArgs extends [infer TArg, ...infer TRest] ? [TypedApplicationArg<TArg>, ...TypedApplicationArgs<TRest>] : never;
29
+ export type TypedApplicationArgs<TArgs> = TArgs extends [] ? [] : TArgs extends [infer TArg, ...infer TRest] ? readonly [TypedApplicationArg<TArg>, ...TypedApplicationArgs<TRest>] : never;
31
30
  /**
32
31
  * Application call fields with `appArgs` replaced with an `args` property that is strongly typed to the actual arguments for the
33
32
  * given application call.
34
33
  */
35
- export type TypedApplicationCallFields<TArgs> = Omit<ApplicationCallFields, 'appArgs'> & (TArgs extends [] ? {
36
- args?: TypedApplicationArgs<TArgs>;
34
+ export type TypedApplicationCallFields<TArgs> = Omit<itxn.ApplicationCallFields, 'appArgs'> & (TArgs extends [] ? {
35
+ readonly args?: TypedApplicationArgs<TArgs>;
37
36
  } : {
38
- args: TypedApplicationArgs<TArgs>;
37
+ readonly args: TypedApplicationArgs<TArgs>;
39
38
  });
40
39
  /**
41
40
  * The response type of a typed application call. Includes the raw itxn result object and the parsed ABI return value if applicable.
42
41
  */
43
42
  export type TypedApplicationCallResponse<TReturn> = TReturn extends void ? {
44
- itxn: ApplicationCallInnerTxn;
43
+ readonly itxn: itxn.ApplicationCallInnerTxn;
45
44
  } : {
46
- itxn: ApplicationCallInnerTxn;
47
- returnValue: TReturn;
45
+ readonly itxn: itxn.ApplicationCallInnerTxn;
46
+ readonly returnValue: TReturn;
48
47
  };
49
48
  /**
50
49
  * Conditional type which maps an ABI method to a factory method for constructing an application call transaction to call that method.
@@ -65,7 +64,7 @@ export type ContractProxy<TContract extends Contract> = CompiledContract & {
65
64
  * Create a bare application call itxn to create the contract.
66
65
  * @param fields Specify values for transaction fields which should override the default values.
67
66
  */
68
- bareCreate(fields?: BareCreateApplicationCallFields): ApplicationCallInnerTxn;
67
+ bareCreate(fields?: BareCreateApplicationCallFields): itxn.ApplicationCallInnerTxn;
69
68
  };
70
69
  /**
71
70
  * Pre compile the target ARC4 contract and return a proxy object for constructing inner transactions to call an instance of that contract.
@@ -1,4 +1,4 @@
1
- import { biguint, BigUintCompat, bytes, BytesBacked, NTuple, StringCompat, uint64, Uint64Compat } from '../primitives';
1
+ import { biguint, BigUintCompat, bytes, BytesBacked, StringCompat, uint64, Uint64Compat } from '../primitives';
2
2
  import { Account } from '../reference';
3
3
  /**
4
4
  * Defines UintN bit sizes which are compatible with the uint64 type
@@ -9,7 +9,7 @@ type UintBitSize = 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64;
9
9
  */
10
10
  type BigUintBitSize = 72 | 80 | 88 | 96 | 104 | 112 | 120 | 128 | 136 | 144 | 152 | 160 | 168 | 176 | 184 | 192 | 200 | 208 | 216 | 224 | 232 | 240 | 248 | 256 | 264 | 272 | 280 | 288 | 296 | 304 | 312 | 320 | 328 | 336 | 344 | 352 | 360 | 368 | 376 | 384 | 392 | 400 | 408 | 416 | 424 | 432 | 440 | 448 | 456 | 464 | 472 | 480 | 488 | 496 | 504 | 512;
11
11
  /**
12
- * Defines supported bit sizes for the UintN and UFixedNxM types
12
+ * Defines supported bit sizes for the UintN and UFixed types
13
13
  */
14
14
  export type BitSize = UintBitSize | BigUintBitSize;
15
15
  /**
@@ -28,7 +28,15 @@ declare const TypeProperty: unique symbol;
28
28
  * A base type for ARC4 encoded values
29
29
  */
30
30
  export declare abstract class ARC4Encoded implements BytesBacked {
31
- /** @hidden */
31
+ /**
32
+ * @hidden
33
+ *
34
+ * Since TypeScript is structurally typed, different ARC4Encodeds with compatible
35
+ * structures will often be assignable to one and another and this is generally
36
+ * not desirable. The TypeProperty property should be used to declare a literal value
37
+ * (usually the class name) on each distinct ARC4Encoded class to ensure they are
38
+ * structurally different.
39
+ */
32
40
  abstract [TypeProperty]?: string;
33
41
  /**
34
42
  * Retrieve the encoded bytes for this type
@@ -54,9 +62,9 @@ export declare class Str extends ARC4Encoded {
54
62
  /**
55
63
  * A fixed bit size unsigned int
56
64
  */
57
- export declare class UintN<N extends BitSize> extends ARC4Encoded {
65
+ export declare class Uint<N extends BitSize> extends ARC4Encoded {
58
66
  /** @hidden */
59
- [TypeProperty]?: `arc4.UintN<${N}>`;
67
+ [TypeProperty]?: `arc4.Uint<${N}>`;
60
68
  /**
61
69
  * Create a new UintN instance
62
70
  * @param v The native uint64 or biguint value to initialize this UintN from
@@ -68,48 +76,48 @@ export declare class UintN<N extends BitSize> extends ARC4Encoded {
68
76
  get native(): NativeForArc4Int<N>;
69
77
  }
70
78
  /**
71
- * An alias for UintN<8>
79
+ * An alias for Uint<8>
72
80
  */
73
- export declare class Byte extends UintN<8> {
81
+ export declare class Byte extends Uint<8> {
74
82
  }
75
83
  /**
76
- * An alias for UintN<8>
84
+ * An alias for Uint<8>
77
85
  */
78
- export declare class UintN8 extends UintN<8> {
86
+ export declare class Uint8 extends Uint<8> {
79
87
  }
80
88
  /**
81
- * An alias for UintN<16>
89
+ * An alias for Uint<16>
82
90
  */
83
- export declare class UintN16 extends UintN<16> {
91
+ export declare class Uint16 extends Uint<16> {
84
92
  }
85
93
  /**
86
- * An alias for UintN<32>
94
+ * An alias for Uint<32>
87
95
  */
88
- export declare class UintN32 extends UintN<32> {
96
+ export declare class Uint32 extends Uint<32> {
89
97
  }
90
98
  /**
91
- * An alias for UintN<64>
99
+ * An alias for Uint<64>
92
100
  */
93
- export declare class UintN64 extends UintN<64> {
101
+ export declare class Uint64 extends Uint<64> {
94
102
  }
95
103
  /**
96
- * An alias for UintN<128>
104
+ * An alias for Uint<128>
97
105
  */
98
- export declare class UintN128 extends UintN<128> {
106
+ export declare class Uint128 extends Uint<128> {
99
107
  }
100
108
  /**
101
- * An alias for UintN<256>
109
+ * An alias for Uint<256>
102
110
  */
103
- export declare class UintN256 extends UintN<256> {
111
+ export declare class Uint256 extends Uint<256> {
104
112
  }
105
113
  /**
106
114
  * A fixed bit size, fixed decimal unsigned value
107
115
  */
108
- export declare class UFixedNxM<N extends BitSize, M extends number> extends ARC4Encoded {
116
+ export declare class UFixed<N extends BitSize, M extends number> extends ARC4Encoded {
109
117
  /** @hidden */
110
- [TypeProperty]?: `arc4.UFixedNxM<${N}x${M}>`;
118
+ [TypeProperty]?: `arc4.UFixed<${N}x${M}>`;
111
119
  /**
112
- * Create a new UFixedNxM value
120
+ * Create a new UFixed value
113
121
  * @param v A string representing the integer and fractional portion of the number
114
122
  */
115
123
  constructor(v?: `${number}.${number}`);
@@ -123,7 +131,7 @@ export declare class UFixedNxM<N extends BitSize, M extends number> extends ARC4
123
131
  */
124
132
  export declare class Bool extends ARC4Encoded {
125
133
  /** @hidden */
126
- [TypeProperty]?: `arc4.Bool`;
134
+ [TypeProperty]?: 'arc4.Bool';
127
135
  /**
128
136
  * Create a new Bool value
129
137
  * @param v The native boolean to initialize this value from
@@ -137,7 +145,7 @@ export declare class Bool extends ARC4Encoded {
137
145
  /**
138
146
  * A base type for arc4 array types
139
147
  */
140
- declare abstract class Arc4ArrayBase<TItem extends ARC4Encoded> extends ARC4Encoded {
148
+ declare abstract class Arc4ArrayBase<TItem extends ARC4Encoded> extends ARC4Encoded implements ConcatArray<TItem> {
141
149
  protected constructor();
142
150
  /**
143
151
  * Returns the current length of this array
@@ -149,6 +157,30 @@ declare abstract class Arc4ArrayBase<TItem extends ARC4Encoded> extends ARC4Enco
149
157
  * @param index The index of the item to retrieve
150
158
  */
151
159
  at(index: Uint64Compat): TItem;
160
+ /** @deprecated Array slicing is not yet supported in Algorand TypeScript
161
+ * Create a new Dynamic array with all items from this array
162
+ */
163
+ slice(): Array<TItem>;
164
+ /** @deprecated Array slicing is not yet supported in Algorand TypeScript
165
+ * Create a new DynamicArray with all items up till `end`.
166
+ * Negative indexes are taken from the end.
167
+ * @param end An index in which to stop copying items.
168
+ */
169
+ slice(end: Uint64Compat): Array<TItem>;
170
+ /** @deprecated Array slicing is not yet supported in Algorand TypeScript
171
+ * Create a new DynamicArray with items from `start`, up until `end`
172
+ * Negative indexes are taken from the end.
173
+ * @param start An index in which to start copying items.
174
+ * @param end An index in which to stop copying items
175
+ */
176
+ slice(start: Uint64Compat, end: Uint64Compat): Array<TItem>;
177
+ /**
178
+ * Creates a string by concatenating all the items in the array delimited by the
179
+ * specified separator (or ',' by default)
180
+ * @param separator
181
+ * @deprecated Join is not supported in Algorand TypeScript
182
+ */
183
+ join(separator?: string): string;
152
184
  /**
153
185
  * Returns an iterator for the items in this array
154
186
  */
@@ -186,19 +218,11 @@ export declare class StaticArray<TItem extends ARC4Encoded, TLength extends numb
186
218
  constructor(...items: TItem[] & {
187
219
  length: TLength;
188
220
  });
189
- /**
190
- * Returns a copy of this array
191
- */
192
- copy(): StaticArray<TItem, TLength>;
193
221
  /**
194
222
  * Returns a new array containing all items from _this_ array, and _other_ array
195
223
  * @param other Another array to concat with this one
196
224
  */
197
225
  concat(other: Arc4ArrayBase<TItem>): DynamicArray<TItem>;
198
- /**
199
- * Return the array items as a native tuple
200
- */
201
- get native(): NTuple<TItem, TLength>;
202
226
  }
203
227
  /**
204
228
  * A dynamic sized array of arc4 items
@@ -221,29 +245,21 @@ export declare class DynamicArray<TItem extends ARC4Encoded> extends Arc4ArrayBa
221
245
  * Pop a single item from this array
222
246
  */
223
247
  pop(): TItem;
224
- /**
225
- * Returns a copy of this array
226
- */
227
- copy(): DynamicArray<TItem>;
228
248
  /**
229
249
  * Returns a new array containing all items from _this_ array, and _other_ array
230
250
  * @param other Another array to concat with this one
231
251
  */
232
252
  concat(other: Arc4ArrayBase<TItem>): DynamicArray<TItem>;
233
- /**
234
- * Return the array items as a native immutable array
235
- */
236
- get native(): TItem[];
237
253
  }
238
254
  /**
239
255
  * @hidden
240
256
  */
241
- type ExpandTupleType<T extends ARC4Encoded[]> = T extends [infer T1 extends ARC4Encoded, ...infer TRest extends ARC4Encoded[]] ? TRest extends [] ? `${T1[typeof TypeProperty]}` : `${T1[typeof TypeProperty]},${ExpandTupleType<TRest>}` : '';
257
+ type ExpandTupleType<T extends readonly ARC4Encoded[]> = T extends [infer T1 extends ARC4Encoded, ...infer TRest extends ARC4Encoded[]] ? TRest extends [] ? `${T1[typeof TypeProperty]}` : `${T1[typeof TypeProperty]},${ExpandTupleType<TRest>}` : '';
242
258
  /**
243
259
  * An arc4 encoded tuple of values
244
260
  * @typeParam TTuple A type representing the native tuple of item types
245
261
  */
246
- export declare class Tuple<TTuple extends [ARC4Encoded, ...ARC4Encoded[]]> extends ARC4Encoded {
262
+ export declare class Tuple<const TTuple extends readonly [ARC4Encoded, ...ARC4Encoded[]]> extends ARC4Encoded {
247
263
  /** @hidden */
248
264
  [TypeProperty]?: `arc4.Tuple<${ExpandTupleType<TTuple>}>`;
249
265
  /**
@@ -274,7 +290,7 @@ export declare class Tuple<TTuple extends [ARC4Encoded, ...ARC4Encoded[]]> exten
274
290
  */
275
291
  export declare class Address extends Arc4ArrayBase<Byte> {
276
292
  /** @hidden */
277
- [TypeProperty]?: `arc4.Address`;
293
+ [TypeProperty]?: 'arc4.Address';
278
294
  /**
279
295
  * Create a new Address instance
280
296
  * @param value An Account, base 32 address string, or the address bytes
@@ -290,12 +306,8 @@ export declare class Address extends Arc4ArrayBase<Byte> {
290
306
  */
291
307
  declare class StructBase<T> extends ARC4Encoded {
292
308
  /** @hidden */
293
- [TypeProperty]: string;
309
+ [TypeProperty]?: 'arc4.Struct';
294
310
  get native(): T;
295
- /**
296
- * Returns a deep copy of this struct
297
- */
298
- copy(): this;
299
311
  }
300
312
  /**
301
313
  * Type alias for the Struct constructor function
@@ -309,7 +321,7 @@ type StructConstructor = {
309
321
  *
310
322
  * Usage:
311
323
  * ```
312
- * class MyStruct extends Struct<{ x: UintN8, y: Str, z: DynamicBytes }> {}
324
+ * class MyStruct extends Struct<{ x: Uint8, y: Str, z: DynamicBytes }> { }
313
325
  * ```
314
326
  */
315
327
  export declare const Struct: StructConstructor;
@@ -318,7 +330,7 @@ export declare const Struct: StructConstructor;
318
330
  */
319
331
  export declare class DynamicBytes extends Arc4ArrayBase<Byte> {
320
332
  /** @hidden */
321
- [TypeProperty]?: `arc4.DynamicBytes`;
333
+ [TypeProperty]?: 'arc4.DynamicBytes';
322
334
  /**
323
335
  * Create a new DynamicBytes instance
324
336
  * @param value The bytes or utf8 interpreted string to initialize this type
package/arc4/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { A as ARC4Encoded, t as Address, r as Bool, h as Byte, C as Contract, D as DynamicArray, v as DynamicBytes, s as StaticArray, w as StaticBytes, S as Str, u as Struct, T as Tuple, q as UFixedNxM, U as UintN, o as UintN128, k as UintN16, p as UintN256, l as UintN32, n as UintN64, j as UintN8, y as abiCall, a as abimethod, g as arc4EncodedLength, b as baremethod, x as compileArc4, e as decodeArc4, f as encodeArc4, d as interpretAsArc4, m as methodSelector } from '../index-D6p-MoP4.js';
1
+ export { A as ARC4Encoded, t as Address, r as Bool, h as Byte, C as Contract, D as DynamicArray, v as DynamicBytes, s as StaticArray, w as StaticBytes, S as Str, u as Struct, T as Tuple, q as UFixed, U as Uint, o as Uint128, k as Uint16, p as Uint256, l as Uint32, n as Uint64, j as Uint8, y as abiCall, a as abimethod, g as arc4EncodedLength, b as baremethod, x as compileArc4, e as decodeArc4, f as encodeArc4, d as interpretAsArc4, m as methodSelector } from '../index-Dsr3xdFj.js';
2
2
  import '../errors-Bg4n2Chz.js';
3
3
  //# sourceMappingURL=index.mjs.map
package/arrays.d.ts ADDED
@@ -0,0 +1,75 @@
1
+ import { uint64, Uint64Compat } from './primitives';
2
+ /**
3
+ * A fixed sized array
4
+ * @typeParam TItem The type of a single item in the array
5
+ * @typeParam TLength The fixed length of the array
6
+ */
7
+ export declare class FixedArray<TItem, TLength extends number> implements ConcatArray<TItem> {
8
+ /**
9
+ * Create a new FixedArray instance
10
+ */
11
+ constructor();
12
+ /**
13
+ * Create a new FixedArray instance with the specified items
14
+ * @param items The initial items for the array
15
+ */
16
+ constructor(...items: TItem[] & {
17
+ length: TLength;
18
+ });
19
+ /**
20
+ * Returns a new array containing all items from _this_ array, and _other_ array
21
+ * @param items Another array to concat with this one
22
+ */
23
+ concat(...items: (TItem | ConcatArray<TItem>)[]): TItem[];
24
+ /**
25
+ * Returns the current length of this array
26
+ */
27
+ get length(): uint64;
28
+ /**
29
+ * Returns the item at the given index.
30
+ * Negative indexes are taken from the end.
31
+ * @param index The index of the item to retrieve
32
+ */
33
+ at(index: Uint64Compat): TItem;
34
+ /** @deprecated Array slicing is not yet supported in Algorand TypeScript
35
+ * Create a new Dynamic array with all items from this array
36
+ */
37
+ slice(): Array<TItem>;
38
+ /** @deprecated Array slicing is not yet supported in Algorand TypeScript
39
+ * Create a new DynamicArray with all items up till `end`.
40
+ * Negative indexes are taken from the end.
41
+ * @param end An index in which to stop copying items.
42
+ */
43
+ slice(end: Uint64Compat): Array<TItem>;
44
+ /** @deprecated Array slicing is not yet supported in Algorand TypeScript
45
+ * Create a new DynamicArray with items from `start`, up until `end`
46
+ * Negative indexes are taken from the end.
47
+ * @param start An index in which to start copying items.
48
+ * @param end An index in which to stop copying items
49
+ */
50
+ slice(start: Uint64Compat, end: Uint64Compat): Array<TItem>;
51
+ /**
52
+ * Returns an iterator for the items in this array
53
+ */
54
+ [Symbol.iterator](): IterableIterator<TItem>;
55
+ /**
56
+ * Returns an iterator for a tuple of the indexes and items in this array
57
+ */
58
+ entries(): ArrayIterator<readonly [uint64, TItem]>;
59
+ /**
60
+ * Returns an iterator for the indexes in this array
61
+ */
62
+ keys(): IterableIterator<uint64>;
63
+ /**
64
+ * Get or set the item at the specified index.
65
+ * Negative indexes are not supported
66
+ */
67
+ [index: uint64]: TItem;
68
+ /**
69
+ * Creates a string by concatenating all the items in the array delimited by the
70
+ * specified separator (or ',' by default)
71
+ * @param separator
72
+ * @deprecated Join is not supported in Algorand TypeScript
73
+ */
74
+ join(separator?: string): string;
75
+ }
package/compiled.d.ts CHANGED
@@ -10,31 +10,31 @@ export type CompiledContract = {
10
10
  /**
11
11
  * Approval program pages for a contract, after template variables have been replaced and compiled to AVM bytecode
12
12
  */
13
- approvalProgram: [bytes, bytes];
13
+ readonly approvalProgram: readonly [bytes, bytes];
14
14
  /**
15
15
  * Clear state program pages for a contract, after template variables have been replaced and compiled to AVM bytecode
16
16
  */
17
- clearStateProgram: [bytes, bytes];
17
+ readonly clearStateProgram: readonly [bytes, bytes];
18
18
  /**
19
19
  * By default, provides extra program pages required based on approval and clear state program size, can be overridden when calling `compile(ExampleContractType, { extraProgramPages: ... })`
20
20
  */
21
- extraProgramPages: uint64;
21
+ readonly extraProgramPages: uint64;
22
22
  /**
23
23
  * By default, provides global num uints based on contract state totals, can be overridden when calling `compile(ExampleContractType, { globalUints: ... })`
24
24
  */
25
- globalUints: uint64;
25
+ readonly globalUints: uint64;
26
26
  /**
27
27
  * By default, provides global num bytes based on contract state totals, can be overridden when calling `compile(ExampleContractType, { globalBytes: ... })`
28
28
  */
29
- globalBytes: uint64;
29
+ readonly globalBytes: uint64;
30
30
  /**
31
31
  * By default, provides local num uints based on contract state totals, can be overridden when calling `compile(ExampleContractType, { localUints: ... })`
32
32
  */
33
- localUints: uint64;
33
+ readonly localUints: uint64;
34
34
  /**
35
35
  * By default, provides local num bytes based on contract state totals, can be overridden when calling `compile(ExampleContractType, { localBytes: ... })`
36
36
  */
37
- localBytes: uint64;
37
+ readonly localBytes: uint64;
38
38
  };
39
39
  /**
40
40
  * Provides account for a Logic Signature. Created by calling `compile(LogicSigType)`
@@ -43,7 +43,7 @@ export type CompiledLogicSig = {
43
43
  /**
44
44
  * Address of a logic sig program, after template variables have been replaced and compiled to AVM bytecode
45
45
  */
46
- account: Account;
46
+ readonly account: Account;
47
47
  };
48
48
  /**
49
49
  * Options for compiling a contract
@@ -52,32 +52,32 @@ export type CompileContractOptions = {
52
52
  /**
53
53
  * Number of extra program pages, defaults to minimum required for contract
54
54
  */
55
- extraProgramPages?: uint64;
55
+ readonly extraProgramPages?: uint64;
56
56
  /**
57
57
  * Number of global uint64s, defaults to value defined for contract
58
58
  */
59
- globalUints?: uint64;
59
+ readonly globalUints?: uint64;
60
60
  /**
61
61
  * Number of global bytes, defaults to value defined for contract
62
62
  */
63
- globalBytes?: uint64;
63
+ readonly globalBytes?: uint64;
64
64
  /**
65
65
  * Number of local uint64s, defaults to value defined for contract
66
66
  */
67
- localUints?: uint64;
67
+ readonly localUints?: uint64;
68
68
  /**
69
69
  * Number of local bytes, defaults to value defined for contract
70
70
  */
71
- localBytes?: uint64;
71
+ readonly localBytes?: uint64;
72
72
  /**
73
73
  * Template variables to substitute into the contract, key should be without the prefix, must evaluate to a compile time constant
74
74
  * and match the type of the template var declaration
75
75
  */
76
- templateVars?: Record<string, DeliberateAny>;
76
+ readonly templateVars?: Record<string, DeliberateAny>;
77
77
  /**
78
78
  * Prefix to add to provided template vars, defaults to the prefix supplied on command line (which defaults to TMPL_)
79
79
  */
80
- templateVarsPrefix?: string;
80
+ readonly templateVarsPrefix?: string;
81
81
  };
82
82
  /**
83
83
  * Options for compiling a logic signature