xrpl 2.5.0-beta.1 → 2.5.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.
Files changed (84) hide show
  1. package/build/xrpl-latest-min.js +1 -1
  2. package/build/xrpl-latest-min.js.map +1 -1
  3. package/build/xrpl-latest.js +11 -840
  4. package/build/xrpl-latest.js.map +1 -1
  5. package/dist/npm/Wallet/index.d.ts.map +1 -1
  6. package/dist/npm/Wallet/index.js +9 -0
  7. package/dist/npm/Wallet/index.js.map +1 -1
  8. package/dist/npm/client/index.d.ts +1 -2
  9. package/dist/npm/client/index.d.ts.map +1 -1
  10. package/dist/npm/client/index.js.map +1 -1
  11. package/dist/npm/models/common/index.d.ts +2 -8
  12. package/dist/npm/models/common/index.d.ts.map +1 -1
  13. package/dist/npm/models/methods/index.d.ts +3 -4
  14. package/dist/npm/models/methods/index.d.ts.map +1 -1
  15. package/dist/npm/models/methods/ledgerEntry.d.ts +1 -21
  16. package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
  17. package/dist/npm/models/methods/subscribe.d.ts +2 -0
  18. package/dist/npm/models/methods/subscribe.d.ts.map +1 -1
  19. package/dist/npm/models/transactions/index.d.ts +0 -12
  20. package/dist/npm/models/transactions/index.d.ts.map +1 -1
  21. package/dist/npm/models/transactions/index.js.map +1 -1
  22. package/dist/npm/models/transactions/metadata.d.ts +1 -1
  23. package/dist/npm/models/transactions/metadata.d.ts.map +1 -1
  24. package/dist/npm/models/transactions/signerListSet.js +1 -1
  25. package/dist/npm/models/transactions/signerListSet.js.map +1 -1
  26. package/dist/npm/models/transactions/transaction.d.ts +1 -13
  27. package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
  28. package/dist/npm/models/transactions/transaction.js +0 -48
  29. package/dist/npm/models/transactions/transaction.js.map +1 -1
  30. package/dist/npm/setRegularKey.js +1 -1
  31. package/dist/npm/setRegularKey.js.map +1 -1
  32. package/package.json +3 -3
  33. package/dist/npm/models/methods/ammInfo.d.ts +0 -27
  34. package/dist/npm/models/methods/ammInfo.d.ts.map +0 -1
  35. package/dist/npm/models/methods/ammInfo.js +0 -3
  36. package/dist/npm/models/methods/ammInfo.js.map +0 -1
  37. package/dist/npm/models/transactions/AMMBid.d.ts +0 -17
  38. package/dist/npm/models/transactions/AMMBid.d.ts.map +0 -1
  39. package/dist/npm/models/transactions/AMMBid.js +0 -31
  40. package/dist/npm/models/transactions/AMMBid.js.map +0 -1
  41. package/dist/npm/models/transactions/AMMDeposit.d.ts +0 -12
  42. package/dist/npm/models/transactions/AMMDeposit.d.ts.map +0 -1
  43. package/dist/npm/models/transactions/AMMDeposit.js +0 -37
  44. package/dist/npm/models/transactions/AMMDeposit.js.map +0 -1
  45. package/dist/npm/models/transactions/AMMInstanceCreate.d.ts +0 -11
  46. package/dist/npm/models/transactions/AMMInstanceCreate.d.ts.map +0 -1
  47. package/dist/npm/models/transactions/AMMInstanceCreate.js +0 -32
  48. package/dist/npm/models/transactions/AMMInstanceCreate.js.map +0 -1
  49. package/dist/npm/models/transactions/AMMVote.d.ts +0 -8
  50. package/dist/npm/models/transactions/AMMVote.d.ts.map +0 -1
  51. package/dist/npm/models/transactions/AMMVote.js +0 -26
  52. package/dist/npm/models/transactions/AMMVote.js.map +0 -1
  53. package/dist/npm/models/transactions/AMMWithdraw.d.ts +0 -12
  54. package/dist/npm/models/transactions/AMMWithdraw.d.ts.map +0 -1
  55. package/dist/npm/models/transactions/AMMWithdraw.js +0 -37
  56. package/dist/npm/models/transactions/AMMWithdraw.js.map +0 -1
  57. package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts +0 -11
  58. package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts.map +0 -1
  59. package/dist/npm/models/transactions/XChainAccountCreateCommit.js +0 -22
  60. package/dist/npm/models/transactions/XChainAccountCreateCommit.js.map +0 -1
  61. package/dist/npm/models/transactions/XChainAddAttestation.d.ts +0 -34
  62. package/dist/npm/models/transactions/XChainAddAttestation.d.ts.map +0 -1
  63. package/dist/npm/models/transactions/XChainAddAttestation.js +0 -26
  64. package/dist/npm/models/transactions/XChainAddAttestation.js.map +0 -1
  65. package/dist/npm/models/transactions/XChainClaim.d.ts +0 -11
  66. package/dist/npm/models/transactions/XChainClaim.d.ts.map +0 -1
  67. package/dist/npm/models/transactions/XChainClaim.js +0 -22
  68. package/dist/npm/models/transactions/XChainClaim.js.map +0 -1
  69. package/dist/npm/models/transactions/XChainCommit.d.ts +0 -11
  70. package/dist/npm/models/transactions/XChainCommit.d.ts.map +0 -1
  71. package/dist/npm/models/transactions/XChainCommit.js +0 -19
  72. package/dist/npm/models/transactions/XChainCommit.js.map +0 -1
  73. package/dist/npm/models/transactions/XChainCreateBridge.d.ts +0 -10
  74. package/dist/npm/models/transactions/XChainCreateBridge.d.ts.map +0 -1
  75. package/dist/npm/models/transactions/XChainCreateBridge.js +0 -16
  76. package/dist/npm/models/transactions/XChainCreateBridge.js.map +0 -1
  77. package/dist/npm/models/transactions/XChainCreateClaimID.d.ts +0 -10
  78. package/dist/npm/models/transactions/XChainCreateClaimID.d.ts.map +0 -1
  79. package/dist/npm/models/transactions/XChainCreateClaimID.js +0 -19
  80. package/dist/npm/models/transactions/XChainCreateClaimID.js.map +0 -1
  81. package/dist/npm/models/transactions/XChainModifyBridge.d.ts +0 -10
  82. package/dist/npm/models/transactions/XChainModifyBridge.d.ts.map +0 -1
  83. package/dist/npm/models/transactions/XChainModifyBridge.js +0 -13
  84. package/dist/npm/models/transactions/XChainModifyBridge.js.map +0 -1
@@ -1,27 +0,0 @@
1
- import { Amount, IssuedCurrencyAmount } from '../common';
2
- import { BaseRequest, BaseResponse } from './baseMethod';
3
- export interface AMMInfoRequest extends BaseRequest {
4
- command: 'amm_info';
5
- amm_id?: string;
6
- asset1?: Amount;
7
- asset2?: Amount;
8
- }
9
- interface VoteEntry {
10
- FeeVal: number;
11
- VoteWeight: number;
12
- }
13
- export interface AMMInfoResponse extends BaseResponse {
14
- result: {
15
- AMMAccount: string;
16
- Asset1: Amount;
17
- Asset2: Amount;
18
- LPToken: IssuedCurrencyAmount;
19
- TradingFee: number;
20
- AMMID?: string;
21
- VoteSlots?: VoteEntry[];
22
- ledger_current_index?: number;
23
- validated?: boolean;
24
- };
25
- }
26
- export {};
27
- //# sourceMappingURL=ammInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ammInfo.d.ts","sourceRoot":"","sources":["../../../../src/models/methods/ammInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAExD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAQxD,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,OAAO,EAAE,UAAU,CAAA;IAKnB,MAAM,CAAC,EAAE,MAAM,CAAA;IAMf,MAAM,CAAC,EAAE,MAAM,CAAA;IAMf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,UAAU,SAAS;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;CACnB;AAOD,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,MAAM,EAAE;QAIN,UAAU,EAAE,MAAM,CAAA;QAKlB,MAAM,EAAE,MAAM,CAAA;QAKd,MAAM,EAAE,MAAM,CAAA;QAQd,OAAO,EAAE,oBAAoB,CAAA;QAS7B,UAAU,EAAE,MAAM,CAAA;QAKlB,KAAK,CAAC,EAAE,MAAM,CAAA;QAKd,SAAS,CAAC,EAAE,SAAS,EAAE,CAAA;QAMvB,oBAAoB,CAAC,EAAE,MAAM,CAAA;QAM7B,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;CACF"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ammInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ammInfo.js","sourceRoot":"","sources":["../../../../src/models/methods/ammInfo.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- import { Amount } from '../common';
2
- import { BaseTransaction } from './common';
3
- interface AuthAccount {
4
- AuthAccount: {
5
- Account: string;
6
- };
7
- }
8
- export interface AMMBid extends BaseTransaction {
9
- TransactionType: 'AMMBid';
10
- AMMID: string;
11
- MinSlotPrice?: Amount;
12
- MaxSlotPrice?: Amount;
13
- AuthAccounts?: AuthAccount[];
14
- }
15
- export declare function validateAMMBid(tx: Record<string, unknown>): void;
16
- export {};
17
- //# sourceMappingURL=AMMBid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMBid.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/AMMBid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAE,eAAe,EAAqC,MAAM,UAAU,CAAA;AAI7E,UAAU,WAAW;IACnB,WAAW,EAAE;QACX,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;CACF;AAQD,MAAM,WAAW,MAAO,SAAQ,eAAe;IAC7C,eAAe,EAAE,QAAQ,CAAA;IAKzB,KAAK,EAAE,MAAM,CAAA;IAQb,YAAY,CAAC,EAAE,MAAM,CAAA;IAMrB,YAAY,CAAC,EAAE,MAAM,CAAA;IAOrB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B;AAQD,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CA+BhE"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateAMMBid = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- const MAX_AUTH_ACCOUNTS = 4;
7
- function validateAMMBid(tx) {
8
- (0, common_1.validateBaseTransaction)(tx);
9
- if (tx.AMMID == null) {
10
- throw new errors_1.ValidationError('AMMBid: missing field AMMID');
11
- }
12
- if (typeof tx.AMMID !== 'string') {
13
- throw new errors_1.ValidationError('AMMBid: AMMID must be a string');
14
- }
15
- if (tx.MinSlotPrice != null && !(0, common_1.isAmount)(tx.MinSlotPrice)) {
16
- throw new errors_1.ValidationError('AMMBid: MinSlotPrice must be an Amount');
17
- }
18
- if (tx.MaxSlotPrice != null && !(0, common_1.isAmount)(tx.MaxSlotPrice)) {
19
- throw new errors_1.ValidationError('AMMBid: MaxSlotPrice must be an Amount');
20
- }
21
- if (tx.AuthAccounts != null) {
22
- if (!Array.isArray(tx.AuthAccounts)) {
23
- throw new errors_1.ValidationError(`AMMBid: AuthAccounts must be an AuthAccount array`);
24
- }
25
- if (tx.AuthAccounts.length > MAX_AUTH_ACCOUNTS) {
26
- throw new errors_1.ValidationError(`AMMBid: AuthAccounts length must not be greater than ${MAX_AUTH_ACCOUNTS}`);
27
- }
28
- }
29
- }
30
- exports.validateAMMBid = validateAMMBid;
31
- //# sourceMappingURL=AMMBid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMBid.js","sourceRoot":"","sources":["../../../../src/models/transactions/AMMBid.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAG9C,qCAA6E;AAE7E,MAAM,iBAAiB,GAAG,CAAC,CAAA;AAkD3B,SAAgB,cAAc,CAAC,EAA2B;IACxD,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,KAAK,IAAI,IAAI,EAAE;QACpB,MAAM,IAAI,wBAAe,CAAC,6BAA6B,CAAC,CAAA;KACzD;IAED,IAAI,OAAO,EAAE,CAAC,KAAK,KAAK,QAAQ,EAAE;QAChC,MAAM,IAAI,wBAAe,CAAC,gCAAgC,CAAC,CAAA;KAC5D;IAED,IAAI,EAAE,CAAC,YAAY,IAAI,IAAI,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,YAAY,CAAC,EAAE;QACzD,MAAM,IAAI,wBAAe,CAAC,wCAAwC,CAAC,CAAA;KACpE;IAED,IAAI,EAAE,CAAC,YAAY,IAAI,IAAI,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,YAAY,CAAC,EAAE;QACzD,MAAM,IAAI,wBAAe,CAAC,wCAAwC,CAAC,CAAA;KACpE;IAED,IAAI,EAAE,CAAC,YAAY,IAAI,IAAI,EAAE;QAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE;YACnC,MAAM,IAAI,wBAAe,CACvB,mDAAmD,CACpD,CAAA;SACF;QACD,IAAI,EAAE,CAAC,YAAY,CAAC,MAAM,GAAG,iBAAiB,EAAE;YAC9C,MAAM,IAAI,wBAAe,CACvB,wDAAwD,iBAAiB,EAAE,CAC5E,CAAA;SACF;KACF;AACH,CAAC;AA/BD,wCA+BC"}
@@ -1,12 +0,0 @@
1
- import { Amount, IssuedCurrencyAmount } from '../common';
2
- import { BaseTransaction } from './common';
3
- export interface AMMDeposit extends BaseTransaction {
4
- TransactionType: 'AMMDeposit';
5
- AMMID: string;
6
- LPToken?: IssuedCurrencyAmount;
7
- Asset1In?: Amount;
8
- Asset2In?: Amount;
9
- EPrice?: Amount;
10
- }
11
- export declare function validateAMMDeposit(tx: Record<string, unknown>): void;
12
- //# sourceMappingURL=AMMDeposit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMDeposit.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/AMMDeposit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAExD,OAAO,EACL,eAAe,EAIhB,MAAM,UAAU,CAAA;AAajB,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD,eAAe,EAAE,YAAY,CAAA;IAK7B,KAAK,EAAE,MAAM,CAAA;IAMb,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAM9B,QAAQ,CAAC,EAAE,MAAM,CAAA;IAMjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAKjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAQD,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAsCpE"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateAMMDeposit = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- function validateAMMDeposit(tx) {
7
- (0, common_1.validateBaseTransaction)(tx);
8
- if (tx.AMMID == null) {
9
- throw new errors_1.ValidationError('AMMDeposit: missing field AMMID');
10
- }
11
- if (typeof tx.AMMID !== 'string') {
12
- throw new errors_1.ValidationError('AMMDeposit: AMMID must be a string');
13
- }
14
- if (tx.Asset2In != null && tx.Asset1In == null) {
15
- throw new errors_1.ValidationError('AMMDeposit: must set Asset1In with Asset2In');
16
- }
17
- else if (tx.EPrice != null && tx.Asset1In == null) {
18
- throw new errors_1.ValidationError('AMMDeposit: must set Asset1In with EPrice');
19
- }
20
- else if (tx.LPToken == null && tx.Asset1In == null) {
21
- throw new errors_1.ValidationError('AMMDeposit: must set at least LPToken or Asset1In');
22
- }
23
- if (tx.LPToken != null && !(0, common_1.isIssuedCurrency)(tx.LPToken)) {
24
- throw new errors_1.ValidationError('AMMDeposit: LPToken must be an IssuedCurrencyAmount');
25
- }
26
- if (tx.Asset1In != null && !(0, common_1.isAmount)(tx.Asset1In)) {
27
- throw new errors_1.ValidationError('AMMDeposit: Asset1In must be an Amount');
28
- }
29
- if (tx.Asset2In != null && !(0, common_1.isAmount)(tx.Asset2In)) {
30
- throw new errors_1.ValidationError('AMMDeposit: Asset2In must be an Amount');
31
- }
32
- if (tx.EPrice != null && !(0, common_1.isAmount)(tx.EPrice)) {
33
- throw new errors_1.ValidationError('AMMDeposit: EPrice must be an Amount');
34
- }
35
- }
36
- exports.validateAMMDeposit = validateAMMDeposit;
37
- //# sourceMappingURL=AMMDeposit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMDeposit.js","sourceRoot":"","sources":["../../../../src/models/transactions/AMMDeposit.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAG9C,qCAKiB;AAmDjB,SAAgB,kBAAkB,CAAC,EAA2B;IAC5D,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,KAAK,IAAI,IAAI,EAAE;QACpB,MAAM,IAAI,wBAAe,CAAC,iCAAiC,CAAC,CAAA;KAC7D;IAED,IAAI,OAAO,EAAE,CAAC,KAAK,KAAK,QAAQ,EAAE;QAChC,MAAM,IAAI,wBAAe,CAAC,oCAAoC,CAAC,CAAA;KAChE;IAED,IAAI,EAAE,CAAC,QAAQ,IAAI,IAAI,IAAI,EAAE,CAAC,QAAQ,IAAI,IAAI,EAAE;QAC9C,MAAM,IAAI,wBAAe,CAAC,6CAA6C,CAAC,CAAA;KACzE;SAAM,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC,QAAQ,IAAI,IAAI,EAAE;QACnD,MAAM,IAAI,wBAAe,CAAC,2CAA2C,CAAC,CAAA;KACvE;SAAM,IAAI,EAAE,CAAC,OAAO,IAAI,IAAI,IAAI,EAAE,CAAC,QAAQ,IAAI,IAAI,EAAE;QACpD,MAAM,IAAI,wBAAe,CACvB,mDAAmD,CACpD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAA,yBAAgB,EAAC,EAAE,CAAC,OAAO,CAAC,EAAE;QACvD,MAAM,IAAI,wBAAe,CACvB,qDAAqD,CACtD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,QAAQ,IAAI,IAAI,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,QAAQ,CAAC,EAAE;QACjD,MAAM,IAAI,wBAAe,CAAC,wCAAwC,CAAC,CAAA;KACpE;IAED,IAAI,EAAE,CAAC,QAAQ,IAAI,IAAI,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,QAAQ,CAAC,EAAE;QACjD,MAAM,IAAI,wBAAe,CAAC,wCAAwC,CAAC,CAAA;KACpE;IAED,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,MAAM,CAAC,EAAE;QAC7C,MAAM,IAAI,wBAAe,CAAC,sCAAsC,CAAC,CAAA;KAClE;AACH,CAAC;AAtCD,gDAsCC"}
@@ -1,11 +0,0 @@
1
- import { Amount } from '../common';
2
- import { BaseTransaction } from './common';
3
- export declare const AMM_MAX_TRADING_FEE = 65000;
4
- export interface AMMInstanceCreate extends BaseTransaction {
5
- TransactionType: 'AMMInstanceCreate';
6
- Asset1: Amount;
7
- Asset2: Amount;
8
- TradingFee: number;
9
- }
10
- export declare function validateAMMInstanceCreate(tx: Record<string, unknown>): void;
11
- //# sourceMappingURL=AMMInstanceCreate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMInstanceCreate.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/AMMInstanceCreate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAE,eAAe,EAAqC,MAAM,UAAU,CAAA;AAE7E,eAAO,MAAM,mBAAmB,QAAQ,CAAA;AAQxC,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,eAAe,EAAE,mBAAmB,CAAA;IAKpC,MAAM,EAAE,MAAM,CAAA;IAKd,MAAM,EAAE,MAAM,CAAA;IAUd,UAAU,EAAE,MAAM,CAAA;CACnB;AAQD,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAgC3E"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateAMMInstanceCreate = exports.AMM_MAX_TRADING_FEE = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- exports.AMM_MAX_TRADING_FEE = 65000;
7
- function validateAMMInstanceCreate(tx) {
8
- (0, common_1.validateBaseTransaction)(tx);
9
- if (tx.Asset1 == null) {
10
- throw new errors_1.ValidationError('AMMInstanceCreate: missing field Asset1');
11
- }
12
- if (!(0, common_1.isAmount)(tx.Asset1)) {
13
- throw new errors_1.ValidationError('AMMInstanceCreate: Asset1 must be an Amount');
14
- }
15
- if (tx.Asset2 == null) {
16
- throw new errors_1.ValidationError('AMMInstanceCreate: missing field Asset2');
17
- }
18
- if (!(0, common_1.isAmount)(tx.Asset2)) {
19
- throw new errors_1.ValidationError('AMMInstanceCreate: Asset2 must be an Amount');
20
- }
21
- if (tx.TradingFee == null) {
22
- throw new errors_1.ValidationError('AMMInstanceCreate: missing field TradingFee');
23
- }
24
- if (typeof tx.TradingFee !== 'number') {
25
- throw new errors_1.ValidationError('AMMInstanceCreate: TradingFee must be a number');
26
- }
27
- if (tx.TradingFee < 0 || tx.TradingFee > exports.AMM_MAX_TRADING_FEE) {
28
- throw new errors_1.ValidationError(`AMMInstanceCreate: TradingFee must be between 0 and ${exports.AMM_MAX_TRADING_FEE}`);
29
- }
30
- }
31
- exports.validateAMMInstanceCreate = validateAMMInstanceCreate;
32
- //# sourceMappingURL=AMMInstanceCreate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMInstanceCreate.js","sourceRoot":"","sources":["../../../../src/models/transactions/AMMInstanceCreate.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAG9C,qCAA6E;AAEhE,QAAA,mBAAmB,GAAG,KAAK,CAAA;AAsCxC,SAAgB,yBAAyB,CAAC,EAA2B;IACnE,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,EAAE;QACrB,MAAM,IAAI,wBAAe,CAAC,yCAAyC,CAAC,CAAA;KACrE;IAED,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,MAAM,CAAC,EAAE;QACxB,MAAM,IAAI,wBAAe,CAAC,6CAA6C,CAAC,CAAA;KACzE;IAED,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,EAAE;QACrB,MAAM,IAAI,wBAAe,CAAC,yCAAyC,CAAC,CAAA;KACrE;IAED,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,MAAM,CAAC,EAAE;QACxB,MAAM,IAAI,wBAAe,CAAC,6CAA6C,CAAC,CAAA;KACzE;IAED,IAAI,EAAE,CAAC,UAAU,IAAI,IAAI,EAAE;QACzB,MAAM,IAAI,wBAAe,CAAC,6CAA6C,CAAC,CAAA;KACzE;IAED,IAAI,OAAO,EAAE,CAAC,UAAU,KAAK,QAAQ,EAAE;QACrC,MAAM,IAAI,wBAAe,CAAC,gDAAgD,CAAC,CAAA;KAC5E;IAED,IAAI,EAAE,CAAC,UAAU,GAAG,CAAC,IAAI,EAAE,CAAC,UAAU,GAAG,2BAAmB,EAAE;QAC5D,MAAM,IAAI,wBAAe,CACvB,uDAAuD,2BAAmB,EAAE,CAC7E,CAAA;KACF;AACH,CAAC;AAhCD,8DAgCC"}
@@ -1,8 +0,0 @@
1
- import { BaseTransaction } from './common';
2
- export interface AMMVote extends BaseTransaction {
3
- TransactionType: 'AMMVote';
4
- AMMID: string;
5
- FeeVal: number;
6
- }
7
- export declare function validateAMMVote(tx: Record<string, unknown>): void;
8
- //# sourceMappingURL=AMMVote.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMVote.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/AMMVote.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AAQnE,MAAM,WAAW,OAAQ,SAAQ,eAAe;IAC9C,eAAe,EAAE,SAAS,CAAA;IAK1B,KAAK,EAAE,MAAM,CAAA;IAQb,MAAM,EAAE,MAAM,CAAA;CACf;AAQD,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAwBjE"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateAMMVote = void 0;
4
- const errors_1 = require("../../errors");
5
- const AMMInstanceCreate_1 = require("./AMMInstanceCreate");
6
- const common_1 = require("./common");
7
- function validateAMMVote(tx) {
8
- (0, common_1.validateBaseTransaction)(tx);
9
- if (tx.AMMID == null) {
10
- throw new errors_1.ValidationError('AMMVote: missing field AMMID');
11
- }
12
- if (typeof tx.AMMID !== 'string') {
13
- throw new errors_1.ValidationError('AMMVote: AMMID must be a string');
14
- }
15
- if (tx.FeeVal == null) {
16
- throw new errors_1.ValidationError('AMMVote: missing field FeeVal');
17
- }
18
- if (typeof tx.FeeVal !== 'number') {
19
- throw new errors_1.ValidationError('AMMVote: FeeVal must be a number');
20
- }
21
- if (tx.FeeVal < 0 || tx.FeeVal > AMMInstanceCreate_1.AMM_MAX_TRADING_FEE) {
22
- throw new errors_1.ValidationError(`AMMVote: FeeVal must be between 0 and ${AMMInstanceCreate_1.AMM_MAX_TRADING_FEE}`);
23
- }
24
- }
25
- exports.validateAMMVote = validateAMMVote;
26
- //# sourceMappingURL=AMMVote.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMVote.js","sourceRoot":"","sources":["../../../../src/models/transactions/AMMVote.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAE9C,2DAAyD;AACzD,qCAAmE;AA+BnE,SAAgB,eAAe,CAAC,EAA2B;IACzD,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,KAAK,IAAI,IAAI,EAAE;QACpB,MAAM,IAAI,wBAAe,CAAC,8BAA8B,CAAC,CAAA;KAC1D;IAED,IAAI,OAAO,EAAE,CAAC,KAAK,KAAK,QAAQ,EAAE;QAChC,MAAM,IAAI,wBAAe,CAAC,iCAAiC,CAAC,CAAA;KAC7D;IAED,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,EAAE;QACrB,MAAM,IAAI,wBAAe,CAAC,+BAA+B,CAAC,CAAA;KAC3D;IAED,IAAI,OAAO,EAAE,CAAC,MAAM,KAAK,QAAQ,EAAE;QACjC,MAAM,IAAI,wBAAe,CAAC,kCAAkC,CAAC,CAAA;KAC9D;IAED,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,uCAAmB,EAAE;QACpD,MAAM,IAAI,wBAAe,CACvB,yCAAyC,uCAAmB,EAAE,CAC/D,CAAA;KACF;AACH,CAAC;AAxBD,0CAwBC"}
@@ -1,12 +0,0 @@
1
- import { Amount, IssuedCurrencyAmount } from '../common';
2
- import { BaseTransaction } from './common';
3
- export interface AMMWithdraw extends BaseTransaction {
4
- TransactionType: 'AMMWithdraw';
5
- AMMID: string;
6
- LPToken?: IssuedCurrencyAmount;
7
- Asset1Out?: Amount;
8
- Asset2Out?: Amount;
9
- EPrice?: Amount;
10
- }
11
- export declare function validateAMMWithdraw(tx: Record<string, unknown>): void;
12
- //# sourceMappingURL=AMMWithdraw.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMWithdraw.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/AMMWithdraw.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAExD,OAAO,EACL,eAAe,EAIhB,MAAM,UAAU,CAAA;AAcjB,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,eAAe,EAAE,aAAa,CAAA;IAK9B,KAAK,EAAE,MAAM,CAAA;IAMb,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAO9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAKlB,SAAS,CAAC,EAAE,MAAM,CAAA;IAMlB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAQD,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAsCrE"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateAMMWithdraw = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- function validateAMMWithdraw(tx) {
7
- (0, common_1.validateBaseTransaction)(tx);
8
- if (tx.AMMID == null) {
9
- throw new errors_1.ValidationError('AMMWithdraw: missing field AMMID');
10
- }
11
- if (typeof tx.AMMID !== 'string') {
12
- throw new errors_1.ValidationError('AMMWithdraw: AMMID must be a string');
13
- }
14
- if (tx.Asset2Out != null && tx.Asset1Out == null) {
15
- throw new errors_1.ValidationError('AMMWithdraw: must set Asset1Out with Asset2Out');
16
- }
17
- else if (tx.EPrice != null && tx.Asset1Out == null) {
18
- throw new errors_1.ValidationError('AMMWithdraw: must set Asset1Out with EPrice');
19
- }
20
- else if (tx.LPToken == null && tx.Asset1Out == null) {
21
- throw new errors_1.ValidationError('AMMWithdraw: must set at least LPToken or Asset1Out');
22
- }
23
- if (tx.LPToken != null && !(0, common_1.isIssuedCurrency)(tx.LPToken)) {
24
- throw new errors_1.ValidationError('AMMWithdraw: LPToken must be an IssuedCurrencyAmount');
25
- }
26
- if (tx.Asset1Out != null && !(0, common_1.isAmount)(tx.Asset1Out)) {
27
- throw new errors_1.ValidationError('AMMWithdraw: Asset1Out must be an Amount');
28
- }
29
- if (tx.Asset2Out != null && !(0, common_1.isAmount)(tx.Asset2Out)) {
30
- throw new errors_1.ValidationError('AMMWithdraw: Asset2Out must be an Amount');
31
- }
32
- if (tx.EPrice != null && !(0, common_1.isAmount)(tx.EPrice)) {
33
- throw new errors_1.ValidationError('AMMWithdraw: EPrice must be an Amount');
34
- }
35
- }
36
- exports.validateAMMWithdraw = validateAMMWithdraw;
37
- //# sourceMappingURL=AMMWithdraw.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AMMWithdraw.js","sourceRoot":"","sources":["../../../../src/models/transactions/AMMWithdraw.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAG9C,qCAKiB;AAqDjB,SAAgB,mBAAmB,CAAC,EAA2B;IAC7D,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,KAAK,IAAI,IAAI,EAAE;QACpB,MAAM,IAAI,wBAAe,CAAC,kCAAkC,CAAC,CAAA;KAC9D;IAED,IAAI,OAAO,EAAE,CAAC,KAAK,KAAK,QAAQ,EAAE;QAChC,MAAM,IAAI,wBAAe,CAAC,qCAAqC,CAAC,CAAA;KACjE;IAED,IAAI,EAAE,CAAC,SAAS,IAAI,IAAI,IAAI,EAAE,CAAC,SAAS,IAAI,IAAI,EAAE;QAChD,MAAM,IAAI,wBAAe,CAAC,gDAAgD,CAAC,CAAA;KAC5E;SAAM,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC,SAAS,IAAI,IAAI,EAAE;QACpD,MAAM,IAAI,wBAAe,CAAC,6CAA6C,CAAC,CAAA;KACzE;SAAM,IAAI,EAAE,CAAC,OAAO,IAAI,IAAI,IAAI,EAAE,CAAC,SAAS,IAAI,IAAI,EAAE;QACrD,MAAM,IAAI,wBAAe,CACvB,qDAAqD,CACtD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAA,yBAAgB,EAAC,EAAE,CAAC,OAAO,CAAC,EAAE;QACvD,MAAM,IAAI,wBAAe,CACvB,sDAAsD,CACvD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,SAAS,IAAI,IAAI,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,SAAS,CAAC,EAAE;QACnD,MAAM,IAAI,wBAAe,CAAC,0CAA0C,CAAC,CAAA;KACtE;IAED,IAAI,EAAE,CAAC,SAAS,IAAI,IAAI,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,SAAS,CAAC,EAAE;QACnD,MAAM,IAAI,wBAAe,CAAC,0CAA0C,CAAC,CAAA;KACtE;IAED,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,IAAI,CAAC,IAAA,iBAAQ,EAAC,EAAE,CAAC,MAAM,CAAC,EAAE;QAC7C,MAAM,IAAI,wBAAe,CAAC,uCAAuC,CAAC,CAAA;KACnE;AACH,CAAC;AAtCD,kDAsCC"}
@@ -1,11 +0,0 @@
1
- import { Amount, XChainBridge } from '../common';
2
- import { BaseTransaction } from './common';
3
- export interface XChainAccountCreateCommit extends BaseTransaction {
4
- TransactionType: 'XChainAccountCreateCommit';
5
- XChainBridge: XChainBridge;
6
- SignatureReward: number | string;
7
- Destination: string;
8
- Amount: Amount;
9
- }
10
- export declare function validateXChainAccountCreateCommit(tx: Record<string, unknown>): void;
11
- //# sourceMappingURL=XChainAccountCreateCommit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainAccountCreateCommit.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAccountCreateCommit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AAMnE,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAChE,eAAe,EAAE,2BAA2B,CAAA;IAE5C,YAAY,EAAE,YAAY,CAAA;IAE1B,eAAe,EAAE,MAAM,GAAG,MAAM,CAAA;IAEhC,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM,EAAE,MAAM,CAAA;CACf;AAQD,wBAAgB,iCAAiC,CAC/C,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1B,IAAI,CAwBN"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateXChainAccountCreateCommit = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- function validateXChainAccountCreateCommit(tx) {
7
- (0, common_1.validateBaseTransaction)(tx);
8
- if (tx.XChainBridge == null) {
9
- throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field XChainBridge');
10
- }
11
- if (tx.SignatureReward == null) {
12
- throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field SignatureReward');
13
- }
14
- if (tx.Destination == null) {
15
- throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Destination');
16
- }
17
- if (tx.Amount == null) {
18
- throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Amount');
19
- }
20
- }
21
- exports.validateXChainAccountCreateCommit = validateXChainAccountCreateCommit;
22
- //# sourceMappingURL=XChainAccountCreateCommit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainAccountCreateCommit.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAccountCreateCommit.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAG9C,qCAAmE;AAwBnE,SAAgB,iCAAiC,CAC/C,EAA2B;IAE3B,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,YAAY,IAAI,IAAI,EAAE;QAC3B,MAAM,IAAI,wBAAe,CACvB,uDAAuD,CACxD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,eAAe,IAAI,IAAI,EAAE;QAC9B,MAAM,IAAI,wBAAe,CACvB,0DAA0D,CAC3D,CAAA;KACF;IAED,IAAI,EAAE,CAAC,WAAW,IAAI,IAAI,EAAE;QAC1B,MAAM,IAAI,wBAAe,CACvB,sDAAsD,CACvD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,EAAE;QACrB,MAAM,IAAI,wBAAe,CAAC,iDAAiD,CAAC,CAAA;KAC7E;AACH,CAAC;AA1BD,8EA0BC"}
@@ -1,34 +0,0 @@
1
- import { Amount, XChainBridge } from '../common';
2
- import { BaseTransaction } from './common';
3
- export interface XChainAddAttestation extends BaseTransaction {
4
- TransactionType: 'XChainAddAttestation';
5
- XChainAttestationBatch: {
6
- XChainBridge: XChainBridge;
7
- XChainClaimAttestationBatch: Array<{
8
- XChainClaimAttestationBatchElement: {
9
- Account: string;
10
- Amount: Amount;
11
- AttestationRewardAccount: string;
12
- Destination: string;
13
- PublicKey: string;
14
- Signature: string;
15
- WasLockingChainSend: 0 | 1;
16
- XChainClaimID: string;
17
- };
18
- }>;
19
- XChainCreateAccountAttestationBatch: Array<{
20
- XChainCreateAccountAttestationBatchElement: {
21
- Account: string;
22
- Amount: Amount;
23
- AttestationRewardAccount: string;
24
- Destination: string;
25
- PublicKey: string;
26
- Signature: string;
27
- WasLockingChainSend: 0 | 1;
28
- XChainAccountCreateCount: string;
29
- };
30
- }>;
31
- };
32
- }
33
- export declare function validateXChainAddAttestation(tx: Record<string, unknown>): void;
34
- //# sourceMappingURL=XChainAddAttestation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainAddAttestation.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddAttestation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AAMnE,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,eAAe,EAAE,sBAAsB,CAAA;IAEvC,sBAAsB,EAAE;QACtB,YAAY,EAAE,YAAY,CAAA;QAE1B,2BAA2B,EAAE,KAAK,CAAC;YACjC,kCAAkC,EAAE;gBAClC,OAAO,EAAE,MAAM,CAAA;gBAEf,MAAM,EAAE,MAAM,CAAA;gBAEd,wBAAwB,EAAE,MAAM,CAAA;gBAEhC,WAAW,EAAE,MAAM,CAAA;gBAEnB,SAAS,EAAE,MAAM,CAAA;gBAEjB,SAAS,EAAE,MAAM,CAAA;gBAEjB,mBAAmB,EAAE,CAAC,GAAG,CAAC,CAAA;gBAE1B,aAAa,EAAE,MAAM,CAAA;aACtB,CAAA;SACF,CAAC,CAAA;QAEF,mCAAmC,EAAE,KAAK,CAAC;YACzC,0CAA0C,EAAE;gBAC1C,OAAO,EAAE,MAAM,CAAA;gBAEf,MAAM,EAAE,MAAM,CAAA;gBAEd,wBAAwB,EAAE,MAAM,CAAA;gBAEhC,WAAW,EAAE,MAAM,CAAA;gBAEnB,SAAS,EAAE,MAAM,CAAA;gBAEjB,SAAS,EAAE,MAAM,CAAA;gBAEjB,mBAAmB,EAAE,CAAC,GAAG,CAAC,CAAA;gBAE1B,wBAAwB,EAAE,MAAM,CAAA;aACjC,CAAA;SACF,CAAC,CAAA;KACH,CAAA;CACF;AAQD,wBAAgB,4BAA4B,CAC1C,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1B,IAAI,CAmCN"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateXChainAddAttestation = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- function validateXChainAddAttestation(tx) {
7
- (0, common_1.validateBaseTransaction)(tx);
8
- if (tx.XChainAttestationBatch == null) {
9
- throw new errors_1.ValidationError('XChainAddAttestation: missing field XChainAttestationBatch');
10
- }
11
- if (typeof tx.XChainAttestationBatch !== 'object') {
12
- throw new errors_1.ValidationError('XChainAddAttestation: XChainAttestationBatch must be an object');
13
- }
14
- const attestationBatch = tx.XChainAttestationBatch;
15
- if (attestationBatch.XChainBridge == null) {
16
- throw new errors_1.ValidationError('XChainAddAttestation: missing field XChainAttestationBatch.XChainBridge');
17
- }
18
- if (attestationBatch.XChainClaimAttestationBatch == null) {
19
- throw new errors_1.ValidationError('XChainAddAttestation: missing field XChainAttestationBatch.XChainClaimAttestationBatch');
20
- }
21
- if (attestationBatch.XChainCreateAccountAttestationBatch == null) {
22
- throw new errors_1.ValidationError('XChainAddAttestation: missing field XChainAttestationBatch.XChainCreateAccountAttestationBatch');
23
- }
24
- }
25
- exports.validateXChainAddAttestation = validateXChainAddAttestation;
26
- //# sourceMappingURL=XChainAddAttestation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainAddAttestation.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddAttestation.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAG9C,qCAAmE;AA4DnE,SAAgB,4BAA4B,CAC1C,EAA2B;IAE3B,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,sBAAsB,IAAI,IAAI,EAAE;QACrC,MAAM,IAAI,wBAAe,CACvB,4DAA4D,CAC7D,CAAA;KACF;IAED,IAAI,OAAO,EAAE,CAAC,sBAAsB,KAAK,QAAQ,EAAE;QACjD,MAAM,IAAI,wBAAe,CACvB,gEAAgE,CACjE,CAAA;KACF;IAGD,MAAM,gBAAgB,GAAG,EAAE,CAAC,sBAAiD,CAAA;IAE7E,IAAI,gBAAgB,CAAC,YAAY,IAAI,IAAI,EAAE;QACzC,MAAM,IAAI,wBAAe,CACvB,yEAAyE,CAC1E,CAAA;KACF;IAED,IAAI,gBAAgB,CAAC,2BAA2B,IAAI,IAAI,EAAE;QACxD,MAAM,IAAI,wBAAe,CACvB,wFAAwF,CACzF,CAAA;KACF;IAED,IAAI,gBAAgB,CAAC,mCAAmC,IAAI,IAAI,EAAE;QAChE,MAAM,IAAI,wBAAe,CACvB,gGAAgG,CACjG,CAAA;KACF;AACH,CAAC;AArCD,oEAqCC"}
@@ -1,11 +0,0 @@
1
- import { Amount, XChainBridge } from '../common';
2
- import { BaseTransaction } from './common';
3
- export interface XChainClaim extends BaseTransaction {
4
- TransactionType: 'XChainClaim';
5
- XChainBridge: XChainBridge;
6
- XChainClaimID: number | string;
7
- Destination: string;
8
- Amount: Amount;
9
- }
10
- export declare function validateXChainClaim(tx: Record<string, unknown>): void;
11
- //# sourceMappingURL=XChainClaim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainClaim.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainClaim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AAMnE,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,eAAe,EAAE,aAAa,CAAA;IAE9B,YAAY,EAAE,YAAY,CAAA;IAE1B,aAAa,EAAE,MAAM,GAAG,MAAM,CAAA;IAE9B,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM,EAAE,MAAM,CAAA;CACf;AAQD,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAkBrE"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateXChainClaim = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- function validateXChainClaim(tx) {
7
- (0, common_1.validateBaseTransaction)(tx);
8
- if (tx.XChainBridge == null) {
9
- throw new errors_1.ValidationError('XChainClaim: missing field XChainBridge');
10
- }
11
- if (tx.XChainClaimID == null) {
12
- throw new errors_1.ValidationError('XChainClaim: missing field XChainClaimID');
13
- }
14
- if (tx.Destination == null) {
15
- throw new errors_1.ValidationError('XChainClaim: missing field Destination');
16
- }
17
- if (tx.Amount == null) {
18
- throw new errors_1.ValidationError('XChainClaim: missing field Amount');
19
- }
20
- }
21
- exports.validateXChainClaim = validateXChainClaim;
22
- //# sourceMappingURL=XChainClaim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainClaim.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainClaim.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAG9C,qCAAmE;AAwBnE,SAAgB,mBAAmB,CAAC,EAA2B;IAC7D,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,YAAY,IAAI,IAAI,EAAE;QAC3B,MAAM,IAAI,wBAAe,CAAC,yCAAyC,CAAC,CAAA;KACrE;IAED,IAAI,EAAE,CAAC,aAAa,IAAI,IAAI,EAAE;QAC5B,MAAM,IAAI,wBAAe,CAAC,0CAA0C,CAAC,CAAA;KACtE;IAED,IAAI,EAAE,CAAC,WAAW,IAAI,IAAI,EAAE;QAC1B,MAAM,IAAI,wBAAe,CAAC,wCAAwC,CAAC,CAAA;KACpE;IAED,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,EAAE;QACrB,MAAM,IAAI,wBAAe,CAAC,mCAAmC,CAAC,CAAA;KAC/D;AACH,CAAC;AAlBD,kDAkBC"}
@@ -1,11 +0,0 @@
1
- import { Amount, XChainBridge } from '../common';
2
- import { BaseTransaction } from './common';
3
- export interface XChainCommit extends BaseTransaction {
4
- TransactionType: 'XChainCommit';
5
- XChainBridge: XChainBridge;
6
- XChainClaimID: number | string;
7
- OtherChainDestination?: string;
8
- Amount: Amount;
9
- }
10
- export declare function validateXChainCommit(tx: Record<string, unknown>): void;
11
- //# sourceMappingURL=XChainCommit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainCommit.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCommit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AAMnE,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,eAAe,EAAE,cAAc,CAAA;IAE/B,YAAY,EAAE,YAAY,CAAA;IAE1B,aAAa,EAAE,MAAM,GAAG,MAAM,CAAA;IAE9B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAE9B,MAAM,EAAE,MAAM,CAAA;CACf;AAQD,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CActE"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateXChainCommit = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- function validateXChainCommit(tx) {
7
- (0, common_1.validateBaseTransaction)(tx);
8
- if (tx.XChainBridge == null) {
9
- throw new errors_1.ValidationError('XChainCommit: missing field XChainBridge');
10
- }
11
- if (tx.XChainClaimID == null) {
12
- throw new errors_1.ValidationError('XChainCommit: missing field XChainClaimID');
13
- }
14
- if (tx.Amount == null) {
15
- throw new errors_1.ValidationError('XChainCommit: missing field Amount');
16
- }
17
- }
18
- exports.validateXChainCommit = validateXChainCommit;
19
- //# sourceMappingURL=XChainCommit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainCommit.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCommit.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAG9C,qCAAmE;AAwBnE,SAAgB,oBAAoB,CAAC,EAA2B;IAC9D,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,YAAY,IAAI,IAAI,EAAE;QAC3B,MAAM,IAAI,wBAAe,CAAC,0CAA0C,CAAC,CAAA;KACtE;IAED,IAAI,EAAE,CAAC,aAAa,IAAI,IAAI,EAAE;QAC5B,MAAM,IAAI,wBAAe,CAAC,2CAA2C,CAAC,CAAA;KACvE;IAED,IAAI,EAAE,CAAC,MAAM,IAAI,IAAI,EAAE;QACrB,MAAM,IAAI,wBAAe,CAAC,oCAAoC,CAAC,CAAA;KAChE;AACH,CAAC;AAdD,oDAcC"}
@@ -1,10 +0,0 @@
1
- import { Amount, XChainBridge } from '../common';
2
- import { BaseTransaction } from './common';
3
- export interface XChainCreateBridge extends BaseTransaction {
4
- TransactionType: 'XChainCreateBridge';
5
- XChainBridge: XChainBridge;
6
- SignatureReward: Amount;
7
- MinAccountCreateAmount?: Amount;
8
- }
9
- export declare function validateXChainCreateBridge(tx: Record<string, unknown>): void;
10
- //# sourceMappingURL=XChainCreateBridge.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainCreateBridge.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateBridge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AAMnE,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,eAAe,EAAE,oBAAoB,CAAA;IAErC,YAAY,EAAE,YAAY,CAAA;IAE1B,eAAe,EAAE,MAAM,CAAA;IAEvB,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC;AAQD,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAY5E"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateXChainCreateBridge = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- function validateXChainCreateBridge(tx) {
7
- (0, common_1.validateBaseTransaction)(tx);
8
- if (tx.XChainBridge == null) {
9
- throw new errors_1.ValidationError('XChainCreateBridge: missing field XChainBridge');
10
- }
11
- if (tx.SignatureReward == null) {
12
- throw new errors_1.ValidationError('XChainCreateBridge: missing field SignatureReward');
13
- }
14
- }
15
- exports.validateXChainCreateBridge = validateXChainCreateBridge;
16
- //# sourceMappingURL=XChainCreateBridge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainCreateBridge.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateBridge.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAG9C,qCAAmE;AAsBnE,SAAgB,0BAA0B,CAAC,EAA2B;IACpE,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,YAAY,IAAI,IAAI,EAAE;QAC3B,MAAM,IAAI,wBAAe,CAAC,gDAAgD,CAAC,CAAA;KAC5E;IAED,IAAI,EAAE,CAAC,eAAe,IAAI,IAAI,EAAE;QAC9B,MAAM,IAAI,wBAAe,CACvB,mDAAmD,CACpD,CAAA;KACF;AACH,CAAC;AAZD,gEAYC"}
@@ -1,10 +0,0 @@
1
- import { Amount, XChainBridge } from '../common';
2
- import { BaseTransaction } from './common';
3
- export interface XChainCreateClaimID extends BaseTransaction {
4
- TransactionType: 'XChainCreateClaimID';
5
- XChainBridge: XChainBridge;
6
- SignatureReward: Amount;
7
- OtherChainSource: string;
8
- }
9
- export declare function validateXChainCreateClaimID(tx: Record<string, unknown>): void;
10
- //# sourceMappingURL=XChainCreateClaimID.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainCreateClaimID.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateClaimID.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EAAE,eAAe,EAA2B,MAAM,UAAU,CAAA;AAMnE,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,eAAe,EAAE,qBAAqB,CAAA;IAEtC,YAAY,EAAE,YAAY,CAAA;IAE1B,eAAe,EAAE,MAAM,CAAA;IAEvB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAQD,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAkB7E"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateXChainCreateClaimID = void 0;
4
- const errors_1 = require("../../errors");
5
- const common_1 = require("./common");
6
- function validateXChainCreateClaimID(tx) {
7
- (0, common_1.validateBaseTransaction)(tx);
8
- if (tx.XChainBridge == null) {
9
- throw new errors_1.ValidationError('XChainCreateClaimID: missing field XChainBridge');
10
- }
11
- if (tx.SignatureReward == null) {
12
- throw new errors_1.ValidationError('XChainCreateClaimID: missing field SignatureReward');
13
- }
14
- if (tx.OtherChainSource == null) {
15
- throw new errors_1.ValidationError('XChainCreateClaimID: missing field OtherChainSource');
16
- }
17
- }
18
- exports.validateXChainCreateClaimID = validateXChainCreateClaimID;
19
- //# sourceMappingURL=XChainCreateClaimID.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XChainCreateClaimID.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateClaimID.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAG9C,qCAAmE;AAsBnE,SAAgB,2BAA2B,CAAC,EAA2B;IACrE,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,EAAE,CAAC,YAAY,IAAI,IAAI,EAAE;QAC3B,MAAM,IAAI,wBAAe,CAAC,iDAAiD,CAAC,CAAA;KAC7E;IAED,IAAI,EAAE,CAAC,eAAe,IAAI,IAAI,EAAE;QAC9B,MAAM,IAAI,wBAAe,CACvB,oDAAoD,CACrD,CAAA;KACF;IAED,IAAI,EAAE,CAAC,gBAAgB,IAAI,IAAI,EAAE;QAC/B,MAAM,IAAI,wBAAe,CACvB,qDAAqD,CACtD,CAAA;KACF;AACH,CAAC;AAlBD,kEAkBC"}
@@ -1,10 +0,0 @@
1
- import { Amount, XChainBridge } from '../common';
2
- import { BaseTransaction } from './common';
3
- export interface XChainModifyBridge extends BaseTransaction {
4
- TransactionType: 'XChainModifyBridge';
5
- XChainBridge: XChainBridge;
6
- SignatureReward?: Amount;
7
- MinAccountCreateAmount?: Amount;
8
- }
9
- export declare function validateXChainModifyBridge(tx: Record<string, unknown>): void;
10
- //# sourceMappingURL=XChainModifyBridge.d.ts.map