@algorandfoundation/algorand-typescript 1.0.0-beta.18 → 1.0.0-beta.19

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/arc4/index.d.ts CHANGED
@@ -70,4 +70,4 @@ export declare function baremethod<TContract extends Contract>(config?: BareMeth
70
70
  * @param methodSignature An ARC4 method signature. Eg. `hello(string)string`. Must be a compile time constant.
71
71
  * @returns The ARC4 method selector. Eg. `02BECE11`
72
72
  */
73
- export declare function methodSelector(methodSignature: string): bytes;
73
+ export declare function methodSelector<TMethod extends (this: TContract, ...args: TArgs) => TReturn, TContract extends Contract, TArgs extends DeliberateAny[], TReturn>(methodSignature: string | TMethod): bytes;
@@ -1 +1 @@
1
- {"version":3,"file":"index-DLHfNF70.js","sources":["../src/base-contract.ts","../src/arc4/encoded-types.ts","../src/arc4/index.ts"],"sourcesContent":["import { NoImplementation } from './internal/errors'\nimport { ConstructorFor } from './internal/typescript-helpers'\nimport { uint64 } from './primitives'\nimport { NumberRange } from './util'\n\nexport abstract class BaseContract {\n public abstract approvalProgram(): boolean | uint64\n public clearStateProgram(): boolean | uint64 {\n return true\n }\n}\n\n/**\n * Options class to manually define the total amount of global and local state contract will use.\n *\n * This is not required when all state is assigned to `this.`, but is required if a\n * contract dynamically interacts with state via `AppGlobal.getBytes` etc, or if you want\n * to reserve additional state storage for future contract updates, since the Algorand protocol\n * doesn't allow increasing them after creation.\n */\nexport type StateTotals = {\n globalUints?: number\n globalBytes?: number\n localUints?: number\n localBytes?: number\n}\n\nexport type ContractOptions = {\n /**\n * Determines which AVM version to use, this affects what operations are supported.\n * Defaults to value provided supplied on command line (which defaults to current mainnet version)\n */\n avmVersion?: 10 | 11\n\n /**\n * Override the name of the logic signature when generating build artifacts.\n * Defaults to the class name\n */\n name?: string\n /**\n * Allows you to mark a slot ID or range of slot IDs as \"off limits\" to Puya.\n * These slot ID(s) will never be written to or otherwise manipulating by the compiler itself.\n * This is particularly useful in combination with `op.gload_bytes` / `op.gload_uint64`\n * which lets a contract in a group transaction read from the scratch slots of another contract\n * that occurs earlier in the transaction group.\n *\n * In the case of inheritance, scratch slots reserved become cumulative. It is not an error\n * to have overlapping ranges or values either, so if a base class contract reserves slots\n * 0-5 inclusive and the derived contract reserves 5-10 inclusive, then within the derived\n * contract all slots 0-10 will be marked as reserved.\n */\n scratchSlots?: Array<number | NumberRange>\n /**\n * Allows defining what values should be used for global and local uint and bytes storage\n * values when creating a contract. Used when outputting ARC-32 application.json schemas.\n *\n * If left unspecified, the totals will be determined by the compiler based on state\n * variables assigned to `this`.\n *\n * This setting is not inherited, and only applies to the exact `Contract` it is specified\n * on. If a base class does specify this setting, and a derived class does not, a warning\n * will be emitted for the derived class. To resolve this warning, `stateTotals` must be\n * specified. An empty object may be provided in order to indicate that this contract should\n * revert to the default behaviour\n */\n stateTotals?: StateTotals\n}\n\n/**\n * The contract decorator can be used to specify additional configuration options for a smart contract\n * @param options An object containing the configuration options\n */\nexport function contract(options: ContractOptions) {\n return <T extends ConstructorFor<BaseContract>>(contract: T, ctx: ClassDecoratorContext) => {\n throw new NoImplementation()\n }\n}\n","import { NoImplementation } from '../internal/errors'\nimport { biguint, BigUintCompat, bytes, BytesBacked, BytesCompat, StringCompat, uint64, Uint64Compat } from '../primitives'\nimport { Account } from '../reference'\n\ntype UintBitSize = 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64\ntype BigUintBitSize =\n | 72\n | 80\n | 88\n | 96\n | 104\n | 112\n | 120\n | 128\n | 136\n | 144\n | 152\n | 160\n | 168\n | 176\n | 184\n | 192\n | 200\n | 208\n | 216\n | 224\n | 232\n | 240\n | 248\n | 256\n | 264\n | 272\n | 280\n | 288\n | 296\n | 304\n | 312\n | 320\n | 328\n | 336\n | 344\n | 352\n | 360\n | 368\n | 376\n | 384\n | 392\n | 400\n | 408\n | 416\n | 424\n | 432\n | 440\n | 448\n | 456\n | 464\n | 472\n | 480\n | 488\n | 496\n | 504\n | 512\nexport type BitSize = UintBitSize | BigUintBitSize\ntype NativeForArc4Int<N extends BitSize> = N extends UintBitSize ? uint64 : biguint\ntype CompatForArc4Int<N extends BitSize> = N extends UintBitSize ? Uint64Compat : BigUintCompat\n\nconst TypeProperty = Symbol('ARC4Type')\n\nexport abstract class ARC4Encoded implements BytesBacked {\n abstract [TypeProperty]?: string\n get bytes(): bytes {\n throw new NoImplementation()\n }\n}\n\nexport class Str extends ARC4Encoded {\n [TypeProperty]?: 'arc4.Str'\n #value: string\n constructor(s?: StringCompat) {\n super()\n this.#value = s ?? ''\n }\n get native(): string {\n return this.#value\n }\n}\nexport class UintN<N extends BitSize> extends ARC4Encoded {\n [TypeProperty]?: `arc4.UintN<${N}>`\n\n constructor(v?: CompatForArc4Int<N>) {\n super()\n }\n get native(): NativeForArc4Int<N> {\n throw new NoImplementation()\n }\n}\nexport class Byte extends UintN<8> {}\nexport class UintN8 extends UintN<8> {}\nexport class UintN16 extends UintN<16> {}\nexport class UintN32 extends UintN<32> {}\nexport class UintN64 extends UintN<64> {}\nexport class UintN128 extends UintN<128> {}\nexport class UintN256 extends UintN<256> {}\nexport class UFixedNxM<N extends BitSize, M extends number> extends ARC4Encoded {\n [TypeProperty]?: `arc4.UFixedNxM<${N}x${M}>`\n constructor(v: `${number}.${number}`) {\n super()\n }\n\n get native(): NativeForArc4Int<N> {\n throw new NoImplementation()\n }\n}\nexport class Bool extends ARC4Encoded {\n [TypeProperty]?: `arc4.Bool`\n\n constructor(v?: boolean) {\n super()\n }\n\n get native(): boolean {\n throw new NoImplementation()\n }\n}\n\nabstract class Arc4ReadonlyArray<TItem extends ARC4Encoded> extends ARC4Encoded {\n protected constructor() {\n super()\n }\n\n /**\n * Returns the current length of this array\n */\n get length(): uint64 {\n throw new NoImplementation()\n }\n\n /**\n * Returns the item at the given index.\n * Negative indexes are taken from the end.\n * @param index The index of the item to retrieve\n */\n at(index: Uint64Compat): TItem {\n throw new NoImplementation()\n }\n\n /** @internal\n * Create a new Dynamic array with all items from this array\n */\n slice(): DynamicArray<TItem>\n /** @internal\n * Create a new DynamicArray with all items up till `end`.\n * Negative indexes are taken from the end.\n * @param end An index in which to stop copying items.\n */\n slice(end: Uint64Compat): DynamicArray<TItem>\n /** @internal\n * Create a new DynamicArray with items from `start`, up until `end`\n * Negative indexes are taken from the end.\n * @param start An index in which to start copying items.\n * @param end An index in which to stop copying items\n */\n slice(start: Uint64Compat, end: Uint64Compat): DynamicArray<TItem>\n slice(start?: Uint64Compat, end?: Uint64Compat): DynamicArray<TItem> {\n throw new NoImplementation()\n }\n\n /**\n * Returns an iterator for the items in this array\n */\n [Symbol.iterator](): IterableIterator<TItem> {\n throw new NoImplementation()\n }\n\n /**\n * Returns an iterator for a tuple of the indexes and items in this array\n */\n entries(): IterableIterator<readonly [uint64, TItem]> {\n throw new NoImplementation()\n }\n\n /**\n * Returns an iterator for the indexes in this array\n */\n keys(): IterableIterator<uint64> {\n throw new NoImplementation()\n }\n\n /**\n * Get or set the item at the specified index.\n * Negative indexes are not supported\n */\n [index: uint64]: TItem\n}\n\nexport class StaticArray<TItem extends ARC4Encoded, TLength extends number> extends Arc4ReadonlyArray<TItem> {\n [TypeProperty]?: `arc4.StaticArray<${TItem[typeof TypeProperty]}, ${TLength}>`\n constructor()\n constructor(...items: TItem[] & { length: TLength })\n constructor(...items: TItem[])\n constructor(...items: TItem[] & { length: TLength }) {\n super()\n }\n\n copy(): StaticArray<TItem, TLength> {\n throw new NoImplementation()\n }\n\n /**\n * Returns a new array containing all items from _this_ array, and _other_ array\n * @param other Another array to concat with this one\n */\n concat(other: Arc4ReadonlyArray<TItem>): DynamicArray<TItem> {\n throw new NoImplementation()\n }\n}\nexport class DynamicArray<TItem extends ARC4Encoded> extends Arc4ReadonlyArray<TItem> {\n [TypeProperty]?: `arc4.DynamicArray<${TItem[typeof TypeProperty]}>`\n constructor(...items: TItem[]) {\n super()\n }\n\n /**\n * Push a number of items into this array\n * @param items The items to be added to this array\n */\n push(...items: TItem[]): void {\n throw new NoImplementation()\n }\n\n /**\n * Pop a single item from this array\n */\n pop(): TItem {\n throw new NoImplementation()\n }\n\n copy(): DynamicArray<TItem> {\n throw new NoImplementation()\n }\n\n /**\n * Returns a new array containing all items from _this_ array, and _other_ array\n * @param other Another array to concat with this one\n */\n concat(other: Arc4ReadonlyArray<TItem>): DynamicArray<TItem> {\n throw new NoImplementation()\n }\n}\ntype ExpandTupleType<T extends ARC4Encoded[]> = T extends [infer T1 extends ARC4Encoded, ...infer TRest extends ARC4Encoded[]]\n ? TRest extends []\n ? `${T1[typeof TypeProperty]}`\n : `${T1[typeof TypeProperty]},${ExpandTupleType<TRest>}`\n : ''\n\nexport class Tuple<TTuple extends [ARC4Encoded, ...ARC4Encoded[]]> extends ARC4Encoded {\n [TypeProperty]?: `arc4.Tuple<${ExpandTupleType<TTuple>}>`\n constructor(...items: TTuple) {\n super()\n }\n\n at<TIndex extends keyof TTuple>(index: TIndex): TTuple[TIndex] {\n throw new NoImplementation()\n }\n\n get length(): TTuple['length'] & uint64 {\n throw new NoImplementation()\n }\n\n get native(): TTuple {\n throw new NoImplementation()\n }\n}\n\nexport class Address extends Arc4ReadonlyArray<Byte> {\n [TypeProperty]?: `arc4.Address`\n constructor(value?: Account | string | bytes) {\n super()\n }\n\n get native(): Account {\n throw new NoImplementation()\n }\n}\n\ntype StructConstraint = Record<string, ARC4Encoded>\n\nclass StructBase extends ARC4Encoded {\n [TypeProperty] = 'arc4.Struct'\n}\nclass StructImpl<T extends StructConstraint> extends StructBase {\n constructor(initial: T) {\n super()\n for (const [prop, val] of Object.entries(initial)) {\n Object.defineProperty(this, prop, {\n value: val,\n writable: true,\n enumerable: true,\n })\n }\n }\n}\n\ntype StructConstructor = new <T extends StructConstraint>(initial: T) => StructBase & Readonly<T>\n\nexport const Struct = StructImpl as StructConstructor\n\nexport class DynamicBytes extends Arc4ReadonlyArray<Byte> {\n [TypeProperty]?: `arc4.DynamicBytes`\n\n constructor(value?: bytes | string) {\n super()\n }\n\n get native(): bytes {\n throw new NoImplementation()\n }\n\n /**\n * Returns a dynamic bytes object containing all bytes from _this_ and _other_\n * @param other Another array of bytes to concat with this one\n */\n concat(other: Arc4ReadonlyArray<Byte>): DynamicBytes {\n throw new NoImplementation()\n }\n}\n\nexport class StaticBytes<TLength extends number = 0> extends Arc4ReadonlyArray<Byte> {\n [TypeProperty]?: `arc4.StaticBytes<${TLength}>`\n\n constructor(value?: bytes | string) {\n super()\n }\n\n get native(): bytes {\n throw new NoImplementation()\n }\n\n /**\n * Returns a dynamic bytes object containing all bytes from _this_ and _other_\n * @param other Another array of bytes to concat with this one\n */\n concat(other: Arc4ReadonlyArray<Byte>): DynamicBytes {\n throw new NoImplementation()\n }\n}\n\n/**\n * Interpret the provided bytes as an ARC4 encoded type with no validation\n * @param bytes An arc4 encoded bytes value\n * @param prefix The prefix (if any), present in the bytes value. This prefix will be validated and removed\n */\nexport function interpretAsArc4<T extends ARC4Encoded>(bytes: BytesCompat, prefix: 'none' | 'log' = 'none'): T {\n throw new NoImplementation()\n}\n\n/**\n * Decode the provided bytes to a native Algorand TypeScript value\n * @param bytes An arc4 encoded bytes value\n * @param prefix The prefix (if any), present in the bytes value. This prefix will be validated and removed\n */\nexport function decodeArc4<T>(bytes: BytesCompat, prefix: 'none' | 'log' = 'none'): T {\n throw new NoImplementation()\n}\n\n/**\n * Encode the provided Algorand TypeScript value as ARC4 bytes\n * @param value Any native Algorand TypeScript value with a supported ARC4 encoding\n */\nexport function encodeArc4<T>(value: T): bytes {\n throw new NoImplementation()\n}\n","import { BaseContract } from '../base-contract'\nimport { NoImplementation } from '../internal/errors'\nimport { DeliberateAny } from '../internal/typescript-helpers'\nimport { bytes } from '../primitives'\n\nexport * from './encoded-types'\n\nexport class Contract extends BaseContract {\n override approvalProgram(): boolean {\n return true\n }\n}\n\nexport type CreateOptions = 'allow' | 'disallow' | 'require'\nexport type OnCompleteActionStr = 'NoOp' | 'OptIn' | 'ClearState' | 'CloseOut' | 'UpdateApplication' | 'DeleteApplication'\n\nexport enum OnCompleteAction {\n NoOp = 0,\n OptIn = 1,\n CloseOut = 2,\n ClearState = 3,\n UpdateApplication = 4,\n DeleteApplication = 5,\n}\n\nexport type DefaultArgument<TContract extends Contract> = { constant: string | boolean | number | bigint } | { from: keyof TContract }\n\nexport type AbiMethodConfig<TContract extends Contract> = {\n /**\n * Which on complete action(s) are allowed when invoking this method.\n * @default 'NoOp'\n */\n allowActions?: OnCompleteActionStr | OnCompleteActionStr[]\n /**\n * Whether this method should be callable when creating the application.\n * @default 'disallow'\n */\n onCreate?: CreateOptions\n /**\n * Does the method only perform read operations (no mutation of chain state)\n * @default false\n */\n readonly?: boolean\n /**\n * Override the name used to generate the abi method selector\n */\n name?: string\n\n defaultArguments?: Record<string, DefaultArgument<TContract>>\n}\n\n/**\n * Declares the decorated method as an abimethod that is called when the first transaction arg matches the method selector\n * @param config\n */\nexport function abimethod<TContract extends Contract>(config?: AbiMethodConfig<TContract>) {\n return function <TArgs extends DeliberateAny[], TReturn>(\n target: (this: TContract, ...args: TArgs) => TReturn,\n ctx: ClassMethodDecoratorContext<TContract>,\n ): (this: TContract, ...args: TArgs) => TReturn {\n throw new NoImplementation()\n }\n}\n\nexport type BareMethodConfig = {\n /**\n * Which on complete action(s) are allowed when invoking this method.\n * @default 'NoOp'\n */\n allowActions?: OnCompleteActionStr | OnCompleteActionStr[]\n /**\n * Whether this method should be callable when creating the application.\n * @default 'disallow'\n */\n onCreate?: CreateOptions\n}\n\n/**\n * Declares the decorated method as a baremethod that can only be called with no transaction args\n * @param config\n */\nexport function baremethod<TContract extends Contract>(config?: BareMethodConfig) {\n return function <TArgs extends DeliberateAny[], TReturn>(\n target: (this: TContract, ...args: TArgs) => TReturn,\n ctx: ClassMethodDecoratorContext<TContract>,\n ): (this: TContract, ...args: TArgs) => TReturn {\n throw new NoImplementation()\n }\n}\n\n/**\n * Returns the ARC4 method selector for a given ARC4 method signature. The method selector is the first\n * 4 bytes of the SHA512/256 hash of the method signature.\n * @param methodSignature An ARC4 method signature. Eg. `hello(string)string`. Must be a compile time constant.\n * @returns The ARC4 method selector. Eg. `02BECE11`\n */\nexport function methodSelector(methodSignature: string): bytes {\n throw new NoImplementation()\n}\n"],"names":[],"mappings":";;MAKsB,YAAY,CAAA;IAEzB,iBAAiB,GAAA;AACtB,QAAA,OAAO,IAAI;;AAEd;AA0DD;;;AAGG;AACG,SAAU,QAAQ,CAAC,OAAwB,EAAA;AAC/C,IAAA,OAAO,CAAyC,QAAW,EAAE,GAA0B,KAAI;QACzF,MAAM,IAAI,gBAAgB,EAAE;AAC9B,KAAC;AACH;;ACVA,MAAM,YAAY,GAAG,MAAM,CAAC,UAAU,CAAC;MAEjB,WAAW,CAAA;AAE/B,IAAA,IAAI,KAAK,GAAA;QACP,MAAM,IAAI,gBAAgB,EAAE;;AAE/B;AAEK,MAAO,GAAI,SAAQ,WAAW,CAAA;IAClC,CAAC,YAAY;AACb,IAAA,MAAM;AACN,IAAA,WAAA,CAAY,CAAgB,EAAA;AAC1B,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE;;AAEvB,IAAA,IAAI,MAAM,GAAA;QACR,OAAO,IAAI,CAAC,MAAM;;AAErB;AACK,MAAO,KAAyB,SAAQ,WAAW,CAAA;IACvD,CAAC,YAAY;AAEb,IAAA,WAAA,CAAY,CAAuB,EAAA;AACjC,QAAA,KAAK,EAAE;;AAET,IAAA,IAAI,MAAM,GAAA;QACR,MAAM,IAAI,gBAAgB,EAAE;;AAE/B;AACK,MAAO,IAAK,SAAQ,KAAQ,CAAA;AAAG;AAC/B,MAAO,MAAO,SAAQ,KAAQ,CAAA;AAAG;AACjC,MAAO,OAAQ,SAAQ,KAAS,CAAA;AAAG;AACnC,MAAO,OAAQ,SAAQ,KAAS,CAAA;AAAG;AACnC,MAAO,OAAQ,SAAQ,KAAS,CAAA;AAAG;AACnC,MAAO,QAAS,SAAQ,KAAU,CAAA;AAAG;AACrC,MAAO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,CAAA,CAAA,GAAA,MAAQ;AACR,IAAA,gBAAA,CAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAS;AACT,IAAA,gBAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAY;AACZ,IAAA,gBAAA,CAAA,gBAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAc;AACd,IAAA,gBAAA,CAAA,gBAAA,CAAA,mBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,mBAAqB;AACrB,IAAA,gBAAA,CAAA,gBAAA,CAAA,mBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,mBAAqB;AACvB,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,GAO3B,EAAA,CAAA,CAAA;AA4BD;;;AAGG;AACG,SAAU,SAAS,CAA6B,MAAmC,EAAA;IACvF,OAAO,UACL,MAAoD,EACpD,GAA2C,EAAA;QAE3C,MAAM,IAAI,gBAAgB,EAAE;AAC9B,KAAC;AACH;AAeA;;;AAGG;AACG,SAAU,UAAU,CAA6B,MAAyB,EAAA;IAC9E,OAAO,UACL,MAAoD,EACpD,GAA2C,EAAA;QAE3C,MAAM,IAAI,gBAAgB,EAAE;AAC9B,KAAC;AACH;AAEA;;;;;AAKG;AACG,SAAU,cAAc,CAAC,eAAuB,EAAA;IACpD,MAAM,IAAI,gBAAgB,EAAE;AAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index-DLHfNF70.js","sources":["../src/base-contract.ts","../src/arc4/encoded-types.ts","../src/arc4/index.ts"],"sourcesContent":["import { NoImplementation } from './internal/errors'\nimport { ConstructorFor } from './internal/typescript-helpers'\nimport { uint64 } from './primitives'\nimport { NumberRange } from './util'\n\nexport abstract class BaseContract {\n public abstract approvalProgram(): boolean | uint64\n public clearStateProgram(): boolean | uint64 {\n return true\n }\n}\n\n/**\n * Options class to manually define the total amount of global and local state contract will use.\n *\n * This is not required when all state is assigned to `this.`, but is required if a\n * contract dynamically interacts with state via `AppGlobal.getBytes` etc, or if you want\n * to reserve additional state storage for future contract updates, since the Algorand protocol\n * doesn't allow increasing them after creation.\n */\nexport type StateTotals = {\n globalUints?: number\n globalBytes?: number\n localUints?: number\n localBytes?: number\n}\n\nexport type ContractOptions = {\n /**\n * Determines which AVM version to use, this affects what operations are supported.\n * Defaults to value provided supplied on command line (which defaults to current mainnet version)\n */\n avmVersion?: 10 | 11\n\n /**\n * Override the name of the logic signature when generating build artifacts.\n * Defaults to the class name\n */\n name?: string\n /**\n * Allows you to mark a slot ID or range of slot IDs as \"off limits\" to Puya.\n * These slot ID(s) will never be written to or otherwise manipulating by the compiler itself.\n * This is particularly useful in combination with `op.gload_bytes` / `op.gload_uint64`\n * which lets a contract in a group transaction read from the scratch slots of another contract\n * that occurs earlier in the transaction group.\n *\n * In the case of inheritance, scratch slots reserved become cumulative. It is not an error\n * to have overlapping ranges or values either, so if a base class contract reserves slots\n * 0-5 inclusive and the derived contract reserves 5-10 inclusive, then within the derived\n * contract all slots 0-10 will be marked as reserved.\n */\n scratchSlots?: Array<number | NumberRange>\n /**\n * Allows defining what values should be used for global and local uint and bytes storage\n * values when creating a contract. Used when outputting ARC-32 application.json schemas.\n *\n * If left unspecified, the totals will be determined by the compiler based on state\n * variables assigned to `this`.\n *\n * This setting is not inherited, and only applies to the exact `Contract` it is specified\n * on. If a base class does specify this setting, and a derived class does not, a warning\n * will be emitted for the derived class. To resolve this warning, `stateTotals` must be\n * specified. An empty object may be provided in order to indicate that this contract should\n * revert to the default behaviour\n */\n stateTotals?: StateTotals\n}\n\n/**\n * The contract decorator can be used to specify additional configuration options for a smart contract\n * @param options An object containing the configuration options\n */\nexport function contract(options: ContractOptions) {\n return <T extends ConstructorFor<BaseContract>>(contract: T, ctx: ClassDecoratorContext) => {\n throw new NoImplementation()\n }\n}\n","import { NoImplementation } from '../internal/errors'\nimport { biguint, BigUintCompat, bytes, BytesBacked, BytesCompat, StringCompat, uint64, Uint64Compat } from '../primitives'\nimport { Account } from '../reference'\n\ntype UintBitSize = 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64\ntype BigUintBitSize =\n | 72\n | 80\n | 88\n | 96\n | 104\n | 112\n | 120\n | 128\n | 136\n | 144\n | 152\n | 160\n | 168\n | 176\n | 184\n | 192\n | 200\n | 208\n | 216\n | 224\n | 232\n | 240\n | 248\n | 256\n | 264\n | 272\n | 280\n | 288\n | 296\n | 304\n | 312\n | 320\n | 328\n | 336\n | 344\n | 352\n | 360\n | 368\n | 376\n | 384\n | 392\n | 400\n | 408\n | 416\n | 424\n | 432\n | 440\n | 448\n | 456\n | 464\n | 472\n | 480\n | 488\n | 496\n | 504\n | 512\nexport type BitSize = UintBitSize | BigUintBitSize\ntype NativeForArc4Int<N extends BitSize> = N extends UintBitSize ? uint64 : biguint\ntype CompatForArc4Int<N extends BitSize> = N extends UintBitSize ? Uint64Compat : BigUintCompat\n\nconst TypeProperty = Symbol('ARC4Type')\n\nexport abstract class ARC4Encoded implements BytesBacked {\n abstract [TypeProperty]?: string\n get bytes(): bytes {\n throw new NoImplementation()\n }\n}\n\nexport class Str extends ARC4Encoded {\n [TypeProperty]?: 'arc4.Str'\n #value: string\n constructor(s?: StringCompat) {\n super()\n this.#value = s ?? ''\n }\n get native(): string {\n return this.#value\n }\n}\nexport class UintN<N extends BitSize> extends ARC4Encoded {\n [TypeProperty]?: `arc4.UintN<${N}>`\n\n constructor(v?: CompatForArc4Int<N>) {\n super()\n }\n get native(): NativeForArc4Int<N> {\n throw new NoImplementation()\n }\n}\nexport class Byte extends UintN<8> {}\nexport class UintN8 extends UintN<8> {}\nexport class UintN16 extends UintN<16> {}\nexport class UintN32 extends UintN<32> {}\nexport class UintN64 extends UintN<64> {}\nexport class UintN128 extends UintN<128> {}\nexport class UintN256 extends UintN<256> {}\nexport class UFixedNxM<N extends BitSize, M extends number> extends ARC4Encoded {\n [TypeProperty]?: `arc4.UFixedNxM<${N}x${M}>`\n constructor(v: `${number}.${number}`) {\n super()\n }\n\n get native(): NativeForArc4Int<N> {\n throw new NoImplementation()\n }\n}\nexport class Bool extends ARC4Encoded {\n [TypeProperty]?: `arc4.Bool`\n\n constructor(v?: boolean) {\n super()\n }\n\n get native(): boolean {\n throw new NoImplementation()\n }\n}\n\nabstract class Arc4ReadonlyArray<TItem extends ARC4Encoded> extends ARC4Encoded {\n protected constructor() {\n super()\n }\n\n /**\n * Returns the current length of this array\n */\n get length(): uint64 {\n throw new NoImplementation()\n }\n\n /**\n * Returns the item at the given index.\n * Negative indexes are taken from the end.\n * @param index The index of the item to retrieve\n */\n at(index: Uint64Compat): TItem {\n throw new NoImplementation()\n }\n\n /** @internal\n * Create a new Dynamic array with all items from this array\n */\n slice(): DynamicArray<TItem>\n /** @internal\n * Create a new DynamicArray with all items up till `end`.\n * Negative indexes are taken from the end.\n * @param end An index in which to stop copying items.\n */\n slice(end: Uint64Compat): DynamicArray<TItem>\n /** @internal\n * Create a new DynamicArray with items from `start`, up until `end`\n * Negative indexes are taken from the end.\n * @param start An index in which to start copying items.\n * @param end An index in which to stop copying items\n */\n slice(start: Uint64Compat, end: Uint64Compat): DynamicArray<TItem>\n slice(start?: Uint64Compat, end?: Uint64Compat): DynamicArray<TItem> {\n throw new NoImplementation()\n }\n\n /**\n * Returns an iterator for the items in this array\n */\n [Symbol.iterator](): IterableIterator<TItem> {\n throw new NoImplementation()\n }\n\n /**\n * Returns an iterator for a tuple of the indexes and items in this array\n */\n entries(): IterableIterator<readonly [uint64, TItem]> {\n throw new NoImplementation()\n }\n\n /**\n * Returns an iterator for the indexes in this array\n */\n keys(): IterableIterator<uint64> {\n throw new NoImplementation()\n }\n\n /**\n * Get or set the item at the specified index.\n * Negative indexes are not supported\n */\n [index: uint64]: TItem\n}\n\nexport class StaticArray<TItem extends ARC4Encoded, TLength extends number> extends Arc4ReadonlyArray<TItem> {\n [TypeProperty]?: `arc4.StaticArray<${TItem[typeof TypeProperty]}, ${TLength}>`\n constructor()\n constructor(...items: TItem[] & { length: TLength })\n constructor(...items: TItem[])\n constructor(...items: TItem[] & { length: TLength }) {\n super()\n }\n\n copy(): StaticArray<TItem, TLength> {\n throw new NoImplementation()\n }\n\n /**\n * Returns a new array containing all items from _this_ array, and _other_ array\n * @param other Another array to concat with this one\n */\n concat(other: Arc4ReadonlyArray<TItem>): DynamicArray<TItem> {\n throw new NoImplementation()\n }\n}\nexport class DynamicArray<TItem extends ARC4Encoded> extends Arc4ReadonlyArray<TItem> {\n [TypeProperty]?: `arc4.DynamicArray<${TItem[typeof TypeProperty]}>`\n constructor(...items: TItem[]) {\n super()\n }\n\n /**\n * Push a number of items into this array\n * @param items The items to be added to this array\n */\n push(...items: TItem[]): void {\n throw new NoImplementation()\n }\n\n /**\n * Pop a single item from this array\n */\n pop(): TItem {\n throw new NoImplementation()\n }\n\n copy(): DynamicArray<TItem> {\n throw new NoImplementation()\n }\n\n /**\n * Returns a new array containing all items from _this_ array, and _other_ array\n * @param other Another array to concat with this one\n */\n concat(other: Arc4ReadonlyArray<TItem>): DynamicArray<TItem> {\n throw new NoImplementation()\n }\n}\ntype ExpandTupleType<T extends ARC4Encoded[]> = T extends [infer T1 extends ARC4Encoded, ...infer TRest extends ARC4Encoded[]]\n ? TRest extends []\n ? `${T1[typeof TypeProperty]}`\n : `${T1[typeof TypeProperty]},${ExpandTupleType<TRest>}`\n : ''\n\nexport class Tuple<TTuple extends [ARC4Encoded, ...ARC4Encoded[]]> extends ARC4Encoded {\n [TypeProperty]?: `arc4.Tuple<${ExpandTupleType<TTuple>}>`\n constructor(...items: TTuple) {\n super()\n }\n\n at<TIndex extends keyof TTuple>(index: TIndex): TTuple[TIndex] {\n throw new NoImplementation()\n }\n\n get length(): TTuple['length'] & uint64 {\n throw new NoImplementation()\n }\n\n get native(): TTuple {\n throw new NoImplementation()\n }\n}\n\nexport class Address extends Arc4ReadonlyArray<Byte> {\n [TypeProperty]?: `arc4.Address`\n constructor(value?: Account | string | bytes) {\n super()\n }\n\n get native(): Account {\n throw new NoImplementation()\n }\n}\n\ntype StructConstraint = Record<string, ARC4Encoded>\n\nclass StructBase extends ARC4Encoded {\n [TypeProperty] = 'arc4.Struct'\n}\nclass StructImpl<T extends StructConstraint> extends StructBase {\n constructor(initial: T) {\n super()\n for (const [prop, val] of Object.entries(initial)) {\n Object.defineProperty(this, prop, {\n value: val,\n writable: true,\n enumerable: true,\n })\n }\n }\n}\n\ntype StructConstructor = new <T extends StructConstraint>(initial: T) => StructBase & Readonly<T>\n\nexport const Struct = StructImpl as StructConstructor\n\nexport class DynamicBytes extends Arc4ReadonlyArray<Byte> {\n [TypeProperty]?: `arc4.DynamicBytes`\n\n constructor(value?: bytes | string) {\n super()\n }\n\n get native(): bytes {\n throw new NoImplementation()\n }\n\n /**\n * Returns a dynamic bytes object containing all bytes from _this_ and _other_\n * @param other Another array of bytes to concat with this one\n */\n concat(other: Arc4ReadonlyArray<Byte>): DynamicBytes {\n throw new NoImplementation()\n }\n}\n\nexport class StaticBytes<TLength extends number = 0> extends Arc4ReadonlyArray<Byte> {\n [TypeProperty]?: `arc4.StaticBytes<${TLength}>`\n\n constructor(value?: bytes | string) {\n super()\n }\n\n get native(): bytes {\n throw new NoImplementation()\n }\n\n /**\n * Returns a dynamic bytes object containing all bytes from _this_ and _other_\n * @param other Another array of bytes to concat with this one\n */\n concat(other: Arc4ReadonlyArray<Byte>): DynamicBytes {\n throw new NoImplementation()\n }\n}\n\n/**\n * Interpret the provided bytes as an ARC4 encoded type with no validation\n * @param bytes An arc4 encoded bytes value\n * @param prefix The prefix (if any), present in the bytes value. This prefix will be validated and removed\n */\nexport function interpretAsArc4<T extends ARC4Encoded>(bytes: BytesCompat, prefix: 'none' | 'log' = 'none'): T {\n throw new NoImplementation()\n}\n\n/**\n * Decode the provided bytes to a native Algorand TypeScript value\n * @param bytes An arc4 encoded bytes value\n * @param prefix The prefix (if any), present in the bytes value. This prefix will be validated and removed\n */\nexport function decodeArc4<T>(bytes: BytesCompat, prefix: 'none' | 'log' = 'none'): T {\n throw new NoImplementation()\n}\n\n/**\n * Encode the provided Algorand TypeScript value as ARC4 bytes\n * @param value Any native Algorand TypeScript value with a supported ARC4 encoding\n */\nexport function encodeArc4<T>(value: T): bytes {\n throw new NoImplementation()\n}\n","import { BaseContract } from '../base-contract'\nimport { NoImplementation } from '../internal/errors'\nimport { DeliberateAny } from '../internal/typescript-helpers'\nimport { bytes } from '../primitives'\n\nexport * from './encoded-types'\n\nexport class Contract extends BaseContract {\n override approvalProgram(): boolean {\n return true\n }\n}\n\nexport type CreateOptions = 'allow' | 'disallow' | 'require'\nexport type OnCompleteActionStr = 'NoOp' | 'OptIn' | 'ClearState' | 'CloseOut' | 'UpdateApplication' | 'DeleteApplication'\n\nexport enum OnCompleteAction {\n NoOp = 0,\n OptIn = 1,\n CloseOut = 2,\n ClearState = 3,\n UpdateApplication = 4,\n DeleteApplication = 5,\n}\n\nexport type DefaultArgument<TContract extends Contract> = { constant: string | boolean | number | bigint } | { from: keyof TContract }\n\nexport type AbiMethodConfig<TContract extends Contract> = {\n /**\n * Which on complete action(s) are allowed when invoking this method.\n * @default 'NoOp'\n */\n allowActions?: OnCompleteActionStr | OnCompleteActionStr[]\n /**\n * Whether this method should be callable when creating the application.\n * @default 'disallow'\n */\n onCreate?: CreateOptions\n /**\n * Does the method only perform read operations (no mutation of chain state)\n * @default false\n */\n readonly?: boolean\n /**\n * Override the name used to generate the abi method selector\n */\n name?: string\n\n defaultArguments?: Record<string, DefaultArgument<TContract>>\n}\n\n/**\n * Declares the decorated method as an abimethod that is called when the first transaction arg matches the method selector\n * @param config\n */\nexport function abimethod<TContract extends Contract>(config?: AbiMethodConfig<TContract>) {\n return function <TArgs extends DeliberateAny[], TReturn>(\n target: (this: TContract, ...args: TArgs) => TReturn,\n ctx: ClassMethodDecoratorContext<TContract>,\n ): (this: TContract, ...args: TArgs) => TReturn {\n throw new NoImplementation()\n }\n}\n\nexport type BareMethodConfig = {\n /**\n * Which on complete action(s) are allowed when invoking this method.\n * @default 'NoOp'\n */\n allowActions?: OnCompleteActionStr | OnCompleteActionStr[]\n /**\n * Whether this method should be callable when creating the application.\n * @default 'disallow'\n */\n onCreate?: CreateOptions\n}\n\n/**\n * Declares the decorated method as a baremethod that can only be called with no transaction args\n * @param config\n */\nexport function baremethod<TContract extends Contract>(config?: BareMethodConfig) {\n return function <TArgs extends DeliberateAny[], TReturn>(\n target: (this: TContract, ...args: TArgs) => TReturn,\n ctx: ClassMethodDecoratorContext<TContract>,\n ): (this: TContract, ...args: TArgs) => TReturn {\n throw new NoImplementation()\n }\n}\n\n/**\n * Returns the ARC4 method selector for a given ARC4 method signature. The method selector is the first\n * 4 bytes of the SHA512/256 hash of the method signature.\n * @param methodSignature An ARC4 method signature. Eg. `hello(string)string`. Must be a compile time constant.\n * @returns The ARC4 method selector. Eg. `02BECE11`\n */\nexport function methodSelector<\n TMethod extends (this: TContract, ...args: TArgs) => TReturn,\n TContract extends Contract,\n TArgs extends DeliberateAny[],\n TReturn,\n>(methodSignature: string | TMethod): bytes {\n throw new NoImplementation()\n}\n"],"names":[],"mappings":";;MAKsB,YAAY,CAAA;IAEzB,iBAAiB,GAAA;AACtB,QAAA,OAAO,IAAI;;AAEd;AA0DD;;;AAGG;AACG,SAAU,QAAQ,CAAC,OAAwB,EAAA;AAC/C,IAAA,OAAO,CAAyC,QAAW,EAAE,GAA0B,KAAI;QACzF,MAAM,IAAI,gBAAgB,EAAE;AAC9B,KAAC;AACH;;ACVA,MAAM,YAAY,GAAG,MAAM,CAAC,UAAU,CAAC;MAEjB,WAAW,CAAA;AAE/B,IAAA,IAAI,KAAK,GAAA;QACP,MAAM,IAAI,gBAAgB,EAAE;;AAE/B;AAEK,MAAO,GAAI,SAAQ,WAAW,CAAA;IAClC,CAAC,YAAY;AACb,IAAA,MAAM;AACN,IAAA,WAAA,CAAY,CAAgB,EAAA;AAC1B,QAAA,KAAK,EAAE;AACP,QAAA,IAAI,CAAC,M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U,UAAU,CAA6B,MAAyB,EAAA;IAC9E,OAAO,UACL,MAAoD,EACpD,GAA2C,EAAA;QAE3C,MAAM,IAAI,gBAAgB,EAAE;AAC9B,KAAC;AACH;AAEA;;;;;AAKG;AACG,SAAU,cAAc,CAK5B,eAAiC,EAAA;IACjC,MAAM,IAAI,gBAAgB,EAAE;AAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "**"
5
5
  ],
6
6
  "name": "@algorandfoundation/algorand-typescript",
7
- "version": "1.0.0-beta.18",
7
+ "version": "1.0.0-beta.19",
8
8
  "description": "This package contains definitions for the types which comprise Algorand TypeScript which can be compiled to run on the Algorand Virtual Machine using the Puya compiler.",
9
9
  "private": false,
10
10
  "overrides": {