@syncswap/sdk
Version:
SyncSwap TypeScript SDK for building DeFi applications
37 lines • 877 B
JavaScript
import { ZERO_ADDRESS } from "../utils/constants.js";
let _stateStore = {
network: "",
account: ZERO_ADDRESS,
providerOrSigner: null,
allowUniswapV3Pools: true,
aquaPoolOnly: false,
enableHops: true,
enableSplits: true,
userSettings: {
slippage: "auto",
gasPrice: 0,
},
invalid1559Type: false,
feeToken: null,
refundFeeToken: null,
currentRoutePools: null,
allowSponsoredPaymaster: true,
sponsoredNFTS: [],
currentSponsoredNFT: null,
enableSophonPaymaster: true,
paymasterCompatibility: true,
explicitTransactionFrom: false,
enableLimitedUnlock: false,
};
export function stateStore() {
return {
..._stateStore,
};
}
export function setStateStore(state) {
_stateStore = {
..._stateStore,
...state,
};
}
//# sourceMappingURL=statestore.js.map