/* 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());
    });
};
import { Script, } from "@alephium/web3";
import { default as SetMessageFeeScriptJson } from "../governance_scripts/set_message_fee.ral.json";
import { default as TransferFeeScriptJson } from "../governance_scripts/transfer_fee.ral.json";
import { default as UpdateGuardianSetScriptJson } from "../governance_scripts/update_guardian_set.ral.json";
import { default as UpdateGovernanceContractScriptJson } from "../governance_scripts/upgrade_governance_contract.ral.json";
import { default as GetTokenScriptJson } from "../tests/get_token.ral.json";
import { default as AttestTokenScriptJson } from "../token_bridge_scripts/attest_token.ral.json";
import { default as CompleteTransferScriptJson } from "../token_bridge_scripts/complete_transfer.ral.json";
import { default as CreateLocalAttestTokenHandlerScriptJson } from "../token_bridge_scripts/create_local_attest_token_handler.ral.json";
import { default as CreateLocalTokenPoolScriptJson } from "../token_bridge_scripts/create_local_token_pool.ral.json";
import { default as CreateRemoteTokenPoolScriptJson } from "../token_bridge_scripts/create_remote_token_pool.ral.json";
import { default as DepositScriptJson } from "../token_bridge_scripts/deposit.ral.json";
import { default as DestroyUnexecutedSequenceContractsScriptJson } from "../token_bridge_scripts/destroy_unexecuted_sequence_contracts.ral.json";
import { default as RegisterChainScriptJson } from "../token_bridge_scripts/register_chain.ral.json";
import { default as TransferLocalScriptJson } from "../token_bridge_scripts/transfer_local.ral.json";
import { default as TransferRemoteScriptJson } from "../token_bridge_scripts/transfer_remote.ral.json";
import { default as UpdateMinimalConsistencyLevelScriptJson } from "../token_bridge_scripts/update_minimal_consistency_level.ral.json";
import { default as UpdateRefundAddressScriptJson } from "../token_bridge_scripts/update_refund_address.ral.json";
import { default as UpdateRemoteTokenPoolScriptJson } from "../token_bridge_scripts/update_remote_token_pool.ral.json";
import { default as UpgradeTokenBridgeContractScriptJson } from "../token_bridge_scripts/upgrade_token_bridge_contract.ral.json";
export 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 = Script.fromJson(SetMessageFeeScriptJson);
})(SetMessageFee || (SetMessageFee = {}));
export 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 = Script.fromJson(TransferFeeScriptJson);
})(TransferFee || (TransferFee = {}));
export 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 = Script.fromJson(UpdateGuardianSetScriptJson);
})(UpdateGuardianSet || (UpdateGuardianSet = {}));
export 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 = Script.fromJson(UpdateGovernanceContractScriptJson);
})(UpdateGovernanceContract || (UpdateGovernanceContract = {}));
export 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 = Script.fromJson(GetTokenScriptJson);
})(GetToken || (GetToken = {}));
export 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 = Script.fromJson(AttestTokenScriptJson);
})(AttestToken || (AttestToken = {}));
export 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 = Script.fromJson(CompleteTransferScriptJson);
})(CompleteTransfer || (CompleteTransfer = {}));
export 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 = Script.fromJson(CreateLocalAttestTokenHandlerScriptJson);
})(CreateLocalAttestTokenHandler || (CreateLocalAttestTokenHandler = {}));
export 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 = Script.fromJson(CreateLocalTokenPoolScriptJson);
})(CreateLocalTokenPool || (CreateLocalTokenPool = {}));
export 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 = Script.fromJson(CreateRemoteTokenPoolScriptJson);
})(CreateRemoteTokenPool || (CreateRemoteTokenPool = {}));
export 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 = Script.fromJson(DepositScriptJson);
})(Deposit || (Deposit = {}));
export 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 = Script.fromJson(DestroyUnexecutedSequenceContractsScriptJson);
})(DestroyUnexecutedSequenceContracts || (DestroyUnexecutedSequenceContracts = {}));
export 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 = Script.fromJson(RegisterChainScriptJson);
})(RegisterChain || (RegisterChain = {}));
export 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 = Script.fromJson(TransferLocalScriptJson);
})(TransferLocal || (TransferLocal = {}));
export 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 = Script.fromJson(TransferRemoteScriptJson);
})(TransferRemote || (TransferRemote = {}));
export 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 = Script.fromJson(UpdateMinimalConsistencyLevelScriptJson);
})(UpdateMinimalConsistencyLevel || (UpdateMinimalConsistencyLevel = {}));
export 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 = Script.fromJson(UpdateRefundAddressScriptJson);
})(UpdateRefundAddress || (UpdateRefundAddress = {}));
export 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 = Script.fromJson(UpdateRemoteTokenPoolScriptJson);
})(UpdateRemoteTokenPool || (UpdateRemoteTokenPool = {}));
export 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 = Script.fromJson(UpgradeTokenBridgeContractScriptJson);
})(UpgradeTokenBridgeContract || (UpgradeTokenBridgeContract = {}));
