"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpgradeTokenBridgeContract = exports.UpdateRemoteTokenPool = exports.UpdateRefundAddress = exports.UpdateMinimalConsistencyLevel = exports.TransferRemote = exports.TransferLocal = exports.RegisterChain = exports.DestroyUnexecutedSequenceContracts = exports.Deposit = exports.CreateRemoteTokenPool = exports.CreateLocalTokenPool = exports.CreateLocalAttestTokenHandler = exports.CompleteTransfer = exports.AttestToken = exports.GetToken = exports.UpdateGovernanceContract = exports.UpdateGuardianSet = exports.TransferFee = exports.SetMessageFee = void 0;
var web3_1 = require("@alephium/web3");
var SetMessageFee = /** @class */ (function () {
    function SetMessageFee() {
    }
    SetMessageFee.execute = function (signer, governance, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"SetMessageFee\",\n  \"bytecodeTemplate\": \"01010300000005{1}0d0c{0}010a\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"governance\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { governance: governance, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return SetMessageFee;
}());
exports.SetMessageFee = SetMessageFee;
var TransferFee = /** @class */ (function () {
    function TransferFee() {
    }
    TransferFee.execute = function (signer, governance, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"TransferFee\",\n  \"bytecodeTemplate\": \"01010300000005{1}0d0c{0}010b\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"governance\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { governance: governance, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return TransferFee;
}());
exports.TransferFee = TransferFee;
var UpdateGuardianSet = /** @class */ (function () {
    function UpdateGuardianSet() {
    }
    UpdateGuardianSet.execute = function (signer, governance, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"UpdateGuardianSet\",\n  \"bytecodeTemplate\": \"01010300000005{1}0d0c{0}0109\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"governance\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { governance: governance, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return UpdateGuardianSet;
}());
exports.UpdateGuardianSet = UpdateGuardianSet;
var UpdateGovernanceContract = /** @class */ (function () {
    function UpdateGovernanceContract() {
    }
    UpdateGovernanceContract.execute = function (signer, governance, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"UpdateGovernanceContract\",\n  \"bytecodeTemplate\": \"01010300000005{1}0d0c{0}0107\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"governance\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { governance: governance, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return UpdateGovernanceContract;
}());
exports.UpdateGovernanceContract = UpdateGovernanceContract;
var GetToken = /** @class */ (function () {
    function GetToken() {
    }
    GetToken.execute = function (signer, sender, token, amount, factor, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"GetToken\",\n  \"bytecodeTemplate\": \"0101030000000a{0}{2}a2{0}{2}{3}0f0c{1}0104\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"sender\",\n      \"token\",\n      \"amount\",\n      \"factor\"\n    ],\n    \"types\": [\n      \"Address\",\n      \"ByteVec\",\n      \"U256\",\n      \"U256\"\n    ],\n    \"isMutable\": [\n      false,\n      false,\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: {
                            sender: sender,
                            token: token,
                            amount: amount,
                            factor: factor,
                        },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return GetToken;
}());
exports.GetToken = GetToken;
var AttestToken = /** @class */ (function () {
    function AttestToken() {
    }
    AttestToken.execute = function (signer, payer, tokenBridge, localTokenId, decimals, symbol, name, nonce, consistencyLevel, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"AttestToken\",\n  \"bytecodeTemplate\": \"010103000100170c0d{1}010b1700{0}7a1600a2{2}0da3{0}{2}{3}{4}{5}{6}{7}13070c{1}010c\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"payer\",\n      \"tokenBridge\",\n      \"localTokenId\",\n      \"decimals\",\n      \"symbol\",\n      \"name\",\n      \"nonce\",\n      \"consistencyLevel\"\n    ],\n    \"types\": [\n      \"Address\",\n      \"ByteVec\",\n      \"ByteVec\",\n      \"U256\",\n      \"ByteVec\",\n      \"ByteVec\",\n      \"ByteVec\",\n      \"U256\"\n    ],\n    \"isMutable\": [\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: {
                            payer: payer,
                            tokenBridge: tokenBridge,
                            localTokenId: localTokenId,
                            decimals: decimals,
                            symbol: symbol,
                            name: name,
                            nonce: nonce,
                            consistencyLevel: consistencyLevel,
                        },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return AttestToken;
}());
exports.AttestToken = AttestToken;
var CompleteTransfer = /** @class */ (function () {
    function CompleteTransfer() {
    }
    CompleteTransfer.execute = function (signer, tokenBridgeForChain, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"CompleteTransfer\",\n  \"bytecodeTemplate\": \"0101030001000bb41700160013c3038d7ea4c68000a2{1}16000e0c{0}0107\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"tokenBridgeForChain\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { tokenBridgeForChain: tokenBridgeForChain, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return CompleteTransfer;
}());
exports.CompleteTransfer = CompleteTransfer;
var CreateLocalAttestTokenHandler = /** @class */ (function () {
    function CreateLocalAttestTokenHandler() {
    }
    CreateLocalAttestTokenHandler.execute = function (signer, tokenBridge, payer, alphAmount, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"CreateLocalAttestTokenHandler\",\n  \"bytecodeTemplate\": \"01010300000009{1}{2}a2{1}{2}0e0c{0}0102\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"tokenBridge\",\n      \"payer\",\n      \"alphAmount\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"Address\",\n      \"U256\"\n    ],\n    \"isMutable\": [\n      false,\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: {
                            tokenBridge: tokenBridge,
                            payer: payer,
                            alphAmount: alphAmount,
                        },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return CreateLocalAttestTokenHandler;
}());
exports.CreateLocalAttestTokenHandler = CreateLocalAttestTokenHandler;
var CreateLocalTokenPool = /** @class */ (function () {
    function CreateLocalTokenPool() {
    }
    CreateLocalTokenPool.execute = function (signer, payer, attestTokenHandler, localTokenId, vaa, alphAmount, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"CreateLocalTokenPool\",\n  \"bytecodeTemplate\": \"0101030000000f{0}7a{4}a2{2}0da3{3}{0}{4}0d100c{1}0101\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"payer\",\n      \"attestTokenHandler\",\n      \"localTokenId\",\n      \"vaa\",\n      \"alphAmount\"\n    ],\n    \"types\": [\n      \"Address\",\n      \"ByteVec\",\n      \"ByteVec\",\n      \"ByteVec\",\n      \"U256\"\n    ],\n    \"isMutable\": [\n      false,\n      false,\n      false,\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: {
                            payer: payer,
                            attestTokenHandler: attestTokenHandler,
                            localTokenId: localTokenId,
                            vaa: vaa,
                            alphAmount: alphAmount,
                        },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return CreateLocalTokenPool;
}());
exports.CreateLocalTokenPool = CreateLocalTokenPool;
var CreateRemoteTokenPool = /** @class */ (function () {
    function CreateRemoteTokenPool() {
    }
    CreateRemoteTokenPool.execute = function (signer, payer, attestTokenHandler, vaa, alphAmount, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"CreateRemoteTokenPool\",\n  \"bytecodeTemplate\": \"0101030000000a{0}{3}a2{2}{0}{3}0f0c{1}0102\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"payer\",\n      \"attestTokenHandler\",\n      \"vaa\",\n      \"alphAmount\"\n    ],\n    \"types\": [\n      \"Address\",\n      \"ByteVec\",\n      \"ByteVec\",\n      \"U256\"\n    ],\n    \"isMutable\": [\n      false,\n      false,\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: {
                            payer: payer,
                            attestTokenHandler: attestTokenHandler,
                            vaa: vaa,
                            alphAmount: alphAmount,
                        },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return CreateRemoteTokenPool;
}());
exports.CreateRemoteTokenPool = CreateRemoteTokenPool;
var Deposit = /** @class */ (function () {
    function Deposit() {
    }
    Deposit.execute = function (signer, tokenBridgeForChain, payer, amount, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"Deposit\",\n  \"bytecodeTemplate\": \"01010300000009{1}{2}a2{1}{2}0e0c{0}0109\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"tokenBridgeForChain\",\n      \"payer\",\n      \"amount\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"Address\",\n      \"U256\"\n    ],\n    \"isMutable\": [\n      false,\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: {
                            tokenBridgeForChain: tokenBridgeForChain,
                            payer: payer,
                            amount: amount,
                        },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return Deposit;
}());
exports.Deposit = Deposit;
var DestroyUnexecutedSequenceContracts = /** @class */ (function () {
    function DestroyUnexecutedSequenceContracts() {
    }
    DestroyUnexecutedSequenceContracts.execute = function (signer, tokenBridge, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"DestroyUnexecutedSequenceContracts\",\n  \"bytecodeTemplate\": \"01010300000005{1}0d0c{0}0106\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"tokenBridge\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { tokenBridge: tokenBridge, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return DestroyUnexecutedSequenceContracts;
}());
exports.DestroyUnexecutedSequenceContracts = DestroyUnexecutedSequenceContracts;
var RegisterChain = /** @class */ (function () {
    function RegisterChain() {
    }
    RegisterChain.execute = function (signer, payer, tokenBridge, vaa, alphAmount, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"RegisterChain\",\n  \"bytecodeTemplate\": \"0101030000000c{0}{3}0e2ca2{2}{0}{3}0f0c{1}0104\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"payer\",\n      \"tokenBridge\",\n      \"vaa\",\n      \"alphAmount\"\n    ],\n    \"types\": [\n      \"Address\",\n      \"ByteVec\",\n      \"ByteVec\",\n      \"U256\"\n    ],\n    \"isMutable\": [\n      false,\n      false,\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: {
                            payer: payer,
                            tokenBridge: tokenBridge,
                            vaa: vaa,
                            alphAmount: alphAmount,
                        },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return RegisterChain;
}());
exports.RegisterChain = RegisterChain;
var TransferLocal = /** @class */ (function () {
    function TransferLocal() {
    }
    TransferLocal.execute = function (signer, tokenBridge, fromAddress, localTokenId, alphChainId, toChainId, toAddress, tokenAmount, arbiterFee, nonce, consistencyLevel, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"TransferLocal\",\n  \"bytecodeTemplate\": \"0101030001001a0c0d{0}010b1700{1}7a1600a2{2}{6}a3{1}{2}{3}{4}{5}{6}1600{7}{8}{9}130a0c{0}0111\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"tokenBridge\",\n      \"fromAddress\",\n      \"localTokenId\",\n      \"alphChainId\",\n      \"toChainId\",\n      \"toAddress\",\n      \"tokenAmount\",\n      \"arbiterFee\",\n      \"nonce\",\n      \"consistencyLevel\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"Address\",\n      \"ByteVec\",\n      \"U256\",\n      \"U256\",\n      \"ByteVec\",\n      \"U256\",\n      \"U256\",\n      \"ByteVec\",\n      \"U256\"\n    ],\n    \"isMutable\": [\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: {
                            tokenBridge: tokenBridge,
                            fromAddress: fromAddress,
                            localTokenId: localTokenId,
                            alphChainId: alphChainId,
                            toChainId: toChainId,
                            toAddress: toAddress,
                            tokenAmount: tokenAmount,
                            arbiterFee: arbiterFee,
                            nonce: nonce,
                            consistencyLevel: consistencyLevel,
                        },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return TransferLocal;
}());
exports.TransferLocal = TransferLocal;
var TransferRemote = /** @class */ (function () {
    function TransferRemote() {
    }
    TransferRemote.execute = function (signer, tokenBridge, fromAddress, tokenPoolId, remoteTokenId, tokenChainId, toChainId, toAddress, tokenAmount, arbiterFee, nonce, consistencyLevel, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"TransferRemote\",\n  \"bytecodeTemplate\": \"0101030001001a0c0d{0}010b1700{1}7a1600a2{2}{7}a3{1}{3}{4}{5}{6}{7}1600{8}{9}{10}130a0c{0}0111\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"tokenBridge\",\n      \"fromAddress\",\n      \"tokenPoolId\",\n      \"remoteTokenId\",\n      \"tokenChainId\",\n      \"toChainId\",\n      \"toAddress\",\n      \"tokenAmount\",\n      \"arbiterFee\",\n      \"nonce\",\n      \"consistencyLevel\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"Address\",\n      \"ByteVec\",\n      \"ByteVec\",\n      \"U256\",\n      \"U256\",\n      \"ByteVec\",\n      \"U256\",\n      \"U256\",\n      \"ByteVec\",\n      \"U256\"\n    ],\n    \"isMutable\": [\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: {
                            tokenBridge: tokenBridge,
                            fromAddress: fromAddress,
                            tokenPoolId: tokenPoolId,
                            remoteTokenId: remoteTokenId,
                            tokenChainId: tokenChainId,
                            toChainId: toChainId,
                            toAddress: toAddress,
                            tokenAmount: tokenAmount,
                            arbiterFee: arbiterFee,
                            nonce: nonce,
                            consistencyLevel: consistencyLevel,
                        },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return TransferRemote;
}());
exports.TransferRemote = TransferRemote;
var UpdateMinimalConsistencyLevel = /** @class */ (function () {
    function UpdateMinimalConsistencyLevel() {
    }
    UpdateMinimalConsistencyLevel.execute = function (signer, tokenBridge, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"UpdateMinimalConsistencyLevel\",\n  \"bytecodeTemplate\": \"01010300000005{1}0d0c{0}0107\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"tokenBridge\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { tokenBridge: tokenBridge, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return UpdateMinimalConsistencyLevel;
}());
exports.UpdateMinimalConsistencyLevel = UpdateMinimalConsistencyLevel;
var UpdateRefundAddress = /** @class */ (function () {
    function UpdateRefundAddress() {
    }
    UpdateRefundAddress.execute = function (signer, tokenBridge, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"UpdateRefundAddress\",\n  \"bytecodeTemplate\": \"01010300000005{1}0d0c{0}0109\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"tokenBridge\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { tokenBridge: tokenBridge, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return UpdateRefundAddress;
}());
exports.UpdateRefundAddress = UpdateRefundAddress;
var UpdateRemoteTokenPool = /** @class */ (function () {
    function UpdateRemoteTokenPool() {
    }
    UpdateRemoteTokenPool.execute = function (signer, attestTokenHandler, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"UpdateRemoteTokenPool\",\n  \"bytecodeTemplate\": \"01010300000005{1}0d0c{0}0103\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"attestTokenHandler\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { attestTokenHandler: attestTokenHandler, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return UpdateRemoteTokenPool;
}());
exports.UpdateRemoteTokenPool = UpdateRemoteTokenPool;
var UpgradeTokenBridgeContract = /** @class */ (function () {
    function UpgradeTokenBridgeContract() {
    }
    UpgradeTokenBridgeContract.execute = function (signer, tokenBridge, vaa, _extraParams) {
        return __awaiter(this, void 0, void 0, function () {
            var script;
            return __generator(this, function (_a) {
                script = web3_1.Script.fromJson(JSON.parse("{\n  \"version\": \"v1.7.0\",\n  \"name\": \"UpgradeTokenBridgeContract\",\n  \"bytecodeTemplate\": \"01010300000005{1}0d0c{0}0105\",\n  \"fieldsSig\": {\n    \"names\": [\n      \"tokenBridge\",\n      \"vaa\"\n    ],\n    \"types\": [\n      \"ByteVec\",\n      \"ByteVec\"\n    ],\n    \"isMutable\": [\n      false,\n      false\n    ]\n  },\n  \"functions\": [\n    {\n      \"name\": \"main\",\n      \"usePreapprovedAssets\": true,\n      \"useAssetsInContract\": false,\n      \"isPublic\": true,\n      \"paramNames\": [],\n      \"paramTypes\": [],\n      \"paramIsMutable\": [],\n      \"returnTypes\": []\n    }\n  ]\n}"));
                return [2 /*return*/, script.execute(signer, {
                        initialFields: { tokenBridge: tokenBridge, vaa: vaa },
                        attoAlphAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.attoAlphAmount,
                        tokens: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.tokens,
                        gasAmount: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasAmount,
                        gasPrice: _extraParams === null || _extraParams === void 0 ? void 0 : _extraParams.gasPrice,
                    })];
            });
        });
    };
    return UpgradeTokenBridgeContract;
}());
exports.UpgradeTokenBridgeContract = UpgradeTokenBridgeContract;
