@hyperlane-xyz/sdk
Version:
The official SDK for the Hyperlane Network
38 lines • 2.16 kB
JavaScript
/** Command types matching QuotedCalls.sol constants */
export var QuotedCallsCommand;
(function (QuotedCallsCommand) {
QuotedCallsCommand[QuotedCallsCommand["SUBMIT_QUOTE"] = 0] = "SUBMIT_QUOTE";
QuotedCallsCommand[QuotedCallsCommand["PERMIT2_PERMIT"] = 1] = "PERMIT2_PERMIT";
QuotedCallsCommand[QuotedCallsCommand["PERMIT2_TRANSFER_FROM"] = 2] = "PERMIT2_TRANSFER_FROM";
QuotedCallsCommand[QuotedCallsCommand["TRANSFER_FROM"] = 3] = "TRANSFER_FROM";
QuotedCallsCommand[QuotedCallsCommand["TRANSFER_REMOTE"] = 4] = "TRANSFER_REMOTE";
QuotedCallsCommand[QuotedCallsCommand["TRANSFER_REMOTE_TO"] = 5] = "TRANSFER_REMOTE_TO";
QuotedCallsCommand[QuotedCallsCommand["CALL_REMOTE_WITH_OVERRIDES"] = 6] = "CALL_REMOTE_WITH_OVERRIDES";
QuotedCallsCommand[QuotedCallsCommand["CALL_REMOTE_COMMIT_REVEAL"] = 7] = "CALL_REMOTE_COMMIT_REVEAL";
QuotedCallsCommand[QuotedCallsCommand["SWEEP"] = 8] = "SWEEP";
})(QuotedCallsCommand || (QuotedCallsCommand = {}));
/** How tokens are pulled into QuotedCalls contract */
export var TokenPullMode;
(function (TokenPullMode) {
/** Standard ERC20 transferFrom — requires prior approval to QuotedCalls */
TokenPullMode["TransferFrom"] = "transferFrom";
/** Permit2 allowance transfer — uses signed permit, no prior approval needed */
TokenPullMode["Permit2"] = "permit2";
})(TokenPullMode || (TokenPullMode = {}));
/**
* Fee-paying commands in QuotedCalls that require offchain quotes.
* String values correspond to the fee-quoting service API routes.
*/
export var FeeQuotingCommand;
(function (FeeQuotingCommand) {
FeeQuotingCommand["TransferRemote"] = "transferRemote";
FeeQuotingCommand["TransferRemoteTo"] = "transferRemoteTo";
FeeQuotingCommand["CallRemoteWithOverrides"] = "callRemoteWithOverrides";
FeeQuotingCommand["CallRemoteCommitReveal"] = "callRemoteCommitReveal";
})(FeeQuotingCommand || (FeeQuotingCommand = {}));
/** Commands that require a warp fee quote (in addition to IGP) */
export const WARP_FEE_COMMANDS = new Set([
FeeQuotingCommand.TransferRemote,
FeeQuotingCommand.TransferRemoteTo,
]);
//# sourceMappingURL=types.js.map