@algorandfoundation/algokit-utils 1.0.0-beta.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/account.d.ts +41 -36
- package/account.d.ts.map +1 -1
- package/account.js +59 -44
- package/account.js.map +1 -1
- package/amount.d.ts +20 -0
- package/amount.d.ts.map +1 -0
- package/amount.js +36 -0
- package/amount.js.map +1 -0
- package/app-client.d.ts +14 -0
- package/app-client.d.ts.map +1 -0
- package/app-client.js +19 -0
- package/app-client.js.map +1 -0
- package/app-deploy.d.ts +95 -0
- package/app-deploy.d.ts.map +1 -0
- package/{deploy-app.js → app-deploy.js} +129 -119
- package/app-deploy.js.map +1 -0
- package/app.d.ts +112 -148
- package/app.d.ts.map +1 -1
- package/app.js +460 -143
- package/app.js.map +1 -1
- package/index.d.ts +6 -4
- package/index.d.ts.map +1 -1
- package/index.js +7 -4
- package/index.js.map +1 -1
- package/indexer-lookup.d.ts +11 -4
- package/indexer-lookup.d.ts.map +1 -1
- package/indexer-lookup.js +19 -9
- package/indexer-lookup.js.map +1 -1
- package/localnet.d.ts +10 -10
- package/localnet.d.ts.map +1 -1
- package/localnet.js +16 -16
- package/localnet.js.map +1 -1
- package/network-client.d.ts +15 -24
- package/network-client.d.ts.map +1 -1
- package/network-client.js +16 -16
- package/network-client.js.map +1 -1
- package/package.json +2 -2
- package/testing/account.d.ts +14 -0
- package/testing/account.d.ts.map +1 -0
- package/testing/account.js +31 -0
- package/testing/account.js.map +1 -0
- package/testing/fixtures/algokit-log-capture-fixture.d.ts +19 -0
- package/testing/fixtures/algokit-log-capture-fixture.d.ts.map +1 -0
- package/testing/fixtures/algokit-log-capture-fixture.js +43 -0
- package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -0
- package/testing/fixtures/algorand-fixture.d.ts +24 -0
- package/testing/fixtures/algorand-fixture.d.ts.map +1 -0
- package/testing/fixtures/algorand-fixture.js +60 -0
- package/testing/fixtures/algorand-fixture.js.map +1 -0
- package/testing/fixtures/index.d.ts +3 -0
- package/testing/fixtures/index.d.ts.map +1 -0
- package/testing/fixtures/index.js +19 -0
- package/testing/fixtures/index.js.map +1 -0
- package/testing/index.d.ts +6 -0
- package/testing/index.d.ts.map +1 -0
- package/testing/index.js +22 -0
- package/testing/index.js.map +1 -0
- package/testing/indexer.d.ts +12 -0
- package/testing/indexer.d.ts.map +1 -0
- package/testing/indexer.js +40 -0
- package/testing/indexer.js.map +1 -0
- package/testing/test-logger.d.ts +41 -0
- package/testing/test-logger.d.ts.map +1 -0
- package/testing/test-logger.js +71 -0
- package/testing/test-logger.js.map +1 -0
- package/testing/transaction-logger.d.ts +29 -0
- package/testing/transaction-logger.d.ts.map +1 -0
- package/testing/transaction-logger.js +71 -0
- package/testing/transaction-logger.js.map +1 -0
- package/transaction.d.ts +55 -91
- package/transaction.d.ts.map +1 -1
- package/transaction.js +213 -155
- package/transaction.js.map +1 -1
- package/transfer.d.ts +14 -16
- package/transfer.d.ts.map +1 -1
- package/transfer.js +38 -4
- package/transfer.js.map +1 -1
- package/types/account.d.ts +55 -0
- package/types/account.d.ts.map +1 -0
- package/types/account.js +91 -0
- package/types/account.js.map +1 -0
- package/types/algo-http-client-with-retry.d.ts.map +1 -0
- package/{algo-http-client-with-retry.js → types/algo-http-client-with-retry.js} +3 -3
- package/types/algo-http-client-with-retry.js.map +1 -0
- package/types/algod.d.ts +28 -15
- package/types/algod.d.ts.map +1 -1
- package/{algo-amount.d.ts → types/amount.d.ts} +9 -3
- package/types/amount.d.ts.map +1 -0
- package/{algo-amount.js → types/amount.js} +13 -3
- package/types/amount.js.map +1 -0
- package/types/app-client.d.ts +282 -0
- package/types/app-client.d.ts.map +1 -0
- package/types/app-client.js +529 -0
- package/types/app-client.js.map +1 -0
- package/types/app-spec.d.ts +141 -0
- package/types/app-spec.d.ts.map +1 -0
- package/types/{appspec.js → app-spec.js} +5 -7
- package/types/app-spec.js.map +1 -0
- package/types/app.d.ts +285 -0
- package/types/app.d.ts.map +1 -0
- package/types/app.js +32 -0
- package/types/app.js.map +1 -0
- package/types/config.d.ts +32 -0
- package/types/config.d.ts.map +1 -0
- package/types/config.js +53 -0
- package/types/config.js.map +1 -0
- package/types/indexer.d.ts +368 -58
- package/types/indexer.d.ts.map +1 -1
- package/types/indexer.js +9 -0
- package/types/indexer.js.map +1 -1
- package/{config.d.ts → types/logging.d.ts} +2 -16
- package/types/logging.d.ts.map +1 -0
- package/{config.js → types/logging.js} +5 -24
- package/types/logging.js.map +1 -0
- package/types/logic-error.d.ts +37 -0
- package/types/logic-error.d.ts.map +1 -0
- package/types/logic-error.js +50 -0
- package/types/logic-error.js.map +1 -0
- package/types/network-client.d.ts +11 -0
- package/types/network-client.d.ts.map +1 -0
- package/types/network-client.js +3 -0
- package/types/network-client.js.map +1 -0
- package/types/testing.d.ts +89 -0
- package/types/testing.d.ts.map +1 -0
- package/types/testing.js +3 -0
- package/types/testing.js.map +1 -0
- package/types/transaction.d.ts +112 -0
- package/types/transaction.d.ts.map +1 -0
- package/types/transaction.js +3 -0
- package/types/transaction.js.map +1 -0
- package/types/transfer.d.ts +32 -0
- package/types/transfer.d.ts.map +1 -0
- package/types/transfer.js +3 -0
- package/types/transfer.js.map +1 -0
- package/types/urlTokenBaseHTTPClient.d.ts.map +1 -0
- package/types/urlTokenBaseHTTPClient.js.map +1 -0
- package/algo-amount.d.ts.map +0 -1
- package/algo-amount.js.map +0 -1
- package/algo-http-client-with-retry.d.ts.map +0 -1
- package/algo-http-client-with-retry.js.map +0 -1
- package/application-client.d.ts +0 -113
- package/application-client.d.ts.map +0 -1
- package/application-client.js +0 -258
- package/application-client.js.map +0 -1
- package/config.d.ts.map +0 -1
- package/config.js.map +0 -1
- package/deploy-app.d.ts +0 -164
- package/deploy-app.d.ts.map +0 -1
- package/deploy-app.js.map +0 -1
- package/types/appspec.d.ts +0 -78
- package/types/appspec.d.ts.map +0 -1
- package/types/appspec.js.map +0 -1
- package/urlTokenBaseHTTPClient.d.ts.map +0 -1
- package/urlTokenBaseHTTPClient.js.map +0 -1
- /package/{algo-http-client-with-retry.d.ts → types/algo-http-client-with-retry.d.ts} +0 -0
- /package/{urlTokenBaseHTTPClient.d.ts → types/urlTokenBaseHTTPClient.d.ts} +0 -0
- /package/{urlTokenBaseHTTPClient.js → types/urlTokenBaseHTTPClient.js} +0 -0
package/app.d.ts
CHANGED
|
@@ -1,157 +1,21 @@
|
|
|
1
|
-
import algosdk, {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export declare const APP_PAGE_MAX_SIZE = 2048;
|
|
6
|
-
/** First 4 bytes of SHA-512/256 hash of "return" */
|
|
7
|
-
export declare const ABI_RETURN_PREFIX: Uint8Array;
|
|
8
|
-
/** Information about an Algorand app */
|
|
9
|
-
export interface AppReference {
|
|
10
|
-
/** The index of the app */
|
|
11
|
-
appIndex: number;
|
|
12
|
-
/** The Algorand address of the account associated with the app */
|
|
13
|
-
appAddress: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A grouping of the app ID and name of the box in an Uint8Array
|
|
17
|
-
*/
|
|
18
|
-
export interface BoxReference {
|
|
19
|
-
/**
|
|
20
|
-
* A unique application index
|
|
21
|
-
*/
|
|
22
|
-
appIndex: number;
|
|
23
|
-
/**
|
|
24
|
-
* Name of box to reference
|
|
25
|
-
*/
|
|
26
|
-
name: Uint8Array | string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* App call args with raw values (minus some processing like encoding strings as binary)
|
|
30
|
-
*/
|
|
31
|
-
export interface RawAppCallArgs {
|
|
32
|
-
/** The address of any accounts to load in */
|
|
33
|
-
accounts?: (string | Address)[];
|
|
34
|
-
/** Any application arguments to pass through */
|
|
35
|
-
appArgs?: (Uint8Array | string)[];
|
|
36
|
-
/** Any box references to load */
|
|
37
|
-
boxes?: BoxReference[];
|
|
38
|
-
/** IDs of any apps to load into the foreignApps array */
|
|
39
|
-
apps?: number[];
|
|
40
|
-
/** IDs of any assets to load into the foreignAssets array */
|
|
41
|
-
assets?: number[];
|
|
42
|
-
/** The optional lease for the transaction */
|
|
43
|
-
lease?: string | Uint8Array;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* App call args for an ABI call
|
|
47
|
-
*/
|
|
48
|
-
export interface ABIAppCallArgs {
|
|
49
|
-
/** The ABI method to call, either:
|
|
50
|
-
* * {method_name e.g. `hello`}; or
|
|
51
|
-
* * {method_signature e.g. `hello(string)string`} */
|
|
52
|
-
method: ABIMethodParams | ABIMethod;
|
|
53
|
-
/** The ABI args to pass in */
|
|
54
|
-
args: ABIArgument[];
|
|
55
|
-
/** The optional lease for the transaction */
|
|
56
|
-
lease?: string | Uint8Array;
|
|
57
|
-
}
|
|
58
|
-
/** Arguments to pass to an app call either:
|
|
59
|
-
* * The raw app call values to pass through into the transaction (after processing); or
|
|
60
|
-
* * An ABI method definition (method and args)
|
|
61
|
-
**/
|
|
62
|
-
export type AppCallArgs = RawAppCallArgs | ABIAppCallArgs;
|
|
63
|
-
/** Base interface for common data passed to an app create or update. */
|
|
64
|
-
interface CreateOrUpdateAppParams extends SendTransactionParams {
|
|
65
|
-
/** The account (with private key loaded) that will send the µALGOs */
|
|
66
|
-
from: SendTransactionFrom;
|
|
67
|
-
/** The approval program as raw teal (string) or compiled teal, base 64 encoded as a byte array (Uint8Array) */
|
|
68
|
-
approvalProgram: Uint8Array | string;
|
|
69
|
-
/** The clear state program as raw teal (string) or compiled teal, base 64 encoded as a byte array (Uint8Array) */
|
|
70
|
-
clearStateProgram: Uint8Array | string;
|
|
71
|
-
/** Optional transaction parameters */
|
|
72
|
-
transactionParams?: SuggestedParams;
|
|
73
|
-
/** The (optional) transaction note */
|
|
74
|
-
note?: TransactionNote;
|
|
75
|
-
/** The arguments passed in to the app call */
|
|
76
|
-
args?: AppCallArgs;
|
|
77
|
-
}
|
|
78
|
-
/** Parameters that are passed in when creating an app. */
|
|
79
|
-
export interface CreateAppParams extends CreateOrUpdateAppParams {
|
|
80
|
-
/** The storage schema to request for the created app */
|
|
81
|
-
schema: AppStorageSchema;
|
|
82
|
-
}
|
|
83
|
-
/** Parameters that are passed in when updating an app. */
|
|
84
|
-
export interface UpdateAppParams extends CreateOrUpdateAppParams {
|
|
85
|
-
/** The index of the app to update */
|
|
86
|
-
appIndex: number;
|
|
87
|
-
}
|
|
88
|
-
export interface AppCallParams extends SendTransactionParams {
|
|
89
|
-
/** The index of the app to call */
|
|
90
|
-
appIndex: number;
|
|
91
|
-
/** The type of call, everything except create (@see {createApp} ) and update (@see {updateApp} ) */
|
|
92
|
-
callType: 'optin' | 'closeout' | 'clearstate' | 'delete' | 'normal';
|
|
93
|
-
/** The account to make the call from */
|
|
94
|
-
from: SendTransactionFrom;
|
|
95
|
-
/** Optional transaction parameters */
|
|
96
|
-
transactionParams?: SuggestedParams;
|
|
97
|
-
/** The (optional) transaction note */
|
|
98
|
-
note?: TransactionNote;
|
|
99
|
-
/** The arguments passed in to the app call */
|
|
100
|
-
args?: AppCallArgs;
|
|
101
|
-
}
|
|
102
|
-
/** Parameters representing the storage schema of an app. */
|
|
103
|
-
export interface AppStorageSchema {
|
|
104
|
-
/** Restricts number of ints in per-user local state */
|
|
105
|
-
localInts: number;
|
|
106
|
-
/** Restricts number of byte slices in per-user local state */
|
|
107
|
-
localByteSlices: number;
|
|
108
|
-
/** Restricts number of ints in global state */
|
|
109
|
-
globalInts: number;
|
|
110
|
-
/** Restricts number of byte slices in global state */
|
|
111
|
-
globalByteSlices: number;
|
|
112
|
-
/** Any extra pages that are needed for the smart contract; if left blank then the right number of pages will be calculated based on the teal code size */
|
|
113
|
-
extraPages?: number;
|
|
114
|
-
}
|
|
115
|
-
/** Information about a compiled teal program */
|
|
116
|
-
export interface CompiledTeal {
|
|
117
|
-
/** Original TEAL code */
|
|
118
|
-
teal: string;
|
|
119
|
-
/** The compiled code */
|
|
120
|
-
compiled: string;
|
|
121
|
-
/** The has returned by the compiler */
|
|
122
|
-
compiledHash: string;
|
|
123
|
-
/** The base64 encoded code as a byte array */
|
|
124
|
-
compiledBase64ToBytes: Uint8Array;
|
|
125
|
-
}
|
|
126
|
-
/** Result from calling an app */
|
|
127
|
-
export interface AppCallTransactionResult extends SendTransactionResult {
|
|
128
|
-
/** If an ABI method was called the processed return value */
|
|
129
|
-
return?: ABIReturn;
|
|
130
|
-
}
|
|
131
|
-
/** The return value of an ABI method call */
|
|
132
|
-
export type ABIReturn = {
|
|
133
|
-
rawReturnValue: Uint8Array;
|
|
134
|
-
returnValue: ABIValue;
|
|
135
|
-
decodeError: undefined;
|
|
136
|
-
} | {
|
|
137
|
-
rawReturnValue: undefined;
|
|
138
|
-
returnValue: undefined;
|
|
139
|
-
decodeError: Error;
|
|
140
|
-
};
|
|
1
|
+
import algosdk, { ABIMethod, ABIMethodParams, ABIValue, Algodv2 } from 'algosdk';
|
|
2
|
+
import { ApplicationResponse, EvalDelta, PendingTransactionResponse, TealValue } from './types/algod';
|
|
3
|
+
import { ABIAppCallArgs, ABIReturn, AppCallArgs, AppCallParams, AppCallTransactionResult, AppCompilationResult, AppReference, AppState, BoxIdentifier, BoxName, BoxReference, BoxValueRequestParams, BoxValuesRequestParams, CompiledTeal, CreateAppParams, RawAppCallArgs, UpdateAppParams } from './types/app';
|
|
4
|
+
import { SendTransactionFrom } from './types/transaction';
|
|
141
5
|
/**
|
|
142
6
|
* Creates a smart contract app, returns the details of the created app.
|
|
143
7
|
* @param create The parameters to create the app with
|
|
144
8
|
* @param algod An algod client
|
|
145
9
|
* @returns The details of the created app, or the transaction to create it if `skipSending`
|
|
146
10
|
*/
|
|
147
|
-
export declare function createApp(create: CreateAppParams, algod: Algodv2): Promise<AppCallTransactionResult & AppReference>;
|
|
11
|
+
export declare function createApp(create: CreateAppParams, algod: Algodv2): Promise<Partial<AppCompilationResult> & AppCallTransactionResult & AppReference>;
|
|
148
12
|
/**
|
|
149
13
|
* Updates a smart contract app.
|
|
150
14
|
* @param update The parameters to update the app with
|
|
151
15
|
* @param algod An algod client
|
|
152
16
|
* @returns The transaction
|
|
153
17
|
*/
|
|
154
|
-
export declare function updateApp(update: UpdateAppParams, algod: Algodv2): Promise<AppCallTransactionResult>;
|
|
18
|
+
export declare function updateApp(update: UpdateAppParams, algod: Algodv2): Promise<Partial<AppCompilationResult> & AppCallTransactionResult>;
|
|
155
19
|
/**
|
|
156
20
|
* Issues a call to a given app.
|
|
157
21
|
* @param call The call details.
|
|
@@ -159,9 +23,81 @@ export declare function updateApp(update: UpdateAppParams, algod: Algodv2): Prom
|
|
|
159
23
|
* @returns The result of the call
|
|
160
24
|
*/
|
|
161
25
|
export declare function callApp(call: AppCallParams, algod: Algodv2): Promise<AppCallTransactionResult>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns any ABI return values for the given app call arguments and transaction confirmation.
|
|
28
|
+
* @param args The arguments that were used for the call
|
|
29
|
+
* @param confirmation The transaction confirmation from algod
|
|
30
|
+
* @returns The return value for the method call
|
|
31
|
+
*/
|
|
162
32
|
export declare function getABIReturn(args?: AppCallArgs, confirmation?: PendingTransactionResponse): ABIReturn | undefined;
|
|
163
|
-
/**
|
|
164
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Returns the current global state values for the given app ID
|
|
35
|
+
* @param appId The ID of the app return global state for
|
|
36
|
+
* @param algod An algod client instance
|
|
37
|
+
* @returns The current global state
|
|
38
|
+
*/
|
|
39
|
+
export declare function getAppGlobalState(appId: number, algod: Algodv2): Promise<AppState>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the current global state values for the given app ID and account
|
|
42
|
+
* @param appId The ID of the app return global state for
|
|
43
|
+
* @param account Either the string address of an account or an account object for the account to get local state for the given app
|
|
44
|
+
* @param algod An algod client instance
|
|
45
|
+
* @returns The current local state for the given (app, account) combination
|
|
46
|
+
*/
|
|
47
|
+
export declare function getAppLocalState(appId: number, account: string | SendTransactionFrom, algod: Algodv2): Promise<AppState>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the names of the boxes for the given app.
|
|
50
|
+
* @param appId The ID of the app return box names for
|
|
51
|
+
* @param algod An algod client instance
|
|
52
|
+
* @returns The current box names
|
|
53
|
+
*/
|
|
54
|
+
export declare function getAppBoxNames(appId: number, algod: Algodv2): Promise<BoxName[]>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns the value of the given box name for the given app.
|
|
57
|
+
* @param appId The ID of the app return box names for
|
|
58
|
+
* @param boxName The name of the box to return either as a string, binary array or `BoxName`
|
|
59
|
+
* @param algod An algod client instance
|
|
60
|
+
* @returns The current box value as a byte array
|
|
61
|
+
*/
|
|
62
|
+
export declare function getAppBoxValue(appId: number, boxName: string | Uint8Array | BoxName, algod: Algodv2): Promise<Uint8Array>;
|
|
63
|
+
/**
|
|
64
|
+
* Returns the value of the given box names for the given app.
|
|
65
|
+
* @param appId The ID of the app return box names for
|
|
66
|
+
* @param boxNames The names of the boxes to return either as a string, binary array or `BoxName`
|
|
67
|
+
* @param algod An algod client instance
|
|
68
|
+
* @returns The current box values as a byte array in the same order as the passed in box names
|
|
69
|
+
*/
|
|
70
|
+
export declare function getAppBoxValues(appId: number, boxNames: (string | Uint8Array | BoxName)[], algod: Algodv2): Promise<Uint8Array[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the value of the given box name for the given app decoded based on the given ABI type.
|
|
73
|
+
* @param request The parameters for the box value request
|
|
74
|
+
* @param algod An algod client instance
|
|
75
|
+
* @returns The current box value as an ABI value
|
|
76
|
+
*/
|
|
77
|
+
export declare function getAppBoxValueFromABIType(request: BoxValueRequestParams, algod: Algodv2): Promise<ABIValue>;
|
|
78
|
+
/**
|
|
79
|
+
* Returns the value of the given box names for the given app decoded based on the given ABI type.
|
|
80
|
+
* @param request The parameters for the box value request
|
|
81
|
+
* @param algod An algod client instance
|
|
82
|
+
* @returns The current box values as an ABI value in the same order as the passed in box names
|
|
83
|
+
*/
|
|
84
|
+
export declare function getAppBoxValuesFromABIType(request: BoxValuesRequestParams, algod: Algodv2): Promise<ABIValue[]>;
|
|
85
|
+
/**
|
|
86
|
+
* Converts an array of global/local state values from the algod api to a more friendly
|
|
87
|
+
* generic object keyed by the UTF-8 value of the key.
|
|
88
|
+
* @param state A `global-state`, `local-state`, `global-state-deltas` or `local-state-deltas`
|
|
89
|
+
* @returns An object keyeed by the UTF-8 representation of the key with various parsings of the values
|
|
90
|
+
*/
|
|
91
|
+
export declare function decodeAppState(state: {
|
|
92
|
+
key: string;
|
|
93
|
+
value: TealValue | EvalDelta;
|
|
94
|
+
}[]): AppState;
|
|
95
|
+
/**
|
|
96
|
+
* Returns the app args ready to load onto an app `Transaction` object
|
|
97
|
+
* @param args The app call args
|
|
98
|
+
* @returns The args ready to load into a `Transaction`
|
|
99
|
+
*/
|
|
100
|
+
export declare function getAppArgsForTransaction(args?: RawAppCallArgs): {
|
|
165
101
|
accounts: string[] | undefined;
|
|
166
102
|
appArgs: Uint8Array[] | undefined;
|
|
167
103
|
boxes: algosdk.BoxReference[] | undefined;
|
|
@@ -169,21 +105,49 @@ export declare function getAppArgsForTransaction(args?: AppCallArgs): {
|
|
|
169
105
|
foreignAssets: number[] | undefined;
|
|
170
106
|
lease: Uint8Array | undefined;
|
|
171
107
|
} | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Returns the app args ready to load onto an ABI method call in `AtomicTransactionComposer`
|
|
110
|
+
* @param args The ABI app call args
|
|
111
|
+
* @param from The transaction signer
|
|
112
|
+
* @returns The parameters ready to pass into `addMethodCall` within AtomicTransactionComposer
|
|
113
|
+
*/
|
|
114
|
+
export declare function getAppArgsForABICall(args: ABIAppCallArgs, from: SendTransactionFrom): Promise<{
|
|
115
|
+
method: algosdk.ABIMethod;
|
|
116
|
+
sender: string;
|
|
117
|
+
signer: algosdk.TransactionSigner;
|
|
118
|
+
boxes: algosdk.BoxReference[] | undefined;
|
|
119
|
+
lease: Uint8Array | undefined;
|
|
120
|
+
methodArgs: (string | number | bigint | boolean | Uint8Array | algosdk.ABIValue[] | algosdk.TransactionWithSigner)[];
|
|
121
|
+
rekeyTo: undefined;
|
|
122
|
+
}>;
|
|
123
|
+
/**
|
|
124
|
+
* Returns a `algosdk.BoxReference` given a `BoxIdentifier` or `BoxReference`.
|
|
125
|
+
* @param box The box to return a reference for
|
|
126
|
+
* @returns The box reference ready to pass into a `Transaction`
|
|
127
|
+
*/
|
|
128
|
+
export declare function getBoxReference(box: BoxIdentifier | BoxReference | algosdk.BoxReference): algosdk.BoxReference;
|
|
172
129
|
/**
|
|
173
130
|
* Gets the current data for the given app from algod.
|
|
174
131
|
*
|
|
175
|
-
* @param
|
|
132
|
+
* @param appId The id of the app
|
|
176
133
|
* @param algod An algod client
|
|
177
134
|
* @returns The data about the app
|
|
178
135
|
*/
|
|
179
|
-
export declare function
|
|
136
|
+
export declare function getAppById(appId: number, algod: Algodv2): Promise<ApplicationResponse>;
|
|
137
|
+
/** @deprecated Use `algokit.getAppById` instead. */
|
|
138
|
+
export declare const getAppByIndex: typeof getAppById;
|
|
180
139
|
/**
|
|
181
|
-
* Compiles the given TEAL using algod and returns the result.
|
|
140
|
+
* Compiles the given TEAL using algod and returns the result, including source map.
|
|
182
141
|
*
|
|
183
142
|
* @param algod An algod client
|
|
184
143
|
* @param tealCode The TEAL code
|
|
185
144
|
* @returns The information about the compiled file
|
|
186
145
|
*/
|
|
187
146
|
export declare function compileTeal(tealCode: string, algod: Algodv2): Promise<CompiledTeal>;
|
|
188
|
-
|
|
147
|
+
/**
|
|
148
|
+
* Returns the encoded ABI spec for a given ABI Method
|
|
149
|
+
* @param method The method to return a signature for
|
|
150
|
+
* @returns The encoded ABI method spec e.g. `method_name(uint64,string)string`
|
|
151
|
+
*/
|
|
152
|
+
export declare const getABIMethodSignature: (method: ABIMethodParams | ABIMethod) => string;
|
|
189
153
|
//# sourceMappingURL=app.d.ts.map
|
package/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[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