@algorandfoundation/algokit-utils 1.0.0-beta.7 → 1.0.0-beta.8
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/{dist/index.js → index.js} +1 -0
- package/package.json +3 -94
- package/LICENSE +0 -21
- package/README.md +0 -31
- package/dist/account.d.ts +0 -87
- package/dist/account.d.ts.map +0 -1
- package/dist/account.js +0 -144
- package/dist/account.js.map +0 -1
- package/dist/algo-amount.d.ts +0 -18
- package/dist/algo-amount.d.ts.map +0 -1
- package/dist/algo-amount.js +0 -31
- package/dist/algo-amount.js.map +0 -1
- package/dist/algo-http-client-with-retry.d.ts +0 -14
- package/dist/algo-http-client-with-retry.d.ts.map +0 -1
- package/dist/algo-http-client-with-retry.js +0 -62
- package/dist/algo-http-client-with-retry.js.map +0 -1
- package/dist/app.d.ts +0 -189
- package/dist/app.d.ts.map +0 -1
- package/dist/app.js +0 -265
- package/dist/app.js.map +0 -1
- package/dist/application-client.d.ts +0 -108
- package/dist/application-client.d.ts.map +0 -1
- package/dist/application-client.js +0 -254
- package/dist/application-client.js.map +0 -1
- package/dist/config.d.ts +0 -27
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -46
- package/dist/config.js.map +0 -1
- package/dist/deploy-app.d.ts +0 -159
- package/dist/deploy-app.d.ts.map +0 -1
- package/dist/deploy-app.js +0 -416
- package/dist/deploy-app.js.map +0 -1
- package/dist/index.d.ts +0 -11
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/indexer-lookup.d.ts +0 -31
- package/dist/indexer-lookup.d.ts.map +0 -1
- package/dist/indexer-lookup.js +0 -96
- package/dist/indexer-lookup.js.map +0 -1
- package/dist/localnet.d.ts +0 -54
- package/dist/localnet.d.ts.map +0 -1
- package/dist/localnet.js +0 -121
- package/dist/localnet.js.map +0 -1
- package/dist/network-client.d.ts +0 -102
- package/dist/network-client.d.ts.map +0 -1
- package/dist/network-client.js +0 -182
- package/dist/network-client.js.map +0 -1
- package/dist/package.json +0 -20
- package/dist/transaction.d.ts +0 -157
- package/dist/transaction.d.ts.map +0 -1
- package/dist/transaction.js +0 -306
- package/dist/transaction.js.map +0 -1
- package/dist/transfer.d.ts +0 -24
- package/dist/transfer.d.ts.map +0 -1
- package/dist/transfer.js +0 -33
- package/dist/transfer.js.map +0 -1
- package/dist/types/algod.d.ts +0 -124
- package/dist/types/algod.d.ts.map +0 -1
- package/dist/types/algod.js +0 -3
- package/dist/types/algod.js.map +0 -1
- package/dist/types/appspec.d.ts +0 -79
- package/dist/types/appspec.d.ts.map +0 -1
- package/dist/types/appspec.js +0 -15
- package/dist/types/appspec.js.map +0 -1
- package/dist/types/indexer.d.ts +0 -314
- package/dist/types/indexer.d.ts.map +0 -1
- package/dist/types/indexer.js +0 -25
- package/dist/types/indexer.js.map +0 -1
- package/dist/urlTokenBaseHTTPClient.d.ts +0 -41
- package/dist/urlTokenBaseHTTPClient.d.ts.map +0 -1
- package/dist/urlTokenBaseHTTPClient.js +0 -151
- package/dist/urlTokenBaseHTTPClient.js.map +0 -1
package/dist/types/algod.d.ts
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { EncodedSignedTransaction } from 'algosdk';
|
|
2
|
-
/** The response from the pending transaction API @see https://developer.algorand.org/docs/rest-apis/algod/v2/#get-v2transactionspendingtxid */
|
|
3
|
-
export interface PendingTransactionResponse {
|
|
4
|
-
/**
|
|
5
|
-
* The application index if the transaction was found and it created an
|
|
6
|
-
* application.
|
|
7
|
-
*/
|
|
8
|
-
'application-index'?: number;
|
|
9
|
-
/**
|
|
10
|
-
* The number of the asset's unit that were transferred to the close-to address.
|
|
11
|
-
*/
|
|
12
|
-
'asset-closing-amount'?: number;
|
|
13
|
-
/**
|
|
14
|
-
* The asset index if the transaction was found and it created an asset.
|
|
15
|
-
*/
|
|
16
|
-
'asset-index'?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Rewards in microalgos applied to the close remainder to account.
|
|
19
|
-
*/
|
|
20
|
-
'close-rewards'?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Closing amount for the transaction.
|
|
23
|
-
*/
|
|
24
|
-
'closing-amount'?: number;
|
|
25
|
-
/**
|
|
26
|
-
* The round where this transaction was confirmed, if present.
|
|
27
|
-
*/
|
|
28
|
-
'confirmed-round'?: number;
|
|
29
|
-
/**
|
|
30
|
-
* (gd) Global state key/value changes for the application being executed by this
|
|
31
|
-
* transaction.
|
|
32
|
-
*/
|
|
33
|
-
'global-state-delta'?: Record<string, EvalDelta>[];
|
|
34
|
-
/**
|
|
35
|
-
* Inner transactions produced by application execution.
|
|
36
|
-
*/
|
|
37
|
-
'inner-txns'?: PendingTransactionResponse[];
|
|
38
|
-
/**
|
|
39
|
-
* (ld) Local state key/value changes for the application being executed by this
|
|
40
|
-
* transaction.
|
|
41
|
-
*/
|
|
42
|
-
'local-state-delta'?: Record<string, EvalDelta>[];
|
|
43
|
-
/**
|
|
44
|
-
* (lg) Logs for the application being executed by this transaction.
|
|
45
|
-
*/
|
|
46
|
-
logs?: Uint8Array[];
|
|
47
|
-
/** Indicates that the transaction was kicked out of this node's transaction pool (and specifies why that happened).
|
|
48
|
-
* An empty string indicates the transaction wasn't kicked out of this node's txpool due to an error. */
|
|
49
|
-
'pool-error': string;
|
|
50
|
-
/**
|
|
51
|
-
* Rewards in µALGOs applied to the receiver account.
|
|
52
|
-
*/
|
|
53
|
-
'receiver-rewards'?: number;
|
|
54
|
-
/**
|
|
55
|
-
* Rewards in µALGOs applied to the sender account.
|
|
56
|
-
*/
|
|
57
|
-
'sender-rewards'?: number;
|
|
58
|
-
/**
|
|
59
|
-
* The raw signed transaction.
|
|
60
|
-
*/
|
|
61
|
-
txn: EncodedSignedTransaction;
|
|
62
|
-
}
|
|
63
|
-
/** Represents a TEAL value delta @see https://developer.algorand.org/docs/rest-apis/algod/v2/#evaldelta */
|
|
64
|
-
interface EvalDelta {
|
|
65
|
-
action: number;
|
|
66
|
-
bytes: string;
|
|
67
|
-
uint: number;
|
|
68
|
-
}
|
|
69
|
-
/** The response from the application API @see https://developer.algorand.org/docs/rest-apis/algod/v2/#get-v2applicationsapplication-id */
|
|
70
|
-
export interface ApplicationResponse {
|
|
71
|
-
id: number;
|
|
72
|
-
params: ApplicationParams;
|
|
73
|
-
}
|
|
74
|
-
/** Stores the global information associated with an application @see https://developer.algorand.org/docs/rest-apis/algod/v2/#applicationparams */
|
|
75
|
-
interface ApplicationParams {
|
|
76
|
-
/** Address of the account that created the app */
|
|
77
|
-
creator: string;
|
|
78
|
-
/** Base64 encoded TEAL approval program */
|
|
79
|
-
'approval-program': string;
|
|
80
|
-
/** Base64 encoded TEAL clear state program */
|
|
81
|
-
'clear-state-program': string;
|
|
82
|
-
/** The amount of extra program pages available to this app. */
|
|
83
|
-
'extra-program-pages'?: number;
|
|
84
|
-
/** Current global state values */
|
|
85
|
-
'global-state'?: {
|
|
86
|
-
key: string;
|
|
87
|
-
value: TealValue;
|
|
88
|
-
}[];
|
|
89
|
-
/** Global state schema */
|
|
90
|
-
'global-state-schema'?: ApplicationStateSchema;
|
|
91
|
-
/** Local state schema */
|
|
92
|
-
'local-state-schema'?: ApplicationStateSchema;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Represents a TEAL value @see https://developer.algorand.org/docs/rest-apis/algod/v2/#tealvalue
|
|
96
|
-
*/
|
|
97
|
-
type TealValue = {
|
|
98
|
-
/**
|
|
99
|
-
* (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
|
|
100
|
-
*/
|
|
101
|
-
type: 1;
|
|
102
|
-
/**
|
|
103
|
-
* (tb) bytes value.
|
|
104
|
-
*/
|
|
105
|
-
bytes: string;
|
|
106
|
-
} | {
|
|
107
|
-
/**
|
|
108
|
-
* (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
|
|
109
|
-
*/
|
|
110
|
-
type: 2;
|
|
111
|
-
/**
|
|
112
|
-
* (ui) uint value.
|
|
113
|
-
*/
|
|
114
|
-
uint: number | bigint;
|
|
115
|
-
};
|
|
116
|
-
/** Specifies maximums on the number of each type that may be stored @see https://developer.algorand.org/docs/rest-apis/algod/v2/#applicationstateschema */
|
|
117
|
-
export interface ApplicationStateSchema {
|
|
118
|
-
/** [nbs] num of byte slices */
|
|
119
|
-
'num-byte-slice': number;
|
|
120
|
-
/** [nui] num of uints */
|
|
121
|
-
'num-uint': number;
|
|
122
|
-
}
|
|
123
|
-
export {};
|
|
124
|
-
//# sourceMappingURL=algod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"algod.d.ts","sourceRoot":"","sources":["../../src/types/algod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAElD,+IAA+I;AAC/I,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAA;IAClD;;OAEG;IACH,YAAY,CAAC,EAAE,0BAA0B,EAAE,CAAA;IAC3C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAA;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,EAAE,CAAA;IACnB;4GACwG;IACxG,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,gBAAg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
|
-
{"version":3,"file":"algod.js","sourceRoot":"","sources":["../../src/types/algod.ts"],"names":[],"mappings":""}
|
package/dist/types/appspec.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type algosdk from 'algosdk';
|
|
2
|
-
import { ABIMethod, ABIMethodParams } from 'algosdk';
|
|
3
|
-
export interface AppSpec {
|
|
4
|
-
hints: HintSpec;
|
|
5
|
-
schema: SchemaSpec;
|
|
6
|
-
source: AppSources;
|
|
7
|
-
contract: algosdk.ABIContract;
|
|
8
|
-
state: StateSchemaSpec;
|
|
9
|
-
bare_call_config: {
|
|
10
|
-
no_op?: CallConfigValue;
|
|
11
|
-
opt_in?: CallConfigValue;
|
|
12
|
-
close_out?: CallConfigValue;
|
|
13
|
-
clear_state?: CallConfigValue;
|
|
14
|
-
update_application?: CallConfigValue;
|
|
15
|
-
delete_application?: CallConfigValue;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export type HintSpec = Record<string, Hint>;
|
|
19
|
-
export interface AppSources {
|
|
20
|
-
approval: string;
|
|
21
|
-
clear: string;
|
|
22
|
-
}
|
|
23
|
-
export type CallConfigValue = 'NEVER' | 'CALL' | 'CREATE' | 'ALL';
|
|
24
|
-
export interface Hint {
|
|
25
|
-
structs: Record<string, Struct>;
|
|
26
|
-
readonly: boolean;
|
|
27
|
-
default_arguments: Record<string, DefaultArgument>;
|
|
28
|
-
call_config: {
|
|
29
|
-
no_op?: CallConfigValue;
|
|
30
|
-
opt_in?: CallConfigValue;
|
|
31
|
-
close_out?: CallConfigValue;
|
|
32
|
-
clear_state?: CallConfigValue;
|
|
33
|
-
update_application?: CallConfigValue;
|
|
34
|
-
delete_application?: CallConfigValue;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
type StructElement = [string, string];
|
|
38
|
-
export interface Struct {
|
|
39
|
-
name: string;
|
|
40
|
-
elements: StructElement[];
|
|
41
|
-
}
|
|
42
|
-
export interface DefaultArgument {
|
|
43
|
-
source: string;
|
|
44
|
-
data: string | bigint | number;
|
|
45
|
-
}
|
|
46
|
-
export declare enum AVMType {
|
|
47
|
-
uint64 = 0,
|
|
48
|
-
bytes = 1
|
|
49
|
-
}
|
|
50
|
-
export interface DeclaredSchemaValueSpec {
|
|
51
|
-
type: AVMType;
|
|
52
|
-
key: string;
|
|
53
|
-
desc: string;
|
|
54
|
-
static: boolean;
|
|
55
|
-
}
|
|
56
|
-
export interface ReservedSchemaValueSpec {
|
|
57
|
-
type: AVMType;
|
|
58
|
-
desc: string;
|
|
59
|
-
max_keys: number;
|
|
60
|
-
}
|
|
61
|
-
export interface SchemaSpec {
|
|
62
|
-
local: Schema;
|
|
63
|
-
global: Schema;
|
|
64
|
-
}
|
|
65
|
-
export interface Schema {
|
|
66
|
-
declared: Record<string, DeclaredSchemaValueSpec>;
|
|
67
|
-
reserved: Record<string, ReservedSchemaValueSpec>;
|
|
68
|
-
}
|
|
69
|
-
export interface StateSchemaSpec {
|
|
70
|
-
global: StateSchema;
|
|
71
|
-
local: StateSchema;
|
|
72
|
-
}
|
|
73
|
-
export type StateSchema = {
|
|
74
|
-
num_uints: number;
|
|
75
|
-
num_byte_slices: number;
|
|
76
|
-
};
|
|
77
|
-
export declare const getABISignature: (method: ABIMethodParams | ABIMethod) => string;
|
|
78
|
-
export {};
|
|
79
|
-
//# sourceMappingURL=appspec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appspec.d.ts","sourceRoot":"","sources":["../../src/types/appspec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEpD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,QAAQ,CAAA;IACf,MAAM,EAAE,UAAU,CAAA;IAClB,MAAM,EAAE,UAAU,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAC,WAAW,CAAA;IAC7B,KAAK,EAA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oBAAY,OAAO;IACjB,MAAM,IAAA;IACN,KAAK,IAAA;CACN;AACD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,OAAO,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,MAAM;IACrB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAA;IACjD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAA;CAClD;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,WAAW,CAAA;CACnB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,eAAe,WAAY,eAAe,GAAG,SAAS,WAIlE,CAAA"}
|
package/dist/types/appspec.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getABISignature = exports.AVMType = void 0;
|
|
4
|
-
var AVMType;
|
|
5
|
-
(function (AVMType) {
|
|
6
|
-
AVMType[AVMType["uint64"] = 0] = "uint64";
|
|
7
|
-
AVMType[AVMType["bytes"] = 1] = "bytes";
|
|
8
|
-
})(AVMType = exports.AVMType || (exports.AVMType = {}));
|
|
9
|
-
const getABISignature = (method) => {
|
|
10
|
-
const argSignature = method.args.map((a) => a.type).join(',');
|
|
11
|
-
const returnSignature = method.returns.type;
|
|
12
|
-
return `{${method.name}}(${argSignature})${returnSignature}`;
|
|
13
|
-
};
|
|
14
|
-
exports.getABISignature = getABISignature;
|
|
15
|
-
//# sourceMappingURL=appspec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appspec.js","sourceRoot":"","sources":["../../src/types/appspec.ts"],"names":[],"mappings":";;;AAqDA,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,yCAAM,CAAA;IACN,uCAAK,CAAA;AACP,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;AAkCM,MAAM,eAAe,GAAG,CAAC,MAAmC,EAAE,EAAE;IACrE,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC7D,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;IAC3C,OAAO,IAAI,MAAM,CAAC,IAAI,KAAK,YAAY,IAAI,eAAe,EAAE,CAAA;AAC9D,CAAC,CAAA;AAJY,QAAA,eAAe,mBAI3B"}
|
package/dist/types/indexer.d.ts
DELETED
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import { TransactionType } from 'algosdk';
|
|
2
|
-
import { TealKeyValue } from 'algosdk/dist/types/client/v2/algod/models/types';
|
|
3
|
-
/** https://developer.algorand.org/docs/rest-apis/indexer/#get-v2transactions */
|
|
4
|
-
export interface TransactionSearchResults {
|
|
5
|
-
'current-round': string;
|
|
6
|
-
'next-token': string;
|
|
7
|
-
transactions: TransactionResult[];
|
|
8
|
-
}
|
|
9
|
-
/** https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-id */
|
|
10
|
-
export interface AccountLookupResult {
|
|
11
|
-
'current-round': string;
|
|
12
|
-
account: AccountResult;
|
|
13
|
-
}
|
|
14
|
-
/** https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idassets */
|
|
15
|
-
export interface AssetsLookupResult {
|
|
16
|
-
'current-round': string;
|
|
17
|
-
'next-token': string;
|
|
18
|
-
assets: AssetHolding[];
|
|
19
|
-
}
|
|
20
|
-
/** https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idcreated-assets */
|
|
21
|
-
export interface AssetsCreatedLookupResult {
|
|
22
|
-
'current-round': string;
|
|
23
|
-
'next-token': string;
|
|
24
|
-
assets: AssetResult[];
|
|
25
|
-
}
|
|
26
|
-
/** https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idcreated-applications */
|
|
27
|
-
export interface ApplicationCreatedLookupResult {
|
|
28
|
-
'current-round': string;
|
|
29
|
-
'next-token': string;
|
|
30
|
-
applications: ApplicationResult[];
|
|
31
|
-
}
|
|
32
|
-
/** https://developer.algorand.org/docs/rest-apis/indexer/#get-v2assetsasset-id */
|
|
33
|
-
export interface AssetLookupResult {
|
|
34
|
-
'current-round': string;
|
|
35
|
-
asset: AssetResult;
|
|
36
|
-
}
|
|
37
|
-
/** https://developer.algorand.org/docs/rest-apis/indexer/#get-v2transactionstxid */
|
|
38
|
-
export interface TransactionLookupResult {
|
|
39
|
-
'current-round': number;
|
|
40
|
-
transaction: TransactionResult;
|
|
41
|
-
}
|
|
42
|
-
/** https://developer.algorand.org/docs/rest-apis/indexer/#get-v2applicationsapplication-id */
|
|
43
|
-
export interface ApplicationLookupResult {
|
|
44
|
-
'current-round': string;
|
|
45
|
-
application: ApplicationResult;
|
|
46
|
-
}
|
|
47
|
-
/** Indexer result for a transaction, @see https://developer.algorand.org/docs/rest-apis/indexer/#transaction */
|
|
48
|
-
export interface TransactionResult {
|
|
49
|
-
id: string;
|
|
50
|
-
fee: number;
|
|
51
|
-
sender: string;
|
|
52
|
-
'first-valid': number;
|
|
53
|
-
'last-valid': number;
|
|
54
|
-
'confirmed-round'?: number;
|
|
55
|
-
group?: string;
|
|
56
|
-
note?: string;
|
|
57
|
-
logs?: string[];
|
|
58
|
-
'round-time'?: number;
|
|
59
|
-
'intra-round-offset'?: number;
|
|
60
|
-
signature?: TransactionSignature;
|
|
61
|
-
'application-transaction'?: ApplicationTransactionResult;
|
|
62
|
-
'created-application-index'?: number;
|
|
63
|
-
'asset-config-transaction': AssetConfigTransactionResult;
|
|
64
|
-
'created-asset-index'?: number;
|
|
65
|
-
'asset-freeze-transaction'?: AssetFreezeTransactionResult;
|
|
66
|
-
'asset-transfer-transaction'?: AssetTransferTransactionResult;
|
|
67
|
-
'keyreg-transaction'?: any;
|
|
68
|
-
'payment-transaction'?: PaymentTransactionResult;
|
|
69
|
-
'auth-addr'?: string;
|
|
70
|
-
'closing-amount'?: number;
|
|
71
|
-
'genesis-hash'?: string;
|
|
72
|
-
'genesis-id'?: string;
|
|
73
|
-
'inner-txns'?: TransactionResult[];
|
|
74
|
-
'rekey-to'?: string;
|
|
75
|
-
lease?: string;
|
|
76
|
-
'local-state-delta'?: Record<string, EvalDelta>[];
|
|
77
|
-
'global-state-delta'?: Record<string, EvalDelta>[];
|
|
78
|
-
'receiver-rewards'?: number;
|
|
79
|
-
'sender-rewards'?: number;
|
|
80
|
-
'close-rewards'?: number;
|
|
81
|
-
'tx-type': TransactionType;
|
|
82
|
-
}
|
|
83
|
-
export interface AccountResult {
|
|
84
|
-
address: string;
|
|
85
|
-
amount: number;
|
|
86
|
-
'amount-without-pending-rewards': number;
|
|
87
|
-
'apps-local-state'?: AppLocalState[];
|
|
88
|
-
'apps-total-extra-pages'?: number;
|
|
89
|
-
'apps-total-schema'?: StateSchema;
|
|
90
|
-
'auth-addr'?: string;
|
|
91
|
-
'closed-at-round'?: number;
|
|
92
|
-
'created-at-round'?: number;
|
|
93
|
-
deleted?: boolean;
|
|
94
|
-
participation: any;
|
|
95
|
-
'pending-rewards': number;
|
|
96
|
-
'reward-base': number;
|
|
97
|
-
rewards: number;
|
|
98
|
-
round: number;
|
|
99
|
-
'sig-type': SignatureType;
|
|
100
|
-
status: AccountStatus;
|
|
101
|
-
}
|
|
102
|
-
export interface PaymentTransactionResult {
|
|
103
|
-
amount: number;
|
|
104
|
-
'close-amount'?: number;
|
|
105
|
-
'close-remainder-to'?: string;
|
|
106
|
-
receiver: string;
|
|
107
|
-
}
|
|
108
|
-
export interface ApplicationTransactionResult extends Exclude<{
|
|
109
|
-
creator: string;
|
|
110
|
-
'global-state': TealKeyValue[];
|
|
111
|
-
}, ApplicationParams> {
|
|
112
|
-
'application-id': number;
|
|
113
|
-
'on-completion': ApplicationOnComplete;
|
|
114
|
-
'application-args'?: string[];
|
|
115
|
-
accounts?: string[];
|
|
116
|
-
'foreign-apps'?: number[];
|
|
117
|
-
'foreign-assets'?: number[];
|
|
118
|
-
}
|
|
119
|
-
export interface AssetConfigTransactionResult {
|
|
120
|
-
'asset-id': number;
|
|
121
|
-
params: AssetParams;
|
|
122
|
-
}
|
|
123
|
-
export interface AssetFreezeTransactionResult {
|
|
124
|
-
address: string;
|
|
125
|
-
'asset-id': number;
|
|
126
|
-
'new-freeze-status': boolean;
|
|
127
|
-
}
|
|
128
|
-
export interface AssetTransferTransactionResult {
|
|
129
|
-
amount: number;
|
|
130
|
-
'asset-id': number;
|
|
131
|
-
'close-amount'?: number;
|
|
132
|
-
'close-to'?: string;
|
|
133
|
-
receiver?: string;
|
|
134
|
-
sender?: string;
|
|
135
|
-
}
|
|
136
|
-
export interface AssetResult {
|
|
137
|
-
index: number;
|
|
138
|
-
deleted?: boolean;
|
|
139
|
-
'created-at-round': number;
|
|
140
|
-
'deleted-at-round': number;
|
|
141
|
-
params: AssetParams;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* The result of looking up an application
|
|
145
|
-
*/
|
|
146
|
-
export interface ApplicationResult {
|
|
147
|
-
id: number;
|
|
148
|
-
params: ApplicationParams;
|
|
149
|
-
'created-at-round'?: number;
|
|
150
|
-
deleted?: boolean;
|
|
151
|
-
'deleted-at-round'?: number;
|
|
152
|
-
}
|
|
153
|
-
interface TransactionSignature {
|
|
154
|
-
logicsig: LogicTransactionSignature;
|
|
155
|
-
multisig: MultisigTransactionSignature;
|
|
156
|
-
sig: string;
|
|
157
|
-
}
|
|
158
|
-
interface LogicTransactionSignature {
|
|
159
|
-
args: string[];
|
|
160
|
-
logic: string;
|
|
161
|
-
'multisig-signature': MultisigTransactionSignature;
|
|
162
|
-
signature: string;
|
|
163
|
-
}
|
|
164
|
-
interface MultisigTransactionSignature {
|
|
165
|
-
subsignature: MultisigTransactionSubSignature;
|
|
166
|
-
threshold: number;
|
|
167
|
-
version: number;
|
|
168
|
-
}
|
|
169
|
-
interface MultisigTransactionSubSignature {
|
|
170
|
-
'public-key': string;
|
|
171
|
-
signature: string;
|
|
172
|
-
}
|
|
173
|
-
export interface EvalDelta {
|
|
174
|
-
action: number;
|
|
175
|
-
bytes: string;
|
|
176
|
-
uint: number;
|
|
177
|
-
}
|
|
178
|
-
interface ApplicationParams {
|
|
179
|
-
creator: string;
|
|
180
|
-
'approval-program': string;
|
|
181
|
-
'clear-state-program': string;
|
|
182
|
-
'extra-program-pages'?: number;
|
|
183
|
-
'global-state': TealKeyValue[];
|
|
184
|
-
'global-state-schema'?: StateSchema;
|
|
185
|
-
'local-state-schema'?: StateSchema;
|
|
186
|
-
}
|
|
187
|
-
interface StateSchema {
|
|
188
|
-
'num-byte-slice': number;
|
|
189
|
-
'num-uint': number;
|
|
190
|
-
}
|
|
191
|
-
export declare enum ApplicationOnComplete {
|
|
192
|
-
noop = "noop",
|
|
193
|
-
optin = "optin",
|
|
194
|
-
closeout = "closeout",
|
|
195
|
-
clear = "clear",
|
|
196
|
-
update = "update",
|
|
197
|
-
delete = "delete"
|
|
198
|
-
}
|
|
199
|
-
interface AssetParams {
|
|
200
|
-
/**
|
|
201
|
-
* The address that created this asset. This is the address where the parameters
|
|
202
|
-
* for this asset can be found, and also the address where unwanted asset units can
|
|
203
|
-
* be sent in the worst case.
|
|
204
|
-
*/
|
|
205
|
-
creator: string;
|
|
206
|
-
/**
|
|
207
|
-
* (dc) The number of digits to use after the decimal point when displaying this
|
|
208
|
-
* asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in
|
|
209
|
-
* tenths. If 2, the base unit of the asset is in hundredths, and so on. This value
|
|
210
|
-
* must be between 0 and 19 (inclusive).
|
|
211
|
-
*/
|
|
212
|
-
decimals: number | bigint;
|
|
213
|
-
/**
|
|
214
|
-
* (t) The total number of units of this asset.
|
|
215
|
-
*/
|
|
216
|
-
total: number | bigint;
|
|
217
|
-
/**
|
|
218
|
-
* (c) Address of account used to clawback holdings of this asset. If empty,
|
|
219
|
-
* clawback is not permitted.
|
|
220
|
-
*/
|
|
221
|
-
clawback?: string;
|
|
222
|
-
/**
|
|
223
|
-
* (df) Whether holdings of this asset are frozen by default.
|
|
224
|
-
*/
|
|
225
|
-
'default-frozen'?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* (f) Address of account used to freeze holdings of this asset. If empty, freezing
|
|
228
|
-
* is not permitted.
|
|
229
|
-
*/
|
|
230
|
-
freeze?: string;
|
|
231
|
-
/**
|
|
232
|
-
* (m) Address of account used to manage the keys of this asset and to destroy it.
|
|
233
|
-
*/
|
|
234
|
-
manager?: string;
|
|
235
|
-
/**
|
|
236
|
-
* (am) A commitment to some unspecified asset metadata. The format of this
|
|
237
|
-
* metadata is up to the application.
|
|
238
|
-
*/
|
|
239
|
-
'metadata-hash'?: Uint8Array;
|
|
240
|
-
/**
|
|
241
|
-
* (an) Name of this asset, as supplied by the creator. Included only when the
|
|
242
|
-
* asset name is composed of printable utf-8 characters.
|
|
243
|
-
*/
|
|
244
|
-
name?: string;
|
|
245
|
-
/**
|
|
246
|
-
* Base64 encoded name of this asset, as supplied by the creator.
|
|
247
|
-
*/
|
|
248
|
-
'name-b64'?: Uint8Array;
|
|
249
|
-
/**
|
|
250
|
-
* (r) Address of account holding reserve (non-minted) units of this asset.
|
|
251
|
-
*/
|
|
252
|
-
reserve?: string;
|
|
253
|
-
/**
|
|
254
|
-
* (un) Name of a unit of this asset, as supplied by the creator. Included only
|
|
255
|
-
* when the name of a unit of this asset is composed of printable utf-8 characters.
|
|
256
|
-
*/
|
|
257
|
-
'unit-name'?: string;
|
|
258
|
-
/**
|
|
259
|
-
* Base64 encoded name of a unit of this asset, as supplied by the creator.
|
|
260
|
-
*/
|
|
261
|
-
'unit-name-b64'?: Uint8Array;
|
|
262
|
-
/**
|
|
263
|
-
* (au) URL where more information about the asset can be retrieved. Included only
|
|
264
|
-
* when the URL is composed of printable utf-8 characters.
|
|
265
|
-
*/
|
|
266
|
-
url?: string;
|
|
267
|
-
/**
|
|
268
|
-
* Base64 encoded URL where more information about the asset can be retrieved.
|
|
269
|
-
*/
|
|
270
|
-
'url-b64'?: Uint8Array;
|
|
271
|
-
}
|
|
272
|
-
export declare enum SignatureType {
|
|
273
|
-
sig = "sig",
|
|
274
|
-
msig = "msig",
|
|
275
|
-
lsig = "lsig"
|
|
276
|
-
}
|
|
277
|
-
export declare enum AccountStatus {
|
|
278
|
-
Offline = "Offline",
|
|
279
|
-
Online = "Online",
|
|
280
|
-
NotParticipating = "NotParticipating"
|
|
281
|
-
}
|
|
282
|
-
interface AppLocalState {
|
|
283
|
-
'closed-out-at-round': number;
|
|
284
|
-
deleted: boolean;
|
|
285
|
-
id: number;
|
|
286
|
-
'key-value': TealKeyValue[];
|
|
287
|
-
'opted-in-at-round': number;
|
|
288
|
-
schema: StateSchema;
|
|
289
|
-
}
|
|
290
|
-
export interface AssetHolding {
|
|
291
|
-
/**
|
|
292
|
-
* (a) number of units held.
|
|
293
|
-
*/
|
|
294
|
-
amount: number;
|
|
295
|
-
/**
|
|
296
|
-
* Asset ID of the holding.
|
|
297
|
-
*/
|
|
298
|
-
'asset-id': number;
|
|
299
|
-
/**
|
|
300
|
-
* Address that created this asset. This is the address where the parameters for
|
|
301
|
-
* this asset can be found, and also the address where unwanted asset units can be
|
|
302
|
-
* sent in the worst case.
|
|
303
|
-
*/
|
|
304
|
-
creator: string;
|
|
305
|
-
/**
|
|
306
|
-
* (f) whether or not the holding is frozen.
|
|
307
|
-
*/
|
|
308
|
-
'is-frozen': boolean;
|
|
309
|
-
deleted?: boolean;
|
|
310
|
-
'opted-in-at-round': number;
|
|
311
|
-
'opted-out-at-round': number;
|
|
312
|
-
}
|
|
313
|
-
export {};
|
|
314
|
-
//# sourceMappingURL=indexer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indexer.d.ts","sourceRoot":"","sources":["../../src/types/indexer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAA;AAE9E,gFAAgF;AAChF,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,iBAAiB,EAAE,CAAA;CAClC;AAED,sFAAsF;AACtF,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,MAAM,CAAA;IACvB,OAAO,EAAE,aAAa,CAAA;CACvB;AAED,4FAA4F;AAC5F,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,YAAY,EAAE,CAAA;CACvB;AAED,oGAAoG;AACpG,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,WAAW,EAAE,CAAA;CACtB;AAED,0GAA0G;AAC1G,MAAM,WAAW,8BAA8B;IAC7C,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,iBAAiB,EAAE,CAAA;CAClC;AAED,kFAAkF;AAClF,MAAM,WAAW,iBAAiB;IAChC,eAAe,EAAE,MAAM,CAAA;IACvB,KAAK,EAAE,WAAW,CAAA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+0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountStatus = exports.SignatureType = exports.ApplicationOnComplete = void 0;
|
|
4
|
-
var ApplicationOnComplete;
|
|
5
|
-
(function (ApplicationOnComplete) {
|
|
6
|
-
ApplicationOnComplete["noop"] = "noop";
|
|
7
|
-
ApplicationOnComplete["optin"] = "optin";
|
|
8
|
-
ApplicationOnComplete["closeout"] = "closeout";
|
|
9
|
-
ApplicationOnComplete["clear"] = "clear";
|
|
10
|
-
ApplicationOnComplete["update"] = "update";
|
|
11
|
-
ApplicationOnComplete["delete"] = "delete";
|
|
12
|
-
})(ApplicationOnComplete = exports.ApplicationOnComplete || (exports.ApplicationOnComplete = {}));
|
|
13
|
-
var SignatureType;
|
|
14
|
-
(function (SignatureType) {
|
|
15
|
-
SignatureType["sig"] = "sig";
|
|
16
|
-
SignatureType["msig"] = "msig";
|
|
17
|
-
SignatureType["lsig"] = "lsig";
|
|
18
|
-
})(SignatureType = exports.SignatureType || (exports.SignatureType = {}));
|
|
19
|
-
var AccountStatus;
|
|
20
|
-
(function (AccountStatus) {
|
|
21
|
-
AccountStatus["Offline"] = "Offline";
|
|
22
|
-
AccountStatus["Online"] = "Online";
|
|
23
|
-
AccountStatus["NotParticipating"] = "NotParticipating";
|
|
24
|
-
})(AccountStatus = exports.AccountStatus || (exports.AccountStatus = {}));
|
|
25
|
-
//# sourceMappingURL=indexer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indexer.js","sourceRoot":"","sources":["../../src/types/indexer.ts"],"names":[],"mappings":";;;AAoNA,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;AACnB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AA4ED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,sDAAqC,CAAA;AACvC,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { BaseHTTPClient, BaseHTTPClientResponse, Query } from 'algosdk/dist/types/client/baseHTTPClient';
|
|
2
|
-
export interface AlgodTokenHeader {
|
|
3
|
-
'X-Algo-API-Token': string;
|
|
4
|
-
}
|
|
5
|
-
export interface IndexerTokenHeader {
|
|
6
|
-
'X-Indexer-API-Token': string;
|
|
7
|
-
}
|
|
8
|
-
export interface KMDTokenHeader {
|
|
9
|
-
'X-KMD-API-Token': string;
|
|
10
|
-
}
|
|
11
|
-
export interface CustomTokenHeader {
|
|
12
|
-
[headerName: string]: string;
|
|
13
|
-
}
|
|
14
|
-
export type TokenHeader = AlgodTokenHeader | IndexerTokenHeader | KMDTokenHeader | CustomTokenHeader;
|
|
15
|
-
/**
|
|
16
|
-
* Implementation of BaseHTTPClient that uses a URL and a token
|
|
17
|
-
* and make the REST queries using fetch.
|
|
18
|
-
* This is the default implementation of BaseHTTPClient.
|
|
19
|
-
*/
|
|
20
|
-
export declare class URLTokenBaseHTTPClient implements BaseHTTPClient {
|
|
21
|
-
private defaultHeaders;
|
|
22
|
-
private readonly baseURL;
|
|
23
|
-
private readonly tokenHeader;
|
|
24
|
-
constructor(tokenHeader: TokenHeader, baseServer: string, port?: string | number, defaultHeaders?: Record<string, any>);
|
|
25
|
-
/**
|
|
26
|
-
* Compute the URL for a path relative to the instance's address
|
|
27
|
-
* @param relativePath - A path string
|
|
28
|
-
* @param query - An optional key-value object of query parameters to add to the URL. If the
|
|
29
|
-
* relativePath already has query parameters on it, the additional parameters defined here will
|
|
30
|
-
* be added to the URL without modifying those (unless a key collision occurs).
|
|
31
|
-
* @returns A URL string
|
|
32
|
-
*/
|
|
33
|
-
private getURL;
|
|
34
|
-
private static formatFetchResponseHeaders;
|
|
35
|
-
private static checkHttpError;
|
|
36
|
-
private static formatFetchResponse;
|
|
37
|
-
get(relativePath: string, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
|
|
38
|
-
post(relativePath: string, data: Uint8Array, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
|
|
39
|
-
delete(relativePath: string, data: Uint8Array, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=urlTokenBaseHTTPClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"urlTokenBaseHTTPClient.d.ts","sourceRoot":"","sources":["../src/urlTokenBaseHTTPClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAuB,sBAAsB,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAA;AAI7H,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,qBAAqB,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;CAC7B;AAUD,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,cAAc,GAAG,iBAAiB,CAAA;AAEpG;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,cAAc;IAKuB,OAAO,CAAC,cAAc;IAJxG,OAAO,CAAC,QAAQ,CAAC,OAAO,C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