"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 __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
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;
const web3_1 = require("@alephium/web3");
const set_message_fee_ral_json_1 = __importDefault(require("../governance_scripts/set_message_fee.ral.json"));
const transfer_fee_ral_json_1 = __importDefault(require("../governance_scripts/transfer_fee.ral.json"));
const update_guardian_set_ral_json_1 = __importDefault(require("../governance_scripts/update_guardian_set.ral.json"));
const upgrade_governance_contract_ral_json_1 = __importDefault(require("../governance_scripts/upgrade_governance_contract.ral.json"));
const get_token_ral_json_1 = __importDefault(require("../tests/get_token.ral.json"));
const attest_token_ral_json_1 = __importDefault(require("../token_bridge_scripts/attest_token.ral.json"));
const complete_transfer_ral_json_1 = __importDefault(require("../token_bridge_scripts/complete_transfer.ral.json"));
const create_local_attest_token_handler_ral_json_1 = __importDefault(require("../token_bridge_scripts/create_local_attest_token_handler.ral.json"));
const create_local_token_pool_ral_json_1 = __importDefault(require("../token_bridge_scripts/create_local_token_pool.ral.json"));
const create_remote_token_pool_ral_json_1 = __importDefault(require("../token_bridge_scripts/create_remote_token_pool.ral.json"));
const deposit_ral_json_1 = __importDefault(require("../token_bridge_scripts/deposit.ral.json"));
const destroy_unexecuted_sequence_contracts_ral_json_1 = __importDefault(require("../token_bridge_scripts/destroy_unexecuted_sequence_contracts.ral.json"));
const register_chain_ral_json_1 = __importDefault(require("../token_bridge_scripts/register_chain.ral.json"));
const transfer_local_ral_json_1 = __importDefault(require("../token_bridge_scripts/transfer_local.ral.json"));
const transfer_remote_ral_json_1 = __importDefault(require("../token_bridge_scripts/transfer_remote.ral.json"));
const update_minimal_consistency_level_ral_json_1 = __importDefault(require("../token_bridge_scripts/update_minimal_consistency_level.ral.json"));
const update_refund_address_ral_json_1 = __importDefault(require("../token_bridge_scripts/update_refund_address.ral.json"));
const update_remote_token_pool_ral_json_1 = __importDefault(require("../token_bridge_scripts/update_remote_token_pool.ral.json"));
const upgrade_token_bridge_contract_ral_json_1 = __importDefault(require("../token_bridge_scripts/upgrade_token_bridge_contract.ral.json"));
var SetMessageFee;
(function (SetMessageFee) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield SetMessageFee.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    SetMessageFee.execute = execute;
    SetMessageFee.script = web3_1.Script.fromJson(set_message_fee_ral_json_1.default);
})(SetMessageFee = exports.SetMessageFee || (exports.SetMessageFee = {}));
var TransferFee;
(function (TransferFee) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield TransferFee.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    TransferFee.execute = execute;
    TransferFee.script = web3_1.Script.fromJson(transfer_fee_ral_json_1.default);
})(TransferFee = exports.TransferFee || (exports.TransferFee = {}));
var UpdateGuardianSet;
(function (UpdateGuardianSet) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield UpdateGuardianSet.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    UpdateGuardianSet.execute = execute;
    UpdateGuardianSet.script = web3_1.Script.fromJson(update_guardian_set_ral_json_1.default);
})(UpdateGuardianSet = exports.UpdateGuardianSet || (exports.UpdateGuardianSet = {}));
var UpdateGovernanceContract;
(function (UpdateGovernanceContract) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield UpdateGovernanceContract.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    UpdateGovernanceContract.execute = execute;
    UpdateGovernanceContract.script = web3_1.Script.fromJson(upgrade_governance_contract_ral_json_1.default);
})(UpdateGovernanceContract = exports.UpdateGovernanceContract || (exports.UpdateGovernanceContract = {}));
var GetToken;
(function (GetToken) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield GetToken.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    GetToken.execute = execute;
    GetToken.script = web3_1.Script.fromJson(get_token_ral_json_1.default);
})(GetToken = exports.GetToken || (exports.GetToken = {}));
var AttestToken;
(function (AttestToken) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield AttestToken.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    AttestToken.execute = execute;
    AttestToken.script = web3_1.Script.fromJson(attest_token_ral_json_1.default);
})(AttestToken = exports.AttestToken || (exports.AttestToken = {}));
var CompleteTransfer;
(function (CompleteTransfer) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield CompleteTransfer.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    CompleteTransfer.execute = execute;
    CompleteTransfer.script = web3_1.Script.fromJson(complete_transfer_ral_json_1.default);
})(CompleteTransfer = exports.CompleteTransfer || (exports.CompleteTransfer = {}));
var CreateLocalAttestTokenHandler;
(function (CreateLocalAttestTokenHandler) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield CreateLocalAttestTokenHandler.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    CreateLocalAttestTokenHandler.execute = execute;
    CreateLocalAttestTokenHandler.script = web3_1.Script.fromJson(create_local_attest_token_handler_ral_json_1.default);
})(CreateLocalAttestTokenHandler = exports.CreateLocalAttestTokenHandler || (exports.CreateLocalAttestTokenHandler = {}));
var CreateLocalTokenPool;
(function (CreateLocalTokenPool) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield CreateLocalTokenPool.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    CreateLocalTokenPool.execute = execute;
    CreateLocalTokenPool.script = web3_1.Script.fromJson(create_local_token_pool_ral_json_1.default);
})(CreateLocalTokenPool = exports.CreateLocalTokenPool || (exports.CreateLocalTokenPool = {}));
var CreateRemoteTokenPool;
(function (CreateRemoteTokenPool) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield CreateRemoteTokenPool.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    CreateRemoteTokenPool.execute = execute;
    CreateRemoteTokenPool.script = web3_1.Script.fromJson(create_remote_token_pool_ral_json_1.default);
})(CreateRemoteTokenPool = exports.CreateRemoteTokenPool || (exports.CreateRemoteTokenPool = {}));
var Deposit;
(function (Deposit) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield Deposit.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    Deposit.execute = execute;
    Deposit.script = web3_1.Script.fromJson(deposit_ral_json_1.default);
})(Deposit = exports.Deposit || (exports.Deposit = {}));
var DestroyUnexecutedSequenceContracts;
(function (DestroyUnexecutedSequenceContracts) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield DestroyUnexecutedSequenceContracts.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    DestroyUnexecutedSequenceContracts.execute = execute;
    DestroyUnexecutedSequenceContracts.script = web3_1.Script.fromJson(destroy_unexecuted_sequence_contracts_ral_json_1.default);
})(DestroyUnexecutedSequenceContracts = exports.DestroyUnexecutedSequenceContracts || (exports.DestroyUnexecutedSequenceContracts = {}));
var RegisterChain;
(function (RegisterChain) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield RegisterChain.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    RegisterChain.execute = execute;
    RegisterChain.script = web3_1.Script.fromJson(register_chain_ral_json_1.default);
})(RegisterChain = exports.RegisterChain || (exports.RegisterChain = {}));
var TransferLocal;
(function (TransferLocal) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield TransferLocal.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    TransferLocal.execute = execute;
    TransferLocal.script = web3_1.Script.fromJson(transfer_local_ral_json_1.default);
})(TransferLocal = exports.TransferLocal || (exports.TransferLocal = {}));
var TransferRemote;
(function (TransferRemote) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield TransferRemote.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    TransferRemote.execute = execute;
    TransferRemote.script = web3_1.Script.fromJson(transfer_remote_ral_json_1.default);
})(TransferRemote = exports.TransferRemote || (exports.TransferRemote = {}));
var UpdateMinimalConsistencyLevel;
(function (UpdateMinimalConsistencyLevel) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield UpdateMinimalConsistencyLevel.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    UpdateMinimalConsistencyLevel.execute = execute;
    UpdateMinimalConsistencyLevel.script = web3_1.Script.fromJson(update_minimal_consistency_level_ral_json_1.default);
})(UpdateMinimalConsistencyLevel = exports.UpdateMinimalConsistencyLevel || (exports.UpdateMinimalConsistencyLevel = {}));
var UpdateRefundAddress;
(function (UpdateRefundAddress) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield UpdateRefundAddress.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    UpdateRefundAddress.execute = execute;
    UpdateRefundAddress.script = web3_1.Script.fromJson(update_refund_address_ral_json_1.default);
})(UpdateRefundAddress = exports.UpdateRefundAddress || (exports.UpdateRefundAddress = {}));
var UpdateRemoteTokenPool;
(function (UpdateRemoteTokenPool) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield UpdateRemoteTokenPool.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    UpdateRemoteTokenPool.execute = execute;
    UpdateRemoteTokenPool.script = web3_1.Script.fromJson(update_remote_token_pool_ral_json_1.default);
})(UpdateRemoteTokenPool = exports.UpdateRemoteTokenPool || (exports.UpdateRemoteTokenPool = {}));
var UpgradeTokenBridgeContract;
(function (UpgradeTokenBridgeContract) {
    function execute(signer, params) {
        return __awaiter(this, void 0, void 0, function* () {
            const signerParams = yield UpgradeTokenBridgeContract.script.txParamsForExecution(signer, params);
            return yield signer.signAndSubmitExecuteScriptTx(signerParams);
        });
    }
    UpgradeTokenBridgeContract.execute = execute;
    UpgradeTokenBridgeContract.script = web3_1.Script.fromJson(upgrade_token_bridge_contract_ral_json_1.default);
})(UpgradeTokenBridgeContract = exports.UpgradeTokenBridgeContract || (exports.UpgradeTokenBridgeContract = {}));
