@bitgo/public-types 6.0.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/schema/index.d.ts +1 -0
- package/dist/src/schema/index.js +1 -0
- package/dist/src/schema/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.d.ts +75 -0
- package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +144 -0
- package/dist/src/schema/webauthn/index.d.ts +2 -0
- package/dist/src/schema/webauthn/index.js +19 -0
- package/dist/src/schema/webauthn/index.js.map +1 -0
- package/dist/src/schema/webauthn/webAuthnOtpDevice.d.ts +7 -0
- package/dist/src/schema/webauthn/webAuthnOtpDevice.js +3 -0
- package/dist/src/schema/webauthn/webAuthnOtpDevice.js.map +1 -0
- package/dist/src/schema/webauthn/webauthnDevice.d.ts +18 -0
- package/dist/src/schema/webauthn/webauthnDevice.js +39 -0
- package/dist/src/schema/webauthn/webauthnDevice.js.map +1 -0
- package/package.json +1 -1
- package/src/schema/index.ts +1 -0
- package/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.ts +20 -0
- package/src/schema/transactionRequest/intents/index.ts +1 -0
- package/src/schema/transactionRequest/intents/intent.ts +2 -0
- package/src/schema/webauthn/index.ts +2 -0
- package/src/schema/webauthn/webAuthnOtpDevice.ts +8 -0
- package/src/schema/webauthn/webauthnDevice.ts +21 -0
package/dist/src/schema/index.js
CHANGED
|
@@ -23,4 +23,5 @@ __exportStar(require("./wallet"), exports);
|
|
|
23
23
|
__exportStar(require("./tss"), exports);
|
|
24
24
|
__exportStar(require("./lightning"), exports);
|
|
25
25
|
__exportStar(require("./enterprise"), exports);
|
|
26
|
+
__exportStar(require("./webauthn"), exports);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B;AAC5B,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const HbarUpdateAccountIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3
|
+
intentType: t.KeyofC<{
|
|
4
|
+
payment: t.LiteralC<"payment">;
|
|
5
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
6
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
7
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
8
|
+
fanout: t.LiteralC<"fanout">;
|
|
9
|
+
stake: t.LiteralC<"stake">;
|
|
10
|
+
unstake: t.LiteralC<"unstake">;
|
|
11
|
+
delegate: t.LiteralC<"delegate">;
|
|
12
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
13
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
14
|
+
claim: t.LiteralC<"claim">;
|
|
15
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
16
|
+
pledge: t.LiteralC<"pledge">;
|
|
17
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
18
|
+
vote: t.LiteralC<"vote">;
|
|
19
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
20
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
21
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
22
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
23
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
24
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
25
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
26
|
+
authorize: t.LiteralC<"authorize">;
|
|
27
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
28
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
29
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
30
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
31
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
32
|
+
customTx: t.LiteralC<"customTx">;
|
|
33
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
34
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
35
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
36
|
+
switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
|
|
37
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
38
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
39
|
+
transferStake: t.LiteralC<"transferStake">;
|
|
40
|
+
validatorRegistration: t.LiteralC<"validatorRegistration">;
|
|
41
|
+
increaseStake: t.LiteralC<"increaseStake">;
|
|
42
|
+
decreaseStake: t.LiteralC<"decreaseStake">;
|
|
43
|
+
signalExit: t.LiteralC<"signalExit">;
|
|
44
|
+
withdrawStake: t.LiteralC<"withdrawStake">;
|
|
45
|
+
spotTransfer: t.LiteralC<"spotTransfer">;
|
|
46
|
+
bridgeFunds: t.LiteralC<"bridgeFunds">;
|
|
47
|
+
enableBridging: t.LiteralC<"enableBridging">;
|
|
48
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
49
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
50
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
51
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
52
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
53
|
+
transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
|
|
54
|
+
"defi-deposit": t.LiteralC<"defi-deposit">;
|
|
55
|
+
"defi-redeem": t.LiteralC<"defi-redeem">;
|
|
56
|
+
}>;
|
|
57
|
+
}>, t.PartialC<{
|
|
58
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
59
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
60
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
61
|
+
}>]>, t.PartialC<{
|
|
62
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
63
|
+
}>, t.TypeC<{
|
|
64
|
+
intentType: t.LiteralC<"updateAccount">;
|
|
65
|
+
}>, t.PartialC<{
|
|
66
|
+
options: t.UnionC<[t.Type<{
|
|
67
|
+
[x: string]: unknown;
|
|
68
|
+
}, {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
}, unknown>, t.UndefinedC]>;
|
|
71
|
+
}>]>, t.PartialC<{
|
|
72
|
+
stakedNodeId: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
|
73
|
+
declineStakingReward: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
74
|
+
}>]>;
|
|
75
|
+
export type HbarUpdateAccountIntent = t.TypeOf<typeof HbarUpdateAccountIntent>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.HbarUpdateAccountIntent = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const accountBaseUpdateAccountIntent_1 = require("./accountBaseUpdateAccountIntent");
|
|
29
|
+
const utils_1 = require("../../../utils");
|
|
30
|
+
exports.HbarUpdateAccountIntent = t.intersection([
|
|
31
|
+
accountBaseUpdateAccountIntent_1.AccountBaseUpdateAccountIntent,
|
|
32
|
+
t.partial({
|
|
33
|
+
stakedNodeId: utils_1.optionalNumber,
|
|
34
|
+
declineStakingReward: utils_1.optionalBoolean,
|
|
35
|
+
}),
|
|
36
|
+
]);
|
|
37
|
+
//# sourceMappingURL=hbarUpdateAccountIntent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hbarUpdateAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/hbarUpdateAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qFAAkF;AAClF,0CAAiE;AASpD,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,+DAA8B;IAC9B,CAAC,CAAC,OAAO,CAAC;QACR,YAAY,EAAE,sBAAc;QAC5B,oBAAoB,EAAE,uBAAe;KACtC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -80,6 +80,7 @@ export * from "./fillNonceIntent";
|
|
|
80
80
|
export * from "./flrpContext";
|
|
81
81
|
export * from "./flrpFeeState";
|
|
82
82
|
export * from "./goUnstakeIntent";
|
|
83
|
+
export * from "./hbarUpdateAccountIntent";
|
|
83
84
|
export * from "./hopParams";
|
|
84
85
|
export * from "./hypeevmBridgeFundsIntent";
|
|
85
86
|
export * from "./hypeevmSpotTransferIntent";
|
|
@@ -96,6 +96,7 @@ __exportStar(require("./fillNonceIntent"), exports);
|
|
|
96
96
|
__exportStar(require("./flrpContext"), exports);
|
|
97
97
|
__exportStar(require("./flrpFeeState"), exports);
|
|
98
98
|
__exportStar(require("./goUnstakeIntent"), exports);
|
|
99
|
+
__exportStar(require("./hbarUpdateAccountIntent"), exports);
|
|
99
100
|
__exportStar(require("./hopParams"), exports);
|
|
100
101
|
__exportStar(require("./hypeevmBridgeFundsIntent"), exports);
|
|
101
102
|
__exportStar(require("./hypeevmSpotTransferIntent"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,qDAAmC;AACnC,2DAAyC;AACzC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kEAAgD;AAChD,6DAA2C;AAC3C,0DAAwC;AACxC,sDAAoC;AACpC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,wDAAsC;AACtC,+DAA6C;AAC7C,oEAAkD;AAClD,uEAAqD;AACrD,+DAA6C;AAC7C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,6DAA2C;AAC3C,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACn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AACnD,uEAAqD;AACrD,mDAAiC;AACjC,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,wDAAsC;AACtC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,oEAAkD;AAClD,kDAAgC;AAChC,uEAAqD;AACrD,gEAA8C;AAC9C,sDAAoC;AACpC,+DAA6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,mEAAiD;AACjD,2DAAyC;AACzC,2DAAyC;AACzC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,qDAAmC;AACnC,2DAAyC;AACzC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kEAAgD;AAChD,6DAA2C;AAC3C,0DAAwC;AACxC,sDAAoC;AACpC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,wDAAsC;AACtC,+DAA6C;AAC7C,oEAAkD;AAClD,uEAAqD;AACrD,+DAA6C;AAC7C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC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AC9B,+DAA6C;AAC7C,yDAAuC;AACvC,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,mDAAiC;AACjC,yDAAuC;AACvC,6DAA2C;AAC3C,2DAAyC;AACzC,qDAAmC;AACnC,wDAAsC;AACtC,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,oEAAkD;AAClD,sEAAoD;AACpD,qDAAmC;AACnC,qEAAmD;AACnD,uEAAqD;AACrD,mDAAiC;AACjC,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,wDAAsC;AACtC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,oEAAkD;AAClD,kDAAgC;AAChC,uEAAqD;AACrD,gEAA8C;AAC9C,sDAAoC;AACpC,+DAA6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,mEAAiD;AACjD,2DAAyC;AACzC,2DAAyC;AACzC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC"}
|
|
@@ -3560,6 +3560,78 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
3560
3560
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
3561
3561
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
3562
3562
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
3563
|
+
}>]>, t.PartialC<{
|
|
3564
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
3565
|
+
}>, t.TypeC<{
|
|
3566
|
+
intentType: t.LiteralC<"updateAccount">;
|
|
3567
|
+
}>, t.PartialC<{
|
|
3568
|
+
options: t.UnionC<[t.Type<{
|
|
3569
|
+
[x: string]: unknown;
|
|
3570
|
+
}, {
|
|
3571
|
+
[x: string]: unknown;
|
|
3572
|
+
}, unknown>, t.UndefinedC]>;
|
|
3573
|
+
}>]>, t.PartialC<{
|
|
3574
|
+
stakedNodeId: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
|
3575
|
+
declineStakingReward: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
3576
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3577
|
+
intentType: t.KeyofC<{
|
|
3578
|
+
payment: t.LiteralC<"payment">;
|
|
3579
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
3580
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
3581
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
3582
|
+
fanout: t.LiteralC<"fanout">;
|
|
3583
|
+
stake: t.LiteralC<"stake">;
|
|
3584
|
+
unstake: t.LiteralC<"unstake">;
|
|
3585
|
+
delegate: t.LiteralC<"delegate">;
|
|
3586
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
3587
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
3588
|
+
claim: t.LiteralC<"claim">;
|
|
3589
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
3590
|
+
pledge: t.LiteralC<"pledge">;
|
|
3591
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
3592
|
+
vote: t.LiteralC<"vote">;
|
|
3593
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
3594
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
3595
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
3596
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
3597
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
3598
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
3599
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
3600
|
+
authorize: t.LiteralC<"authorize">;
|
|
3601
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
3602
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
3603
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
3604
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
3605
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
3606
|
+
customTx: t.LiteralC<"customTx">;
|
|
3607
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
3608
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
3609
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
3610
|
+
switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
|
|
3611
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
3612
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
3613
|
+
transferStake: t.LiteralC<"transferStake">;
|
|
3614
|
+
validatorRegistration: t.LiteralC<"validatorRegistration">;
|
|
3615
|
+
increaseStake: t.LiteralC<"increaseStake">;
|
|
3616
|
+
decreaseStake: t.LiteralC<"decreaseStake">;
|
|
3617
|
+
signalExit: t.LiteralC<"signalExit">;
|
|
3618
|
+
withdrawStake: t.LiteralC<"withdrawStake">;
|
|
3619
|
+
spotTransfer: t.LiteralC<"spotTransfer">;
|
|
3620
|
+
bridgeFunds: t.LiteralC<"bridgeFunds">;
|
|
3621
|
+
enableBridging: t.LiteralC<"enableBridging">;
|
|
3622
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
3623
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
3624
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
3625
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
3626
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
3627
|
+
transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
|
|
3628
|
+
"defi-deposit": t.LiteralC<"defi-deposit">;
|
|
3629
|
+
"defi-redeem": t.LiteralC<"defi-redeem">;
|
|
3630
|
+
}>;
|
|
3631
|
+
}>, t.PartialC<{
|
|
3632
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
3633
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
3634
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
3563
3635
|
}>]>, t.TypeC<{
|
|
3564
3636
|
amount: t.TypeC<{
|
|
3565
3637
|
value: t.StringC;
|
|
@@ -57,6 +57,7 @@ const ethFillNonceIntent_1 = require("./ethFillNonceIntent");
|
|
|
57
57
|
const ethPaymentIntent_1 = require("./ethPaymentIntent");
|
|
58
58
|
const ethStakingIntent_1 = require("./ethStakingIntent");
|
|
59
59
|
const feeAddressTransferIntent_1 = require("./feeAddressTransferIntent");
|
|
60
|
+
const hbarUpdateAccountIntent_1 = require("./hbarUpdateAccountIntent");
|
|
60
61
|
const hypeevmSpotTransferIntent_1 = require("./hypeevmSpotTransferIntent");
|
|
61
62
|
const icpPaymentIntent_1 = require("./icpPaymentIntent");
|
|
62
63
|
const irysPledgeIntent_1 = require("./irysPledgeIntent");
|
|
@@ -192,6 +193,7 @@ exports.TransactionIntent = t.union([
|
|
|
192
193
|
ethStakingIntent_1.EthStakingIntent,
|
|
193
194
|
ethTransferTokenIntent_1.EthTransferTokenIntent,
|
|
194
195
|
feeAddressTransferIntent_1.FeeAddressTransferIntent,
|
|
196
|
+
hbarUpdateAccountIntent_1.HbarUpdateAccountIntent,
|
|
195
197
|
hypeevmBridgeFundsIntent_1.HypeevmBridgeFundsIntent,
|
|
196
198
|
hypeevmSpotTransferIntent_1.HypeevmSpotTransferIntent,
|
|
197
199
|
hypeevmEnableBridgingIntent_1.HypeevmEnableBridgingIntent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,6DAG8B;AAC9B,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,yEAAsE;AACtE,2EAAwE;AACxE,yDAAsD;AACtD,yDAAsD;AACtD,uDAAoD;AACpD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,6EAA0E;AAC1E,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,6EAA0E;AAC1E,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,qDAAkD;A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qCAAgB;IAChB,uDAA0B;IAC1B,+DAA8B;IAC9B,+CAAsB;IACtB,+CAAsB;IACtB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IACpB,qCAAkB;IAClB,mCAAgB;IAChB,oCAAe;IACf,sCAAiB;IAKjB,uBAAU;CACX,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,6DAG8B;AAC9B,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,yEAAsE;AACtE,uEAAoE;AACpE,2EAAwE;AACxE,yDAAsD;AACtD,yDAAsD;AACtD,uDAAoD;AACpD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,6EAA0E;AAC1E,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,2DAAwD;AACxD,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ChB,mEAAgC;IAChC,uEAAkC;IAClC,yCAAmB;IACnB,iDAAuB;IACvB,qDAAyB;IACzB,6CAAqB;IACrB,iCAAe;IACf,qCAAiB;IACjB,6BAAa;IACb,iEAA+B;IAC/B,mCAAgB;IAChB,qCAAiB;IACjB,4CAAuB;IACvB,qCAAgB;IAChB,uDAA0B;IAC1B,+DAA8B;IAC9B,+CAAsB;IACtB,+CAAsB;IACtB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IACpB,qCAAkB;IAClB,mCAAgB;IAChB,oCAAe;IACf,sCAAiB;IAKjB,uBAAU;CACX,CAAC,CAAC"}
|
|
@@ -3658,6 +3658,78 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
3658
3658
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
3659
3659
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
3660
3660
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
3661
|
+
}>]>, t.PartialC<{
|
|
3662
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
3663
|
+
}>, t.TypeC<{
|
|
3664
|
+
intentType: t.LiteralC<"updateAccount">;
|
|
3665
|
+
}>, t.PartialC<{
|
|
3666
|
+
options: t.UnionC<[t.Type<{
|
|
3667
|
+
[x: string]: unknown;
|
|
3668
|
+
}, {
|
|
3669
|
+
[x: string]: unknown;
|
|
3670
|
+
}, unknown>, t.UndefinedC]>;
|
|
3671
|
+
}>]>, t.PartialC<{
|
|
3672
|
+
stakedNodeId: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
|
3673
|
+
declineStakingReward: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
3674
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3675
|
+
intentType: t.KeyofC<{
|
|
3676
|
+
payment: t.LiteralC<"payment">;
|
|
3677
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
3678
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
3679
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
3680
|
+
fanout: t.LiteralC<"fanout">;
|
|
3681
|
+
stake: t.LiteralC<"stake">;
|
|
3682
|
+
unstake: t.LiteralC<"unstake">;
|
|
3683
|
+
delegate: t.LiteralC<"delegate">;
|
|
3684
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
3685
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
3686
|
+
claim: t.LiteralC<"claim">;
|
|
3687
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
3688
|
+
pledge: t.LiteralC<"pledge">;
|
|
3689
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
3690
|
+
vote: t.LiteralC<"vote">;
|
|
3691
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
3692
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
3693
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
3694
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
3695
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
3696
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
3697
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
3698
|
+
authorize: t.LiteralC<"authorize">;
|
|
3699
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
3700
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
3701
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
3702
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
3703
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
3704
|
+
customTx: t.LiteralC<"customTx">;
|
|
3705
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
3706
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
3707
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
3708
|
+
switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
|
|
3709
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
3710
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
3711
|
+
transferStake: t.LiteralC<"transferStake">;
|
|
3712
|
+
validatorRegistration: t.LiteralC<"validatorRegistration">;
|
|
3713
|
+
increaseStake: t.LiteralC<"increaseStake">;
|
|
3714
|
+
decreaseStake: t.LiteralC<"decreaseStake">;
|
|
3715
|
+
signalExit: t.LiteralC<"signalExit">;
|
|
3716
|
+
withdrawStake: t.LiteralC<"withdrawStake">;
|
|
3717
|
+
spotTransfer: t.LiteralC<"spotTransfer">;
|
|
3718
|
+
bridgeFunds: t.LiteralC<"bridgeFunds">;
|
|
3719
|
+
enableBridging: t.LiteralC<"enableBridging">;
|
|
3720
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
3721
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
3722
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
3723
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
3724
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
3725
|
+
transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
|
|
3726
|
+
"defi-deposit": t.LiteralC<"defi-deposit">;
|
|
3727
|
+
"defi-redeem": t.LiteralC<"defi-redeem">;
|
|
3728
|
+
}>;
|
|
3729
|
+
}>, t.PartialC<{
|
|
3730
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
3731
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
3732
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
3661
3733
|
}>]>, t.TypeC<{
|
|
3662
3734
|
amount: t.TypeC<{
|
|
3663
3735
|
value: t.StringC;
|
|
@@ -14427,6 +14499,78 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
14427
14499
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
14428
14500
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
14429
14501
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
14502
|
+
}>]>, t.PartialC<{
|
|
14503
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
14504
|
+
}>, t.TypeC<{
|
|
14505
|
+
intentType: t.LiteralC<"updateAccount">;
|
|
14506
|
+
}>, t.PartialC<{
|
|
14507
|
+
options: t.UnionC<[t.Type<{
|
|
14508
|
+
[x: string]: unknown;
|
|
14509
|
+
}, {
|
|
14510
|
+
[x: string]: unknown;
|
|
14511
|
+
}, unknown>, t.UndefinedC]>;
|
|
14512
|
+
}>]>, t.PartialC<{
|
|
14513
|
+
stakedNodeId: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;
|
|
14514
|
+
declineStakingReward: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
14515
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
14516
|
+
intentType: t.KeyofC<{
|
|
14517
|
+
payment: t.LiteralC<"payment">;
|
|
14518
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
14519
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
14520
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
14521
|
+
fanout: t.LiteralC<"fanout">;
|
|
14522
|
+
stake: t.LiteralC<"stake">;
|
|
14523
|
+
unstake: t.LiteralC<"unstake">;
|
|
14524
|
+
delegate: t.LiteralC<"delegate">;
|
|
14525
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
14526
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
14527
|
+
claim: t.LiteralC<"claim">;
|
|
14528
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
14529
|
+
pledge: t.LiteralC<"pledge">;
|
|
14530
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
14531
|
+
vote: t.LiteralC<"vote">;
|
|
14532
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
14533
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
14534
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
14535
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
14536
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
14537
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
14538
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
14539
|
+
authorize: t.LiteralC<"authorize">;
|
|
14540
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
14541
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
14542
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
14543
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
14544
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
14545
|
+
customTx: t.LiteralC<"customTx">;
|
|
14546
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
14547
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
14548
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
14549
|
+
switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
|
|
14550
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
14551
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
14552
|
+
transferStake: t.LiteralC<"transferStake">;
|
|
14553
|
+
validatorRegistration: t.LiteralC<"validatorRegistration">;
|
|
14554
|
+
increaseStake: t.LiteralC<"increaseStake">;
|
|
14555
|
+
decreaseStake: t.LiteralC<"decreaseStake">;
|
|
14556
|
+
signalExit: t.LiteralC<"signalExit">;
|
|
14557
|
+
withdrawStake: t.LiteralC<"withdrawStake">;
|
|
14558
|
+
spotTransfer: t.LiteralC<"spotTransfer">;
|
|
14559
|
+
bridgeFunds: t.LiteralC<"bridgeFunds">;
|
|
14560
|
+
enableBridging: t.LiteralC<"enableBridging">;
|
|
14561
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
14562
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
14563
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
14564
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
14565
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
14566
|
+
transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
|
|
14567
|
+
"defi-deposit": t.LiteralC<"defi-deposit">;
|
|
14568
|
+
"defi-redeem": t.LiteralC<"defi-redeem">;
|
|
14569
|
+
}>;
|
|
14570
|
+
}>, t.PartialC<{
|
|
14571
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
14572
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
14573
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
14430
14574
|
}>]>, t.TypeC<{
|
|
14431
14575
|
amount: t.TypeC<{
|
|
14432
14576
|
value: t.StringC;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./webauthnDevice"), exports);
|
|
18
|
+
__exportStar(require("./webAuthnOtpDevice"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webauthn/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,sDAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webAuthnOtpDevice.js","sourceRoot":"","sources":["../../../../src/schema/webauthn/webAuthnOtpDevice.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const AuthenticatorInfo: t.TypeC<{
|
|
3
|
+
credID: t.StringC;
|
|
4
|
+
fmt: t.StringC;
|
|
5
|
+
publicKey: t.StringC;
|
|
6
|
+
}>;
|
|
7
|
+
export type AuthenticatorInfo = t.TypeOf<typeof AuthenticatorInfo>;
|
|
8
|
+
export declare const WebauthnDevice: t.TypeC<{
|
|
9
|
+
otpDeviceId: t.StringC;
|
|
10
|
+
authenticatorInfo: t.TypeC<{
|
|
11
|
+
credID: t.StringC;
|
|
12
|
+
fmt: t.StringC;
|
|
13
|
+
publicKey: t.StringC;
|
|
14
|
+
}>;
|
|
15
|
+
prfSalt: t.StringC;
|
|
16
|
+
encryptedPrv: t.StringC;
|
|
17
|
+
}>;
|
|
18
|
+
export type WebauthnDevice = t.TypeOf<typeof WebauthnDevice>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.WebauthnDevice = exports.AuthenticatorInfo = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
exports.AuthenticatorInfo = t.type({
|
|
29
|
+
credID: t.string,
|
|
30
|
+
fmt: t.string,
|
|
31
|
+
publicKey: t.string,
|
|
32
|
+
});
|
|
33
|
+
exports.WebauthnDevice = t.type({
|
|
34
|
+
otpDeviceId: t.string,
|
|
35
|
+
authenticatorInfo: exports.AuthenticatorInfo,
|
|
36
|
+
prfSalt: t.string,
|
|
37
|
+
encryptedPrv: t.string,
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=webauthnDevice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webauthnDevice.js","sourceRoot":"","sources":["../../../../src/schema/webauthn/webauthnDevice.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAEd,QAAA,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IAEtC,MAAM,EAAE,CAAC,CAAC,MAAM;IAEhB,GAAG,EAAE,CAAC,CAAC,MAAM;IAEb,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAC;AAIU,QAAA,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACnC,WAAW,EAAE,CAAC,CAAC,MAAM;IACrB,iBAAiB,EAAE,yBAAiB;IACpC,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM;CACvB,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/schema/index.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { AccountBaseUpdateAccountIntent } from "./accountBaseUpdateAccountIntent";
|
|
3
|
+
import { optionalNumber, optionalBoolean } from "../../../utils";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title HBAR Update Account Intent
|
|
7
|
+
*
|
|
8
|
+
* Extends the base updateAccount intent with Hedera-specific staking fields.
|
|
9
|
+
* Used for stake (stakedNodeId >= 0), unstake (stakedNodeId = -1), and
|
|
10
|
+
* switch validator (stakedNodeId = new node) operations.
|
|
11
|
+
*/
|
|
12
|
+
export const HbarUpdateAccountIntent = t.intersection([
|
|
13
|
+
AccountBaseUpdateAccountIntent,
|
|
14
|
+
t.partial({
|
|
15
|
+
stakedNodeId: optionalNumber,
|
|
16
|
+
declineStakingReward: optionalBoolean,
|
|
17
|
+
}),
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
export type HbarUpdateAccountIntent = t.TypeOf<typeof HbarUpdateAccountIntent>;
|
|
@@ -80,6 +80,7 @@ export * from "./fillNonceIntent";
|
|
|
80
80
|
export * from "./flrpContext";
|
|
81
81
|
export * from "./flrpFeeState";
|
|
82
82
|
export * from "./goUnstakeIntent";
|
|
83
|
+
export * from "./hbarUpdateAccountIntent";
|
|
83
84
|
export * from "./hopParams";
|
|
84
85
|
export * from "./hypeevmBridgeFundsIntent";
|
|
85
86
|
export * from "./hypeevmSpotTransferIntent";
|
|
@@ -34,6 +34,7 @@ import { EthFillNonceIntent } from "./ethFillNonceIntent";
|
|
|
34
34
|
import { EthPaymentIntent } from "./ethPaymentIntent";
|
|
35
35
|
import { EthStakingIntent } from "./ethStakingIntent";
|
|
36
36
|
import { FeeAddressTransferIntent } from "./feeAddressTransferIntent";
|
|
37
|
+
import { HbarUpdateAccountIntent } from "./hbarUpdateAccountIntent";
|
|
37
38
|
import { HypeevmSpotTransferIntent } from "./hypeevmSpotTransferIntent";
|
|
38
39
|
import { IcpPaymentIntent } from "./icpPaymentIntent";
|
|
39
40
|
import { IrysPledgeIntent } from "./irysPledgeIntent";
|
|
@@ -170,6 +171,7 @@ export const TransactionIntent = t.union([
|
|
|
170
171
|
EthStakingIntent,
|
|
171
172
|
EthTransferTokenIntent,
|
|
172
173
|
FeeAddressTransferIntent,
|
|
174
|
+
HbarUpdateAccountIntent,
|
|
173
175
|
HypeevmBridgeFundsIntent,
|
|
174
176
|
HypeevmSpotTransferIntent,
|
|
175
177
|
HypeevmEnableBridgingIntent,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
|
|
3
|
+
export const AuthenticatorInfo = t.type({
|
|
4
|
+
/** Base64url-encoded WebAuthn credential ID */
|
|
5
|
+
credID: t.string,
|
|
6
|
+
/** Attestation format (e.g. "packed", "none") */
|
|
7
|
+
fmt: t.string,
|
|
8
|
+
/** Base64url-encoded COSE public key */
|
|
9
|
+
publicKey: t.string,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export type AuthenticatorInfo = t.TypeOf<typeof AuthenticatorInfo>;
|
|
13
|
+
|
|
14
|
+
export const WebauthnDevice = t.type({
|
|
15
|
+
otpDeviceId: t.string,
|
|
16
|
+
authenticatorInfo: AuthenticatorInfo,
|
|
17
|
+
prfSalt: t.string,
|
|
18
|
+
encryptedPrv: t.string,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export type WebauthnDevice = t.TypeOf<typeof WebauthnDevice>;
|