@allbridge/bridge-core-sdk 3.27.0-beta.7 → 3.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/browser/index.js +1 -6
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/cjs/index.js +1 -6
  4. package/dist/cjs/index.js.map +4 -4
  5. package/dist/esm/index.js +1 -6
  6. package/dist/esm/index.js.map +4 -4
  7. package/dist/src/chains/chain.enums.d.ts +2 -12
  8. package/dist/src/chains/chain.enums.js +0 -10
  9. package/dist/src/chains/chain.enums.js.map +1 -1
  10. package/dist/src/chains/index.js +0 -12
  11. package/dist/src/chains/index.js.map +1 -1
  12. package/dist/src/client/core-api/api-client.js +0 -1
  13. package/dist/src/client/core-api/api-client.js.map +1 -1
  14. package/dist/src/client/core-api/core-api-mapper.js +0 -33
  15. package/dist/src/client/core-api/core-api-mapper.js.map +1 -1
  16. package/dist/src/client/core-api/core-api.model.d.ts +2 -14
  17. package/dist/src/client/core-api/core-api.model.js.map +1 -1
  18. package/dist/src/configs/mainnet.js +0 -1
  19. package/dist/src/configs/mainnet.js.map +1 -1
  20. package/dist/src/index.d.ts +4 -12
  21. package/dist/src/index.js +11 -11
  22. package/dist/src/index.js.map +1 -1
  23. package/dist/src/models/index.d.ts +4 -12
  24. package/dist/src/models/index.js +0 -4
  25. package/dist/src/models/index.js.map +1 -1
  26. package/dist/src/services/bridge/evm/index.d.ts +0 -1
  27. package/dist/src/services/bridge/evm/index.js +33 -103
  28. package/dist/src/services/bridge/evm/index.js.map +1 -1
  29. package/dist/src/services/bridge/index.d.ts +2 -2
  30. package/dist/src/services/bridge/index.js +4 -31
  31. package/dist/src/services/bridge/index.js.map +1 -1
  32. package/dist/src/services/bridge/models/bridge.model.d.ts +4 -13
  33. package/dist/src/services/bridge/models/bridge.model.js.map +1 -1
  34. package/dist/src/services/bridge/raw-bridge-transaction-builder.js +1 -1
  35. package/dist/src/services/bridge/raw-bridge-transaction-builder.js.map +1 -1
  36. package/dist/src/services/bridge/srb/index.js +28 -36
  37. package/dist/src/services/bridge/srb/index.js.map +1 -1
  38. package/dist/src/services/bridge/sui/index.js +138 -166
  39. package/dist/src/services/bridge/sui/index.js.map +1 -1
  40. package/dist/src/services/bridge/trx/index.js +70 -98
  41. package/dist/src/services/bridge/trx/index.js.map +1 -1
  42. package/dist/src/services/bridge/utils.d.ts +1 -5
  43. package/dist/src/services/bridge/utils.js +23 -164
  44. package/dist/src/services/bridge/utils.js.map +1 -1
  45. package/dist/src/services/liquidity-pool/index.js +0 -21
  46. package/dist/src/services/liquidity-pool/index.js.map +1 -1
  47. package/dist/src/services/liquidity-pool/sui/index.js.map +1 -1
  48. package/dist/src/services/liquidity-pool/trx/index.js.map +1 -1
  49. package/dist/src/services/models/index.d.ts +5 -7
  50. package/dist/src/services/models/index.js.map +1 -1
  51. package/dist/src/services/token/index.js +2 -23
  52. package/dist/src/services/token/index.js.map +1 -1
  53. package/dist/src/services/token/models/token.model.d.ts +4 -4
  54. package/dist/src/services/token/models/token.model.js.map +1 -1
  55. package/dist/src/services/token/sui/index.js.map +1 -1
  56. package/dist/src/services/utils/trx/index.js.map +1 -1
  57. package/dist/src/services/yield/index.js +0 -8
  58. package/dist/src/services/yield/index.js.map +1 -1
  59. package/dist/src/tokens-info/tokens-info.model.d.ts +0 -25
  60. package/dist/src/tokens-info/tokens-info.model.js.map +1 -1
  61. package/dist/src/utils/index.d.ts +0 -3
  62. package/dist/src/utils/index.js +0 -3
  63. package/dist/src/utils/index.js.map +1 -1
  64. package/dist/src/utils/utils.d.ts +0 -2
  65. package/dist/src/utils/utils.js +0 -11
  66. package/dist/src/utils/utils.js.map +1 -1
  67. package/dist/src/version.d.ts +1 -1
  68. package/dist/src/version.js +1 -1
  69. package/dist/src/version.js.map +1 -1
  70. package/package.json +2 -9
  71. package/dist/src/services/bridge/alg/index.d.ts +0 -16
  72. package/dist/src/services/bridge/alg/index.js +0 -191
  73. package/dist/src/services/bridge/alg/index.js.map +0 -1
  74. package/dist/src/services/bridge/stx/index.d.ts +0 -16
  75. package/dist/src/services/bridge/stx/index.js +0 -136
  76. package/dist/src/services/bridge/stx/index.js.map +0 -1
  77. package/dist/src/services/liquidity-pool/alg/index.d.ts +0 -19
  78. package/dist/src/services/liquidity-pool/alg/index.js +0 -135
  79. package/dist/src/services/liquidity-pool/alg/index.js.map +0 -1
  80. package/dist/src/services/liquidity-pool/stx/index.d.ts +0 -21
  81. package/dist/src/services/liquidity-pool/stx/index.js +0 -141
  82. package/dist/src/services/liquidity-pool/stx/index.js.map +0 -1
  83. package/dist/src/services/models/abi/PayerWithAbr.d.ts +0 -203
  84. package/dist/src/services/models/abi/PayerWithAbr.js +0 -266
  85. package/dist/src/services/models/abi/PayerWithAbr.js.map +0 -1
  86. package/dist/src/services/models/alg/BridgeClient.d.ts +0 -2751
  87. package/dist/src/services/models/alg/BridgeClient.js +0 -2685
  88. package/dist/src/services/models/alg/BridgeClient.js.map +0 -1
  89. package/dist/src/services/models/alg/PaddingUtilClient.d.ts +0 -654
  90. package/dist/src/services/models/alg/PaddingUtilClient.js +0 -425
  91. package/dist/src/services/models/alg/PaddingUtilClient.js.map +0 -1
  92. package/dist/src/services/models/alg/PoolClient.d.ts +0 -2276
  93. package/dist/src/services/models/alg/PoolClient.js +0 -2195
  94. package/dist/src/services/models/alg/PoolClient.js.map +0 -1
  95. package/dist/src/services/models/stx/clarigen-types.d.ts +0 -657
  96. package/dist/src/services/models/stx/clarigen-types.js +0 -2296
  97. package/dist/src/services/models/stx/clarigen-types.js.map +0 -1
  98. package/dist/src/services/token/alg/index.d.ts +0 -17
  99. package/dist/src/services/token/alg/index.js +0 -47
  100. package/dist/src/services/token/alg/index.js.map +0 -1
  101. package/dist/src/services/token/stx/index.d.ts +0 -20
  102. package/dist/src/services/token/stx/index.js +0 -59
  103. package/dist/src/services/token/stx/index.js.map +0 -1
  104. package/dist/src/services/utils/alg/index.d.ts +0 -9
  105. package/dist/src/services/utils/alg/index.js +0 -74
  106. package/dist/src/services/utils/alg/index.js.map +0 -1
  107. package/dist/src/services/utils/stx/get-token-name.d.ts +0 -2
  108. package/dist/src/services/utils/stx/get-token-name.js +0 -15
  109. package/dist/src/services/utils/stx/get-token-name.js.map +0 -1
  110. package/dist/src/services/utils/stx/post-conditions.d.ts +0 -3
  111. package/dist/src/services/utils/stx/post-conditions.js +0 -27
  112. package/dist/src/services/utils/stx/post-conditions.js.map +0 -1
  113. package/dist/src/utils/alg/index.d.ts +0 -21
  114. package/dist/src/utils/alg/index.js +0 -71
  115. package/dist/src/utils/alg/index.js.map +0 -1
@@ -1,654 +0,0 @@
1
- /**
2
- * This file was automatically generated by @algorandfoundation/algokit-client-generator.
3
- * DO NOT MODIFY IT BY HAND.
4
- * requires: @algorandfoundation/algokit-utils: ^7
5
- */
6
- import { type AlgorandClient } from "@algorandfoundation/algokit-utils/types/algorand-client";
7
- import { ABIReturn } from "@algorandfoundation/algokit-utils/types/app";
8
- import { Arc56Contract } from "@algorandfoundation/algokit-utils/types/app-arc56";
9
- import { AppClient as _AppClient, AppClientMethodCallParams, AppClientParams, AppClientBareCallParams, AppClientCompilationParams, ResolveAppClientByCreatorAndName, ResolveAppClientByNetwork, CloneAppClientParams } from "@algorandfoundation/algokit-utils/types/app-client";
10
- import { AppFactory as _AppFactory, AppFactoryAppClientParams, AppFactoryResolveAppClientByCreatorAndNameParams, AppFactoryDeployParams, AppFactoryParams, CreateSchema } from "@algorandfoundation/algokit-utils/types/app-factory";
11
- import { TransactionComposer, AppMethodCallTransactionArgument, RawSimulateOptions, SkipSignaturesSimulateOptions } from "@algorandfoundation/algokit-utils/types/composer";
12
- import { SendParams, SendAtomicTransactionComposerResults } from "@algorandfoundation/algokit-utils/types/transaction";
13
- import { Address, modelsv2, OnApplicationComplete, Transaction, TransactionSigner } from "algosdk";
14
- export declare const APP_SPEC: Arc56Contract;
15
- /**
16
- * A state record containing binary data
17
- */
18
- export interface BinaryState {
19
- /**
20
- * Gets the state value as a Uint8Array
21
- */
22
- asByteArray(): Uint8Array | undefined;
23
- /**
24
- * Gets the state value as a string
25
- */
26
- asString(): string | undefined;
27
- }
28
- /**
29
- * Expands types for IntelliSense so they are more human readable
30
- * See https://stackoverflow.com/a/69288824
31
- */
32
- export type Expand<T> = T extends (...args: infer A) => infer R ? (...args: Expand<A>) => Expand<R> : T extends infer O ? {
33
- [K in keyof O]: O[K];
34
- } : never;
35
- /**
36
- * The argument types for the PaddingUtil contract
37
- */
38
- export type PaddingUtilArgs = {
39
- /**
40
- * The object representation of the arguments for each method
41
- */
42
- obj: {
43
- "createApplication()void": Record<string, never>;
44
- };
45
- /**
46
- * The tuple representation of the arguments for each method
47
- */
48
- tuple: {
49
- "createApplication()void": [];
50
- };
51
- };
52
- /**
53
- * The return type for each method
54
- */
55
- export type PaddingUtilReturns = {
56
- "createApplication()void": void;
57
- };
58
- /**
59
- * Defines the types of available calls and state of the PaddingUtil smart contract.
60
- */
61
- export type PaddingUtilTypes = {
62
- /**
63
- * Maps method signatures / names to their argument and return types.
64
- */
65
- methods: Record<"createApplication()void" | "createApplication", {
66
- argsObj: PaddingUtilArgs["obj"]["createApplication()void"];
67
- argsTuple: PaddingUtilArgs["tuple"]["createApplication()void"];
68
- returns: PaddingUtilReturns["createApplication()void"];
69
- }>;
70
- };
71
- /**
72
- * Defines the possible abi call signatures.
73
- */
74
- export type PaddingUtilSignatures = keyof PaddingUtilTypes["methods"];
75
- /**
76
- * Defines the possible abi call signatures for methods that return a non-void value.
77
- */
78
- export type PaddingUtilNonVoidMethodSignatures = keyof PaddingUtilTypes["methods"] extends infer T ? T extends keyof PaddingUtilTypes["methods"] ? MethodReturn<T> extends void ? never : T : never : never;
79
- /**
80
- * Defines an object containing all relevant parameters for a single call to the contract.
81
- */
82
- export type CallParams<TArgs> = Expand<Omit<AppClientMethodCallParams, "method" | "args" | "onComplete"> & {
83
- /** The args for the ABI method call, either as an ordered array or an object */
84
- args: Expand<TArgs>;
85
- }>;
86
- /**
87
- * Maps a method signature from the PaddingUtil smart contract to the method's arguments in either tuple or struct form
88
- */
89
- export type MethodArgs<TSignature extends PaddingUtilSignatures> = PaddingUtilTypes["methods"][TSignature]["argsObj" | "argsTuple"];
90
- /**
91
- * Maps a method signature from the PaddingUtil smart contract to the method's return type
92
- */
93
- export type MethodReturn<TSignature extends PaddingUtilSignatures> = PaddingUtilTypes["methods"][TSignature]["returns"];
94
- /**
95
- * Defines supported create method params for this smart contract
96
- */
97
- export type PaddingUtilCreateCallParams = Expand<CallParams<PaddingUtilArgs["obj"]["createApplication()void"] | PaddingUtilArgs["tuple"]["createApplication()void"]> & {
98
- method: "createApplication";
99
- } & {
100
- onComplete?: OnApplicationComplete.NoOpOC;
101
- } & CreateSchema> | Expand<CallParams<PaddingUtilArgs["obj"]["createApplication()void"] | PaddingUtilArgs["tuple"]["createApplication()void"]> & {
102
- method: "createApplication()void";
103
- } & {
104
- onComplete?: OnApplicationComplete.NoOpOC;
105
- } & CreateSchema>;
106
- /**
107
- * Defines arguments required for the deploy method.
108
- */
109
- export type PaddingUtilDeployParams = Expand<Omit<AppFactoryDeployParams, "createParams" | "updateParams" | "deleteParams"> & {
110
- /**
111
- * Create transaction parameters to use if a create needs to be issued as part of deployment; use `method` to define ABI call (if available) or leave out for a bare call (if available)
112
- */
113
- createParams?: PaddingUtilCreateCallParams;
114
- }>;
115
- /**
116
- * Exposes methods for constructing `AppClient` params objects for ABI calls to the PaddingUtil smart contract
117
- */
118
- export declare abstract class PaddingUtilParamsFactory {
119
- /**
120
- * Gets available create ABI call param factories
121
- */
122
- static get create(): {
123
- _resolveByMethod<TParams extends PaddingUtilCreateCallParams & {
124
- method: string;
125
- }>(params: TParams): {
126
- signer?: (TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount) | undefined;
127
- rekeyTo?: (string | Address) | undefined;
128
- note?: (Uint8Array | string) | undefined;
129
- lease?: (Uint8Array | string) | undefined;
130
- staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
131
- extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
132
- maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
133
- validityWindow?: (number | bigint) | undefined;
134
- firstValidRound?: bigint | undefined;
135
- lastValidRound?: bigint | undefined;
136
- onComplete?: OnApplicationComplete | undefined;
137
- accountReferences?: (string | Address)[] | undefined;
138
- appReferences?: bigint[] | undefined;
139
- assetReferences?: bigint[] | undefined;
140
- boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined;
141
- accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
142
- rejectVersion?: number | undefined;
143
- sender?: (Address | string) | undefined;
144
- method: string;
145
- args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined;
146
- } & AppClientCompilationParams & {
147
- onComplete?: OnApplicationComplete.NoOpOC;
148
- };
149
- /**
150
- * Constructs create ABI call params for the PaddingUtil smart contract using the createApplication()void ABI method
151
- *
152
- * @param params Parameters for the call
153
- * @returns An `AppClientMethodCallParams` object for the call
154
- */
155
- createApplication(params: CallParams<PaddingUtilArgs["obj"]["createApplication()void"] | PaddingUtilArgs["tuple"]["createApplication()void"]> & AppClientCompilationParams & {
156
- onComplete?: OnApplicationComplete.NoOpOC;
157
- }): AppClientMethodCallParams & AppClientCompilationParams & {
158
- onComplete?: OnApplicationComplete.NoOpOC;
159
- };
160
- };
161
- }
162
- /**
163
- * A factory to create and deploy one or more instance of the PaddingUtil smart contract and to create one or more app clients to interact with those (or other) app instances
164
- */
165
- export declare class PaddingUtilFactory {
166
- /**
167
- * The underlying `AppFactory` for when you want to have more flexibility
168
- */
169
- readonly appFactory: _AppFactory;
170
- /**
171
- * Creates a new instance of `PaddingUtilFactory`
172
- *
173
- * @param params The parameters to initialise the app factory with
174
- */
175
- constructor(params: Omit<AppFactoryParams, "appSpec">);
176
- /** The name of the app (from the ARC-32 / ARC-56 app spec or override). */
177
- get appName(): string;
178
- /** The ARC-56 app spec being used */
179
- get appSpec(): Arc56Contract;
180
- /** A reference to the underlying `AlgorandClient` this app factory is using. */
181
- get algorand(): AlgorandClient;
182
- /**
183
- * Returns a new `AppClient` client for an app instance of the given ID.
184
- *
185
- * Automatically populates appName, defaultSender and source maps from the factory
186
- * if not specified in the params.
187
- * @param params The parameters to create the app client
188
- * @returns The `AppClient`
189
- */
190
- getAppClientById(params: AppFactoryAppClientParams): PaddingUtilClient;
191
- /**
192
- * Returns a new `AppClient` client, resolving the app by creator address and name
193
- * using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
194
- *
195
- * Automatically populates appName, defaultSender and source maps from the factory
196
- * if not specified in the params.
197
- * @param params The parameters to create the app client
198
- * @returns The `AppClient`
199
- */
200
- getAppClientByCreatorAndName(params: AppFactoryResolveAppClientByCreatorAndNameParams): Promise<PaddingUtilClient>;
201
- /**
202
- * Idempotently deploys the PaddingUtil smart contract.
203
- *
204
- * @param params The arguments for the contract calls and any additional parameters for the call
205
- * @returns The deployment result
206
- */
207
- deploy(params?: PaddingUtilDeployParams): Promise<{
208
- result: {
209
- return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
210
- deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
211
- compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
212
- compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
213
- operationPerformed: "create";
214
- version: string;
215
- name: string;
216
- createdRound: bigint;
217
- updatedRound: bigint;
218
- createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata;
219
- deleted: boolean;
220
- deletable?: boolean | undefined;
221
- updatable?: boolean | undefined;
222
- groupId: string;
223
- txIds: string[];
224
- returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined;
225
- confirmations: modelsv2.PendingTransactionResponse[];
226
- transactions: Transaction[];
227
- confirmation: modelsv2.PendingTransactionResponse;
228
- transaction: Transaction;
229
- appId: bigint;
230
- appAddress: Address;
231
- } | {
232
- return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
233
- deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
234
- compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
235
- compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
236
- operationPerformed: "update";
237
- appId: bigint;
238
- appAddress: Address;
239
- createdRound: bigint;
240
- updatedRound: bigint;
241
- createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata;
242
- deleted: boolean;
243
- name: string;
244
- version: string;
245
- deletable?: boolean | undefined;
246
- updatable?: boolean | undefined;
247
- groupId: string;
248
- txIds: string[];
249
- returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined;
250
- confirmations: modelsv2.PendingTransactionResponse[];
251
- transactions: Transaction[];
252
- confirmation: modelsv2.PendingTransactionResponse;
253
- transaction: Transaction;
254
- } | {
255
- return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
256
- deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
257
- compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
258
- compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
259
- operationPerformed: "replace";
260
- version: string;
261
- name: string;
262
- createdRound: bigint;
263
- updatedRound: bigint;
264
- createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata;
265
- deleted: boolean;
266
- deletable?: boolean | undefined;
267
- updatable?: boolean | undefined;
268
- groupId: string;
269
- txIds: string[];
270
- returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined;
271
- confirmations: modelsv2.PendingTransactionResponse[];
272
- transactions: Transaction[];
273
- confirmation: modelsv2.PendingTransactionResponse;
274
- transaction: Transaction;
275
- appId: bigint;
276
- appAddress: Address;
277
- deleteResult: import("@algorandfoundation/algokit-utils/types/transaction").ConfirmedTransactionResult;
278
- } | {
279
- return: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
280
- deleteReturn: import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined;
281
- compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
282
- compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
283
- operationPerformed: "nothing";
284
- appId: bigint;
285
- appAddress: Address;
286
- createdRound: bigint;
287
- updatedRound: bigint;
288
- createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata;
289
- deleted: boolean;
290
- name: string;
291
- version: string;
292
- deletable?: boolean | undefined;
293
- updatable?: boolean | undefined;
294
- };
295
- appClient: PaddingUtilClient;
296
- }>;
297
- /**
298
- * Get parameters to create transactions (create and deploy related calls) for the current app. A good mental model for this is that these parameters represent a deferred transaction creation.
299
- */
300
- readonly params: {
301
- /**
302
- * Gets available create methods
303
- */
304
- create: {
305
- /**
306
- * Creates a new instance of the PaddingUtil smart contract using the createApplication()void ABI method.
307
- *
308
- * @param params The params for the smart contract call
309
- * @returns The create params
310
- */
311
- createApplication: (params?: CallParams<PaddingUtilArgs["obj"]["createApplication()void"] | PaddingUtilArgs["tuple"]["createApplication()void"]> & AppClientCompilationParams & CreateSchema & {
312
- onComplete?: OnApplicationComplete.NoOpOC;
313
- }) => Promise<{
314
- deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined;
315
- schema: {
316
- globalInts: number;
317
- globalByteSlices: number;
318
- localInts: number;
319
- localByteSlices: number;
320
- };
321
- approvalProgram: Uint8Array;
322
- clearStateProgram: Uint8Array;
323
- maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
324
- note?: string | Uint8Array | undefined;
325
- signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
326
- onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | undefined;
327
- rejectVersion?: number | undefined;
328
- lease?: string | Uint8Array | undefined;
329
- rekeyTo?: string | Address | undefined;
330
- staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
331
- extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
332
- validityWindow?: number | bigint | undefined;
333
- firstValidRound?: bigint | undefined;
334
- lastValidRound?: bigint | undefined;
335
- accountReferences?: (string | Address)[] | undefined;
336
- appReferences?: bigint[] | undefined;
337
- assetReferences?: bigint[] | undefined;
338
- boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier | import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference)[] | undefined;
339
- accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
340
- sender?: string | Address | undefined;
341
- method: string;
342
- args?: (import("algosdk").ABIValue | AppMethodCallTransactionArgument | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | undefined)[] | undefined;
343
- updatable?: boolean | undefined;
344
- deletable?: boolean | undefined;
345
- extraProgramPages?: number | undefined;
346
- } & {
347
- sender: Address;
348
- signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
349
- method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method;
350
- args: (Transaction | import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Promise<Transaction> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{
351
- sender: string | Address;
352
- maxFee?: import("@algorandfoundation/algokit-utils/types/amount" /**
353
- * Creates a new instance of the PaddingUtil smart contract using the createApplication()void ABI method.
354
- *
355
- * @param params The params for the smart contract call
356
- * @returns The create params
357
- */).AlgoAmount | undefined;
358
- note?: string | Uint8Array | undefined;
359
- args?: Uint8Array[] | undefined;
360
- signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
361
- onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | undefined;
362
- rejectVersion?: number | undefined;
363
- lease?: string | Uint8Array | undefined;
364
- rekeyTo?: string | Address | undefined;
365
- staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
366
- extraFee?: import("@algorandfoundation/algokit-utils/types/amount" /**
367
- * Gets available create methods
368
- */).AlgoAmount | undefined;
369
- validityWindow?: number | bigint | undefined;
370
- firstValidRound?: bigint | undefined;
371
- lastValidRound?: bigint | undefined;
372
- accountReferences?: (string | Address)[] | undefined;
373
- appReferences?: bigint[] | undefined;
374
- assetReferences?: bigint[] | undefined;
375
- boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier | import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference)[] | undefined;
376
- accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
377
- approvalProgram: string | Uint8Array;
378
- clearStateProgram: string | Uint8Array;
379
- schema?: {
380
- globalInts: number;
381
- globalByteSlices: number;
382
- localInts: number;
383
- localByteSlices: number;
384
- } | undefined;
385
- extraProgramPages?: number | undefined;
386
- }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{
387
- sender: string | Address;
388
- signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
389
- rekeyTo?: string | Address | undefined;
390
- note?: string | Uint8Array | undefined;
391
- lease?: string | Uint8Array | undefined;
392
- staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
393
- extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
394
- maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
395
- validityWindow?: number | bigint | undefined;
396
- firstValidRound?: bigint | undefined;
397
- lastValidRound?: bigint | undefined;
398
- appId: bigint;
399
- onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined;
400
- args?: Uint8Array[] | undefined;
401
- accountReferences?: (string | Address)[] | undefined;
402
- appReferences?: bigint[] | undefined;
403
- assetReferences?: bigint[] | undefined;
404
- boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier | import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference)[] | undefined;
405
- accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
406
- rejectVersion?: number | undefined;
407
- approvalProgram: string | Uint8Array;
408
- clearStateProgram: string | Uint8Array;
409
- }> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<import("@algorandfoundation/algokit-utils/types/composer").AppMethodCallParams> | undefined)[] | undefined;
410
- onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC;
411
- }>;
412
- };
413
- };
414
- /**
415
- * Create transactions for the current app
416
- */
417
- readonly createTransaction: {
418
- /**
419
- * Gets available create methods
420
- */
421
- create: {
422
- /**
423
- * Creates a new instance of the PaddingUtil smart contract using the createApplication()void ABI method.
424
- *
425
- * @param params The params for the smart contract call
426
- * @returns The create transaction
427
- */
428
- createApplication: (params?: CallParams<PaddingUtilArgs["obj"]["createApplication()void"] | PaddingUtilArgs["tuple"]["createApplication()void"]> & AppClientCompilationParams & CreateSchema & {
429
- onComplete?: OnApplicationComplete.NoOpOC;
430
- }) => Promise<{
431
- transactions: Transaction[];
432
- methodCalls: Map<number, import("algosdk").ABIMethod>;
433
- signers: Map<number, TransactionSigner>;
434
- }>;
435
- };
436
- };
437
- /**
438
- * Send calls to the current app
439
- */
440
- readonly send: {
441
- /**
442
- * Gets available create methods
443
- */
444
- create: {
445
- /**
446
- * Creates a new instance of the PaddingUtil smart contract using an ABI method call using the createApplication()void ABI method.
447
- *
448
- * @param params The params for the smart contract call
449
- * @returns The create result
450
- */
451
- createApplication: (params?: CallParams<PaddingUtilArgs["obj"]["createApplication()void"] | PaddingUtilArgs["tuple"]["createApplication()void"]> & AppClientCompilationParams & CreateSchema & SendParams & {
452
- onComplete?: OnApplicationComplete.NoOpOC;
453
- }) => Promise<{
454
- result: {
455
- return: undefined | PaddingUtilReturns["createApplication()void"];
456
- compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
457
- compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
458
- appId: bigint;
459
- groupId: string;
460
- txIds: string[];
461
- returns?: import("@algorandfoundation/algokit-utils/types/app").ABIReturn[] | undefined;
462
- confirmations: modelsv2.PendingTransactionResponse[];
463
- transactions: Transaction[];
464
- confirmation: modelsv2.PendingTransactionResponse;
465
- transaction: Transaction;
466
- appAddress: Address;
467
- };
468
- appClient: PaddingUtilClient;
469
- }>;
470
- };
471
- };
472
- }
473
- /**
474
- * A client to make calls to the PaddingUtil smart contract
475
- */
476
- export declare class PaddingUtilClient {
477
- /**
478
- * The underlying `AppClient` for when you want to have more flexibility
479
- */
480
- readonly appClient: _AppClient;
481
- /**
482
- * Creates a new instance of `PaddingUtilClient`
483
- *
484
- * @param appClient An `AppClient` instance which has been created with the PaddingUtil app spec
485
- */
486
- constructor(appClient: _AppClient);
487
- /**
488
- * Creates a new instance of `PaddingUtilClient`
489
- *
490
- * @param params The parameters to initialise the app client with
491
- */
492
- constructor(params: Omit<AppClientParams, "appSpec">);
493
- /**
494
- * Checks for decode errors on the given return value and maps the return value to the return type for the given method
495
- * @returns The typed return value or undefined if there was no value
496
- */
497
- decodeReturnValue<TSignature extends PaddingUtilNonVoidMethodSignatures>(method: TSignature, returnValue: ABIReturn | undefined): MethodReturn<TSignature> | undefined;
498
- /**
499
- * Returns a new `PaddingUtilClient` client, resolving the app by creator address and name
500
- * using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
501
- * @param params The parameters to create the app client
502
- */
503
- static fromCreatorAndName(params: Omit<ResolveAppClientByCreatorAndName, "appSpec">): Promise<PaddingUtilClient>;
504
- /**
505
- * Returns an `PaddingUtilClient` instance for the current network based on
506
- * pre-determined network-specific app IDs specified in the ARC-56 app spec.
507
- *
508
- * If no IDs are in the app spec or the network isn't recognised, an error is thrown.
509
- * @param params The parameters to create the app client
510
- */
511
- static fromNetwork(params: Omit<ResolveAppClientByNetwork, "appSpec">): Promise<PaddingUtilClient>;
512
- /** The ID of the app instance this client is linked to. */
513
- get appId(): bigint;
514
- /** The app address of the app instance this client is linked to. */
515
- get appAddress(): Address;
516
- /** The name of the app. */
517
- get appName(): string;
518
- /** The ARC-56 app spec being used */
519
- get appSpec(): Arc56Contract;
520
- /** A reference to the underlying `AlgorandClient` this app client is using. */
521
- get algorand(): AlgorandClient;
522
- /**
523
- * Get parameters to create transactions for the current app. A good mental model for this is that these parameters represent a deferred transaction creation.
524
- */
525
- readonly params: {
526
- /**
527
- * Makes a clear_state call to an existing instance of the PaddingUtil smart contract.
528
- *
529
- * @param params The params for the bare (raw) call
530
- * @returns The clearState result
531
- */
532
- clearState: (params?: Expand<AppClientBareCallParams>) => import("@algorandfoundation/algokit-utils/types/composer").AppCallParams;
533
- /**
534
- * Makes a call to the PaddingUtil smart contract using a bare call.
535
- *
536
- * @param params The params for the bare (raw) call
537
- * @returns The call result
538
- */
539
- bare: (params?: Expand<AppClientBareCallParams & {
540
- onComplete?: OnApplicationComplete.NoOpOC;
541
- }>) => import("@algorandfoundation/algokit-utils/types/composer").AppCallParams;
542
- };
543
- /**
544
- * Create transactions for the current app
545
- */
546
- readonly createTransaction: {
547
- /**
548
- * Makes a clear_state call to an existing instance of the PaddingUtil smart contract.
549
- *
550
- * @param params The params for the bare (raw) call
551
- * @returns The clearState result
552
- */
553
- clearState: (params?: Expand<AppClientBareCallParams>) => Promise<Transaction>;
554
- /**
555
- * Makes a call to the PaddingUtil smart contract using a bare call.
556
- *
557
- * @param params The params for the bare (raw) call
558
- * @returns The call result
559
- */
560
- bare: (params?: Expand<AppClientBareCallParams & {
561
- onComplete?: OnApplicationComplete.NoOpOC;
562
- }>) => Promise<Transaction>;
563
- };
564
- /**
565
- * Send calls to the current app
566
- */
567
- readonly send: {
568
- /**
569
- * Makes a clear_state call to an existing instance of the PaddingUtil smart contract.
570
- *
571
- * @param params The params for the bare (raw) call
572
- * @returns The clearState result
573
- */
574
- clearState: (params?: Expand<AppClientBareCallParams & SendParams>) => Promise<{
575
- groupId: string;
576
- txIds: string[];
577
- returns?: ABIReturn[] | undefined;
578
- confirmations: modelsv2.PendingTransactionResponse[];
579
- transactions: Transaction[];
580
- confirmation: modelsv2.PendingTransactionResponse;
581
- transaction: Transaction;
582
- return?: ABIReturn | undefined;
583
- }>;
584
- /**
585
- * Makes a call to the PaddingUtil smart contract using a bare call.
586
- *
587
- * @param params The params for the bare (raw) call
588
- * @returns The call result
589
- */
590
- bare: (params?: Expand<AppClientBareCallParams & SendParams & {
591
- onComplete?: OnApplicationComplete.NoOpOC;
592
- }>) => Promise<{
593
- groupId: string;
594
- txIds: string[];
595
- returns?: ABIReturn[] | undefined;
596
- confirmations: modelsv2.PendingTransactionResponse[];
597
- transactions: Transaction[];
598
- confirmation: modelsv2.PendingTransactionResponse;
599
- transaction: Transaction;
600
- return?: ABIReturn | undefined;
601
- }>;
602
- };
603
- /**
604
- * Clone this app client with different params
605
- *
606
- * @param params The params to use for the the cloned app client. Omit a param to keep the original value. Set a param to override the original value. Setting to undefined will clear the original value.
607
- * @returns A new app client with the altered params
608
- */
609
- clone(params: CloneAppClientParams): PaddingUtilClient;
610
- /**
611
- * Methods to access state for the current PaddingUtil app
612
- */
613
- state: {};
614
- newGroup(): PaddingUtilComposer;
615
- }
616
- export type PaddingUtilComposer<TReturns extends [...any[]] = []> = {
617
- /**
618
- * Makes a clear_state call to an existing instance of the PaddingUtil smart contract.
619
- *
620
- * @param args The arguments for the bare call
621
- * @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
622
- */
623
- clearState(params?: AppClientBareCallParams): PaddingUtilComposer<[...TReturns, undefined]>;
624
- /**
625
- * Adds a transaction to the composer
626
- *
627
- * @param txn A transaction to add to the transaction group
628
- * @param signer The optional signer to use when signing this transaction.
629
- */
630
- addTransaction(txn: Transaction, signer?: TransactionSigner): PaddingUtilComposer<TReturns>;
631
- /**
632
- * Returns the underlying AtomicTransactionComposer instance
633
- */
634
- composer(): Promise<TransactionComposer>;
635
- /**
636
- * Simulates the transaction group and returns the result
637
- */
638
- simulate(): Promise<PaddingUtilComposerResults<TReturns> & {
639
- simulateResponse: modelsv2.SimulateResponse;
640
- }>;
641
- simulate(options: SkipSignaturesSimulateOptions): Promise<PaddingUtilComposerResults<TReturns> & {
642
- simulateResponse: modelsv2.SimulateResponse;
643
- }>;
644
- simulate(options: RawSimulateOptions): Promise<PaddingUtilComposerResults<TReturns> & {
645
- simulateResponse: modelsv2.SimulateResponse;
646
- }>;
647
- /**
648
- * Sends the transaction group to the network and returns the results
649
- */
650
- send(params?: SendParams): Promise<PaddingUtilComposerResults<TReturns>>;
651
- };
652
- export type PaddingUtilComposerResults<TReturns extends [...any[]]> = Expand<SendAtomicTransactionComposerResults & {
653
- returns: TReturns;
654
- }>;