@funkit/core 2.2.7 → 2.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13390,7 +13390,6 @@ Discord: ${discord}`);
13390
13390
  this.message += "\n\nTrace:";
13391
13391
  this.timestamp = (/* @__PURE__ */ new Date()).toUTCString();
13392
13392
  }
13393
- timestamp;
13394
13393
  loadEnd() {
13395
13394
  this.message += "\n\nThis is an internal sdk error. Please contact the fun team at our Discord for the fastest response.";
13396
13395
  }
@@ -14445,12 +14444,6 @@ function fromReadableAmount(amount, decimals) {
14445
14444
  return parseUnits(amount.toFixed(20), decimals);
14446
14445
  }
14447
14446
  var SwapToken = class {
14448
- client;
14449
- version;
14450
- quoterContractAddr;
14451
- poolFactoryContractAddr;
14452
- v2router;
14453
- v2Factory;
14454
14447
  constructor(client, version, quoterContractAddr, poolFactoryContractAddr, v2router, v2Factory) {
14455
14448
  this.client = client;
14456
14449
  this.version = version;
@@ -15296,15 +15289,9 @@ async function addTransaction(chainId, timestamp, txid, transaction, paymasterTy
15296
15289
 
15297
15290
  // src/data/Chain.ts
15298
15291
  var Chain = class _Chain {
15299
- initialized = false;
15300
- id;
15301
- name;
15302
- addresses = {};
15303
- currency;
15304
- rpcUrl;
15305
- client;
15306
- static chain;
15307
15292
  constructor(chainInput) {
15293
+ this.initialized = false;
15294
+ this.addresses = {};
15308
15295
  if (!chainInput.chainIdentifier && !chainInput.rpcUrl) {
15309
15296
  throw new InvalidParameterError(
15310
15297
  "InvalidChainIdentifier" /* InvalidChainIdentifier */,
@@ -15516,9 +15503,8 @@ var Chain = class _Chain {
15516
15503
  // src/data/NFT.ts
15517
15504
  import { isAddress as isAddress2 } from "viem";
15518
15505
  var NFT = class _NFT {
15519
- address;
15520
- name = "";
15521
15506
  constructor(input) {
15507
+ this.name = "";
15522
15508
  if (!input) {
15523
15509
  throw new InvalidParameterError(
15524
15510
  "InvalidNFTIdentifier" /* InvalidNFTIdentifier */,
@@ -15654,28 +15640,6 @@ var NFT = class _NFT {
15654
15640
 
15655
15641
  // src/data/Operation.ts
15656
15642
  var Operation = class _Operation {
15657
- opId;
15658
- chainId;
15659
- opType;
15660
- authType;
15661
- groupId;
15662
- message;
15663
- walletAddr;
15664
- userOp;
15665
- status;
15666
- proposer;
15667
- // do not use address in case we later use non-address data as the proposer
15668
- proposedTime;
15669
- executedBy;
15670
- executedTime;
15671
- relatedOpIds;
15672
- signatures;
15673
- txid;
15674
- gasUsed;
15675
- opFeeUSD;
15676
- opFee;
15677
- executedBlockNumber;
15678
- executedBlockTimeStamp;
15679
15643
  constructor(userOp, metadata) {
15680
15644
  this.userOp = userOp;
15681
15645
  this.userOp.preVerificationGas = userOp.preVerificationGas ? userOp.preVerificationGas : calcPreVerificationGas(this.userOp);
@@ -15837,11 +15801,9 @@ function toBytes32Arr(data) {
15837
15801
  import { formatUnits as formatUnits2, isAddress as isAddress3, parseUnits as parseUnits2 } from "viem";
15838
15802
  var wrappedNativeTokens = { eth: "weth", matic: "wmatic", mnt: "wmnt" };
15839
15803
  var Token2 = class _Token {
15840
- address;
15841
- chain;
15842
- isNative = false;
15843
- symbol = "";
15844
15804
  constructor(input, chain) {
15805
+ this.isNative = false;
15806
+ this.symbol = "";
15845
15807
  this.chain = chain;
15846
15808
  if (isAddress3(input)) {
15847
15809
  this.address = input;
@@ -16006,7 +15968,6 @@ var OperationStatus = /* @__PURE__ */ ((OperationStatus2) => {
16006
15968
 
16007
15969
  // src/viem/ContractInterface.ts
16008
15970
  var ContractInterface = class {
16009
- abi;
16010
15971
  constructor(abi) {
16011
15972
  this.abi = abi;
16012
15973
  }
@@ -16715,12 +16676,8 @@ chains.funtestnet = {
16715
16676
  rpcUrls: { default: { http: [] }, public: { http: [] } }
16716
16677
  };
16717
16678
  var Auth = class {
16718
- authId;
16719
- signer;
16720
- client;
16721
- inited = false;
16722
- account;
16723
16679
  constructor(authInput) {
16680
+ this.inited = false;
16724
16681
  if (authInput.web2AuthId) {
16725
16682
  this.authId = authInput.web2AuthId;
16726
16683
  }
@@ -17019,10 +16976,6 @@ var getSigHash = (abi, functionName) => {
17019
16976
  // src/auth/SessionKeyAuth.ts
17020
16977
  var SELECTOR_LENGTH = 10;
17021
16978
  var SessionKeyAuth = class extends Auth {
17022
- ruleId;
17023
- roleId;
17024
- targetSelectorMerkleTree;
17025
- feeRecipientMerkleTree;
17026
16979
  constructor(authInput, ruleId, roleId, targetSelectorMerkleTree, feeRecipientMerkleTree) {
17027
16980
  super(authInput);
17028
16981
  this.ruleId = ruleId;
@@ -17205,7 +17158,6 @@ var verifyPath = (root, item, path) => {
17205
17158
  return hash === root;
17206
17159
  };
17207
17160
  var MerkleTree = class {
17208
- tree;
17209
17161
  constructor(list) {
17210
17162
  this.tree = createMerkleHashes(list);
17211
17163
  }
@@ -18036,12 +17988,6 @@ async function configureEnvironment(option) {
18036
17988
 
18037
17989
  // src/sponsors/Sponsor.ts
18038
17990
  var Sponsor = class {
18039
- sponsorAddress;
18040
- contractInterface;
18041
- name;
18042
- paymasterAddress;
18043
- paymasterType;
18044
- chainId;
18045
17991
  constructor(options, contractInterface, name, paymasterType) {
18046
17992
  if (options.gasSponsor !== void 0 && options.gasSponsor.sponsorAddress !== void 0) {
18047
17993
  this.sponsorAddress = options.gasSponsor.sponsorAddress;
@@ -18355,7 +18301,6 @@ var GaslessSponsor = class extends Sponsor {
18355
18301
  // src/sponsors/TokenSponsor.ts
18356
18302
  import { concat as concat4, encodeAbiParameters as encodeAbiParameters4 } from "viem";
18357
18303
  var TokenSponsor = class extends Sponsor {
18358
- token;
18359
18304
  constructor(options = globalThis.globalEnvOption) {
18360
18305
  super(
18361
18306
  options,
@@ -19001,7 +18946,6 @@ var limitSwapOrderTransactionParams = async (params, chain) => {
19001
18946
 
19002
18947
  // src/actions/FirstClassActions.ts
19003
18948
  var FirstClassActions = class {
19004
- chain;
19005
18949
  constructor(chain) {
19006
18950
  this.chain = chain;
19007
18951
  }
@@ -19469,9 +19413,6 @@ async function checkWalletAccessInitialization(walletAddr) {
19469
19413
 
19470
19414
  // src/wallet/FunWallet.ts
19471
19415
  var FunWallet = class extends FirstClassActions {
19472
- walletUniqueId;
19473
- userInfo;
19474
- address;
19475
19416
  /**
19476
19417
  * Creates FunWallet object
19477
19418
  * @constructor