@heliofi/common 0.2.340 → 0.2.342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.d.ts +2 -1
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js +2 -1
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditAction.js.map +1 -1
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js +2 -1
- package/dist/src/domain/model/audit/explorer/constants/ExplorerAuditActionType.js.map +1 -1
- package/dist/src/domain/model/auth/entities/{EmailAccountLookupResult.js → EmailAccountLookupResult.entity.js} +1 -1
- package/dist/src/domain/model/auth/entities/EmailAccountLookupResult.entity.js.map +1 -0
- package/dist/src/domain/model/auth/entities/{WalletAccountLookupResult.js → WalletAccountLookupResult.entity.js} +1 -1
- package/dist/src/domain/model/auth/entities/WalletAccountLookupResult.entity.js.map +1 -0
- package/dist/src/domain/model/auth/entities/external/{ExternalSignInResponse.js → ExternalSignInResponse.entity.js} +1 -1
- package/dist/src/domain/model/auth/entities/external/ExternalSignInResponse.entity.js.map +1 -0
- package/dist/src/domain/model/auth/entities/external/{ExternalSignupResponse.d.ts → ExternalSignupResponse.entity.d.ts} +1 -1
- package/dist/src/domain/model/auth/entities/external/ExternalSignupResponse.entity.js +8 -0
- package/dist/src/domain/model/auth/entities/external/ExternalSignupResponse.entity.js.map +1 -0
- package/dist/src/domain/model/auth/entities/external/{ExternalUpgradePreviewResponse.js → ExternalUpgradePreviewResponse.entity.js} +1 -1
- package/dist/src/domain/model/auth/entities/external/ExternalUpgradePreviewResponse.entity.js.map +1 -0
- package/dist/src/domain/model/auth/entities/external/index.d.ts +3 -3
- package/dist/src/domain/model/auth/entities/external/index.js +3 -3
- package/dist/src/domain/model/auth/entities/external/index.js.map +1 -1
- package/dist/src/domain/model/auth/entities/index.d.ts +2 -2
- package/dist/src/domain/model/auth/entities/index.js +2 -2
- package/dist/src/domain/model/auth/entities/index.js.map +1 -1
- package/dist/src/domain/model/broadcast/broadcast.spec.js +38 -0
- package/dist/src/domain/model/broadcast/broadcast.spec.js.map +1 -1
- package/dist/src/domain/model/broadcast/constants/SignedTransactionKind.d.ts +2 -1
- package/dist/src/domain/model/broadcast/constants/SignedTransactionKind.js +1 -0
- package/dist/src/domain/model/broadcast/constants/SignedTransactionKind.js.map +1 -1
- package/dist/src/domain/model/broadcast/entities/SignedTransaction.d.ts +22 -2
- package/dist/src/domain/model/deposit/dtos/createDepositSwapQuote.dto.d.ts +2 -0
- package/dist/src/domain/model/deposit/dtos/createDepositSwapQuote.dto.js +6 -0
- package/dist/src/domain/model/deposit/dtos/createDepositSwapQuote.dto.js.map +1 -1
- package/dist/src/domain/model/deposit/entities/BaseDepositSwapQuote.entity.d.ts +3 -0
- package/dist/src/domain/model/deposit/entities/BaseDepositSwapQuote.entity.js.map +1 -1
- package/dist/src/domain/model/deposit-management/entities/index.d.ts +0 -1
- package/dist/src/domain/model/deposit-management/entities/index.js +0 -1
- package/dist/src/domain/model/deposit-management/entities/index.js.map +1 -1
- package/dist/src/domain/model/feature-flags/entities/BetaFeature.entity.d.ts +2 -1
- package/dist/src/domain/model/feature-flags/entities/BetaFeature.entity.js +1 -0
- package/dist/src/domain/model/feature-flags/entities/BetaFeature.entity.js.map +1 -1
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvent.entity.d.ts +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvent.entity.js +1 -0
- package/dist/src/domain/model/webhook/withdrawal/withdrawal-hook-event/entities/WithdrawalHookEvent.entity.js.map +1 -1
- package/dist/src/domain/model/withdraw/constants/HyperCoreBridgeLegState.d.ts +9 -0
- package/dist/src/domain/model/withdraw/constants/HyperCoreBridgeLegState.js +14 -0
- package/dist/src/domain/model/withdraw/constants/HyperCoreBridgeLegState.js.map +1 -0
- package/dist/src/domain/model/withdraw/constants/WithdrawalState.d.ts +1 -0
- package/dist/src/domain/model/withdraw/constants/WithdrawalState.js +1 -0
- package/dist/src/domain/model/withdraw/constants/WithdrawalState.js.map +1 -1
- package/dist/src/domain/model/withdraw/constants/index.d.ts +1 -0
- package/dist/src/domain/model/withdraw/constants/index.js +1 -0
- package/dist/src/domain/model/withdraw/constants/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/index.js +1 -0
- package/dist/src/domain/model/withdraw/dtos/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/dtos/preparedTransaction.dto.d.ts +8 -1
- package/dist/src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.d.ts +3 -0
- package/dist/src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.js +23 -0
- package/dist/src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.spec.d.ts +1 -0
- package/dist/src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.spec.js +22 -0
- package/dist/src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.spec.js.map +1 -0
- package/dist/src/domain/model/withdraw/dtos/submitWithdrawal.dto.js.map +1 -1
- package/dist/src/domain/model/withdraw/entities/HyperCoreTransferReauthorization.entity.d.ts +9 -0
- package/dist/src/domain/model/withdraw/entities/HyperCoreTransferReauthorization.entity.js +8 -0
- package/dist/src/domain/model/withdraw/entities/HyperCoreTransferReauthorization.entity.js.map +1 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalDetail.entity.d.ts +4 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalDetail.entity.js.map +1 -1
- package/dist/src/domain/model/withdraw/entities/WithdrawalExplorerGlide.entity.d.ts +2 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalExplorerGlide.entity.js.map +1 -1
- package/dist/src/domain/model/withdraw/entities/WithdrawalHyperCoreBridgeStatus.entity.d.ts +8 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalHyperCoreBridgeStatus.entity.js +8 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalHyperCoreBridgeStatus.entity.js.map +1 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalUnderpayment.entity.d.ts +6 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalUnderpayment.entity.js +8 -0
- package/dist/src/domain/model/withdraw/entities/WithdrawalUnderpayment.entity.js.map +1 -0
- package/dist/src/domain/model/withdraw/entities/index.d.ts +3 -0
- package/dist/src/domain/model/withdraw/entities/index.js +3 -0
- package/dist/src/domain/model/withdraw/entities/index.js.map +1 -1
- package/dist/src/domain/model/withdraw/preparedTransaction.spec.js +29 -0
- package/dist/src/domain/model/withdraw/preparedTransaction.spec.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/domain/model/auth/entities/EmailAccountLookupResult.js.map +0 -1
- package/dist/src/domain/model/auth/entities/WalletAccountLookupResult.js.map +0 -1
- package/dist/src/domain/model/auth/entities/external/ExternalSignInResponse.js.map +0 -1
- package/dist/src/domain/model/auth/entities/external/ExternalSignupResponse.js +0 -8
- package/dist/src/domain/model/auth/entities/external/ExternalSignupResponse.js.map +0 -1
- package/dist/src/domain/model/auth/entities/external/ExternalUpgradePreviewResponse.js.map +0 -1
- package/dist/src/domain/model/deposit-management/entities/UnfreezeSanctionedDepositResponse.d.ts +0 -5
- package/dist/src/domain/model/deposit-management/entities/UnfreezeSanctionedDepositResponse.js +0 -7
- package/dist/src/domain/model/deposit-management/entities/UnfreezeSanctionedDepositResponse.js.map +0 -1
- /package/dist/src/domain/model/auth/entities/{EmailAccountLookupResult.d.ts → EmailAccountLookupResult.entity.d.ts} +0 -0
- /package/dist/src/domain/model/auth/entities/{WalletAccountLookupResult.d.ts → WalletAccountLookupResult.entity.d.ts} +0 -0
- /package/dist/src/domain/model/auth/entities/external/{ExternalSignInResponse.d.ts → ExternalSignInResponse.entity.d.ts} +0 -0
- /package/dist/src/domain/model/auth/entities/external/{ExternalUpgradePreviewResponse.d.ts → ExternalUpgradePreviewResponse.entity.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BlockchainSymbol, DepositBlockchainSymbol } from '../../blockchain/constants/BlockchainSymbol';
|
|
2
2
|
import { SignedTransactionKind } from '../../broadcast/constants/SignedTransactionKind';
|
|
3
3
|
import { PreparedWithdrawalTypedDataDto } from './preparedWithdrawalTypedData.dto';
|
|
4
|
-
export type PreparedTransaction = PolymarketWalletPreparedTransaction | RawPreparedTransaction | UserOpPreparedTransaction | HypercorePreparedTransaction;
|
|
4
|
+
export type PreparedTransaction = PolymarketWalletPreparedTransaction | RawPreparedTransaction | UserOpPreparedTransaction | HypercorePreparedTransaction | HypercoreEip3009PreparedTransaction;
|
|
5
5
|
export interface PolymarketWalletPreparedTransaction {
|
|
6
6
|
kind: SignedTransactionKind.POLYMARKET_WALLET;
|
|
7
7
|
typedData: PreparedWithdrawalTypedDataDto;
|
|
@@ -16,6 +16,13 @@ export interface HypercorePreparedTransaction {
|
|
|
16
16
|
chain: BlockchainSymbol | DepositBlockchainSymbol;
|
|
17
17
|
typedData: PreparedWithdrawalTypedDataDto;
|
|
18
18
|
}
|
|
19
|
+
export interface HypercoreEip3009PreparedTransaction {
|
|
20
|
+
kind: SignedTransactionKind.HYPERCORE_EIP3009;
|
|
21
|
+
chain: BlockchainSymbol | DepositBlockchainSymbol;
|
|
22
|
+
sendAssetTypedData: PreparedWithdrawalTypedDataDto;
|
|
23
|
+
transferAuthorizationChain: BlockchainSymbol | DepositBlockchainSymbol;
|
|
24
|
+
transferAuthorizationTypedData: PreparedWithdrawalTypedDataDto;
|
|
25
|
+
}
|
|
19
26
|
export interface UserOpPreparedTransaction {
|
|
20
27
|
kind: SignedTransactionKind.USER_OP;
|
|
21
28
|
chain: BlockchainSymbol;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SubmitHyperCoreTransferReauthorizationDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SubmitHyperCoreTransferReauthorizationDto {
|
|
15
|
+
}
|
|
16
|
+
exports.SubmitHyperCoreTransferReauthorizationDto = SubmitHyperCoreTransferReauthorizationDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.Matches)(/^0x[0-9a-fA-F]{130}$/, {
|
|
19
|
+
message: 'signature must be a 65-byte 0x-prefixed hex string',
|
|
20
|
+
}),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], SubmitHyperCoreTransferReauthorizationDto.prototype, "signature", void 0);
|
|
23
|
+
//# sourceMappingURL=submitHyperCoreTransferReauthorization.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitHyperCoreTransferReauthorization.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0C;AAE1C,MAAa,yCAAyC;CAMrD;AAND,8FAMC;AADC;IAHC,IAAA,yBAAO,EAAC,sBAAsB,EAAE;QAC/B,OAAO,EAAE,oDAAoD;KAC9D,CAAC;;4EACgB"}
|
package/dist/src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
package/dist/src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.spec.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
require("reflect-metadata");
|
|
4
|
+
const class_validator_1 = require("class-validator");
|
|
5
|
+
const class_transformer_1 = require("class-transformer");
|
|
6
|
+
const submitHyperCoreTransferReauthorization_dto_1 = require("./submitHyperCoreTransferReauthorization.dto");
|
|
7
|
+
const errorsFor = async (input) => (await (0, class_validator_1.validate)((0, class_transformer_1.plainToInstance)(submitHyperCoreTransferReauthorization_dto_1.SubmitHyperCoreTransferReauthorizationDto, input))).map((e) => e.property);
|
|
8
|
+
describe('SubmitHyperCoreTransferReauthorizationDto', () => {
|
|
9
|
+
it('accepts a 65-byte hex signature', async () => {
|
|
10
|
+
expect(await errorsFor({ signature: `0x${'ab'.repeat(65)}` })).toEqual([]);
|
|
11
|
+
});
|
|
12
|
+
it.each([
|
|
13
|
+
['missing', {}],
|
|
14
|
+
['not hex', { signature: `0x${'zz'.repeat(65)}` }],
|
|
15
|
+
['too short', { signature: `0x${'ab'.repeat(64)}` }],
|
|
16
|
+
['two concatenated signatures', { signature: `0x${'ab'.repeat(130)}` }],
|
|
17
|
+
['no 0x prefix', { signature: 'ab'.repeat(65) }],
|
|
18
|
+
])('rejects a %s signature', async (_label, input) => {
|
|
19
|
+
expect(await errorsFor(input)).toEqual(['signature']);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=submitHyperCoreTransferReauthorization.dto.spec.js.map
|
package/dist/src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.spec.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitHyperCoreTransferReauthorization.dto.spec.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitHyperCoreTransferReauthorization.dto.spec.ts"],"names":[],"mappings":";;AAAA,4BAA0B;AAC1B,qDAA2C;AAC3C,yDAAoD;AACpD,6GAAyG;AAEzG,MAAM,SAAS,GAAG,KAAK,EAAE,KAA8B,EAAqB,EAAE,CAC5E,CACE,MAAM,IAAA,0BAAQ,EACZ,IAAA,mCAAe,EAAC,sFAAyC,EAAE,KAAK,CAAC,CAClE,CACF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE3B,QAAQ,CAAC,2CAA2C,EAAE,GAAG,EAAE;IACzD,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,CAAC,MAAM,SAAS,CAAC,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,IAAI,CAAC;QACN,CAAC,SAAS,EAAE,EAAE,CAAC;QACf,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAClD,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QACpD,CAAC,6BAA6B,EAAE,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACvE,CAAC,cAAc,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;KACjD,CAAC,CAAC,wBAAwB,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;QACnD,MAAM,CAAC,MAAM,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submitWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"submitWithdrawal.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawal.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,MAAa,mBAAmB;CAkB/B;AAlBD,kDAkBC;AAXC;IADC,IAAA,uBAAK,GAAE;;kDACM;AAUd;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACI"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Entity } from '../../entity';
|
|
2
|
+
import { BlockchainSymbol, DepositBlockchainSymbol } from '../../blockchain/constants/BlockchainSymbol';
|
|
3
|
+
import { PreparedWithdrawalTypedDataDto } from '../dtos/preparedWithdrawalTypedData.dto';
|
|
4
|
+
export declare class HyperCoreTransferReauthorizationEntity extends Entity {
|
|
5
|
+
withdrawalDetailId: string;
|
|
6
|
+
transferAuthorizationChain: BlockchainSymbol | DepositBlockchainSymbol;
|
|
7
|
+
transferAuthorizationTypedData: PreparedWithdrawalTypedDataDto;
|
|
8
|
+
validBefore: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HyperCoreTransferReauthorizationEntity = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class HyperCoreTransferReauthorizationEntity extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.HyperCoreTransferReauthorizationEntity = HyperCoreTransferReauthorizationEntity;
|
|
8
|
+
//# sourceMappingURL=HyperCoreTransferReauthorization.entity.js.map
|
package/dist/src/domain/model/withdraw/entities/HyperCoreTransferReauthorization.entity.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HyperCoreTransferReauthorization.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/HyperCoreTransferReauthorization.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAOtC,MAAa,sCAAuC,SAAQ,eAAM;CAUjE;AAVD,wFAUC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Entity } from '../../entity';
|
|
2
2
|
import { BroadcastAck } from '../constants/BroadcastAck';
|
|
3
3
|
import { WithdrawalState } from '../constants/WithdrawalState';
|
|
4
|
+
import { WithdrawalUnderpayment } from './WithdrawalUnderpayment.entity';
|
|
5
|
+
import { WithdrawalHyperCoreBridgeStatusEntity } from './WithdrawalHyperCoreBridgeStatus.entity';
|
|
4
6
|
export declare class WithdrawalDetailEntity extends Entity {
|
|
5
7
|
withdrawalDetailId: string;
|
|
6
8
|
state: WithdrawalState;
|
|
@@ -9,4 +11,6 @@ export declare class WithdrawalDetailEntity extends Entity {
|
|
|
9
11
|
broadcastAck: BroadcastAck | null;
|
|
10
12
|
errorReason: string | null;
|
|
11
13
|
customerId: string | null;
|
|
14
|
+
underpayment: WithdrawalUnderpayment | null;
|
|
15
|
+
hyperCoreBridge: WithdrawalHyperCoreBridgeStatusEntity | null;
|
|
12
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalDetail.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalDetail.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;
|
|
1
|
+
{"version":3,"file":"WithdrawalDetail.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalDetail.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAMtC,MAAa,sBAAuB,SAAQ,eAAM;CAoBjD;AApBD,wDAoBC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Entity } from '../../entity';
|
|
2
|
+
import { WithdrawalUnderpayment } from './WithdrawalUnderpayment.entity';
|
|
2
3
|
export declare class WithdrawalExplorerGlide extends Entity {
|
|
3
4
|
depositAddress: string;
|
|
4
5
|
transferId: string | null;
|
|
5
6
|
appFeeBps: number;
|
|
6
7
|
sponsorGas: boolean;
|
|
7
8
|
sponsorBridgeCost: boolean;
|
|
9
|
+
underpayment: WithdrawalUnderpayment | null;
|
|
8
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalExplorerGlide.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalExplorerGlide.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;
|
|
1
|
+
{"version":3,"file":"WithdrawalExplorerGlide.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalExplorerGlide.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,uBAAwB,SAAQ,eAAM;CAYlD;AAZD,0DAYC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Entity } from '../../entity';
|
|
2
|
+
import { HyperCoreBridgeLegState } from '../constants/HyperCoreBridgeLegState';
|
|
3
|
+
export declare class WithdrawalHyperCoreBridgeStatusEntity extends Entity {
|
|
4
|
+
legState: HyperCoreBridgeLegState;
|
|
5
|
+
hypercoreLegHash: string | null;
|
|
6
|
+
hyperevmLegHash: string | null;
|
|
7
|
+
requiresReauthorization: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithdrawalHyperCoreBridgeStatusEntity = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class WithdrawalHyperCoreBridgeStatusEntity extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.WithdrawalHyperCoreBridgeStatusEntity = WithdrawalHyperCoreBridgeStatusEntity;
|
|
8
|
+
//# sourceMappingURL=WithdrawalHyperCoreBridgeStatus.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawalHyperCoreBridgeStatus.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalHyperCoreBridgeStatus.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,qCAAsC,SAAQ,eAAM;CAWhE;AAXD,sFAWC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithdrawalUnderpayment = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class WithdrawalUnderpayment extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.WithdrawalUnderpayment = WithdrawalUnderpayment;
|
|
8
|
+
//# sourceMappingURL=WithdrawalUnderpayment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithdrawalUnderpayment.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/WithdrawalUnderpayment.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,sBAAuB,SAAQ,eAAM;CAQjD;AARD,wDAQC"}
|
|
@@ -16,5 +16,8 @@ export * from './WithdrawalReportItem.entity';
|
|
|
16
16
|
export * from './WithdrawalDetailReceipt.entity';
|
|
17
17
|
export * from './GiftCardBrand.entity';
|
|
18
18
|
export * from './WithdrawalExplorerGlide.entity';
|
|
19
|
+
export * from './WithdrawalUnderpayment.entity';
|
|
19
20
|
export * from './WithdrawalExplorerTransaction.entity';
|
|
20
21
|
export * from './WithdrawalExplorerSearchResult.entity';
|
|
22
|
+
export * from './WithdrawalHyperCoreBridgeStatus.entity';
|
|
23
|
+
export * from './HyperCoreTransferReauthorization.entity';
|
|
@@ -32,6 +32,9 @@ __exportStar(require("./WithdrawalReportItem.entity"), exports);
|
|
|
32
32
|
__exportStar(require("./WithdrawalDetailReceipt.entity"), exports);
|
|
33
33
|
__exportStar(require("./GiftCardBrand.entity"), exports);
|
|
34
34
|
__exportStar(require("./WithdrawalExplorerGlide.entity"), exports);
|
|
35
|
+
__exportStar(require("./WithdrawalUnderpayment.entity"), exports);
|
|
35
36
|
__exportStar(require("./WithdrawalExplorerTransaction.entity"), exports);
|
|
36
37
|
__exportStar(require("./WithdrawalExplorerSearchResult.entity"), exports);
|
|
38
|
+
__exportStar(require("./WithdrawalHyperCoreBridgeStatus.entity"), exports);
|
|
39
|
+
__exportStar(require("./HyperCoreTransferReauthorization.entity"), exports);
|
|
37
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,qEAAmD;AACnD,kEAAgD;AAChD,mEAAiD;AACjD,4EAA0D;AAC1D,uEAAqD;AACrD,gFAA8D;AAC9D,0EAAwD;AACxD,8DAA4C;AAC5C,oEAAkD;AAClD,gEAA8C;AAC9C,mEAAiD;AACjD,yDAAuC;AACvC,mEAAiD;AACjD,yEAAuD;AACvD,0EAAwD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,qEAAmD;AACnD,kEAAgD;AAChD,mEAAiD;AACjD,4EAA0D;AAC1D,uEAAqD;AACrD,gFAA8D;AAC9D,0EAAwD;AACxD,8DAA4C;AAC5C,oEAAkD;AAClD,gEAA8C;AAC9C,mEAAiD;AACjD,yDAAuC;AACvC,mEAAiD;AACjD,kEAAgD;AAChD,yEAAuD;AACvD,0EAAwD;AACxD,2EAAyD;AACzD,4EAA0D"}
|
|
@@ -87,6 +87,33 @@ describe('PreparedTransaction discriminated union', () => {
|
|
|
87
87
|
throw new Error('expected HYPERCORE narrowing');
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
+
it('narrows hypercore_eip3009 → sendAsset + transfer authorization typed data', () => {
|
|
91
|
+
const typedData = (primaryType, chainId) => ({
|
|
92
|
+
domain: {
|
|
93
|
+
name: 'domain',
|
|
94
|
+
version: '1',
|
|
95
|
+
chainId,
|
|
96
|
+
verifyingContract: '0x0000000000000000000000000000000000000000',
|
|
97
|
+
},
|
|
98
|
+
types: { [primaryType]: [{ name: 'from', type: 'address' }] },
|
|
99
|
+
primaryType,
|
|
100
|
+
message: { from: '0xabc' },
|
|
101
|
+
});
|
|
102
|
+
const prepared = {
|
|
103
|
+
kind: SignedTransactionKind_1.SignedTransactionKind.HYPERCORE_EIP3009,
|
|
104
|
+
chain: BlockchainSymbol_1.DepositBlockchainSymbol.HYPERCORE,
|
|
105
|
+
sendAssetTypedData: typedData('HyperliquidTransaction:SendAsset', 42161),
|
|
106
|
+
transferAuthorizationChain: BlockchainSymbol_1.DepositBlockchainSymbol.HYPERLIQUID,
|
|
107
|
+
transferAuthorizationTypedData: typedData('TransferWithAuthorization', 999),
|
|
108
|
+
};
|
|
109
|
+
if (prepared.kind === SignedTransactionKind_1.SignedTransactionKind.HYPERCORE_EIP3009) {
|
|
110
|
+
expect(prepared.sendAssetTypedData.primaryType).toBe('HyperliquidTransaction:SendAsset');
|
|
111
|
+
expect(prepared.transferAuthorizationTypedData.domain.chainId).toBe(999);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
throw new Error('expected HYPERCORE_EIP3009 narrowing');
|
|
115
|
+
}
|
|
116
|
+
});
|
|
90
117
|
it('exhaustive switch over PreparedTransaction compiles', () => {
|
|
91
118
|
const describeKind = (prepared) => {
|
|
92
119
|
switch (prepared.kind) {
|
|
@@ -98,6 +125,8 @@ describe('PreparedTransaction discriminated union', () => {
|
|
|
98
125
|
return prepared.entryPoint;
|
|
99
126
|
case SignedTransactionKind_1.SignedTransactionKind.HYPERCORE:
|
|
100
127
|
return prepared.typedData.primaryType;
|
|
128
|
+
case SignedTransactionKind_1.SignedTransactionKind.HYPERCORE_EIP3009:
|
|
129
|
+
return prepared.transferAuthorizationTypedData.primaryType;
|
|
101
130
|
default: {
|
|
102
131
|
const exhaustive = prepared;
|
|
103
132
|
return exhaustive;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preparedTransaction.spec.js","sourceRoot":"","sources":["../../../../../src/domain/model/withdraw/preparedTransaction.spec.ts"],"names":[],"mappings":";;AAAA,+EAGkD;AAClD,wFAAqF;AAGrF,QAAQ,CAAC,yCAAyC,EAAE,GAAG,EAAE;IACvD,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,QAAQ,GAAwB;YACpC,IAAI,EAAE,6CAAqB,CAAC,iBAAiB;YAC7C,SAAS,EAAE;gBACT,MAAM,EAAE;oBACN,IAAI,EAAE,eAAe;oBACrB,OAAO,EAAE,GAAG;oBACZ,OAAO,EAAE,GAAG;oBACZ,iBAAiB,EAAE,MAAM;iBAC1B;gBACD,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,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SAAS,CAAC,WAAW,CAAC,CAAC,IAAI,CACzC,gCAAgC,CACjC,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC7D,MAAM,YAAY,GAAG,CAAC,QAA6B,EAAU,EAAE;YAC7D,QAAQ,QAAQ,CAAC,IAAI,EAAE,CAAC;gBACtB,KAAK,6CAAqB,CAAC,iBAAiB;oBAC1C,OAAO,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC;gBACxC,KAAK,6CAAqB,CAAC,GAAG;oBAC5B,OAAO,QAAQ,CAAC,UAAU,CAAC;gBAC7B,KAAK,6CAAqB,CAAC,OAAO;oBAChC,OAAO,QAAQ,CAAC,UAAU,CAAC;gBAC7B,KAAK,6CAAqB,CAAC,SAAS;oBAClC,OAAO,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC;gBACxC,OAAO,CAAC,CAAC,CAAC;oBACR,MAAM,UAAU,GAAU,QAAQ,CAAC;oBACnC,OAAO,UAAU,CAAC;gBACpB,CAAC;YACH,CAAC;QACH,CAAC,CAAC;QACF,MAAM,GAAG,GAAwB;YAC/B,IAAI,EAAE,6CAAqB,CAAC,GAAG;YAC/B,KAAK,EAAE,mCAAgB,CAAC,GAAG;YAC3B,UAAU,EAAE,OAAO;SACpB,CAAC;QACF,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"preparedTransaction.spec.js","sourceRoot":"","sources":["../../../../../src/domain/model/withdraw/preparedTransaction.spec.ts"],"names":[],"mappings":";;AAAA,+EAGkD;AAClD,wFAAqF;AAGrF,QAAQ,CAAC,yCAAyC,EAAE,GAAG,EAAE;IACvD,E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