@aeternity/aepp-sdk 14.0.0 → 14.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/LICENSE +1 -1
- package/README.md +11 -19
- package/dist/aepp-sdk.browser-script.cjs +1 -1
- package/dist/aepp-sdk.browser-script.cjs.LICENSE.txt +2 -0
- package/dist/aepp-sdk.browser-script.cjs.map +1 -1
- package/dist/aepp-sdk.browser.cjs +1 -1
- package/dist/aepp-sdk.browser.cjs.map +1 -1
- package/dist/aepp-sdk.cjs +11678 -6969
- package/dist/aepp-sdk.cjs.map +1 -1
- package/es/AeSdkBase.d.ts +10 -1
- package/es/AeSdkBase.js +12 -2
- package/es/AeSdkBase.js.map +1 -1
- package/es/AeSdkMethods.d.ts +1 -1
- package/es/AeSdkMethods.js.map +1 -1
- package/es/AeSdkWallet.js +1 -1
- package/es/AeSdkWallet.js.map +1 -1
- package/es/Middleware.d.ts +5 -1
- package/es/Middleware.js +7 -2
- package/es/Middleware.js.map +1 -1
- package/es/MiddlewareSubscriber.d.ts +3 -0
- package/es/MiddlewareSubscriber.js +4 -0
- package/es/MiddlewareSubscriber.js.map +1 -1
- package/es/Node.d.ts +6 -1
- package/es/Node.js +28 -4
- package/es/Node.js.map +1 -1
- package/es/account/Base.d.ts +12 -0
- package/es/account/Base.js +1 -0
- package/es/account/Base.js.map +1 -1
- package/es/account/BaseFactory.d.ts +1 -0
- package/es/account/BaseFactory.js +1 -0
- package/es/account/BaseFactory.js.map +1 -1
- package/es/account/Generalized.d.ts +5 -0
- package/es/account/Generalized.js +9 -0
- package/es/account/Generalized.js.map +1 -1
- package/es/account/Ledger.d.ts +5 -0
- package/es/account/Ledger.js +9 -0
- package/es/account/Ledger.js.map +1 -1
- package/es/account/LedgerFactory.d.ts +2 -0
- package/es/account/LedgerFactory.js +10 -4
- package/es/account/LedgerFactory.js.map +1 -1
- package/es/account/Memory.d.ts +5 -0
- package/es/account/Memory.js +14 -5
- package/es/account/Memory.js.map +1 -1
- package/es/account/Metamask.d.ts +8 -0
- package/es/account/Metamask.js +13 -0
- package/es/account/Metamask.js.map +1 -1
- package/es/account/MetamaskFactory.d.ts +20 -2
- package/es/account/MetamaskFactory.js +93 -39
- package/es/account/MetamaskFactory.js.map +1 -1
- package/es/account/MnemonicFactory.d.ts +12 -2
- package/es/account/MnemonicFactory.js +48 -24
- package/es/account/MnemonicFactory.js.map +1 -1
- package/es/account/Rpc.d.ts +5 -0
- package/es/account/Rpc.js +8 -0
- package/es/account/Rpc.js.map +1 -1
- package/es/aens.d.ts +25 -5
- package/es/aens.js +52 -18
- package/es/aens.js.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +1 -1
- package/es/aepp-wallet-communication/connection/BrowserRuntime.js.map +1 -1
- package/es/apis/middleware/middleware.d.ts +99 -9
- package/es/apis/middleware/middleware.js +560 -91
- package/es/apis/middleware/middleware.js.map +1 -1
- package/es/apis/middleware/models/index.d.ts +1267 -1582
- package/es/apis/middleware/models/index.js +1 -1363
- package/es/apis/middleware/models/index.js.map +1 -1
- package/es/apis/middleware/models/mappers.d.ts +126 -56
- package/es/apis/middleware/models/mappers.js +6250 -2989
- package/es/apis/middleware/models/mappers.js.map +1 -1
- package/es/apis/middleware/models/parameters.d.ts +54 -33
- package/es/apis/middleware/models/parameters.js +389 -134
- package/es/apis/middleware/models/parameters.js.map +1 -1
- package/es/apis/node/models/index.d.ts +60 -15
- package/es/apis/node/models/index.js.map +1 -1
- package/es/apis/node/models/mappers.d.ts +3 -0
- package/es/apis/node/models/mappers.js +130 -2
- package/es/apis/node/models/mappers.js.map +1 -1
- package/es/apis/node/node.d.ts +13 -1
- package/es/apis/node/node.js +54 -0
- package/es/apis/node/node.js.map +1 -1
- package/es/chain.d.ts +19 -6
- package/es/chain.js +30 -24
- package/es/chain.js.map +1 -1
- package/es/channel/Contract.d.ts +6 -3
- package/es/channel/Contract.js +5 -2
- package/es/channel/Contract.js.map +1 -1
- package/es/channel/Spend.d.ts +1 -1
- package/es/channel/Spend.js.map +1 -1
- package/es/channel/handlers.js +1 -2
- package/es/channel/handlers.js.map +1 -1
- package/es/channel/internal.d.ts +1 -1
- package/es/channel/internal.js +2 -2
- package/es/channel/internal.js.map +1 -1
- package/es/contract/Contract.d.ts +13 -2
- package/es/contract/Contract.js +22 -12
- package/es/contract/Contract.js.map +1 -1
- package/es/contract/compiler/Base.d.ts +1 -0
- package/es/contract/compiler/Base.js +1 -0
- package/es/contract/compiler/Base.js.map +1 -1
- package/es/contract/compiler/Cli.d.ts +2 -1
- package/es/contract/compiler/Cli.js +11 -9
- package/es/contract/compiler/Cli.js.map +1 -1
- package/es/contract/compiler/Http.d.ts +2 -1
- package/es/contract/compiler/Http.js +3 -2
- package/es/contract/compiler/Http.js.map +1 -1
- package/es/contract/compiler/getFileSystem.d.ts +1 -0
- package/es/contract/compiler/getFileSystem.js +1 -0
- package/es/contract/compiler/getFileSystem.js.map +1 -1
- package/es/contract/ga.d.ts +3 -3
- package/es/contract/ga.js +3 -3
- package/es/contract/ga.js.map +1 -1
- package/es/index-browser.d.ts +32 -2
- package/es/index-browser.js +32 -2
- package/es/index-browser.js.map +1 -1
- package/es/oracle/Oracle.d.ts +10 -1
- package/es/oracle/Oracle.js +16 -6
- package/es/oracle/Oracle.js.map +1 -1
- package/es/oracle/OracleBase.d.ts +15 -2
- package/es/oracle/OracleBase.js +23 -1
- package/es/oracle/OracleBase.js.map +1 -1
- package/es/oracle/OracleClient.d.ts +3 -0
- package/es/oracle/OracleClient.js +6 -1
- package/es/oracle/OracleClient.js.map +1 -1
- package/es/spend.js +1 -1
- package/es/spend.js.map +1 -1
- package/es/tx/builder/common.js +6 -3
- package/es/tx/builder/common.js.map +1 -1
- package/es/tx/builder/constants.d.ts +53 -3
- package/es/tx/builder/constants.js +62 -12
- package/es/tx/builder/constants.js.map +1 -1
- package/es/tx/builder/delegation/schema.js +15 -0
- package/es/tx/builder/delegation/schema.js.map +1 -1
- package/es/tx/builder/entry/constants.d.ts +4 -1
- package/es/tx/builder/entry/constants.js +10 -1
- package/es/tx/builder/entry/constants.js.map +1 -1
- package/es/tx/builder/entry/index.js +1 -2
- package/es/tx/builder/entry/index.js.map +1 -1
- package/es/tx/builder/field-types/ct-version.js +1 -2
- package/es/tx/builder/field-types/ct-version.js.map +1 -1
- package/es/tx/builder/field-types/fee.d.ts +1 -1
- package/es/tx/builder/field-types/fee.js +4 -4
- package/es/tx/builder/field-types/fee.js.map +1 -1
- package/es/tx/builder/field-types/gas-price.d.ts +3 -0
- package/es/tx/builder/field-types/gas-price.js +1 -1
- package/es/tx/builder/field-types/gas-price.js.map +1 -1
- package/es/tx/builder/field-types/name-fee.js +1 -1
- package/es/tx/builder/field-types/name-fee.js.map +1 -1
- package/es/tx/builder/field-types/name-id.js +2 -2
- package/es/tx/builder/field-types/name-id.js.map +1 -1
- package/es/tx/builder/field-types/nonce.d.ts +1 -1
- package/es/tx/builder/field-types/nonce.js.map +1 -1
- package/es/tx/builder/field-types/pointers.js +3 -3
- package/es/tx/builder/field-types/pointers.js.map +1 -1
- package/es/tx/builder/field-types/ttl.js +1 -2
- package/es/tx/builder/field-types/ttl.js.map +1 -1
- package/es/tx/builder/helpers.d.ts +18 -12
- package/es/tx/builder/helpers.js +25 -17
- package/es/tx/builder/helpers.js.map +1 -1
- package/es/tx/builder/schema.d.ts +27 -24
- package/es/tx/builder/schema.generated.d.ts +12 -12
- package/es/tx/builder/schema.generated.js.map +1 -1
- package/es/tx/builder/schema.js +5 -3
- package/es/tx/builder/schema.js.map +1 -1
- package/es/tx/execution-cost.d.ts +3 -0
- package/es/tx/execution-cost.js +7 -4
- package/es/tx/execution-cost.js.map +1 -1
- package/es/tx/transaction-signer.d.ts +1 -0
- package/es/tx/transaction-signer.js +1 -0
- package/es/tx/transaction-signer.js.map +1 -1
- package/es/tx/validator.js +4 -3
- package/es/tx/validator.js.map +1 -1
- package/es/utils/MiddlewarePage.d.ts +4 -3
- package/es/utils/MiddlewarePage.js.map +1 -1
- package/es/utils/amount-formatter.d.ts +15 -1
- package/es/utils/amount-formatter.js +17 -1
- package/es/utils/amount-formatter.js.map +1 -1
- package/es/utils/autorest.d.ts +1 -1
- package/es/utils/autorest.js +10 -4
- package/es/utils/autorest.js.map +1 -1
- package/es/utils/bignumber.d.ts +1 -1
- package/es/utils/bignumber.js +1 -1
- package/es/utils/bignumber.js.map +1 -1
- package/es/utils/bytes.d.ts +3 -1
- package/es/utils/bytes.js +3 -1
- package/es/utils/bytes.js.map +1 -1
- package/es/utils/crypto.d.ts +48 -15
- package/es/utils/crypto.js +80 -29
- package/es/utils/crypto.js.map +1 -1
- package/es/utils/encoder-types.d.ts +1 -1
- package/es/utils/encoder-types.js +1 -1
- package/es/utils/encoder-types.js.map +1 -1
- package/es/utils/encoder.d.ts +2 -0
- package/es/utils/encoder.js +2 -0
- package/es/utils/encoder.js.map +1 -1
- package/es/utils/errors.d.ts +2 -2
- package/es/utils/errors.js +2 -2
- package/es/utils/errors.js.map +1 -1
- package/es/utils/json-big.js +1 -1
- package/es/utils/json-big.js.map +1 -1
- package/es/utils/jwt.js +3 -3
- package/es/utils/jwt.js.map +1 -1
- package/es/utils/typed-data.d.ts +5 -0
- package/es/utils/typed-data.js +6 -0
- package/es/utils/typed-data.js.map +1 -1
- package/package.json +50 -51
|
@@ -7,6 +7,9 @@ import coinAmount from './field-types/coin-amount.js';
|
|
|
7
7
|
import { Encoded, Encoding } from '../../utils/encoder.js';
|
|
8
8
|
import { EntryTag } from './entry/constants.js';
|
|
9
9
|
import { EntParams, EntUnpacked } from './entry/schema.generated.js';
|
|
10
|
+
/**
|
|
11
|
+
* @category oracle
|
|
12
|
+
*/
|
|
10
13
|
export declare enum ORACLE_TTL_TYPES {
|
|
11
14
|
delta = 0,
|
|
12
15
|
block = 1
|
|
@@ -111,7 +114,7 @@ export declare const txSchema: readonly [{
|
|
|
111
114
|
prepare: (value: number | undefined, params: {}, options: {
|
|
112
115
|
senderId: string;
|
|
113
116
|
} & {
|
|
114
|
-
strategy?: import("../../apis/node/index.js").
|
|
117
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
115
118
|
onNode?: import("../../Node.js").default;
|
|
116
119
|
_isInternalBuild?: boolean;
|
|
117
120
|
}) => Promise<number>;
|
|
@@ -146,7 +149,7 @@ export declare const txSchema: readonly [{
|
|
|
146
149
|
prepare: (value: number | undefined, params: {}, options: {
|
|
147
150
|
accountId: string;
|
|
148
151
|
} & {
|
|
149
|
-
strategy?: import("../../apis/node/index.js").
|
|
152
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
150
153
|
onNode?: import("../../Node.js").default;
|
|
151
154
|
_isInternalBuild?: boolean;
|
|
152
155
|
}) => Promise<number>;
|
|
@@ -202,7 +205,7 @@ export declare const txSchema: readonly [{
|
|
|
202
205
|
prepare: (value: number | undefined, params: {}, options: {
|
|
203
206
|
accountId: string;
|
|
204
207
|
} & {
|
|
205
|
-
strategy?: import("../../apis/node/index.js").
|
|
208
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
206
209
|
onNode?: import("../../Node.js").default;
|
|
207
210
|
_isInternalBuild?: boolean;
|
|
208
211
|
}) => Promise<number>;
|
|
@@ -271,7 +274,7 @@ export declare const txSchema: readonly [{
|
|
|
271
274
|
prepare: (value: number | undefined, params: {}, options: {
|
|
272
275
|
accountId: string;
|
|
273
276
|
} & {
|
|
274
|
-
strategy?: import("../../apis/node/index.js").
|
|
277
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
275
278
|
onNode?: import("../../Node.js").default;
|
|
276
279
|
_isInternalBuild?: boolean;
|
|
277
280
|
}) => Promise<number>;
|
|
@@ -343,7 +346,7 @@ export declare const txSchema: readonly [{
|
|
|
343
346
|
prepare: (value: number | undefined, params: {}, options: {
|
|
344
347
|
accountId: string;
|
|
345
348
|
} & {
|
|
346
|
-
strategy?: import("../../apis/node/index.js").
|
|
349
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
347
350
|
onNode?: import("../../Node.js").default;
|
|
348
351
|
_isInternalBuild?: boolean;
|
|
349
352
|
}) => Promise<number>;
|
|
@@ -415,7 +418,7 @@ export declare const txSchema: readonly [{
|
|
|
415
418
|
prepare: (value: number | undefined, params: {}, options: {
|
|
416
419
|
accountId: string;
|
|
417
420
|
} & {
|
|
418
|
-
strategy?: import("../../apis/node/index.js").
|
|
421
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
419
422
|
onNode?: import("../../Node.js").default;
|
|
420
423
|
_isInternalBuild?: boolean;
|
|
421
424
|
}) => Promise<number>;
|
|
@@ -475,7 +478,7 @@ export declare const txSchema: readonly [{
|
|
|
475
478
|
prepare: (value: number | undefined, params: {}, options: {
|
|
476
479
|
accountId: string;
|
|
477
480
|
} & {
|
|
478
|
-
strategy?: import("../../apis/node/index.js").
|
|
481
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
479
482
|
onNode?: import("../../Node.js").default;
|
|
480
483
|
_isInternalBuild?: boolean;
|
|
481
484
|
}) => Promise<number>;
|
|
@@ -531,7 +534,7 @@ export declare const txSchema: readonly [{
|
|
|
531
534
|
prepare: (value: number | undefined, params: {}, options: {
|
|
532
535
|
ownerId: string;
|
|
533
536
|
} & {
|
|
534
|
-
strategy?: import("../../apis/node/index.js").
|
|
537
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
535
538
|
onNode?: import("../../Node.js").default;
|
|
536
539
|
_isInternalBuild?: boolean;
|
|
537
540
|
}) => Promise<number>;
|
|
@@ -637,7 +640,7 @@ export declare const txSchema: readonly [{
|
|
|
637
640
|
prepare: (value: number | undefined, params: {}, options: {
|
|
638
641
|
callerId: string;
|
|
639
642
|
} & {
|
|
640
|
-
strategy?: import("../../apis/node/index.js").
|
|
643
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
641
644
|
onNode?: import("../../Node.js").default;
|
|
642
645
|
_isInternalBuild?: boolean;
|
|
643
646
|
}) => Promise<number>;
|
|
@@ -742,7 +745,7 @@ export declare const txSchema: readonly [{
|
|
|
742
745
|
prepare: (value: number | undefined, params: {}, options: {
|
|
743
746
|
accountId: string;
|
|
744
747
|
} & {
|
|
745
|
-
strategy?: import("../../apis/node/index.js").
|
|
748
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
746
749
|
onNode?: import("../../Node.js").default;
|
|
747
750
|
_isInternalBuild?: boolean;
|
|
748
751
|
}) => Promise<number>;
|
|
@@ -832,7 +835,7 @@ export declare const txSchema: readonly [{
|
|
|
832
835
|
prepare: (value: number | undefined, params: {}, options: {
|
|
833
836
|
oracleId: string;
|
|
834
837
|
} & {
|
|
835
|
-
strategy?: import("../../apis/node/index.js").
|
|
838
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
836
839
|
onNode?: import("../../Node.js").default;
|
|
837
840
|
_isInternalBuild?: boolean;
|
|
838
841
|
}) => Promise<number>;
|
|
@@ -892,7 +895,7 @@ export declare const txSchema: readonly [{
|
|
|
892
895
|
prepare: (value: number | undefined, params: {}, options: {
|
|
893
896
|
senderId: string;
|
|
894
897
|
} & {
|
|
895
|
-
strategy?: import("../../apis/node/index.js").
|
|
898
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
896
899
|
onNode?: import("../../Node.js").default;
|
|
897
900
|
_isInternalBuild?: boolean;
|
|
898
901
|
}) => Promise<number>;
|
|
@@ -979,7 +982,7 @@ export declare const txSchema: readonly [{
|
|
|
979
982
|
prepare: (value: number | undefined, params: {}, options: {
|
|
980
983
|
oracleId: string;
|
|
981
984
|
} & {
|
|
982
|
-
strategy?: import("../../apis/node/index.js").
|
|
985
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
983
986
|
onNode?: import("../../Node.js").default;
|
|
984
987
|
_isInternalBuild?: boolean;
|
|
985
988
|
}) => Promise<number>;
|
|
@@ -1100,7 +1103,7 @@ export declare const txSchema: readonly [{
|
|
|
1100
1103
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1101
1104
|
initiator: string;
|
|
1102
1105
|
} & {
|
|
1103
|
-
strategy?: import("../../apis/node/index.js").
|
|
1106
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1104
1107
|
onNode?: import("../../Node.js").default;
|
|
1105
1108
|
_isInternalBuild?: boolean;
|
|
1106
1109
|
}) => Promise<number>;
|
|
@@ -1164,7 +1167,7 @@ export declare const txSchema: readonly [{
|
|
|
1164
1167
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1165
1168
|
fromId: string;
|
|
1166
1169
|
} & {
|
|
1167
|
-
strategy?: import("../../apis/node/index.js").
|
|
1170
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1168
1171
|
onNode?: import("../../Node.js").default;
|
|
1169
1172
|
_isInternalBuild?: boolean;
|
|
1170
1173
|
}) => Promise<number>;
|
|
@@ -1225,7 +1228,7 @@ export declare const txSchema: readonly [{
|
|
|
1225
1228
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1226
1229
|
fromId: string;
|
|
1227
1230
|
} & {
|
|
1228
|
-
strategy?: import("../../apis/node/index.js").
|
|
1231
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1229
1232
|
onNode?: import("../../Node.js").default;
|
|
1230
1233
|
_isInternalBuild?: boolean;
|
|
1231
1234
|
}) => Promise<number>;
|
|
@@ -1286,7 +1289,7 @@ export declare const txSchema: readonly [{
|
|
|
1286
1289
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1287
1290
|
fromId: string;
|
|
1288
1291
|
} & {
|
|
1289
|
-
strategy?: import("../../apis/node/index.js").
|
|
1292
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1290
1293
|
onNode?: import("../../Node.js").default;
|
|
1291
1294
|
_isInternalBuild?: boolean;
|
|
1292
1295
|
}) => Promise<number>;
|
|
@@ -1354,7 +1357,7 @@ export declare const txSchema: readonly [{
|
|
|
1354
1357
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1355
1358
|
fromId: string;
|
|
1356
1359
|
} & {
|
|
1357
|
-
strategy?: import("../../apis/node/index.js").
|
|
1360
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1358
1361
|
onNode?: import("../../Node.js").default;
|
|
1359
1362
|
_isInternalBuild?: boolean;
|
|
1360
1363
|
}) => Promise<number>;
|
|
@@ -1422,7 +1425,7 @@ export declare const txSchema: readonly [{
|
|
|
1422
1425
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1423
1426
|
fromId: string;
|
|
1424
1427
|
} & {
|
|
1425
|
-
strategy?: import("../../apis/node/index.js").
|
|
1428
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1426
1429
|
onNode?: import("../../Node.js").default;
|
|
1427
1430
|
_isInternalBuild?: boolean;
|
|
1428
1431
|
}) => Promise<number>;
|
|
@@ -1486,7 +1489,7 @@ export declare const txSchema: readonly [{
|
|
|
1486
1489
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1487
1490
|
fromId: string;
|
|
1488
1491
|
} & {
|
|
1489
|
-
strategy?: import("../../apis/node/index.js").
|
|
1492
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1490
1493
|
onNode?: import("../../Node.js").default;
|
|
1491
1494
|
_isInternalBuild?: boolean;
|
|
1492
1495
|
}) => Promise<number>;
|
|
@@ -1562,7 +1565,7 @@ export declare const txSchema: readonly [{
|
|
|
1562
1565
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1563
1566
|
fromId: string;
|
|
1564
1567
|
} & {
|
|
1565
|
-
strategy?: import("../../apis/node/index.js").
|
|
1568
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1566
1569
|
onNode?: import("../../Node.js").default;
|
|
1567
1570
|
_isInternalBuild?: boolean;
|
|
1568
1571
|
}) => Promise<number>;
|
|
@@ -1647,7 +1650,7 @@ export declare const txSchema: readonly [{
|
|
|
1647
1650
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1648
1651
|
fromId: string;
|
|
1649
1652
|
} & {
|
|
1650
|
-
strategy?: import("../../apis/node/index.js").
|
|
1653
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1651
1654
|
onNode?: import("../../Node.js").default;
|
|
1652
1655
|
_isInternalBuild?: boolean;
|
|
1653
1656
|
}) => Promise<number>;
|
|
@@ -1678,7 +1681,7 @@ export declare const txSchema: readonly [{
|
|
|
1678
1681
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1679
1682
|
ownerId: string;
|
|
1680
1683
|
} & {
|
|
1681
|
-
strategy?: import("../../apis/node/index.js").
|
|
1684
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1682
1685
|
onNode?: import("../../Node.js").default;
|
|
1683
1686
|
_isInternalBuild?: boolean;
|
|
1684
1687
|
}) => Promise<number>;
|
|
@@ -1847,7 +1850,7 @@ export declare const txSchema: readonly [{
|
|
|
1847
1850
|
prepare: (value: number | undefined, params: {}, options: {
|
|
1848
1851
|
payerId: string;
|
|
1849
1852
|
} & {
|
|
1850
|
-
strategy?: import("../../apis/node/index.js").
|
|
1853
|
+
strategy?: import("../../apis/node/index.js").Enum1;
|
|
1851
1854
|
onNode?: import("../../Node.js").default;
|
|
1852
1855
|
_isInternalBuild?: boolean;
|
|
1853
1856
|
}) => Promise<number>;
|
|
@@ -519,8 +519,8 @@ export interface TxUnpackedOracleQueryTx1 extends TxUnpackedOracleQueryTx1Type {
|
|
|
519
519
|
/**
|
|
520
520
|
* @category transaction builder
|
|
521
521
|
*/
|
|
522
|
-
type
|
|
523
|
-
tag: Tag.
|
|
522
|
+
type TxParamsOracleRespondTx1Type = Omit<TxParamsComplex & {
|
|
523
|
+
tag: Tag.OracleRespondTx;
|
|
524
524
|
version: 1;
|
|
525
525
|
}, "version"> & {
|
|
526
526
|
version?: 1;
|
|
@@ -528,13 +528,13 @@ type TxParamsOracleResponseTx1Type = Omit<TxParamsComplex & {
|
|
|
528
528
|
/**
|
|
529
529
|
* @category transaction builder
|
|
530
530
|
*/
|
|
531
|
-
export interface
|
|
531
|
+
export interface TxParamsOracleRespondTx1 extends TxParamsOracleRespondTx1Type {
|
|
532
532
|
}
|
|
533
533
|
/**
|
|
534
534
|
* @category transaction builder
|
|
535
535
|
*/
|
|
536
|
-
type
|
|
537
|
-
tag: Tag.
|
|
536
|
+
type TxParamsAsyncOracleRespondTx1Type = Omit<TxParamsAsyncComplex & {
|
|
537
|
+
tag: Tag.OracleRespondTx;
|
|
538
538
|
version: 1;
|
|
539
539
|
}, "version"> & {
|
|
540
540
|
version?: 1;
|
|
@@ -542,19 +542,19 @@ type TxParamsAsyncOracleResponseTx1Type = Omit<TxParamsAsyncComplex & {
|
|
|
542
542
|
/**
|
|
543
543
|
* @category transaction builder
|
|
544
544
|
*/
|
|
545
|
-
export interface
|
|
545
|
+
export interface TxParamsAsyncOracleRespondTx1 extends TxParamsAsyncOracleRespondTx1Type {
|
|
546
546
|
}
|
|
547
547
|
/**
|
|
548
548
|
* @category transaction builder
|
|
549
549
|
*/
|
|
550
|
-
type
|
|
551
|
-
tag: Tag.
|
|
550
|
+
type TxUnpackedOracleRespondTx1Type = TxUnpackedComplex & {
|
|
551
|
+
tag: Tag.OracleRespondTx;
|
|
552
552
|
version: 1;
|
|
553
553
|
};
|
|
554
554
|
/**
|
|
555
555
|
* @category transaction builder
|
|
556
556
|
*/
|
|
557
|
-
export interface
|
|
557
|
+
export interface TxUnpackedOracleRespondTx1 extends TxUnpackedOracleRespondTx1Type {
|
|
558
558
|
}
|
|
559
559
|
/**
|
|
560
560
|
* @category transaction builder
|
|
@@ -1079,13 +1079,13 @@ export interface TxUnpackedPayingForTx1 extends TxUnpackedPayingForTx1Type {
|
|
|
1079
1079
|
/**
|
|
1080
1080
|
* @category transaction builder
|
|
1081
1081
|
*/
|
|
1082
|
-
export type TxParams = TxParamsSignedTx1 | TxParamsSpendTx1 | TxParamsNamePreclaimTx1 | TxParamsNameClaimTx2 | TxParamsNameUpdateTx1 | TxParamsNameUpdateTx2 | TxParamsNameTransferTx1 | TxParamsNameRevokeTx1 | TxParamsContractCreateTx1 | TxParamsContractCallTx1 | TxParamsOracleRegisterTx1 | TxParamsOracleExtendTx1 | TxParamsOracleQueryTx1 |
|
|
1082
|
+
export type TxParams = TxParamsSignedTx1 | TxParamsSpendTx1 | TxParamsNamePreclaimTx1 | TxParamsNameClaimTx2 | TxParamsNameUpdateTx1 | TxParamsNameUpdateTx2 | TxParamsNameTransferTx1 | TxParamsNameRevokeTx1 | TxParamsContractCreateTx1 | TxParamsContractCallTx1 | TxParamsOracleRegisterTx1 | TxParamsOracleExtendTx1 | TxParamsOracleQueryTx1 | TxParamsOracleRespondTx1 | TxParamsChannelCreateTx2 | TxParamsChannelCloseMutualTx1 | TxParamsChannelCloseSoloTx1 | TxParamsChannelSlashTx1 | TxParamsChannelDepositTx1 | TxParamsChannelWithdrawTx1 | TxParamsChannelSettleTx1 | TxParamsChannelForceProgressTx1 | TxParamsChannelOffChainTx2 | TxParamsChannelSnapshotSoloTx1 | TxParamsGaAttachTx1 | TxParamsGaMetaTx2 | TxParamsPayingForTx1;
|
|
1083
1083
|
/**
|
|
1084
1084
|
* @category transaction builder
|
|
1085
1085
|
*/
|
|
1086
|
-
export type TxParamsAsync = TxParamsAsyncSignedTx1 | TxParamsAsyncSpendTx1 | TxParamsAsyncNamePreclaimTx1 | TxParamsAsyncNameClaimTx2 | TxParamsAsyncNameUpdateTx1 | TxParamsAsyncNameUpdateTx2 | TxParamsAsyncNameTransferTx1 | TxParamsAsyncNameRevokeTx1 | TxParamsAsyncContractCreateTx1 | TxParamsAsyncContractCallTx1 | TxParamsAsyncOracleRegisterTx1 | TxParamsAsyncOracleExtendTx1 | TxParamsAsyncOracleQueryTx1 |
|
|
1086
|
+
export type TxParamsAsync = TxParamsAsyncSignedTx1 | TxParamsAsyncSpendTx1 | TxParamsAsyncNamePreclaimTx1 | TxParamsAsyncNameClaimTx2 | TxParamsAsyncNameUpdateTx1 | TxParamsAsyncNameUpdateTx2 | TxParamsAsyncNameTransferTx1 | TxParamsAsyncNameRevokeTx1 | TxParamsAsyncContractCreateTx1 | TxParamsAsyncContractCallTx1 | TxParamsAsyncOracleRegisterTx1 | TxParamsAsyncOracleExtendTx1 | TxParamsAsyncOracleQueryTx1 | TxParamsAsyncOracleRespondTx1 | TxParamsAsyncChannelCreateTx2 | TxParamsAsyncChannelCloseMutualTx1 | TxParamsAsyncChannelCloseSoloTx1 | TxParamsAsyncChannelSlashTx1 | TxParamsAsyncChannelDepositTx1 | TxParamsAsyncChannelWithdrawTx1 | TxParamsAsyncChannelSettleTx1 | TxParamsAsyncChannelForceProgressTx1 | TxParamsAsyncChannelOffChainTx2 | TxParamsAsyncChannelSnapshotSoloTx1 | TxParamsAsyncGaAttachTx1 | TxParamsAsyncGaMetaTx2 | TxParamsAsyncPayingForTx1;
|
|
1087
1087
|
/**
|
|
1088
1088
|
* @category transaction builder
|
|
1089
1089
|
*/
|
|
1090
|
-
export type TxUnpacked = TxUnpackedSignedTx1 | TxUnpackedSpendTx1 | TxUnpackedNamePreclaimTx1 | TxUnpackedNameClaimTx2 | TxUnpackedNameUpdateTx1 | TxUnpackedNameUpdateTx2 | TxUnpackedNameTransferTx1 | TxUnpackedNameRevokeTx1 | TxUnpackedContractCreateTx1 | TxUnpackedContractCallTx1 | TxUnpackedOracleRegisterTx1 | TxUnpackedOracleExtendTx1 | TxUnpackedOracleQueryTx1 |
|
|
1090
|
+
export type TxUnpacked = TxUnpackedSignedTx1 | TxUnpackedSpendTx1 | TxUnpackedNamePreclaimTx1 | TxUnpackedNameClaimTx2 | TxUnpackedNameUpdateTx1 | TxUnpackedNameUpdateTx2 | TxUnpackedNameTransferTx1 | TxUnpackedNameRevokeTx1 | TxUnpackedContractCreateTx1 | TxUnpackedContractCallTx1 | TxUnpackedOracleRegisterTx1 | TxUnpackedOracleExtendTx1 | TxUnpackedOracleQueryTx1 | TxUnpackedOracleRespondTx1 | TxUnpackedChannelCreateTx2 | TxUnpackedChannelCloseMutualTx1 | TxUnpackedChannelCloseSoloTx1 | TxUnpackedChannelSlashTx1 | TxUnpackedChannelDepositTx1 | TxUnpackedChannelWithdrawTx1 | TxUnpackedChannelSettleTx1 | TxUnpackedChannelForceProgressTx1 | TxUnpackedChannelOffChainTx2 | TxUnpackedChannelSnapshotSoloTx1 | TxUnpackedGaAttachTx1 | TxUnpackedGaMetaTx2 | TxUnpackedPayingForTx1;
|
|
1091
1091
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.generated.js","names":[],"sources":["../../../src/tx/builder/schema.generated.ts"],"sourcesContent":["/* eslint-disable */\n// This file generated by `npm run build:generate`, don't edit manually.\n\nimport { TxParams as TxParamsComplex, TxParamsAsync as TxParamsAsyncComplex, TxUnpacked as TxUnpackedComplex } from \"./schema.js\";\nimport { Tag } from \"./constants.js\";\n/**\n * @category transaction builder\n */\ntype TxParamsSignedTx1Type = Omit<TxParamsComplex & {\n tag: Tag.SignedTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsSignedTx1 extends TxParamsSignedTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncSignedTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.SignedTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncSignedTx1 extends TxParamsAsyncSignedTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedSignedTx1Type = TxUnpackedComplex & {\n tag: Tag.SignedTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedSignedTx1 extends TxUnpackedSignedTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsSpendTx1Type = Omit<TxParamsComplex & {\n tag: Tag.SpendTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsSpendTx1 extends TxParamsSpendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncSpendTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.SpendTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncSpendTx1 extends TxParamsAsyncSpendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedSpendTx1Type = TxUnpackedComplex & {\n tag: Tag.SpendTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedSpendTx1 extends TxUnpackedSpendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNamePreclaimTx1Type = Omit<TxParamsComplex & {\n tag: Tag.NamePreclaimTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNamePreclaimTx1 extends TxParamsNamePreclaimTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNamePreclaimTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NamePreclaimTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNamePreclaimTx1 extends TxParamsAsyncNamePreclaimTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNamePreclaimTx1Type = TxUnpackedComplex & {\n tag: Tag.NamePreclaimTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNamePreclaimTx1 extends TxUnpackedNamePreclaimTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameClaimTx2Type = Omit<TxParamsComplex & {\n tag: Tag.NameClaimTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameClaimTx2 extends TxParamsNameClaimTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameClaimTx2Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NameClaimTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameClaimTx2 extends TxParamsAsyncNameClaimTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameClaimTx2Type = TxUnpackedComplex & {\n tag: Tag.NameClaimTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameClaimTx2 extends TxUnpackedNameClaimTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameUpdateTx1Type = Omit<TxParamsComplex & {\n tag: Tag.NameUpdateTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameUpdateTx1 extends TxParamsNameUpdateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameUpdateTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NameUpdateTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameUpdateTx1 extends TxParamsAsyncNameUpdateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameUpdateTx1Type = TxUnpackedComplex & {\n tag: Tag.NameUpdateTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameUpdateTx1 extends TxUnpackedNameUpdateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameUpdateTx2Type = TxParamsComplex & {\n tag: Tag.NameUpdateTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameUpdateTx2 extends TxParamsNameUpdateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameUpdateTx2Type = TxParamsAsyncComplex & {\n tag: Tag.NameUpdateTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameUpdateTx2 extends TxParamsAsyncNameUpdateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameUpdateTx2Type = TxUnpackedComplex & {\n tag: Tag.NameUpdateTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameUpdateTx2 extends TxUnpackedNameUpdateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameTransferTx1Type = Omit<TxParamsComplex & {\n tag: Tag.NameTransferTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameTransferTx1 extends TxParamsNameTransferTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameTransferTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NameTransferTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameTransferTx1 extends TxParamsAsyncNameTransferTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameTransferTx1Type = TxUnpackedComplex & {\n tag: Tag.NameTransferTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameTransferTx1 extends TxUnpackedNameTransferTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameRevokeTx1Type = Omit<TxParamsComplex & {\n tag: Tag.NameRevokeTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameRevokeTx1 extends TxParamsNameRevokeTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameRevokeTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NameRevokeTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameRevokeTx1 extends TxParamsAsyncNameRevokeTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameRevokeTx1Type = TxUnpackedComplex & {\n tag: Tag.NameRevokeTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameRevokeTx1 extends TxUnpackedNameRevokeTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsContractCreateTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ContractCreateTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsContractCreateTx1 extends TxParamsContractCreateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncContractCreateTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ContractCreateTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncContractCreateTx1 extends TxParamsAsyncContractCreateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedContractCreateTx1Type = TxUnpackedComplex & {\n tag: Tag.ContractCreateTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedContractCreateTx1 extends TxUnpackedContractCreateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsContractCallTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ContractCallTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsContractCallTx1 extends TxParamsContractCallTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncContractCallTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ContractCallTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncContractCallTx1 extends TxParamsAsyncContractCallTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedContractCallTx1Type = TxUnpackedComplex & {\n tag: Tag.ContractCallTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedContractCallTx1 extends TxUnpackedContractCallTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsOracleRegisterTx1Type = Omit<TxParamsComplex & {\n tag: Tag.OracleRegisterTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsOracleRegisterTx1 extends TxParamsOracleRegisterTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncOracleRegisterTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.OracleRegisterTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncOracleRegisterTx1 extends TxParamsAsyncOracleRegisterTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedOracleRegisterTx1Type = TxUnpackedComplex & {\n tag: Tag.OracleRegisterTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedOracleRegisterTx1 extends TxUnpackedOracleRegisterTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsOracleExtendTx1Type = Omit<TxParamsComplex & {\n tag: Tag.OracleExtendTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsOracleExtendTx1 extends TxParamsOracleExtendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncOracleExtendTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.OracleExtendTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncOracleExtendTx1 extends TxParamsAsyncOracleExtendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedOracleExtendTx1Type = TxUnpackedComplex & {\n tag: Tag.OracleExtendTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedOracleExtendTx1 extends TxUnpackedOracleExtendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsOracleQueryTx1Type = Omit<TxParamsComplex & {\n tag: Tag.OracleQueryTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsOracleQueryTx1 extends TxParamsOracleQueryTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncOracleQueryTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.OracleQueryTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncOracleQueryTx1 extends TxParamsAsyncOracleQueryTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedOracleQueryTx1Type = TxUnpackedComplex & {\n tag: Tag.OracleQueryTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedOracleQueryTx1 extends TxUnpackedOracleQueryTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsOracleResponseTx1Type = Omit<TxParamsComplex & {\n tag: Tag.OracleResponseTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsOracleResponseTx1 extends TxParamsOracleResponseTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncOracleResponseTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.OracleResponseTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncOracleResponseTx1 extends TxParamsAsyncOracleResponseTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedOracleResponseTx1Type = TxUnpackedComplex & {\n tag: Tag.OracleResponseTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedOracleResponseTx1 extends TxUnpackedOracleResponseTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelCreateTx2Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelCreateTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelCreateTx2 extends TxParamsChannelCreateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelCreateTx2Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelCreateTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelCreateTx2 extends TxParamsAsyncChannelCreateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelCreateTx2Type = TxUnpackedComplex & {\n tag: Tag.ChannelCreateTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelCreateTx2 extends TxUnpackedChannelCreateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelCloseMutualTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelCloseMutualTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelCloseMutualTx1 extends TxParamsChannelCloseMutualTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelCloseMutualTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelCloseMutualTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelCloseMutualTx1 extends TxParamsAsyncChannelCloseMutualTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelCloseMutualTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelCloseMutualTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelCloseMutualTx1 extends TxUnpackedChannelCloseMutualTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelCloseSoloTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelCloseSoloTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelCloseSoloTx1 extends TxParamsChannelCloseSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelCloseSoloTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelCloseSoloTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelCloseSoloTx1 extends TxParamsAsyncChannelCloseSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelCloseSoloTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelCloseSoloTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelCloseSoloTx1 extends TxUnpackedChannelCloseSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelSlashTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelSlashTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelSlashTx1 extends TxParamsChannelSlashTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelSlashTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelSlashTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelSlashTx1 extends TxParamsAsyncChannelSlashTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelSlashTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelSlashTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelSlashTx1 extends TxUnpackedChannelSlashTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelDepositTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelDepositTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelDepositTx1 extends TxParamsChannelDepositTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelDepositTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelDepositTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelDepositTx1 extends TxParamsAsyncChannelDepositTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelDepositTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelDepositTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelDepositTx1 extends TxUnpackedChannelDepositTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelWithdrawTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelWithdrawTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelWithdrawTx1 extends TxParamsChannelWithdrawTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelWithdrawTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelWithdrawTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelWithdrawTx1 extends TxParamsAsyncChannelWithdrawTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelWithdrawTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelWithdrawTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelWithdrawTx1 extends TxUnpackedChannelWithdrawTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelSettleTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelSettleTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelSettleTx1 extends TxParamsChannelSettleTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelSettleTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelSettleTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelSettleTx1 extends TxParamsAsyncChannelSettleTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelSettleTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelSettleTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelSettleTx1 extends TxUnpackedChannelSettleTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelForceProgressTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelForceProgressTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelForceProgressTx1 extends TxParamsChannelForceProgressTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelForceProgressTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelForceProgressTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelForceProgressTx1 extends TxParamsAsyncChannelForceProgressTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelForceProgressTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelForceProgressTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelForceProgressTx1 extends TxUnpackedChannelForceProgressTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelOffChainTx2Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelOffChainTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelOffChainTx2 extends TxParamsChannelOffChainTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelOffChainTx2Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelOffChainTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelOffChainTx2 extends TxParamsAsyncChannelOffChainTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelOffChainTx2Type = TxUnpackedComplex & {\n tag: Tag.ChannelOffChainTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelOffChainTx2 extends TxUnpackedChannelOffChainTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelSnapshotSoloTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelSnapshotSoloTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelSnapshotSoloTx1 extends TxParamsChannelSnapshotSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelSnapshotSoloTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelSnapshotSoloTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelSnapshotSoloTx1 extends TxParamsAsyncChannelSnapshotSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelSnapshotSoloTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelSnapshotSoloTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelSnapshotSoloTx1 extends TxUnpackedChannelSnapshotSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsGaAttachTx1Type = Omit<TxParamsComplex & {\n tag: Tag.GaAttachTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsGaAttachTx1 extends TxParamsGaAttachTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncGaAttachTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.GaAttachTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncGaAttachTx1 extends TxParamsAsyncGaAttachTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedGaAttachTx1Type = TxUnpackedComplex & {\n tag: Tag.GaAttachTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedGaAttachTx1 extends TxUnpackedGaAttachTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsGaMetaTx2Type = Omit<TxParamsComplex & {\n tag: Tag.GaMetaTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsGaMetaTx2 extends TxParamsGaMetaTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncGaMetaTx2Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.GaMetaTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncGaMetaTx2 extends TxParamsAsyncGaMetaTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedGaMetaTx2Type = TxUnpackedComplex & {\n tag: Tag.GaMetaTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedGaMetaTx2 extends TxUnpackedGaMetaTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsPayingForTx1Type = Omit<TxParamsComplex & {\n tag: Tag.PayingForTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsPayingForTx1 extends TxParamsPayingForTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncPayingForTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.PayingForTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncPayingForTx1 extends TxParamsAsyncPayingForTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedPayingForTx1Type = TxUnpackedComplex & {\n tag: Tag.PayingForTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedPayingForTx1 extends TxUnpackedPayingForTx1Type {\n}\n/**\n * @category transaction builder\n */\nexport type TxParams = TxParamsSignedTx1 | TxParamsSpendTx1 | TxParamsNamePreclaimTx1 | TxParamsNameClaimTx2 | TxParamsNameUpdateTx1 | TxParamsNameUpdateTx2 | TxParamsNameTransferTx1 | TxParamsNameRevokeTx1 | TxParamsContractCreateTx1 | TxParamsContractCallTx1 | TxParamsOracleRegisterTx1 | TxParamsOracleExtendTx1 | TxParamsOracleQueryTx1 | TxParamsOracleResponseTx1 | TxParamsChannelCreateTx2 | TxParamsChannelCloseMutualTx1 | TxParamsChannelCloseSoloTx1 | TxParamsChannelSlashTx1 | TxParamsChannelDepositTx1 | TxParamsChannelWithdrawTx1 | TxParamsChannelSettleTx1 | TxParamsChannelForceProgressTx1 | TxParamsChannelOffChainTx2 | TxParamsChannelSnapshotSoloTx1 | TxParamsGaAttachTx1 | TxParamsGaMetaTx2 | TxParamsPayingForTx1;\n/**\n * @category transaction builder\n */\nexport type TxParamsAsync = TxParamsAsyncSignedTx1 | TxParamsAsyncSpendTx1 | TxParamsAsyncNamePreclaimTx1 | TxParamsAsyncNameClaimTx2 | TxParamsAsyncNameUpdateTx1 | TxParamsAsyncNameUpdateTx2 | TxParamsAsyncNameTransferTx1 | TxParamsAsyncNameRevokeTx1 | TxParamsAsyncContractCreateTx1 | TxParamsAsyncContractCallTx1 | TxParamsAsyncOracleRegisterTx1 | TxParamsAsyncOracleExtendTx1 | TxParamsAsyncOracleQueryTx1 | TxParamsAsyncOracleResponseTx1 | TxParamsAsyncChannelCreateTx2 | TxParamsAsyncChannelCloseMutualTx1 | TxParamsAsyncChannelCloseSoloTx1 | TxParamsAsyncChannelSlashTx1 | TxParamsAsyncChannelDepositTx1 | TxParamsAsyncChannelWithdrawTx1 | TxParamsAsyncChannelSettleTx1 | TxParamsAsyncChannelForceProgressTx1 | TxParamsAsyncChannelOffChainTx2 | TxParamsAsyncChannelSnapshotSoloTx1 | TxParamsAsyncGaAttachTx1 | TxParamsAsyncGaMetaTx2 | TxParamsAsyncPayingForTx1;\n/**\n * @category transaction builder\n */\nexport type TxUnpacked = TxUnpackedSignedTx1 | TxUnpackedSpendTx1 | TxUnpackedNamePreclaimTx1 | TxUnpackedNameClaimTx2 | TxUnpackedNameUpdateTx1 | TxUnpackedNameUpdateTx2 | TxUnpackedNameTransferTx1 | TxUnpackedNameRevokeTx1 | TxUnpackedContractCreateTx1 | TxUnpackedContractCallTx1 | TxUnpackedOracleRegisterTx1 | TxUnpackedOracleExtendTx1 | TxUnpackedOracleQueryTx1 | TxUnpackedOracleResponseTx1 | TxUnpackedChannelCreateTx2 | TxUnpackedChannelCloseMutualTx1 | TxUnpackedChannelCloseSoloTx1 | TxUnpackedChannelSlashTx1 | TxUnpackedChannelDepositTx1 | TxUnpackedChannelWithdrawTx1 | TxUnpackedChannelSettleTx1 | TxUnpackedChannelForceProgressTx1 | TxUnpackedChannelOffChainTx2 | TxUnpackedChannelSnapshotSoloTx1 | TxUnpackedGaAttachTx1 | TxUnpackedGaMetaTx2 | TxUnpackedPayingForTx1;\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"schema.generated.js","names":[],"sources":["../../../src/tx/builder/schema.generated.ts"],"sourcesContent":["/* eslint-disable */\n// This file generated by `npm run build:generate`, don't edit manually.\n\nimport { TxParams as TxParamsComplex, TxParamsAsync as TxParamsAsyncComplex, TxUnpacked as TxUnpackedComplex } from \"./schema.js\";\nimport { Tag } from \"./constants.js\";\n/**\n * @category transaction builder\n */\ntype TxParamsSignedTx1Type = Omit<TxParamsComplex & {\n tag: Tag.SignedTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsSignedTx1 extends TxParamsSignedTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncSignedTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.SignedTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncSignedTx1 extends TxParamsAsyncSignedTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedSignedTx1Type = TxUnpackedComplex & {\n tag: Tag.SignedTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedSignedTx1 extends TxUnpackedSignedTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsSpendTx1Type = Omit<TxParamsComplex & {\n tag: Tag.SpendTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsSpendTx1 extends TxParamsSpendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncSpendTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.SpendTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncSpendTx1 extends TxParamsAsyncSpendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedSpendTx1Type = TxUnpackedComplex & {\n tag: Tag.SpendTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedSpendTx1 extends TxUnpackedSpendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNamePreclaimTx1Type = Omit<TxParamsComplex & {\n tag: Tag.NamePreclaimTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNamePreclaimTx1 extends TxParamsNamePreclaimTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNamePreclaimTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NamePreclaimTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNamePreclaimTx1 extends TxParamsAsyncNamePreclaimTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNamePreclaimTx1Type = TxUnpackedComplex & {\n tag: Tag.NamePreclaimTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNamePreclaimTx1 extends TxUnpackedNamePreclaimTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameClaimTx2Type = Omit<TxParamsComplex & {\n tag: Tag.NameClaimTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameClaimTx2 extends TxParamsNameClaimTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameClaimTx2Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NameClaimTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameClaimTx2 extends TxParamsAsyncNameClaimTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameClaimTx2Type = TxUnpackedComplex & {\n tag: Tag.NameClaimTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameClaimTx2 extends TxUnpackedNameClaimTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameUpdateTx1Type = Omit<TxParamsComplex & {\n tag: Tag.NameUpdateTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameUpdateTx1 extends TxParamsNameUpdateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameUpdateTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NameUpdateTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameUpdateTx1 extends TxParamsAsyncNameUpdateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameUpdateTx1Type = TxUnpackedComplex & {\n tag: Tag.NameUpdateTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameUpdateTx1 extends TxUnpackedNameUpdateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameUpdateTx2Type = TxParamsComplex & {\n tag: Tag.NameUpdateTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameUpdateTx2 extends TxParamsNameUpdateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameUpdateTx2Type = TxParamsAsyncComplex & {\n tag: Tag.NameUpdateTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameUpdateTx2 extends TxParamsAsyncNameUpdateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameUpdateTx2Type = TxUnpackedComplex & {\n tag: Tag.NameUpdateTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameUpdateTx2 extends TxUnpackedNameUpdateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameTransferTx1Type = Omit<TxParamsComplex & {\n tag: Tag.NameTransferTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameTransferTx1 extends TxParamsNameTransferTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameTransferTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NameTransferTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameTransferTx1 extends TxParamsAsyncNameTransferTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameTransferTx1Type = TxUnpackedComplex & {\n tag: Tag.NameTransferTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameTransferTx1 extends TxUnpackedNameTransferTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsNameRevokeTx1Type = Omit<TxParamsComplex & {\n tag: Tag.NameRevokeTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsNameRevokeTx1 extends TxParamsNameRevokeTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncNameRevokeTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.NameRevokeTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncNameRevokeTx1 extends TxParamsAsyncNameRevokeTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedNameRevokeTx1Type = TxUnpackedComplex & {\n tag: Tag.NameRevokeTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedNameRevokeTx1 extends TxUnpackedNameRevokeTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsContractCreateTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ContractCreateTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsContractCreateTx1 extends TxParamsContractCreateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncContractCreateTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ContractCreateTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncContractCreateTx1 extends TxParamsAsyncContractCreateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedContractCreateTx1Type = TxUnpackedComplex & {\n tag: Tag.ContractCreateTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedContractCreateTx1 extends TxUnpackedContractCreateTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsContractCallTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ContractCallTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsContractCallTx1 extends TxParamsContractCallTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncContractCallTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ContractCallTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncContractCallTx1 extends TxParamsAsyncContractCallTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedContractCallTx1Type = TxUnpackedComplex & {\n tag: Tag.ContractCallTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedContractCallTx1 extends TxUnpackedContractCallTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsOracleRegisterTx1Type = Omit<TxParamsComplex & {\n tag: Tag.OracleRegisterTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsOracleRegisterTx1 extends TxParamsOracleRegisterTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncOracleRegisterTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.OracleRegisterTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncOracleRegisterTx1 extends TxParamsAsyncOracleRegisterTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedOracleRegisterTx1Type = TxUnpackedComplex & {\n tag: Tag.OracleRegisterTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedOracleRegisterTx1 extends TxUnpackedOracleRegisterTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsOracleExtendTx1Type = Omit<TxParamsComplex & {\n tag: Tag.OracleExtendTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsOracleExtendTx1 extends TxParamsOracleExtendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncOracleExtendTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.OracleExtendTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncOracleExtendTx1 extends TxParamsAsyncOracleExtendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedOracleExtendTx1Type = TxUnpackedComplex & {\n tag: Tag.OracleExtendTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedOracleExtendTx1 extends TxUnpackedOracleExtendTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsOracleQueryTx1Type = Omit<TxParamsComplex & {\n tag: Tag.OracleQueryTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsOracleQueryTx1 extends TxParamsOracleQueryTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncOracleQueryTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.OracleQueryTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncOracleQueryTx1 extends TxParamsAsyncOracleQueryTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedOracleQueryTx1Type = TxUnpackedComplex & {\n tag: Tag.OracleQueryTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedOracleQueryTx1 extends TxUnpackedOracleQueryTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsOracleRespondTx1Type = Omit<TxParamsComplex & {\n tag: Tag.OracleRespondTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsOracleRespondTx1 extends TxParamsOracleRespondTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncOracleRespondTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.OracleRespondTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncOracleRespondTx1 extends TxParamsAsyncOracleRespondTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedOracleRespondTx1Type = TxUnpackedComplex & {\n tag: Tag.OracleRespondTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedOracleRespondTx1 extends TxUnpackedOracleRespondTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelCreateTx2Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelCreateTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelCreateTx2 extends TxParamsChannelCreateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelCreateTx2Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelCreateTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelCreateTx2 extends TxParamsAsyncChannelCreateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelCreateTx2Type = TxUnpackedComplex & {\n tag: Tag.ChannelCreateTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelCreateTx2 extends TxUnpackedChannelCreateTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelCloseMutualTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelCloseMutualTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelCloseMutualTx1 extends TxParamsChannelCloseMutualTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelCloseMutualTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelCloseMutualTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelCloseMutualTx1 extends TxParamsAsyncChannelCloseMutualTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelCloseMutualTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelCloseMutualTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelCloseMutualTx1 extends TxUnpackedChannelCloseMutualTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelCloseSoloTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelCloseSoloTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelCloseSoloTx1 extends TxParamsChannelCloseSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelCloseSoloTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelCloseSoloTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelCloseSoloTx1 extends TxParamsAsyncChannelCloseSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelCloseSoloTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelCloseSoloTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelCloseSoloTx1 extends TxUnpackedChannelCloseSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelSlashTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelSlashTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelSlashTx1 extends TxParamsChannelSlashTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelSlashTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelSlashTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelSlashTx1 extends TxParamsAsyncChannelSlashTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelSlashTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelSlashTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelSlashTx1 extends TxUnpackedChannelSlashTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelDepositTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelDepositTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelDepositTx1 extends TxParamsChannelDepositTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelDepositTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelDepositTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelDepositTx1 extends TxParamsAsyncChannelDepositTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelDepositTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelDepositTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelDepositTx1 extends TxUnpackedChannelDepositTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelWithdrawTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelWithdrawTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelWithdrawTx1 extends TxParamsChannelWithdrawTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelWithdrawTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelWithdrawTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelWithdrawTx1 extends TxParamsAsyncChannelWithdrawTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelWithdrawTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelWithdrawTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelWithdrawTx1 extends TxUnpackedChannelWithdrawTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelSettleTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelSettleTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelSettleTx1 extends TxParamsChannelSettleTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelSettleTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelSettleTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelSettleTx1 extends TxParamsAsyncChannelSettleTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelSettleTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelSettleTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelSettleTx1 extends TxUnpackedChannelSettleTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelForceProgressTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelForceProgressTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelForceProgressTx1 extends TxParamsChannelForceProgressTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelForceProgressTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelForceProgressTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelForceProgressTx1 extends TxParamsAsyncChannelForceProgressTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelForceProgressTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelForceProgressTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelForceProgressTx1 extends TxUnpackedChannelForceProgressTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelOffChainTx2Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelOffChainTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelOffChainTx2 extends TxParamsChannelOffChainTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelOffChainTx2Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelOffChainTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelOffChainTx2 extends TxParamsAsyncChannelOffChainTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelOffChainTx2Type = TxUnpackedComplex & {\n tag: Tag.ChannelOffChainTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelOffChainTx2 extends TxUnpackedChannelOffChainTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsChannelSnapshotSoloTx1Type = Omit<TxParamsComplex & {\n tag: Tag.ChannelSnapshotSoloTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsChannelSnapshotSoloTx1 extends TxParamsChannelSnapshotSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncChannelSnapshotSoloTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.ChannelSnapshotSoloTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncChannelSnapshotSoloTx1 extends TxParamsAsyncChannelSnapshotSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedChannelSnapshotSoloTx1Type = TxUnpackedComplex & {\n tag: Tag.ChannelSnapshotSoloTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedChannelSnapshotSoloTx1 extends TxUnpackedChannelSnapshotSoloTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsGaAttachTx1Type = Omit<TxParamsComplex & {\n tag: Tag.GaAttachTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsGaAttachTx1 extends TxParamsGaAttachTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncGaAttachTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.GaAttachTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncGaAttachTx1 extends TxParamsAsyncGaAttachTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedGaAttachTx1Type = TxUnpackedComplex & {\n tag: Tag.GaAttachTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedGaAttachTx1 extends TxUnpackedGaAttachTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsGaMetaTx2Type = Omit<TxParamsComplex & {\n tag: Tag.GaMetaTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsGaMetaTx2 extends TxParamsGaMetaTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncGaMetaTx2Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.GaMetaTx;\n version: 2;\n}, \"version\"> & {\n version?: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncGaMetaTx2 extends TxParamsAsyncGaMetaTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedGaMetaTx2Type = TxUnpackedComplex & {\n tag: Tag.GaMetaTx;\n version: 2;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedGaMetaTx2 extends TxUnpackedGaMetaTx2Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsPayingForTx1Type = Omit<TxParamsComplex & {\n tag: Tag.PayingForTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsPayingForTx1 extends TxParamsPayingForTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxParamsAsyncPayingForTx1Type = Omit<TxParamsAsyncComplex & {\n tag: Tag.PayingForTx;\n version: 1;\n}, \"version\"> & {\n version?: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxParamsAsyncPayingForTx1 extends TxParamsAsyncPayingForTx1Type {\n}\n/**\n * @category transaction builder\n */\ntype TxUnpackedPayingForTx1Type = TxUnpackedComplex & {\n tag: Tag.PayingForTx;\n version: 1;\n};\n/**\n * @category transaction builder\n */\nexport interface TxUnpackedPayingForTx1 extends TxUnpackedPayingForTx1Type {\n}\n/**\n * @category transaction builder\n */\nexport type TxParams = TxParamsSignedTx1 | TxParamsSpendTx1 | TxParamsNamePreclaimTx1 | TxParamsNameClaimTx2 | TxParamsNameUpdateTx1 | TxParamsNameUpdateTx2 | TxParamsNameTransferTx1 | TxParamsNameRevokeTx1 | TxParamsContractCreateTx1 | TxParamsContractCallTx1 | TxParamsOracleRegisterTx1 | TxParamsOracleExtendTx1 | TxParamsOracleQueryTx1 | TxParamsOracleRespondTx1 | TxParamsChannelCreateTx2 | TxParamsChannelCloseMutualTx1 | TxParamsChannelCloseSoloTx1 | TxParamsChannelSlashTx1 | TxParamsChannelDepositTx1 | TxParamsChannelWithdrawTx1 | TxParamsChannelSettleTx1 | TxParamsChannelForceProgressTx1 | TxParamsChannelOffChainTx2 | TxParamsChannelSnapshotSoloTx1 | TxParamsGaAttachTx1 | TxParamsGaMetaTx2 | TxParamsPayingForTx1;\n/**\n * @category transaction builder\n */\nexport type TxParamsAsync = TxParamsAsyncSignedTx1 | TxParamsAsyncSpendTx1 | TxParamsAsyncNamePreclaimTx1 | TxParamsAsyncNameClaimTx2 | TxParamsAsyncNameUpdateTx1 | TxParamsAsyncNameUpdateTx2 | TxParamsAsyncNameTransferTx1 | TxParamsAsyncNameRevokeTx1 | TxParamsAsyncContractCreateTx1 | TxParamsAsyncContractCallTx1 | TxParamsAsyncOracleRegisterTx1 | TxParamsAsyncOracleExtendTx1 | TxParamsAsyncOracleQueryTx1 | TxParamsAsyncOracleRespondTx1 | TxParamsAsyncChannelCreateTx2 | TxParamsAsyncChannelCloseMutualTx1 | TxParamsAsyncChannelCloseSoloTx1 | TxParamsAsyncChannelSlashTx1 | TxParamsAsyncChannelDepositTx1 | TxParamsAsyncChannelWithdrawTx1 | TxParamsAsyncChannelSettleTx1 | TxParamsAsyncChannelForceProgressTx1 | TxParamsAsyncChannelOffChainTx2 | TxParamsAsyncChannelSnapshotSoloTx1 | TxParamsAsyncGaAttachTx1 | TxParamsAsyncGaMetaTx2 | TxParamsAsyncPayingForTx1;\n/**\n * @category transaction builder\n */\nexport type TxUnpacked = TxUnpackedSignedTx1 | TxUnpackedSpendTx1 | TxUnpackedNamePreclaimTx1 | TxUnpackedNameClaimTx2 | TxUnpackedNameUpdateTx1 | TxUnpackedNameUpdateTx2 | TxUnpackedNameTransferTx1 | TxUnpackedNameRevokeTx1 | TxUnpackedContractCreateTx1 | TxUnpackedContractCallTx1 | TxUnpackedOracleRegisterTx1 | TxUnpackedOracleExtendTx1 | TxUnpackedOracleQueryTx1 | TxUnpackedOracleRespondTx1 | TxUnpackedChannelCreateTx2 | TxUnpackedChannelCloseMutualTx1 | TxUnpackedChannelCloseSoloTx1 | TxUnpackedChannelSlashTx1 | TxUnpackedChannelDepositTx1 | TxUnpackedChannelWithdrawTx1 | TxUnpackedChannelSettleTx1 | TxUnpackedChannelForceProgressTx1 | TxUnpackedChannelOffChainTx2 | TxUnpackedChannelSnapshotSoloTx1 | TxUnpackedGaAttachTx1 | TxUnpackedGaMetaTx2 | TxUnpackedPayingForTx1;\n"],"mappings":"","ignoreList":[]}
|
package/es/tx/builder/schema.js
CHANGED
|
@@ -34,6 +34,9 @@ import withFormatting from './field-types/with-formatting.js';
|
|
|
34
34
|
import { Encoding } from '../../utils/encoder.js';
|
|
35
35
|
import { ArgumentError } from '../../utils/errors.js';
|
|
36
36
|
import { EntryTag } from './entry/constants.js';
|
|
37
|
+
/**
|
|
38
|
+
* @category oracle
|
|
39
|
+
*/
|
|
37
40
|
export let ORACLE_TTL_TYPES = /*#__PURE__*/function (ORACLE_TTL_TYPES) {
|
|
38
41
|
ORACLE_TTL_TYPES[ORACLE_TTL_TYPES["delta"] = 0] = "delta";
|
|
39
42
|
ORACLE_TTL_TYPES[ORACLE_TTL_TYPES["block"] = 1] = "block";
|
|
@@ -51,9 +54,8 @@ const clientTtl = withDefault(60 * 60, shortUInt);
|
|
|
51
54
|
* Name ttl represented in number of blocks (Max value is 50000 blocks)
|
|
52
55
|
*/
|
|
53
56
|
const nameTtl = withFormatting(value => {
|
|
54
|
-
var _value;
|
|
55
57
|
const NAME_TTL = 180000;
|
|
56
|
-
|
|
58
|
+
value !== null && value !== void 0 ? value : value = NAME_TTL;
|
|
57
59
|
if (value >= 1 && value <= NAME_TTL) return value;
|
|
58
60
|
throw new ArgumentError('nameTtl', `a number between 1 and ${NAME_TTL} blocks`, value);
|
|
59
61
|
}, shortUInt);
|
|
@@ -206,7 +208,7 @@ export const txSchema = [{
|
|
|
206
208
|
fee,
|
|
207
209
|
ttl
|
|
208
210
|
}, {
|
|
209
|
-
tag: shortUIntConst(Tag.
|
|
211
|
+
tag: shortUIntConst(Tag.OracleRespondTx),
|
|
210
212
|
version: shortUIntConst(1, true),
|
|
211
213
|
oracleId: address(Encoding.OracleAddress),
|
|
212
214
|
nonce: nonce('oracleId'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","names":["Tag","abiVersion","address","idTagToEncoding","array","coinAmount","ctVersion","encoded","entry","enumeration","fee","gasLimit","gasPrice","name","nameFee","nameId","nonce","pointers","queryFee","raw","shortUInt","shortUIntConst","string","transaction","ttl","uInt","withDefault","withFormatting","Encoding","ArgumentError","EntryTag","ORACLE_TTL_TYPES","transactionAny","transactionSignedTx","SignedTx","entryTreesPoi","TreesPoi","clientTtl","nameTtl","value","_value","NAME_TTL","txSchema","tag","version","signatures","encodedTx","SpendTx","senderId","AccountAddress","recipientId","ContractAddress","Name","amount","payload","Bytearray","NamePreclaimTx","accountId","commitmentId","Commitment","NameClaimTx","nameSalt","NameUpdateTx","NameTransferTx","NameRevokeTx","ContractCreateTx","ownerId","code","ContractBytearray","deposit","callData","ContractCallTx","callerId","contractId","OracleRegisterTx","queryFormat","responseFormat","oracleTtlType","delta","oracleTtlValue","OracleExtendTx","oracleId","OracleAddress","OracleQueryTx","query","queryTtlType","queryTtlValue","responseTtlType","responseTtlValue","OracleResponseTx","queryId","OracleQueryId","response","ChannelCreateTx","initiator","initiatorAmount","responder","responderAmount","channelReserve","lockPeriod","initiatorDelegateIds","responderDelegateIds","stateHash","State","ChannelCloseMutualTx","channelId","Channel","fromId","initiatorAmountFinal","responderAmountFinal","ChannelCloseSoloTx","Transaction","poi","ChannelSlashTx","ChannelDepositTx","round","ChannelWithdrawTx","toId","ChannelSettleTx","ChannelForceProgressTx","update","offChainTrees","StateTrees","ChannelOffChainTx","ChannelSnapshotSoloTx","GaAttachTx","authFun","GaMetaTx","gaId","authData","tx","PayingForTx","payerId"],"sources":["../../../src/tx/builder/schema.ts"],"sourcesContent":["/**\n * Transaction Schema for TxBuilder\n */\n// # RLP version number\n// # https://github.com/aeternity/protocol/blob/master/serializations.md#binary-serialization\n\nimport { Tag } from './constants.js';\nimport SchemaTypes from './SchemaTypes.js';\nimport abiVersion from './field-types/abi-version.js';\nimport address, { idTagToEncoding } from './field-types/address.js';\nimport array from './field-types/array.js';\nimport coinAmount from './field-types/coin-amount.js';\nimport ctVersion from './field-types/ct-version.js';\nimport encoded from './field-types/encoded.js';\nimport entry from './field-types/entry.js';\nimport enumeration from './field-types/enumeration.js';\nimport fee from './field-types/fee.js';\nimport gasLimit from './field-types/gas-limit.js';\nimport gasPrice from './field-types/gas-price.js';\nimport name from './field-types/name.js';\nimport nameFee from './field-types/name-fee.js';\nimport nameId from './field-types/name-id.js';\nimport nonce from './field-types/nonce.js';\nimport pointers from './field-types/pointers.js';\nimport queryFee from './field-types/query-fee.js';\nimport raw from './field-types/raw.js';\nimport shortUInt from './field-types/short-u-int.js';\nimport shortUIntConst from './field-types/short-u-int-const.js';\nimport string from './field-types/string.js';\nimport transaction from './field-types/transaction.js';\nimport ttl from './field-types/ttl.js';\nimport uInt from './field-types/u-int.js';\nimport withDefault from './field-types/with-default.js';\nimport withFormatting from './field-types/with-formatting.js';\nimport { Encoded, Encoding } from '../../utils/encoder.js';\nimport { ArgumentError } from '../../utils/errors.js';\nimport { EntryTag } from './entry/constants.js';\nimport { EntParams, EntUnpacked } from './entry/schema.generated.js';\n\nexport enum ORACLE_TTL_TYPES {\n delta = 0,\n block = 1,\n}\n\n// TODO: figure out how to omit overriding types of recursive fields\ninterface TransactionAny {\n serialize: (value: TxParams | Uint8Array | Encoded.Transaction) => Buffer;\n deserialize: (value: Buffer) => TxUnpacked;\n recursiveType: true;\n}\n\nconst transactionAny = transaction() as unknown as TransactionAny;\n\ninterface TransactionSignedTx {\n serialize: (\n value: (TxParams & { tag: Tag.SignedTx }) | Uint8Array | Encoded.Transaction,\n ) => Buffer;\n deserialize: (value: Buffer) => TxUnpacked & { tag: Tag.SignedTx };\n recursiveType: true;\n}\n\nconst transactionSignedTx = transaction(Tag.SignedTx) as unknown as TransactionSignedTx;\n\ninterface EntryTreesPoi {\n serialize: (\n value: (EntParams & { tag: EntryTag.TreesPoi }) | Uint8Array | Encoded.Transaction,\n ) => Buffer;\n deserialize: (value: Buffer) => EntUnpacked & { tag: EntryTag.TreesPoi };\n recursiveType: true;\n}\n\nconst entryTreesPoi = entry(EntryTag.TreesPoi) as unknown as EntryTreesPoi;\n\nconst clientTtl = withDefault(60 * 60, shortUInt);\n// https://github.com/aeternity/protocol/blob/fd17982/AENS.md#update\n/**\n * Name ttl represented in number of blocks (Max value is 50000 blocks)\n */\nconst nameTtl = withFormatting((value) => {\n const NAME_TTL = 180000;\n value ??= NAME_TTL;\n if (value >= 1 && value <= NAME_TTL) return value;\n throw new ArgumentError('nameTtl', `a number between 1 and ${NAME_TTL} blocks`, value);\n}, shortUInt);\n\n/**\n * @see {@link https://github.com/aeternity/protocol/blob/c007deeac4a01e401238412801ac7084ac72d60e/serializations.md#accounts-version-1-basic-accounts}\n */\nexport const txSchema = [\n {\n tag: shortUIntConst(Tag.SignedTx),\n version: shortUIntConst(1, true),\n signatures: array(raw), // TODO: use sg_ (Encoding.Signature) instead\n encodedTx: transactionAny,\n },\n {\n tag: shortUIntConst(Tag.SpendTx),\n version: shortUIntConst(1, true),\n senderId: address(Encoding.AccountAddress),\n // TODO: accept also an AENS name\n recipientId: address(Encoding.AccountAddress, Encoding.ContractAddress, Encoding.Name),\n amount: coinAmount,\n fee,\n ttl,\n nonce: nonce('senderId'),\n payload: encoded(Encoding.Bytearray, true),\n },\n {\n tag: shortUIntConst(Tag.NamePreclaimTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n commitmentId: address(Encoding.Commitment),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameClaimTx),\n version: shortUIntConst(2, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n name,\n nameSalt: withDefault(0, uInt),\n nameFee,\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameUpdateTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n nameId,\n nameTtl,\n pointers: pointers(false),\n clientTtl,\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameUpdateTx),\n version: shortUIntConst(2),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n nameId,\n nameTtl,\n pointers: pointers(true),\n clientTtl,\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameTransferTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n nameId,\n // TODO: accept also an AENS name\n recipientId: address(Encoding.AccountAddress, Encoding.Name),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameRevokeTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n nameId,\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.ContractCreateTx),\n version: shortUIntConst(1, true),\n ownerId: address(Encoding.AccountAddress),\n nonce: nonce('ownerId'),\n code: encoded(Encoding.ContractBytearray),\n ctVersion,\n fee,\n ttl,\n deposit: withFormatting((value = 0) => {\n if (+value === 0) return value;\n throw new ArgumentError('deposit', 'equal 0 (because is not refundable)', value);\n }, coinAmount),\n amount: coinAmount,\n gasLimit,\n gasPrice,\n callData: encoded(Encoding.ContractBytearray),\n },\n {\n tag: shortUIntConst(Tag.ContractCallTx),\n version: shortUIntConst(1, true),\n callerId: address(Encoding.AccountAddress),\n nonce: nonce('callerId'),\n // TODO: accept also an AENS name\n contractId: address(Encoding.ContractAddress, Encoding.Name),\n abiVersion,\n fee,\n ttl,\n amount: coinAmount,\n gasLimit,\n gasPrice,\n callData: encoded(Encoding.ContractBytearray),\n },\n {\n tag: shortUIntConst(Tag.OracleRegisterTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n queryFormat: string,\n responseFormat: string,\n queryFee: coinAmount,\n oracleTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n oracleTtlValue: withDefault(500, shortUInt),\n fee,\n ttl,\n abiVersion,\n },\n {\n tag: shortUIntConst(Tag.OracleExtendTx),\n version: shortUIntConst(1, true),\n // TODO: accept also an AENS name\n oracleId: address(Encoding.OracleAddress, Encoding.Name),\n nonce: nonce('oracleId'),\n oracleTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n oracleTtlValue: withDefault(500, shortUInt),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.OracleQueryTx),\n version: shortUIntConst(1, true),\n senderId: address(Encoding.AccountAddress),\n nonce: nonce('senderId'),\n // TODO: accept also an AENS name\n oracleId: address(Encoding.OracleAddress, Encoding.Name),\n query: string,\n queryFee,\n queryTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n queryTtlValue: withDefault(10, shortUInt),\n responseTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n responseTtlValue: withDefault(10, shortUInt),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.OracleResponseTx),\n version: shortUIntConst(1, true),\n oracleId: address(Encoding.OracleAddress),\n nonce: nonce('oracleId'),\n queryId: encoded(Encoding.OracleQueryId),\n response: string,\n responseTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n responseTtlValue: withDefault(10, shortUInt),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.ChannelCreateTx),\n version: shortUIntConst(2, true),\n initiator: address(Encoding.AccountAddress),\n initiatorAmount: uInt,\n responder: address(Encoding.AccountAddress),\n responderAmount: uInt,\n channelReserve: uInt,\n lockPeriod: uInt,\n ttl,\n fee,\n initiatorDelegateIds: array(address(...idTagToEncoding)),\n responderDelegateIds: array(address(...idTagToEncoding)),\n stateHash: encoded(Encoding.State),\n nonce: nonce('initiator'),\n },\n {\n tag: shortUIntConst(Tag.ChannelCloseMutualTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n initiatorAmountFinal: uInt,\n responderAmountFinal: uInt,\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelCloseSoloTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n payload: encoded(Encoding.Transaction),\n poi: entryTreesPoi,\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelSlashTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n payload: encoded(Encoding.Transaction),\n poi: entryTreesPoi,\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelDepositTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n amount: uInt,\n ttl,\n fee,\n stateHash: encoded(Encoding.State),\n round: shortUInt,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelWithdrawTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n toId: address(Encoding.AccountAddress),\n amount: uInt,\n ttl,\n fee,\n stateHash: encoded(Encoding.State),\n round: shortUInt,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelSettleTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n initiatorAmountFinal: uInt,\n responderAmountFinal: uInt,\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelForceProgressTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n payload: encoded(Encoding.Transaction),\n round: shortUInt,\n update: encoded(Encoding.ContractBytearray),\n stateHash: encoded(Encoding.State),\n offChainTrees: encoded(Encoding.StateTrees),\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelOffChainTx),\n version: shortUIntConst(2, true),\n channelId: address(Encoding.Channel),\n round: shortUInt,\n stateHash: encoded(Encoding.State),\n },\n {\n tag: shortUIntConst(Tag.ChannelSnapshotSoloTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n payload: encoded(Encoding.Transaction),\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.GaAttachTx),\n version: shortUIntConst(1, true),\n ownerId: address(Encoding.AccountAddress),\n nonce: nonce('ownerId'),\n code: encoded(Encoding.ContractBytearray),\n authFun: raw,\n ctVersion,\n fee,\n ttl,\n gasLimit,\n gasPrice,\n callData: encoded(Encoding.ContractBytearray),\n },\n {\n tag: shortUIntConst(Tag.GaMetaTx),\n version: shortUIntConst(2, true),\n gaId: address(Encoding.AccountAddress),\n authData: encoded(Encoding.ContractBytearray),\n abiVersion,\n fee,\n gasLimit,\n gasPrice,\n tx: transactionSignedTx,\n },\n {\n tag: shortUIntConst(Tag.PayingForTx),\n version: shortUIntConst(1, true),\n payerId: address(Encoding.AccountAddress),\n nonce: nonce('payerId'),\n fee,\n tx: transactionSignedTx,\n },\n] as const;\n\ntype TxSchema = SchemaTypes<typeof txSchema>;\nexport type TxParams = TxSchema['TxParams'];\nexport type TxParamsAsync = TxSchema['TxParamsAsync'];\nexport type TxUnpacked = TxSchema['TxUnpacked'];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,OAAOC,UAAU,MAAM,8BAA8B;AACrD,OAAOC,OAAO,IAAIC,eAAe,QAAQ,0BAA0B;AACnE,OAAOC,KAAK,MAAM,wBAAwB;AAC1C,OAAOC,UAAU,MAAM,8BAA8B;AACrD,OAAOC,SAAS,MAAM,6BAA6B;AACnD,OAAOC,OAAO,MAAM,0BAA0B;AAC9C,OAAOC,KAAK,MAAM,wBAAwB;AAC1C,OAAOC,WAAW,MAAM,8BAA8B;AACtD,OAAOC,GAAG,MAAM,sBAAsB;AACtC,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,OAAOC,QAAQ,MAAM,4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ACzCjC,KAAK,EAAEA,KAAK,CAAC,SAAS,CAAC;EACvBmD,IAAI,EAAE5D,OAAO,CAACqB,QAAQ,CAACwC,iBAAiB,CAAC;EACzC0D,OAAO,EAAE3G,GAAG;EACZb,SAAS;EACTI,GAAG;EACHc,GAAG;EACHb,QAAQ;EACRC,QAAQ;EACR0D,QAAQ,EAAE/D,OAAO,CAACqB,QAAQ,CAACwC,iBAAiB;AAC9C,CAAC,EACD;EACEzB,GAAG,EAAEtB,cAAc,CAACrB,GAAG,CAAC+H,QAAQ,CAAC;EACjCnF,OAAO,EAAEvB,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC;EAChC2G,IAAI,EAAE9H,OAAO,CAAC0B,QAAQ,CAACqB,cAAc,CAAC;EACtCgF,QAAQ,EAAE1H,OAAO,CAACqB,QAAQ,CAACwC,iBAAiB,CAAC;EAC7CnE,UAAU;EACVS,GAAG;EACHC,QAAQ;EACRC,QAAQ;EACRsH,EAAE,EAAEjG;AACN,CAAC,EACD;EACEU,GAAG,EAAEtB,cAAc,CAACrB,GAAG,CAACmI,WAAW,CAAC;EACpCvF,OAAO,EAAEvB,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC;EAChC+G,OAAO,EAAElI,OAAO,CAAC0B,QAAQ,CAACqB,cAAc,CAAC;EACzCjC,KAAK,EAAEA,KAAK,CAAC,SAAS,CAAC;EACvBN,GAAG;EACHwH,EAAE,EAAEjG;AACN,CAAC,CACO","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"schema.js","names":["Tag","abiVersion","address","idTagToEncoding","array","coinAmount","ctVersion","encoded","entry","enumeration","fee","gasLimit","gasPrice","name","nameFee","nameId","nonce","pointers","queryFee","raw","shortUInt","shortUIntConst","string","transaction","ttl","uInt","withDefault","withFormatting","Encoding","ArgumentError","EntryTag","ORACLE_TTL_TYPES","transactionAny","transactionSignedTx","SignedTx","entryTreesPoi","TreesPoi","clientTtl","nameTtl","value","NAME_TTL","txSchema","tag","version","signatures","encodedTx","SpendTx","senderId","AccountAddress","recipientId","ContractAddress","Name","amount","payload","Bytearray","NamePreclaimTx","accountId","commitmentId","Commitment","NameClaimTx","nameSalt","NameUpdateTx","NameTransferTx","NameRevokeTx","ContractCreateTx","ownerId","code","ContractBytearray","deposit","callData","ContractCallTx","callerId","contractId","OracleRegisterTx","queryFormat","responseFormat","oracleTtlType","delta","oracleTtlValue","OracleExtendTx","oracleId","OracleAddress","OracleQueryTx","query","queryTtlType","queryTtlValue","responseTtlType","responseTtlValue","OracleRespondTx","queryId","OracleQueryId","response","ChannelCreateTx","initiator","initiatorAmount","responder","responderAmount","channelReserve","lockPeriod","initiatorDelegateIds","responderDelegateIds","stateHash","State","ChannelCloseMutualTx","channelId","Channel","fromId","initiatorAmountFinal","responderAmountFinal","ChannelCloseSoloTx","Transaction","poi","ChannelSlashTx","ChannelDepositTx","round","ChannelWithdrawTx","toId","ChannelSettleTx","ChannelForceProgressTx","update","offChainTrees","StateTrees","ChannelOffChainTx","ChannelSnapshotSoloTx","GaAttachTx","authFun","GaMetaTx","gaId","authData","tx","PayingForTx","payerId"],"sources":["../../../src/tx/builder/schema.ts"],"sourcesContent":["/**\n * Transaction Schema for TxBuilder\n */\n// # RLP version number\n// # https://github.com/aeternity/protocol/blob/master/serializations.md#binary-serialization\n\nimport { Tag } from './constants.js';\nimport SchemaTypes from './SchemaTypes.js';\nimport abiVersion from './field-types/abi-version.js';\nimport address, { idTagToEncoding } from './field-types/address.js';\nimport array from './field-types/array.js';\nimport coinAmount from './field-types/coin-amount.js';\nimport ctVersion from './field-types/ct-version.js';\nimport encoded from './field-types/encoded.js';\nimport entry from './field-types/entry.js';\nimport enumeration from './field-types/enumeration.js';\nimport fee from './field-types/fee.js';\nimport gasLimit from './field-types/gas-limit.js';\nimport gasPrice from './field-types/gas-price.js';\nimport name from './field-types/name.js';\nimport nameFee from './field-types/name-fee.js';\nimport nameId from './field-types/name-id.js';\nimport nonce from './field-types/nonce.js';\nimport pointers from './field-types/pointers.js';\nimport queryFee from './field-types/query-fee.js';\nimport raw from './field-types/raw.js';\nimport shortUInt from './field-types/short-u-int.js';\nimport shortUIntConst from './field-types/short-u-int-const.js';\nimport string from './field-types/string.js';\nimport transaction from './field-types/transaction.js';\nimport ttl from './field-types/ttl.js';\nimport uInt from './field-types/u-int.js';\nimport withDefault from './field-types/with-default.js';\nimport withFormatting from './field-types/with-formatting.js';\nimport { Encoded, Encoding } from '../../utils/encoder.js';\nimport { ArgumentError } from '../../utils/errors.js';\nimport { EntryTag } from './entry/constants.js';\nimport { EntParams, EntUnpacked } from './entry/schema.generated.js';\n\n/**\n * @category oracle\n */\nexport enum ORACLE_TTL_TYPES {\n delta = 0,\n block = 1,\n}\n\n// TODO: figure out how to omit overriding types of recursive fields\ninterface TransactionAny {\n serialize: (value: TxParams | Uint8Array | Encoded.Transaction) => Buffer;\n deserialize: (value: Buffer) => TxUnpacked;\n recursiveType: true;\n}\n\nconst transactionAny = transaction() as unknown as TransactionAny;\n\ninterface TransactionSignedTx {\n serialize: (\n value: (TxParams & { tag: Tag.SignedTx }) | Uint8Array | Encoded.Transaction,\n ) => Buffer;\n deserialize: (value: Buffer) => TxUnpacked & { tag: Tag.SignedTx };\n recursiveType: true;\n}\n\nconst transactionSignedTx = transaction(Tag.SignedTx) as unknown as TransactionSignedTx;\n\ninterface EntryTreesPoi {\n serialize: (\n value: (EntParams & { tag: EntryTag.TreesPoi }) | Uint8Array | Encoded.Transaction,\n ) => Buffer;\n deserialize: (value: Buffer) => EntUnpacked & { tag: EntryTag.TreesPoi };\n recursiveType: true;\n}\n\nconst entryTreesPoi = entry(EntryTag.TreesPoi) as unknown as EntryTreesPoi;\n\nconst clientTtl = withDefault(60 * 60, shortUInt);\n// https://github.com/aeternity/protocol/blob/fd17982/AENS.md#update\n/**\n * Name ttl represented in number of blocks (Max value is 50000 blocks)\n */\nconst nameTtl = withFormatting((value) => {\n const NAME_TTL = 180000;\n value ??= NAME_TTL;\n if (value >= 1 && value <= NAME_TTL) return value;\n throw new ArgumentError('nameTtl', `a number between 1 and ${NAME_TTL} blocks`, value);\n}, shortUInt);\n\n/**\n * @see {@link https://github.com/aeternity/protocol/blob/c007deeac4a01e401238412801ac7084ac72d60e/serializations.md#accounts-version-1-basic-accounts}\n */\nexport const txSchema = [\n {\n tag: shortUIntConst(Tag.SignedTx),\n version: shortUIntConst(1, true),\n signatures: array(raw), // TODO: use sg_ (Encoding.Signature) instead\n encodedTx: transactionAny,\n },\n {\n tag: shortUIntConst(Tag.SpendTx),\n version: shortUIntConst(1, true),\n senderId: address(Encoding.AccountAddress),\n // TODO: accept also an AENS name\n recipientId: address(Encoding.AccountAddress, Encoding.ContractAddress, Encoding.Name),\n amount: coinAmount,\n fee,\n ttl,\n nonce: nonce('senderId'),\n payload: encoded(Encoding.Bytearray, true),\n },\n {\n tag: shortUIntConst(Tag.NamePreclaimTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n commitmentId: address(Encoding.Commitment),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameClaimTx),\n version: shortUIntConst(2, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n name,\n nameSalt: withDefault(0, uInt),\n nameFee,\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameUpdateTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n nameId,\n nameTtl,\n pointers: pointers(false),\n clientTtl,\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameUpdateTx),\n version: shortUIntConst(2),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n nameId,\n nameTtl,\n pointers: pointers(true),\n clientTtl,\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameTransferTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n nameId,\n // TODO: accept also an AENS name\n recipientId: address(Encoding.AccountAddress, Encoding.Name),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.NameRevokeTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n nameId,\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.ContractCreateTx),\n version: shortUIntConst(1, true),\n ownerId: address(Encoding.AccountAddress),\n nonce: nonce('ownerId'),\n code: encoded(Encoding.ContractBytearray),\n ctVersion,\n fee,\n ttl,\n deposit: withFormatting((value = 0) => {\n if (+value === 0) return value;\n throw new ArgumentError('deposit', 'equal 0 (because is not refundable)', value);\n }, coinAmount),\n amount: coinAmount,\n gasLimit,\n gasPrice,\n callData: encoded(Encoding.ContractBytearray),\n },\n {\n tag: shortUIntConst(Tag.ContractCallTx),\n version: shortUIntConst(1, true),\n callerId: address(Encoding.AccountAddress),\n nonce: nonce('callerId'),\n // TODO: accept also an AENS name\n contractId: address(Encoding.ContractAddress, Encoding.Name),\n abiVersion,\n fee,\n ttl,\n amount: coinAmount,\n gasLimit,\n gasPrice,\n callData: encoded(Encoding.ContractBytearray),\n },\n {\n tag: shortUIntConst(Tag.OracleRegisterTx),\n version: shortUIntConst(1, true),\n accountId: address(Encoding.AccountAddress),\n nonce: nonce('accountId'),\n queryFormat: string,\n responseFormat: string,\n queryFee: coinAmount,\n oracleTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n oracleTtlValue: withDefault(500, shortUInt),\n fee,\n ttl,\n abiVersion,\n },\n {\n tag: shortUIntConst(Tag.OracleExtendTx),\n version: shortUIntConst(1, true),\n // TODO: accept also an AENS name\n oracleId: address(Encoding.OracleAddress, Encoding.Name),\n nonce: nonce('oracleId'),\n oracleTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n oracleTtlValue: withDefault(500, shortUInt),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.OracleQueryTx),\n version: shortUIntConst(1, true),\n senderId: address(Encoding.AccountAddress),\n nonce: nonce('senderId'),\n // TODO: accept also an AENS name\n oracleId: address(Encoding.OracleAddress, Encoding.Name),\n query: string,\n queryFee,\n queryTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n queryTtlValue: withDefault(10, shortUInt),\n responseTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n responseTtlValue: withDefault(10, shortUInt),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.OracleRespondTx),\n version: shortUIntConst(1, true),\n oracleId: address(Encoding.OracleAddress),\n nonce: nonce('oracleId'),\n queryId: encoded(Encoding.OracleQueryId),\n response: string,\n responseTtlType: withDefault(ORACLE_TTL_TYPES.delta, enumeration(ORACLE_TTL_TYPES)),\n responseTtlValue: withDefault(10, shortUInt),\n fee,\n ttl,\n },\n {\n tag: shortUIntConst(Tag.ChannelCreateTx),\n version: shortUIntConst(2, true),\n initiator: address(Encoding.AccountAddress),\n initiatorAmount: uInt,\n responder: address(Encoding.AccountAddress),\n responderAmount: uInt,\n channelReserve: uInt,\n lockPeriod: uInt,\n ttl,\n fee,\n initiatorDelegateIds: array(address(...idTagToEncoding)),\n responderDelegateIds: array(address(...idTagToEncoding)),\n stateHash: encoded(Encoding.State),\n nonce: nonce('initiator'),\n },\n {\n tag: shortUIntConst(Tag.ChannelCloseMutualTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n initiatorAmountFinal: uInt,\n responderAmountFinal: uInt,\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelCloseSoloTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n payload: encoded(Encoding.Transaction),\n poi: entryTreesPoi,\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelSlashTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n payload: encoded(Encoding.Transaction),\n poi: entryTreesPoi,\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelDepositTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n amount: uInt,\n ttl,\n fee,\n stateHash: encoded(Encoding.State),\n round: shortUInt,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelWithdrawTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n toId: address(Encoding.AccountAddress),\n amount: uInt,\n ttl,\n fee,\n stateHash: encoded(Encoding.State),\n round: shortUInt,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelSettleTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n initiatorAmountFinal: uInt,\n responderAmountFinal: uInt,\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelForceProgressTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n payload: encoded(Encoding.Transaction),\n round: shortUInt,\n update: encoded(Encoding.ContractBytearray),\n stateHash: encoded(Encoding.State),\n offChainTrees: encoded(Encoding.StateTrees),\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.ChannelOffChainTx),\n version: shortUIntConst(2, true),\n channelId: address(Encoding.Channel),\n round: shortUInt,\n stateHash: encoded(Encoding.State),\n },\n {\n tag: shortUIntConst(Tag.ChannelSnapshotSoloTx),\n version: shortUIntConst(1, true),\n channelId: address(Encoding.Channel),\n fromId: address(Encoding.AccountAddress),\n payload: encoded(Encoding.Transaction),\n ttl,\n fee,\n nonce: nonce('fromId'),\n },\n {\n tag: shortUIntConst(Tag.GaAttachTx),\n version: shortUIntConst(1, true),\n ownerId: address(Encoding.AccountAddress),\n nonce: nonce('ownerId'),\n code: encoded(Encoding.ContractBytearray),\n authFun: raw,\n ctVersion,\n fee,\n ttl,\n gasLimit,\n gasPrice,\n callData: encoded(Encoding.ContractBytearray),\n },\n {\n tag: shortUIntConst(Tag.GaMetaTx),\n version: shortUIntConst(2, true),\n gaId: address(Encoding.AccountAddress),\n authData: encoded(Encoding.ContractBytearray),\n abiVersion,\n fee,\n gasLimit,\n gasPrice,\n tx: transactionSignedTx,\n },\n {\n tag: shortUIntConst(Tag.PayingForTx),\n version: shortUIntConst(1, true),\n payerId: address(Encoding.AccountAddress),\n nonce: nonce('payerId'),\n fee,\n tx: transactionSignedTx,\n },\n] as const;\n\ntype TxSchema = SchemaTypes<typeof txSchema>;\nexport type TxParams = TxSchema['TxParams'];\nexport type TxParamsAsync = TxSchema['TxParamsAsync'];\nexport type TxUnpacked = TxSchema['TxUnpacked'];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,OAAOC,UAAU,MAAM,8BAA8B;AACrD,OAAOC,OAAO,IAAIC,eAAe,QAAQ,0BAA0B;AACnE,OAAOC,KAAK,MAAM,wBAAwB;AAC1C,OAAOC,UAAU,MAAM,8BAA8B;AACrD,OAAOC,SAAS,MAAM,6BAA6B;AACnD,OAAOC,OAAO,MAAM,0BAA0B;AAC9C,OAAOC,KAAK,MAAM,wBAAwB;AAC1C,OAAOC,WAAW,MAAM,8BAA8B;AACtD,OAAOC,GAAG,MAAM,sBAAsB;AACtC,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,OAAOC,IAAI,MAAM,uBAAuB;AACxC,OAAOC,OAAO,MAAM,2BAA2B;AAC/C,OAAOC,MAAM,MAAM,0BAA0B;AAC7C,OAAOC,KAAK,MAAM,wBAAwB;AAC1C,OAAOC,QAAQ,MAAM,2BAA2B;AAChD,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