@keetanetwork/anchor 0.0.49 → 0.0.50
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/lib/resolver.js +33 -33
- package/npm-shrinkwrap.json +8 -8
- package/package.json +2 -2
- package/services/asset-movement/client.d.ts.map +1 -1
- package/services/asset-movement/client.js +8 -6
- package/services/asset-movement/client.js.map +1 -1
- package/services/asset-movement/common.d.ts +9 -5
- package/services/asset-movement/common.d.ts.map +1 -1
- package/services/asset-movement/common.js +18113 -9853
- package/services/asset-movement/common.js.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/bcr-pay.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/bcr-pay.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/bcr-pay.js +36 -0
- package/services/asset-movement/lib/data/addresses/bank-account/bcr-pay.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/duit-now.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/duit-now.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/duit-now.js +35 -0
- package/services/asset-movement/lib/data/addresses/bank-account/duit-now.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/hk-fps.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/hk-fps.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/hk-fps.js +36 -0
- package/services/asset-movement/lib/data/addresses/bank-account/hk-fps.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/index.generated.d.ts +10 -0
- package/services/asset-movement/lib/data/addresses/bank-account/index.generated.d.ts.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/index.generated.js +10 -0
- package/services/asset-movement/lib/data/addresses/bank-account/index.generated.js.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/pay-now.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pay-now.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pay-now.js +36 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pay-now.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pix.d.ts.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/pix.js +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/pix.js.map +1 -1
- package/services/asset-movement/lib/data/addresses/bank-account/upi.d.ts +4 -0
- package/services/asset-movement/lib/data/addresses/bank-account/upi.d.ts.map +1 -0
- package/services/asset-movement/lib/data/addresses/bank-account/upi.js +37 -0
- package/services/asset-movement/lib/data/addresses/bank-account/upi.js.map +1 -0
- package/services/asset-movement/lib/data/addresses/types.generated.d.ts +458 -2
- package/services/asset-movement/lib/data/addresses/types.generated.d.ts.map +1 -1
- package/services/asset-movement/lib/data/addresses/types.generated.js +508 -0
- package/services/asset-movement/lib/data/addresses/types.generated.js.map +1 -1
- package/services/asset-movement/lib/location.generated.js +3 -3
- package/services/fx/common.js +16 -16
- package/services/fx/server.js +8 -8
- package/services/notification/common.generated.js +34 -34
- package/services/storage/clients/contacts.generated.js +1216 -406
- package/services/storage/clients/contacts.generated.js.map +1 -1
- package/services/username/common.generated.js +23 -23
package/services/fx/common.js
CHANGED
|
@@ -12,7 +12,7 @@ export function parseFXCostToken(input) {
|
|
|
12
12
|
}
|
|
13
13
|
return (KeetaNetLib.Account.fromPublicKeyString(input).assertKeyType(KeetaNetLib.Account.AccountKeyAlgorithm.TOKEN));
|
|
14
14
|
}
|
|
15
|
-
export const isKeetaFXAnchorEstimateResponse = (() => { const _io0 = input => true === input.ok && ("object" === typeof input.estimate && null !== input.estimate && _iu0(input.estimate)); const _io1 = input => "object" === typeof input.request && null !== input.request && _io2(input.request) && "string" === typeof input.convertedAmount && (
|
|
15
|
+
export const isKeetaFXAnchorEstimateResponse = (() => { const _io0 = input => true === input.ok && ("object" === typeof input.estimate && null !== input.estimate && _iu0(input.estimate)); const _io1 = input => "object" === typeof input.request && null !== input.request && _io2(input.request) && "string" === typeof input.convertedAmount && ("object" === typeof input.expectedCost && null !== input.expectedCost && _io3(input.expectedCost)) && false === input.canPerformExchange && (undefined === input.convertedAmountBound || "string" === typeof input.convertedAmountBound); const _io2 = input => "string" === typeof input.from && (RegExp(/^keeta_am(.*)/).test(input.from) || RegExp(/^keeta_an(.*)/).test(input.from) || RegExp(/^keeta_ao(.*)/).test(input.from) || RegExp(/^keeta_ap(.*)/).test(input.from) || RegExp(/^tyblocks_am(.*)/).test(input.from) || RegExp(/^tyblocks_an(.*)/).test(input.from) || RegExp(/^tyblocks_ao(.*)/).test(input.from) || RegExp(/^tyblocks_ap(.*)/).test(input.from)) && ("string" === typeof input.to && (RegExp(/^keeta_am(.*)/).test(input.to) || RegExp(/^keeta_an(.*)/).test(input.to) || RegExp(/^keeta_ao(.*)/).test(input.to) || RegExp(/^keeta_ap(.*)/).test(input.to) || RegExp(/^tyblocks_am(.*)/).test(input.to) || RegExp(/^tyblocks_an(.*)/).test(input.to) || RegExp(/^tyblocks_ao(.*)/).test(input.to) || RegExp(/^tyblocks_ap(.*)/).test(input.to))) && "string" === typeof input.amount && ("from" === input.affinity || "to" === input.affinity) && (undefined === input.preferredCostAsset || "string" === typeof input.preferredCostAsset && (RegExp(/^keeta_am(.*)/).test(input.preferredCostAsset) || RegExp(/^keeta_an(.*)/).test(input.preferredCostAsset) || RegExp(/^keeta_ao(.*)/).test(input.preferredCostAsset) || RegExp(/^keeta_ap(.*)/).test(input.preferredCostAsset) || RegExp(/^tyblocks_am(.*)/).test(input.preferredCostAsset) || RegExp(/^tyblocks_an(.*)/).test(input.preferredCostAsset) || RegExp(/^tyblocks_ao(.*)/).test(input.preferredCostAsset) || RegExp(/^tyblocks_ap(.*)/).test(input.preferredCostAsset))); const _io3 = input => "string" === typeof input.min && "string" === typeof input.max && ("string" === typeof input.token && (RegExp(/^keeta_am(.*)/).test(input.token) || RegExp(/^keeta_an(.*)/).test(input.token) || RegExp(/^keeta_ao(.*)/).test(input.token) || RegExp(/^keeta_ap(.*)/).test(input.token) || RegExp(/^tyblocks_am(.*)/).test(input.token) || RegExp(/^tyblocks_an(.*)/).test(input.token) || RegExp(/^tyblocks_ao(.*)/).test(input.token) || RegExp(/^tyblocks_ap(.*)/).test(input.token))); const _io4 = input => "object" === typeof input.request && null !== input.request && _io2(input.request) && "string" === typeof input.convertedAmount && ("object" === typeof input.expectedCost && null !== input.expectedCost && _io3(input.expectedCost)) && false === input.requiresQuote && ("string" === typeof input.account && (RegExp(/^keeta_am(.*)/).test(input.account) || RegExp(/^keeta_an(.*)/).test(input.account) || RegExp(/^keeta_ao(.*)/).test(input.account) || RegExp(/^keeta_ap(.*)/).test(input.account) || RegExp(/^tyblocks_am(.*)/).test(input.account) || RegExp(/^tyblocks_an(.*)/).test(input.account) || RegExp(/^tyblocks_ao(.*)/).test(input.account) || RegExp(/^tyblocks_ap(.*)/).test(input.account) || RegExp(/^keeta_aa(.*)/).test(input.account) || RegExp(/^keeta_ab(.*)/).test(input.account) || RegExp(/^keeta_ac(.*)/).test(input.account) || RegExp(/^keeta_ad(.*)/).test(input.account) || RegExp(/^tyblocks_aa(.*)/).test(input.account) || RegExp(/^tyblocks_ab(.*)/).test(input.account) || RegExp(/^tyblocks_ac(.*)/).test(input.account) || RegExp(/^tyblocks_ad(.*)/).test(input.account) || RegExp(/^keeta_ae(.*)/).test(input.account) || RegExp(/^keeta_af(.*)/).test(input.account) || RegExp(/^keeta_ag(.*)/).test(input.account) || RegExp(/^keeta_ah(.*)/).test(input.account) || RegExp(/^tyblocks_ae(.*)/).test(input.account) || RegExp(/^tyblocks_af(.*)/).test(input.account) || RegExp(/^tyblocks_ag(.*)/).test(input.account) || RegExp(/^tyblocks_ah(.*)/).test(input.account) || RegExp(/^keeta_ai(.*)/).test(input.account) || RegExp(/^keeta_aj(.*)/).test(input.account) || RegExp(/^keeta_ak(.*)/).test(input.account) || RegExp(/^keeta_al(.*)/).test(input.account) || RegExp(/^tyblocks_ai(.*)/).test(input.account) || RegExp(/^tyblocks_aj(.*)/).test(input.account) || RegExp(/^tyblocks_ak(.*)/).test(input.account) || RegExp(/^tyblocks_al(.*)/).test(input.account) || RegExp(/^keeta_at(.*)/).test(input.account) || RegExp(/^keeta_aq(.*)/).test(input.account) || RegExp(/^keeta_ar(.*)/).test(input.account) || RegExp(/^keeta_as(.*)/).test(input.account) || RegExp(/^tyblocks_at(.*)/).test(input.account) || RegExp(/^tyblocks_aq(.*)/).test(input.account) || RegExp(/^tyblocks_ar(.*)/).test(input.account) || RegExp(/^tyblocks_as(.*)/).test(input.account) || RegExp(/^keeta_ay(.*)/).test(input.account) || RegExp(/^keeta_az(.*)/).test(input.account) || RegExp(/^keeta_a2(.*)/).test(input.account) || RegExp(/^keeta_a3(.*)/).test(input.account) || RegExp(/^tyblocks_ay(.*)/).test(input.account) || RegExp(/^tyblocks_az(.*)/).test(input.account) || RegExp(/^tyblocks_a2(.*)/).test(input.account) || RegExp(/^tyblocks_a3(.*)/).test(input.account) || RegExp(/^keeta_a4(.*)/).test(input.account) || RegExp(/^keeta_a5(.*)/).test(input.account) || RegExp(/^keeta_a6(.*)/).test(input.account) || RegExp(/^keeta_a7(.*)/).test(input.account) || RegExp(/^tyblocks_a4(.*)/).test(input.account) || RegExp(/^tyblocks_a5(.*)/).test(input.account) || RegExp(/^tyblocks_a6(.*)/).test(input.account) || RegExp(/^tyblocks_a7(.*)/).test(input.account))) && (undefined === input.convertedAmountBound || "string" === typeof input.convertedAmountBound) && (undefined === input.canPerformExchange || true === input.canPerformExchange); const _io5 = input => "object" === typeof input.request && null !== input.request && _io2(input.request) && "string" === typeof input.convertedAmount && ("object" === typeof input.expectedCost && null !== input.expectedCost && _io3(input.expectedCost)) && (undefined === input.convertedAmountBound || "string" === typeof input.convertedAmountBound) && (undefined === input.canPerformExchange || true === input.canPerformExchange) && (undefined === input.requiresQuote || true === input.requiresQuote); const _io6 = input => false === input.ok && "string" === typeof input.error; const _iu0 = input => (() => {
|
|
16
16
|
if (false === input.canPerformExchange)
|
|
17
17
|
return _io1(input);
|
|
18
18
|
else if (false === input.requiresQuote)
|
|
@@ -89,12 +89,12 @@ export const assertConversionInputCanonicalJSON = (() => { const _io0 = input =>
|
|
|
89
89
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
90
90
|
method: "createAssert",
|
|
91
91
|
path: _path + "",
|
|
92
|
-
expected: "
|
|
92
|
+
expected: "{ from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }",
|
|
93
93
|
value: input
|
|
94
94
|
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
95
95
|
method: "createAssert",
|
|
96
96
|
path: _path + "",
|
|
97
|
-
expected: "
|
|
97
|
+
expected: "{ from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }",
|
|
98
98
|
value: input
|
|
99
99
|
}, _errorFactory))(input, "$input", true);
|
|
100
100
|
}
|
|
@@ -115,12 +115,12 @@ export const assertKeetaFXAnchorClientCreateExchangeRequestJSON = (() => { const
|
|
|
115
115
|
}, _errorFactory)) && (("object" === typeof input.quote && null !== input.quote || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
116
116
|
method: "createAssert",
|
|
117
117
|
path: _path + ".quote",
|
|
118
|
-
expected: "
|
|
118
|
+
expected: "{ request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }; account: TokenPublicKeyString | ... 5 more ... | MultisigPublicKeyString; convertedAmount: string; cost: { ...; } & {}; signed: { ...; } & {}; } & {}",
|
|
119
119
|
value: input.quote
|
|
120
120
|
}, _errorFactory)) && _ao1(input.quote, _path + ".quote", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
121
121
|
method: "createAssert",
|
|
122
122
|
path: _path + ".quote",
|
|
123
|
-
expected: "
|
|
123
|
+
expected: "{ request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }; account: TokenPublicKeyString | ... 5 more ... | MultisigPublicKeyString; convertedAmount: string; cost: { ...; } & {}; signed: { ...; } & {}; } & {}",
|
|
124
124
|
value: input.quote
|
|
125
125
|
}, _errorFactory)) && ((null !== input.request || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
126
126
|
method: "createAssert",
|
|
@@ -135,12 +135,12 @@ export const assertKeetaFXAnchorClientCreateExchangeRequestJSON = (() => { const
|
|
|
135
135
|
}, _errorFactory))); const _ao1 = (input, _path, _exceptionable = true) => (("object" === typeof input.request && null !== input.request || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
136
136
|
method: "createAssert",
|
|
137
137
|
path: _path + ".request",
|
|
138
|
-
expected: "
|
|
138
|
+
expected: "{ from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }",
|
|
139
139
|
value: input.request
|
|
140
140
|
}, _errorFactory)) && _ao2(input.request, _path + ".request", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
141
141
|
method: "createAssert",
|
|
142
142
|
path: _path + ".request",
|
|
143
|
-
expected: "
|
|
143
|
+
expected: "{ from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }",
|
|
144
144
|
value: input.request
|
|
145
145
|
}, _errorFactory)) && ("string" === typeof input.account && (RegExp(/^keeta_am(.*)/).test(input.account) || RegExp(/^keeta_an(.*)/).test(input.account) || RegExp(/^keeta_ao(.*)/).test(input.account) || RegExp(/^keeta_ap(.*)/).test(input.account) || RegExp(/^tyblocks_am(.*)/).test(input.account) || RegExp(/^tyblocks_an(.*)/).test(input.account) || RegExp(/^tyblocks_ao(.*)/).test(input.account) || RegExp(/^tyblocks_ap(.*)/).test(input.account) || RegExp(/^keeta_aa(.*)/).test(input.account) || RegExp(/^keeta_ab(.*)/).test(input.account) || RegExp(/^keeta_ac(.*)/).test(input.account) || RegExp(/^keeta_ad(.*)/).test(input.account) || RegExp(/^tyblocks_aa(.*)/).test(input.account) || RegExp(/^tyblocks_ab(.*)/).test(input.account) || RegExp(/^tyblocks_ac(.*)/).test(input.account) || RegExp(/^tyblocks_ad(.*)/).test(input.account) || RegExp(/^keeta_ae(.*)/).test(input.account) || RegExp(/^keeta_af(.*)/).test(input.account) || RegExp(/^keeta_ag(.*)/).test(input.account) || RegExp(/^keeta_ah(.*)/).test(input.account) || RegExp(/^tyblocks_ae(.*)/).test(input.account) || RegExp(/^tyblocks_af(.*)/).test(input.account) || RegExp(/^tyblocks_ag(.*)/).test(input.account) || RegExp(/^tyblocks_ah(.*)/).test(input.account) || RegExp(/^keeta_ai(.*)/).test(input.account) || RegExp(/^keeta_aj(.*)/).test(input.account) || RegExp(/^keeta_ak(.*)/).test(input.account) || RegExp(/^keeta_al(.*)/).test(input.account) || RegExp(/^tyblocks_ai(.*)/).test(input.account) || RegExp(/^tyblocks_aj(.*)/).test(input.account) || RegExp(/^tyblocks_ak(.*)/).test(input.account) || RegExp(/^tyblocks_al(.*)/).test(input.account) || RegExp(/^keeta_at(.*)/).test(input.account) || RegExp(/^keeta_aq(.*)/).test(input.account) || RegExp(/^keeta_ar(.*)/).test(input.account) || RegExp(/^keeta_as(.*)/).test(input.account) || RegExp(/^tyblocks_at(.*)/).test(input.account) || RegExp(/^tyblocks_aq(.*)/).test(input.account) || RegExp(/^tyblocks_ar(.*)/).test(input.account) || RegExp(/^tyblocks_as(.*)/).test(input.account) || RegExp(/^keeta_ay(.*)/).test(input.account) || RegExp(/^keeta_az(.*)/).test(input.account) || RegExp(/^keeta_a2(.*)/).test(input.account) || RegExp(/^keeta_a3(.*)/).test(input.account) || RegExp(/^tyblocks_ay(.*)/).test(input.account) || RegExp(/^tyblocks_az(.*)/).test(input.account) || RegExp(/^tyblocks_a2(.*)/).test(input.account) || RegExp(/^tyblocks_a3(.*)/).test(input.account) || RegExp(/^keeta_a4(.*)/).test(input.account) || RegExp(/^keeta_a5(.*)/).test(input.account) || RegExp(/^keeta_a6(.*)/).test(input.account) || RegExp(/^keeta_a7(.*)/).test(input.account) || RegExp(/^tyblocks_a4(.*)/).test(input.account) || RegExp(/^tyblocks_a5(.*)/).test(input.account) || RegExp(/^tyblocks_a6(.*)/).test(input.account) || RegExp(/^tyblocks_a7(.*)/).test(input.account)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
146
146
|
method: "createAssert",
|
|
@@ -155,22 +155,22 @@ export const assertKeetaFXAnchorClientCreateExchangeRequestJSON = (() => { const
|
|
|
155
155
|
}, _errorFactory)) && (("object" === typeof input.cost && null !== input.cost || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
156
156
|
method: "createAssert",
|
|
157
157
|
path: _path + ".cost",
|
|
158
|
-
expected: "
|
|
158
|
+
expected: "{ amount: string; token: TokenPublicKeyString; } & {}",
|
|
159
159
|
value: input.cost
|
|
160
160
|
}, _errorFactory)) && _ao3(input.cost, _path + ".cost", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
161
161
|
method: "createAssert",
|
|
162
162
|
path: _path + ".cost",
|
|
163
|
-
expected: "
|
|
163
|
+
expected: "{ amount: string; token: TokenPublicKeyString; } & {}",
|
|
164
164
|
value: input.cost
|
|
165
165
|
}, _errorFactory)) && (("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
166
166
|
method: "createAssert",
|
|
167
167
|
path: _path + ".signed",
|
|
168
|
-
expected: "
|
|
168
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
169
169
|
value: input.signed
|
|
170
170
|
}, _errorFactory)) && _ao4(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
171
171
|
method: "createAssert",
|
|
172
172
|
path: _path + ".signed",
|
|
173
|
-
expected: "
|
|
173
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
174
174
|
value: input.signed
|
|
175
175
|
}, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.from && (RegExp(/^keeta_am(.*)/).test(input.from) || RegExp(/^keeta_an(.*)/).test(input.from) || RegExp(/^keeta_ao(.*)/).test(input.from) || RegExp(/^keeta_ap(.*)/).test(input.from) || RegExp(/^tyblocks_am(.*)/).test(input.from) || RegExp(/^tyblocks_an(.*)/).test(input.from) || RegExp(/^tyblocks_ao(.*)/).test(input.from) || RegExp(/^tyblocks_ap(.*)/).test(input.from)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
176
176
|
method: "createAssert",
|
|
@@ -240,12 +240,12 @@ export const assertKeetaFXAnchorClientCreateExchangeRequestJSON = (() => { const
|
|
|
240
240
|
}, _errorFactory))) && (("object" === typeof input.request && null !== input.request || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
241
241
|
method: "createAssert",
|
|
242
242
|
path: _path + ".request",
|
|
243
|
-
expected: "
|
|
243
|
+
expected: "{ from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }.o1",
|
|
244
244
|
value: input.request
|
|
245
245
|
}, _errorFactory)) && _ao6(input.request, _path + ".request", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
246
246
|
method: "createAssert",
|
|
247
247
|
path: _path + ".request",
|
|
248
|
-
expected: "
|
|
248
|
+
expected: "{ from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }.o1",
|
|
249
249
|
value: input.request
|
|
250
250
|
}, _errorFactory)); const _ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input.from && (RegExp(/^keeta_am(.*)/).test(input.from) || RegExp(/^keeta_an(.*)/).test(input.from) || RegExp(/^keeta_ao(.*)/).test(input.from) || RegExp(/^keeta_ap(.*)/).test(input.from) || RegExp(/^tyblocks_am(.*)/).test(input.from) || RegExp(/^tyblocks_an(.*)/).test(input.from) || RegExp(/^tyblocks_ao(.*)/).test(input.from) || RegExp(/^tyblocks_ap(.*)/).test(input.from)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
251
251
|
method: "createAssert",
|
|
@@ -281,7 +281,7 @@ export const assertKeetaFXAnchorClientCreateExchangeRequestJSON = (() => { const
|
|
|
281
281
|
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
282
282
|
method: "createAssert",
|
|
283
283
|
path: _path,
|
|
284
|
-
expected: "({ block: string; } & { quote?: undefined; request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\";
|
|
284
|
+
expected: "({ block: string; } & { quote?: undefined; request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { ...; }; } | { block: string; } & { quote: { request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { ...; }; account: TokenPublicKeyString | ... 5 more ... | MultisigPublicKeyString; convertedAmount: string; cost: { ...; } & {}; signed: { ...; } & {}; } & {}; request?: unde...)",
|
|
285
285
|
value: input
|
|
286
286
|
}, _errorFactory);
|
|
287
287
|
})(); const __is = input => "object" === typeof input && null !== input && _iu0(input); let _errorFactory; return (input, errorFactory) => {
|
|
@@ -290,12 +290,12 @@ export const assertKeetaFXAnchorClientCreateExchangeRequestJSON = (() => { const
|
|
|
290
290
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
291
291
|
method: "createAssert",
|
|
292
292
|
path: _path + "",
|
|
293
|
-
expected: "({ block: string; } & { quote: { request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\";
|
|
293
|
+
expected: "({ block: string; } & { quote: { request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { ...; }; account: TokenPublicKeyString | ... 5 more ... | MultisigPublicKeyString; convertedAmount: string; cost: { ...; } & {}; signed: { ...; } & {}; } & {}; request?: unde... | { block: string; } & { quote?: undefined; request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { ...; }; })",
|
|
294
294
|
value: input
|
|
295
295
|
}, _errorFactory)) && _au0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
296
296
|
method: "createAssert",
|
|
297
297
|
path: _path + "",
|
|
298
|
-
expected: "({ block: string; } & { quote: { request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\";
|
|
298
|
+
expected: "({ block: string; } & { quote: { request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { ...; }; account: TokenPublicKeyString | ... 5 more ... | MultisigPublicKeyString; convertedAmount: string; cost: { ...; } & {}; signed: { ...; } & {}; } & {}; request?: unde... | { block: string; } & { quote?: undefined; request: { from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { ...; }; })",
|
|
299
299
|
value: input
|
|
300
300
|
}, _errorFactory))(input, "$input", true);
|
|
301
301
|
}
|
package/services/fx/server.js
CHANGED
|
@@ -1176,22 +1176,22 @@ const assertKeetaFXAnchorQueueStage1RequestJSON = (() => { const _io0 = input =>
|
|
|
1176
1176
|
}, _errorFactory)) && (("object" === typeof input.request && null !== input.request || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1177
1177
|
method: "typia.createAssert",
|
|
1178
1178
|
path: _path + ".request",
|
|
1179
|
-
expected: "
|
|
1179
|
+
expected: "{ from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }",
|
|
1180
1180
|
value: input.request
|
|
1181
1181
|
}, _errorFactory)) && _ao1(input.request, _path + ".request", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1182
1182
|
method: "typia.createAssert",
|
|
1183
1183
|
path: _path + ".request",
|
|
1184
|
-
expected: "
|
|
1184
|
+
expected: "{ from: TokenPublicKeyString; to: TokenPublicKeyString; amount: string; affinity: \"from\" | \"to\"; } & { preferredCostAsset?: TokenPublicKeyString; }",
|
|
1185
1185
|
value: input.request
|
|
1186
1186
|
}, _errorFactory)) && (null === input.expected || ("object" === typeof input.expected && null !== input.expected || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1187
1187
|
method: "typia.createAssert",
|
|
1188
1188
|
path: _path + ".expected",
|
|
1189
|
-
expected: "(
|
|
1189
|
+
expected: "(null | { receive: { token: TokenPublicKeyString; amount: string; } & {}; send: { token: TokenPublicKeyString; amount: string; } & {}; } & {})",
|
|
1190
1190
|
value: input.expected
|
|
1191
1191
|
}, _errorFactory)) && _ao2(input.expected, _path + ".expected", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1192
1192
|
method: "typia.createAssert",
|
|
1193
1193
|
path: _path + ".expected",
|
|
1194
|
-
expected: "(
|
|
1194
|
+
expected: "(null | { receive: { token: TokenPublicKeyString; amount: string; } & {}; send: { token: TokenPublicKeyString; amount: string; } & {}; } & {})",
|
|
1195
1195
|
value: input.expected
|
|
1196
1196
|
}, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.from && (RegExp(/^keeta_am(.*)/).test(input.from) || RegExp(/^keeta_an(.*)/).test(input.from) || RegExp(/^keeta_ao(.*)/).test(input.from) || RegExp(/^keeta_ap(.*)/).test(input.from) || RegExp(/^tyblocks_am(.*)/).test(input.from) || RegExp(/^tyblocks_an(.*)/).test(input.from) || RegExp(/^tyblocks_ao(.*)/).test(input.from) || RegExp(/^tyblocks_ap(.*)/).test(input.from)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1197
1197
|
method: "typia.createAssert",
|
|
@@ -1221,22 +1221,22 @@ const assertKeetaFXAnchorQueueStage1RequestJSON = (() => { const _io0 = input =>
|
|
|
1221
1221
|
}, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => (("object" === typeof input.receive && null !== input.receive || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1222
1222
|
method: "typia.createAssert",
|
|
1223
1223
|
path: _path + ".receive",
|
|
1224
|
-
expected: "
|
|
1224
|
+
expected: "{ token: TokenPublicKeyString; amount: string; } & {}",
|
|
1225
1225
|
value: input.receive
|
|
1226
1226
|
}, _errorFactory)) && _ao3(input.receive, _path + ".receive", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1227
1227
|
method: "typia.createAssert",
|
|
1228
1228
|
path: _path + ".receive",
|
|
1229
|
-
expected: "
|
|
1229
|
+
expected: "{ token: TokenPublicKeyString; amount: string; } & {}",
|
|
1230
1230
|
value: input.receive
|
|
1231
1231
|
}, _errorFactory)) && (("object" === typeof input.send && null !== input.send || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1232
1232
|
method: "typia.createAssert",
|
|
1233
1233
|
path: _path + ".send",
|
|
1234
|
-
expected: "
|
|
1234
|
+
expected: "{ token: TokenPublicKeyString; amount: string; } & {}.o1",
|
|
1235
1235
|
value: input.send
|
|
1236
1236
|
}, _errorFactory)) && _ao4(input.send, _path + ".send", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1237
1237
|
method: "typia.createAssert",
|
|
1238
1238
|
path: _path + ".send",
|
|
1239
|
-
expected: "
|
|
1239
|
+
expected: "{ token: TokenPublicKeyString; amount: string; } & {}.o1",
|
|
1240
1240
|
value: input.send
|
|
1241
1241
|
}, _errorFactory)); const _ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.token && (RegExp(/^keeta_am(.*)/).test(input.token) || RegExp(/^keeta_an(.*)/).test(input.token) || RegExp(/^keeta_ao(.*)/).test(input.token) || RegExp(/^keeta_ap(.*)/).test(input.token) || RegExp(/^tyblocks_am(.*)/).test(input.token) || RegExp(/^tyblocks_an(.*)/).test(input.token) || RegExp(/^tyblocks_ao(.*)/).test(input.token) || RegExp(/^tyblocks_ap(.*)/).test(input.token)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1242
1242
|
method: "typia.createAssert",
|
|
@@ -23,12 +23,12 @@ export const assertKeetaNotificationAnchorListTargetsRequestJSON = (() => { cons
|
|
|
23
23
|
}, _errorFactory)) && (("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
24
24
|
method: "createAssertEquals",
|
|
25
25
|
path: _path + ".signed",
|
|
26
|
-
expected: "
|
|
26
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
27
27
|
value: input.signed
|
|
28
28
|
}, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
29
29
|
method: "createAssertEquals",
|
|
30
30
|
path: _path + ".signed",
|
|
31
|
-
expected: "
|
|
31
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
32
32
|
value: input.signed
|
|
33
33
|
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
34
34
|
if (["account", "signed"].some(prop => key === prop))
|
|
@@ -75,12 +75,12 @@ export const assertKeetaNotificationAnchorListTargetsRequestJSON = (() => { cons
|
|
|
75
75
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
76
76
|
method: "createAssertEquals",
|
|
77
77
|
path: _path + "",
|
|
78
|
-
expected: "
|
|
78
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; } & {}",
|
|
79
79
|
value: input
|
|
80
80
|
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
81
81
|
method: "createAssertEquals",
|
|
82
82
|
path: _path + "",
|
|
83
|
-
expected: "
|
|
83
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; } & {}",
|
|
84
84
|
value: input
|
|
85
85
|
}, _errorFactory))(input, "$input", true);
|
|
86
86
|
}
|
|
@@ -115,22 +115,22 @@ export const assertKeetaNotificationAnchorRegisterTargetRequestJSON = (() => { c
|
|
|
115
115
|
}, _errorFactory)) && (("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
116
116
|
method: "createAssertEquals",
|
|
117
117
|
path: _path + ".signed",
|
|
118
|
-
expected: "
|
|
118
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
119
119
|
value: input.signed
|
|
120
120
|
}, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
121
121
|
method: "createAssertEquals",
|
|
122
122
|
path: _path + ".signed",
|
|
123
|
-
expected: "
|
|
123
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
124
124
|
value: input.signed
|
|
125
125
|
}, _errorFactory)) && (("object" === typeof input.channel && null !== input.channel || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
126
126
|
method: "createAssertEquals",
|
|
127
127
|
path: _path + ".channel",
|
|
128
|
-
expected: "
|
|
128
|
+
expected: "{ appId: string; fcmToken: string; type: \"FCM\"; } & {}",
|
|
129
129
|
value: input.channel
|
|
130
130
|
}, _errorFactory)) && _ao2(input.channel, _path + ".channel", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
131
131
|
method: "createAssertEquals",
|
|
132
132
|
path: _path + ".channel",
|
|
133
|
-
expected: "
|
|
133
|
+
expected: "{ appId: string; fcmToken: string; type: \"FCM\"; } & {}",
|
|
134
134
|
value: input.channel
|
|
135
135
|
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
136
136
|
if (["account", "signed", "channel"].some(prop => key === prop))
|
|
@@ -204,12 +204,12 @@ export const assertKeetaNotificationAnchorRegisterTargetRequestJSON = (() => { c
|
|
|
204
204
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
205
205
|
method: "createAssertEquals",
|
|
206
206
|
path: _path + "",
|
|
207
|
-
expected: "
|
|
207
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; channel: { ...; } & {}; } & {}",
|
|
208
208
|
value: input
|
|
209
209
|
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
210
210
|
method: "createAssertEquals",
|
|
211
211
|
path: _path + "",
|
|
212
|
-
expected: "
|
|
212
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; channel: { ...; } & {}; } & {}",
|
|
213
213
|
value: input
|
|
214
214
|
}, _errorFactory))(input, "$input", true);
|
|
215
215
|
}
|
|
@@ -237,12 +237,12 @@ export const assertKeetaNotificationAnchorDeleteTargetRequestJSON = (() => { con
|
|
|
237
237
|
}, _errorFactory)) && (("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
238
238
|
method: "createAssertEquals",
|
|
239
239
|
path: _path + ".signed",
|
|
240
|
-
expected: "
|
|
240
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
241
241
|
value: input.signed
|
|
242
242
|
}, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
243
243
|
method: "createAssertEquals",
|
|
244
244
|
path: _path + ".signed",
|
|
245
|
-
expected: "
|
|
245
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
246
246
|
value: input.signed
|
|
247
247
|
}, _errorFactory)) && ("string" === typeof input.id || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
248
248
|
method: "createAssertEquals",
|
|
@@ -294,12 +294,12 @@ export const assertKeetaNotificationAnchorDeleteTargetRequestJSON = (() => { con
|
|
|
294
294
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
295
295
|
method: "createAssertEquals",
|
|
296
296
|
path: _path + "",
|
|
297
|
-
expected: "
|
|
297
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; id: string; } & {}",
|
|
298
298
|
value: input
|
|
299
299
|
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
300
300
|
method: "createAssertEquals",
|
|
301
301
|
path: _path + "",
|
|
302
|
-
expected: "
|
|
302
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; id: string; } & {}",
|
|
303
303
|
value: input
|
|
304
304
|
}, _errorFactory))(input, "$input", true);
|
|
305
305
|
}
|
|
@@ -343,8 +343,8 @@ export const assertKeetaNotificationAnchorCreateSubscriptionRequestJSON = (() =>
|
|
|
343
343
|
if (undefined === value)
|
|
344
344
|
return true;
|
|
345
345
|
return false;
|
|
346
|
-
})); const _io2 = (input, _exceptionable = true) =>
|
|
347
|
-
if (["
|
|
346
|
+
})); const _io2 = (input, _exceptionable = true) => Array.isArray(input.ids) && input.ids.every((elem, _index1) => "string" === typeof elem) && (undefined === input.provider || "string" === typeof input.provider) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
347
|
+
if (["ids", "provider"].some(prop => key === prop))
|
|
348
348
|
return true;
|
|
349
349
|
const value = input[key];
|
|
350
350
|
if (undefined === value)
|
|
@@ -402,12 +402,12 @@ export const assertKeetaNotificationAnchorCreateSubscriptionRequestJSON = (() =>
|
|
|
402
402
|
}, _errorFactory)) && (("object" === typeof input.target && null !== input.target || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
403
403
|
method: "createAssertEquals",
|
|
404
404
|
path: _path + ".target",
|
|
405
|
-
expected: "
|
|
405
|
+
expected: "{ ids: string[]; } & { provider?: string; }",
|
|
406
406
|
value: input.target
|
|
407
407
|
}, _errorFactory)) && _ao2(input.target, _path + ".target", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
408
408
|
method: "createAssertEquals",
|
|
409
409
|
path: _path + ".target",
|
|
410
|
-
expected: "
|
|
410
|
+
expected: "{ ids: string[]; } & { provider?: string; }",
|
|
411
411
|
value: input.target
|
|
412
412
|
}, _errorFactory)) && (undefined === input.toAddress || "string" === typeof input.toAddress && (RegExp(/^keeta_am(.*)/).test(input.toAddress) || RegExp(/^keeta_an(.*)/).test(input.toAddress) || RegExp(/^keeta_ao(.*)/).test(input.toAddress) || RegExp(/^keeta_ap(.*)/).test(input.toAddress) || RegExp(/^tyblocks_am(.*)/).test(input.toAddress) || RegExp(/^tyblocks_an(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ao(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ap(.*)/).test(input.toAddress) || RegExp(/^keeta_aa(.*)/).test(input.toAddress) || RegExp(/^keeta_ab(.*)/).test(input.toAddress) || RegExp(/^keeta_ac(.*)/).test(input.toAddress) || RegExp(/^keeta_ad(.*)/).test(input.toAddress) || RegExp(/^tyblocks_aa(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ab(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ac(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ad(.*)/).test(input.toAddress) || RegExp(/^keeta_ae(.*)/).test(input.toAddress) || RegExp(/^keeta_af(.*)/).test(input.toAddress) || RegExp(/^keeta_ag(.*)/).test(input.toAddress) || RegExp(/^keeta_ah(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ae(.*)/).test(input.toAddress) || RegExp(/^tyblocks_af(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ag(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ah(.*)/).test(input.toAddress) || RegExp(/^keeta_ai(.*)/).test(input.toAddress) || RegExp(/^keeta_aj(.*)/).test(input.toAddress) || RegExp(/^keeta_ak(.*)/).test(input.toAddress) || RegExp(/^keeta_al(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ai(.*)/).test(input.toAddress) || RegExp(/^tyblocks_aj(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ak(.*)/).test(input.toAddress) || RegExp(/^tyblocks_al(.*)/).test(input.toAddress) || RegExp(/^keeta_at(.*)/).test(input.toAddress) || RegExp(/^keeta_aq(.*)/).test(input.toAddress) || RegExp(/^keeta_ar(.*)/).test(input.toAddress) || RegExp(/^keeta_as(.*)/).test(input.toAddress) || RegExp(/^tyblocks_at(.*)/).test(input.toAddress) || RegExp(/^tyblocks_aq(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ar(.*)/).test(input.toAddress) || RegExp(/^tyblocks_as(.*)/).test(input.toAddress) || RegExp(/^keeta_ay(.*)/).test(input.toAddress) || RegExp(/^keeta_az(.*)/).test(input.toAddress) || RegExp(/^keeta_a2(.*)/).test(input.toAddress) || RegExp(/^keeta_a3(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ay(.*)/).test(input.toAddress) || RegExp(/^tyblocks_az(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a2(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a3(.*)/).test(input.toAddress) || RegExp(/^keeta_a4(.*)/).test(input.toAddress) || RegExp(/^keeta_a5(.*)/).test(input.toAddress) || RegExp(/^keeta_a6(.*)/).test(input.toAddress) || RegExp(/^keeta_a7(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a4(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a5(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a6(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a7(.*)/).test(input.toAddress)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
413
413
|
method: "createAssertEquals",
|
|
@@ -431,12 +431,7 @@ export const assertKeetaNotificationAnchorCreateSubscriptionRequestJSON = (() =>
|
|
|
431
431
|
expected: "undefined",
|
|
432
432
|
value: value
|
|
433
433
|
}, _errorFactory);
|
|
434
|
-
}))); const _ao2 = (input, _path, _exceptionable = true) => (
|
|
435
|
-
method: "createAssertEquals",
|
|
436
|
-
path: _path + ".provider",
|
|
437
|
-
expected: "(string | undefined)",
|
|
438
|
-
value: input.provider
|
|
439
|
-
}, _errorFactory)) && ((Array.isArray(input.ids) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
434
|
+
}))); const _ao2 = (input, _path, _exceptionable = true) => ((Array.isArray(input.ids) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
440
435
|
method: "createAssertEquals",
|
|
441
436
|
path: _path + ".ids",
|
|
442
437
|
expected: "Array<string>",
|
|
@@ -451,8 +446,13 @@ export const assertKeetaNotificationAnchorCreateSubscriptionRequestJSON = (() =>
|
|
|
451
446
|
path: _path + ".ids",
|
|
452
447
|
expected: "Array<string>",
|
|
453
448
|
value: input.ids
|
|
449
|
+
}, _errorFactory)) && (undefined === input.provider || "string" === typeof input.provider || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
450
|
+
method: "createAssertEquals",
|
|
451
|
+
path: _path + ".provider",
|
|
452
|
+
expected: "(string | undefined)",
|
|
453
|
+
value: input.provider
|
|
454
454
|
}, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
455
|
-
if (["
|
|
455
|
+
if (["ids", "provider"].some(prop => key === prop))
|
|
456
456
|
return true;
|
|
457
457
|
const value = input[key];
|
|
458
458
|
if (undefined === value)
|
|
@@ -529,12 +529,12 @@ export const assertKeetaNotificationAnchorDeleteSubscriptionRequestJSON = (() =>
|
|
|
529
529
|
}, _errorFactory)) && (("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
530
530
|
method: "createAssertEquals",
|
|
531
531
|
path: _path + ".signed",
|
|
532
|
-
expected: "
|
|
532
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
533
533
|
value: input.signed
|
|
534
534
|
}, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
535
535
|
method: "createAssertEquals",
|
|
536
536
|
path: _path + ".signed",
|
|
537
|
-
expected: "
|
|
537
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
538
538
|
value: input.signed
|
|
539
539
|
}, _errorFactory)) && ("string" === typeof input.id || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
540
540
|
method: "createAssertEquals",
|
|
@@ -586,12 +586,12 @@ export const assertKeetaNotificationAnchorDeleteSubscriptionRequestJSON = (() =>
|
|
|
586
586
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
587
587
|
method: "createAssertEquals",
|
|
588
588
|
path: _path + "",
|
|
589
|
-
expected: "
|
|
589
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; id: string; } & {}",
|
|
590
590
|
value: input
|
|
591
591
|
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
592
592
|
method: "createAssertEquals",
|
|
593
593
|
path: _path + "",
|
|
594
|
-
expected: "
|
|
594
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; id: string; } & {}",
|
|
595
595
|
value: input
|
|
596
596
|
}, _errorFactory))(input, "$input", true);
|
|
597
597
|
}
|
|
@@ -619,12 +619,12 @@ export const assertKeetaNotificationAnchorListSubscriptionsRequestJSON = (() =>
|
|
|
619
619
|
}, _errorFactory)) && (("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
620
620
|
method: "createAssertEquals",
|
|
621
621
|
path: _path + ".signed",
|
|
622
|
-
expected: "
|
|
622
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
623
623
|
value: input.signed
|
|
624
624
|
}, _errorFactory)) && _ao1(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
625
625
|
method: "createAssertEquals",
|
|
626
626
|
path: _path + ".signed",
|
|
627
|
-
expected: "
|
|
627
|
+
expected: "{ nonce: string; timestamp: string; signature: string; } & {}",
|
|
628
628
|
value: input.signed
|
|
629
629
|
}, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
630
630
|
if (["account", "signed"].some(prop => key === prop))
|
|
@@ -671,12 +671,12 @@ export const assertKeetaNotificationAnchorListSubscriptionsRequestJSON = (() =>
|
|
|
671
671
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
672
672
|
method: "createAssertEquals",
|
|
673
673
|
path: _path + "",
|
|
674
|
-
expected: "
|
|
674
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; } & {}",
|
|
675
675
|
value: input
|
|
676
676
|
}, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
677
677
|
method: "createAssertEquals",
|
|
678
678
|
path: _path + "",
|
|
679
|
-
expected: "
|
|
679
|
+
expected: "{ account: Secp256K1PublicKeyString | ED25519PublicKeyString | Secp256R1PublicKeyString; signed: { ...; } & {}; } & {}",
|
|
680
680
|
value: input
|
|
681
681
|
}, _errorFactory))(input, "$input", true);
|
|
682
682
|
}
|
|
@@ -698,7 +698,7 @@ export const isKeetaNotificationAnchorDeleteSubscriptionResponseJSON = (() => {
|
|
|
698
698
|
else
|
|
699
699
|
return false;
|
|
700
700
|
})(); return input => "object" === typeof input && null !== input && _iu0(input); })();
|
|
701
|
-
export const isKeetaNotificationAnchorListSubscriptionsResponseJSON = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && (Array.isArray(input.subscriptions) && input.subscriptions.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io2 = input => "string" === typeof input.id && ("object" === typeof input.subscription && null !== input.subscription && _io3(input.subscription)); const _io3 = input => "RECEIVE_FUNDS" === input.type && ("object" === typeof input.target && null !== input.target && _io4(input.target)) && (undefined === input.toAddress || "string" === typeof input.toAddress && (RegExp(/^keeta_am(.*)/).test(input.toAddress) || RegExp(/^keeta_an(.*)/).test(input.toAddress) || RegExp(/^keeta_ao(.*)/).test(input.toAddress) || RegExp(/^keeta_ap(.*)/).test(input.toAddress) || RegExp(/^tyblocks_am(.*)/).test(input.toAddress) || RegExp(/^tyblocks_an(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ao(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ap(.*)/).test(input.toAddress) || RegExp(/^keeta_aa(.*)/).test(input.toAddress) || RegExp(/^keeta_ab(.*)/).test(input.toAddress) || RegExp(/^keeta_ac(.*)/).test(input.toAddress) || RegExp(/^keeta_ad(.*)/).test(input.toAddress) || RegExp(/^tyblocks_aa(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ab(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ac(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ad(.*)/).test(input.toAddress) || RegExp(/^keeta_ae(.*)/).test(input.toAddress) || RegExp(/^keeta_af(.*)/).test(input.toAddress) || RegExp(/^keeta_ag(.*)/).test(input.toAddress) || RegExp(/^keeta_ah(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ae(.*)/).test(input.toAddress) || RegExp(/^tyblocks_af(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ag(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ah(.*)/).test(input.toAddress) || RegExp(/^keeta_ai(.*)/).test(input.toAddress) || RegExp(/^keeta_aj(.*)/).test(input.toAddress) || RegExp(/^keeta_ak(.*)/).test(input.toAddress) || RegExp(/^keeta_al(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ai(.*)/).test(input.toAddress) || RegExp(/^tyblocks_aj(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ak(.*)/).test(input.toAddress) || RegExp(/^tyblocks_al(.*)/).test(input.toAddress) || RegExp(/^keeta_at(.*)/).test(input.toAddress) || RegExp(/^keeta_aq(.*)/).test(input.toAddress) || RegExp(/^keeta_ar(.*)/).test(input.toAddress) || RegExp(/^keeta_as(.*)/).test(input.toAddress) || RegExp(/^tyblocks_at(.*)/).test(input.toAddress) || RegExp(/^tyblocks_aq(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ar(.*)/).test(input.toAddress) || RegExp(/^tyblocks_as(.*)/).test(input.toAddress) || RegExp(/^keeta_ay(.*)/).test(input.toAddress) || RegExp(/^keeta_az(.*)/).test(input.toAddress) || RegExp(/^keeta_a2(.*)/).test(input.toAddress) || RegExp(/^keeta_a3(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ay(.*)/).test(input.toAddress) || RegExp(/^tyblocks_az(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a2(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a3(.*)/).test(input.toAddress) || RegExp(/^keeta_a4(.*)/).test(input.toAddress) || RegExp(/^keeta_a5(.*)/).test(input.toAddress) || RegExp(/^keeta_a6(.*)/).test(input.toAddress) || RegExp(/^keeta_a7(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a4(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a5(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a6(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a7(.*)/).test(input.toAddress))) && (undefined === input.locale || "string" === typeof input.locale); const _io4 = input => (
|
|
701
|
+
export const isKeetaNotificationAnchorListSubscriptionsResponseJSON = (() => { const _io0 = input => false === input.ok && "string" === typeof input.error; const _io1 = input => true === input.ok && (Array.isArray(input.subscriptions) && input.subscriptions.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io2 = input => "string" === typeof input.id && ("object" === typeof input.subscription && null !== input.subscription && _io3(input.subscription)); const _io3 = input => "RECEIVE_FUNDS" === input.type && ("object" === typeof input.target && null !== input.target && _io4(input.target)) && (undefined === input.toAddress || "string" === typeof input.toAddress && (RegExp(/^keeta_am(.*)/).test(input.toAddress) || RegExp(/^keeta_an(.*)/).test(input.toAddress) || RegExp(/^keeta_ao(.*)/).test(input.toAddress) || RegExp(/^keeta_ap(.*)/).test(input.toAddress) || RegExp(/^tyblocks_am(.*)/).test(input.toAddress) || RegExp(/^tyblocks_an(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ao(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ap(.*)/).test(input.toAddress) || RegExp(/^keeta_aa(.*)/).test(input.toAddress) || RegExp(/^keeta_ab(.*)/).test(input.toAddress) || RegExp(/^keeta_ac(.*)/).test(input.toAddress) || RegExp(/^keeta_ad(.*)/).test(input.toAddress) || RegExp(/^tyblocks_aa(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ab(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ac(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ad(.*)/).test(input.toAddress) || RegExp(/^keeta_ae(.*)/).test(input.toAddress) || RegExp(/^keeta_af(.*)/).test(input.toAddress) || RegExp(/^keeta_ag(.*)/).test(input.toAddress) || RegExp(/^keeta_ah(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ae(.*)/).test(input.toAddress) || RegExp(/^tyblocks_af(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ag(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ah(.*)/).test(input.toAddress) || RegExp(/^keeta_ai(.*)/).test(input.toAddress) || RegExp(/^keeta_aj(.*)/).test(input.toAddress) || RegExp(/^keeta_ak(.*)/).test(input.toAddress) || RegExp(/^keeta_al(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ai(.*)/).test(input.toAddress) || RegExp(/^tyblocks_aj(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ak(.*)/).test(input.toAddress) || RegExp(/^tyblocks_al(.*)/).test(input.toAddress) || RegExp(/^keeta_at(.*)/).test(input.toAddress) || RegExp(/^keeta_aq(.*)/).test(input.toAddress) || RegExp(/^keeta_ar(.*)/).test(input.toAddress) || RegExp(/^keeta_as(.*)/).test(input.toAddress) || RegExp(/^tyblocks_at(.*)/).test(input.toAddress) || RegExp(/^tyblocks_aq(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ar(.*)/).test(input.toAddress) || RegExp(/^tyblocks_as(.*)/).test(input.toAddress) || RegExp(/^keeta_ay(.*)/).test(input.toAddress) || RegExp(/^keeta_az(.*)/).test(input.toAddress) || RegExp(/^keeta_a2(.*)/).test(input.toAddress) || RegExp(/^keeta_a3(.*)/).test(input.toAddress) || RegExp(/^tyblocks_ay(.*)/).test(input.toAddress) || RegExp(/^tyblocks_az(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a2(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a3(.*)/).test(input.toAddress) || RegExp(/^keeta_a4(.*)/).test(input.toAddress) || RegExp(/^keeta_a5(.*)/).test(input.toAddress) || RegExp(/^keeta_a6(.*)/).test(input.toAddress) || RegExp(/^keeta_a7(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a4(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a5(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a6(.*)/).test(input.toAddress) || RegExp(/^tyblocks_a7(.*)/).test(input.toAddress))) && (undefined === input.locale || "string" === typeof input.locale); const _io4 = input => Array.isArray(input.ids) && input.ids.every(elem => "string" === typeof elem) && (undefined === input.provider || "string" === typeof input.provider); const _iu0 = input => (() => {
|
|
702
702
|
if (false === input.ok)
|
|
703
703
|
return _io0(input);
|
|
704
704
|
else if (true === input.ok)
|