chunk-PXGMIR6J.mjs•1.01 kB
import {
TransactionHelperApi
} from "./chunk-KRHRZRFK.mjs";
import {
TransactionHelperService
} from "./chunk-IM2A3YN7.mjs";
import {
__name
} from "./chunk-PAWJFY3S.mjs";
// src/txnhelper.plugin.ts
import { PluginBase } from "@goat-sdk/core";
var TransactionHelperPlugin = class extends PluginBase {
static {
__name(this, "TransactionHelperPlugin");
}
/**
* Initializes the TransactionHelperPlugin by invoking the PluginBase constructor
* with the identifier "txnhelper" and an instance of TransactionHelperService
* using the provided parameters and a new TransactionHelperApi instance.
*/
constructor(params) {
super("txnhelper", [
new TransactionHelperService(new TransactionHelperApi(), params)
]);
}
supportsChain(chain) {
return chain.type === "solana";
}
};
function txnhelper() {
return new TransactionHelperPlugin();
}
__name(txnhelper, "txnhelper");
export {
TransactionHelperPlugin,
txnhelper
};
//# sourceMappingURL=chunk-PXGMIR6J.mjs.map