@funkit/core 2.1.2-next.1 → 2.1.2-next.2
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 +409 -0
- package/dist/index.js.map +3 -3
- package/dist/src/common/constants.d.ts +42 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8567,6 +8567,411 @@ var univ3quoter_default = { name: "univ3quoter", abi: [], addresses: { "1": "0x6
|
|
|
8567
8567
|
// src/abis/univ3router.json
|
|
8568
8568
|
var univ3router_default = { name: "univ3router", abi: [], addresses: { "1": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "5": "0xc104A3e2CDC1c29a2a284C515d4e10102D2e39cE", "10": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", "137": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "8453": "0x2626664c2603336E57B271c5C0b26F421741e481", "36865": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "42161": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "421614": "0xE592427A0AEce92De3Edee1F18E0157C05861564" } };
|
|
8569
8569
|
|
|
8570
|
+
// src/abis/USDT.json
|
|
8571
|
+
var USDT_default = {
|
|
8572
|
+
abi: [
|
|
8573
|
+
{
|
|
8574
|
+
constant: true,
|
|
8575
|
+
inputs: [],
|
|
8576
|
+
name: "name",
|
|
8577
|
+
outputs: [{ name: "", type: "string" }],
|
|
8578
|
+
payable: false,
|
|
8579
|
+
stateMutability: "view",
|
|
8580
|
+
type: "function"
|
|
8581
|
+
},
|
|
8582
|
+
{
|
|
8583
|
+
constant: false,
|
|
8584
|
+
inputs: [{ name: "_upgradedAddress", type: "address" }],
|
|
8585
|
+
name: "deprecate",
|
|
8586
|
+
outputs: [],
|
|
8587
|
+
payable: false,
|
|
8588
|
+
stateMutability: "nonpayable",
|
|
8589
|
+
type: "function"
|
|
8590
|
+
},
|
|
8591
|
+
{
|
|
8592
|
+
constant: false,
|
|
8593
|
+
inputs: [
|
|
8594
|
+
{ name: "_spender", type: "address" },
|
|
8595
|
+
{ name: "_value", type: "uint256" }
|
|
8596
|
+
],
|
|
8597
|
+
name: "approve",
|
|
8598
|
+
outputs: [],
|
|
8599
|
+
payable: false,
|
|
8600
|
+
stateMutability: "nonpayable",
|
|
8601
|
+
type: "function"
|
|
8602
|
+
},
|
|
8603
|
+
{
|
|
8604
|
+
constant: true,
|
|
8605
|
+
inputs: [],
|
|
8606
|
+
name: "deprecated",
|
|
8607
|
+
outputs: [{ name: "", type: "bool" }],
|
|
8608
|
+
payable: false,
|
|
8609
|
+
stateMutability: "view",
|
|
8610
|
+
type: "function"
|
|
8611
|
+
},
|
|
8612
|
+
{
|
|
8613
|
+
constant: false,
|
|
8614
|
+
inputs: [{ name: "_evilUser", type: "address" }],
|
|
8615
|
+
name: "addBlackList",
|
|
8616
|
+
outputs: [],
|
|
8617
|
+
payable: false,
|
|
8618
|
+
stateMutability: "nonpayable",
|
|
8619
|
+
type: "function"
|
|
8620
|
+
},
|
|
8621
|
+
{
|
|
8622
|
+
constant: true,
|
|
8623
|
+
inputs: [],
|
|
8624
|
+
name: "totalSupply",
|
|
8625
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
8626
|
+
payable: false,
|
|
8627
|
+
stateMutability: "view",
|
|
8628
|
+
type: "function"
|
|
8629
|
+
},
|
|
8630
|
+
{
|
|
8631
|
+
constant: false,
|
|
8632
|
+
inputs: [
|
|
8633
|
+
{ name: "_from", type: "address" },
|
|
8634
|
+
{ name: "_to", type: "address" },
|
|
8635
|
+
{ name: "_value", type: "uint256" }
|
|
8636
|
+
],
|
|
8637
|
+
name: "transferFrom",
|
|
8638
|
+
outputs: [],
|
|
8639
|
+
payable: false,
|
|
8640
|
+
stateMutability: "nonpayable",
|
|
8641
|
+
type: "function"
|
|
8642
|
+
},
|
|
8643
|
+
{
|
|
8644
|
+
constant: true,
|
|
8645
|
+
inputs: [],
|
|
8646
|
+
name: "upgradedAddress",
|
|
8647
|
+
outputs: [{ name: "", type: "address" }],
|
|
8648
|
+
payable: false,
|
|
8649
|
+
stateMutability: "view",
|
|
8650
|
+
type: "function"
|
|
8651
|
+
},
|
|
8652
|
+
{
|
|
8653
|
+
constant: true,
|
|
8654
|
+
inputs: [{ name: "", type: "address" }],
|
|
8655
|
+
name: "balances",
|
|
8656
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
8657
|
+
payable: false,
|
|
8658
|
+
stateMutability: "view",
|
|
8659
|
+
type: "function"
|
|
8660
|
+
},
|
|
8661
|
+
{
|
|
8662
|
+
constant: true,
|
|
8663
|
+
inputs: [],
|
|
8664
|
+
name: "decimals",
|
|
8665
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
8666
|
+
payable: false,
|
|
8667
|
+
stateMutability: "view",
|
|
8668
|
+
type: "function"
|
|
8669
|
+
},
|
|
8670
|
+
{
|
|
8671
|
+
constant: true,
|
|
8672
|
+
inputs: [],
|
|
8673
|
+
name: "maximumFee",
|
|
8674
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
8675
|
+
payable: false,
|
|
8676
|
+
stateMutability: "view",
|
|
8677
|
+
type: "function"
|
|
8678
|
+
},
|
|
8679
|
+
{
|
|
8680
|
+
constant: true,
|
|
8681
|
+
inputs: [],
|
|
8682
|
+
name: "_totalSupply",
|
|
8683
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
8684
|
+
payable: false,
|
|
8685
|
+
stateMutability: "view",
|
|
8686
|
+
type: "function"
|
|
8687
|
+
},
|
|
8688
|
+
{
|
|
8689
|
+
constant: false,
|
|
8690
|
+
inputs: [],
|
|
8691
|
+
name: "unpause",
|
|
8692
|
+
outputs: [],
|
|
8693
|
+
payable: false,
|
|
8694
|
+
stateMutability: "nonpayable",
|
|
8695
|
+
type: "function"
|
|
8696
|
+
},
|
|
8697
|
+
{
|
|
8698
|
+
constant: true,
|
|
8699
|
+
inputs: [{ name: "_maker", type: "address" }],
|
|
8700
|
+
name: "getBlackListStatus",
|
|
8701
|
+
outputs: [{ name: "", type: "bool" }],
|
|
8702
|
+
payable: false,
|
|
8703
|
+
stateMutability: "view",
|
|
8704
|
+
type: "function"
|
|
8705
|
+
},
|
|
8706
|
+
{
|
|
8707
|
+
constant: true,
|
|
8708
|
+
inputs: [
|
|
8709
|
+
{ name: "", type: "address" },
|
|
8710
|
+
{ name: "", type: "address" }
|
|
8711
|
+
],
|
|
8712
|
+
name: "allowed",
|
|
8713
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
8714
|
+
payable: false,
|
|
8715
|
+
stateMutability: "view",
|
|
8716
|
+
type: "function"
|
|
8717
|
+
},
|
|
8718
|
+
{
|
|
8719
|
+
constant: true,
|
|
8720
|
+
inputs: [],
|
|
8721
|
+
name: "paused",
|
|
8722
|
+
outputs: [{ name: "", type: "bool" }],
|
|
8723
|
+
payable: false,
|
|
8724
|
+
stateMutability: "view",
|
|
8725
|
+
type: "function"
|
|
8726
|
+
},
|
|
8727
|
+
{
|
|
8728
|
+
constant: true,
|
|
8729
|
+
inputs: [{ name: "who", type: "address" }],
|
|
8730
|
+
name: "balanceOf",
|
|
8731
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
8732
|
+
payable: false,
|
|
8733
|
+
stateMutability: "view",
|
|
8734
|
+
type: "function"
|
|
8735
|
+
},
|
|
8736
|
+
{
|
|
8737
|
+
constant: false,
|
|
8738
|
+
inputs: [],
|
|
8739
|
+
name: "pause",
|
|
8740
|
+
outputs: [],
|
|
8741
|
+
payable: false,
|
|
8742
|
+
stateMutability: "nonpayable",
|
|
8743
|
+
type: "function"
|
|
8744
|
+
},
|
|
8745
|
+
{
|
|
8746
|
+
constant: true,
|
|
8747
|
+
inputs: [],
|
|
8748
|
+
name: "getOwner",
|
|
8749
|
+
outputs: [{ name: "", type: "address" }],
|
|
8750
|
+
payable: false,
|
|
8751
|
+
stateMutability: "view",
|
|
8752
|
+
type: "function"
|
|
8753
|
+
},
|
|
8754
|
+
{
|
|
8755
|
+
constant: true,
|
|
8756
|
+
inputs: [],
|
|
8757
|
+
name: "owner",
|
|
8758
|
+
outputs: [{ name: "", type: "address" }],
|
|
8759
|
+
payable: false,
|
|
8760
|
+
stateMutability: "view",
|
|
8761
|
+
type: "function"
|
|
8762
|
+
},
|
|
8763
|
+
{
|
|
8764
|
+
constant: true,
|
|
8765
|
+
inputs: [],
|
|
8766
|
+
name: "symbol",
|
|
8767
|
+
outputs: [{ name: "", type: "string" }],
|
|
8768
|
+
payable: false,
|
|
8769
|
+
stateMutability: "view",
|
|
8770
|
+
type: "function"
|
|
8771
|
+
},
|
|
8772
|
+
{
|
|
8773
|
+
constant: false,
|
|
8774
|
+
inputs: [
|
|
8775
|
+
{ name: "_to", type: "address" },
|
|
8776
|
+
{ name: "_value", type: "uint256" }
|
|
8777
|
+
],
|
|
8778
|
+
name: "transfer",
|
|
8779
|
+
outputs: [],
|
|
8780
|
+
payable: false,
|
|
8781
|
+
stateMutability: "nonpayable",
|
|
8782
|
+
type: "function"
|
|
8783
|
+
},
|
|
8784
|
+
{
|
|
8785
|
+
constant: false,
|
|
8786
|
+
inputs: [
|
|
8787
|
+
{ name: "newBasisPoints", type: "uint256" },
|
|
8788
|
+
{ name: "newMaxFee", type: "uint256" }
|
|
8789
|
+
],
|
|
8790
|
+
name: "setParams",
|
|
8791
|
+
outputs: [],
|
|
8792
|
+
payable: false,
|
|
8793
|
+
stateMutability: "nonpayable",
|
|
8794
|
+
type: "function"
|
|
8795
|
+
},
|
|
8796
|
+
{
|
|
8797
|
+
constant: false,
|
|
8798
|
+
inputs: [{ name: "amount", type: "uint256" }],
|
|
8799
|
+
name: "issue",
|
|
8800
|
+
outputs: [],
|
|
8801
|
+
payable: false,
|
|
8802
|
+
stateMutability: "nonpayable",
|
|
8803
|
+
type: "function"
|
|
8804
|
+
},
|
|
8805
|
+
{
|
|
8806
|
+
constant: false,
|
|
8807
|
+
inputs: [{ name: "amount", type: "uint256" }],
|
|
8808
|
+
name: "redeem",
|
|
8809
|
+
outputs: [],
|
|
8810
|
+
payable: false,
|
|
8811
|
+
stateMutability: "nonpayable",
|
|
8812
|
+
type: "function"
|
|
8813
|
+
},
|
|
8814
|
+
{
|
|
8815
|
+
constant: true,
|
|
8816
|
+
inputs: [
|
|
8817
|
+
{ name: "_owner", type: "address" },
|
|
8818
|
+
{ name: "_spender", type: "address" }
|
|
8819
|
+
],
|
|
8820
|
+
name: "allowance",
|
|
8821
|
+
outputs: [{ name: "remaining", type: "uint256" }],
|
|
8822
|
+
payable: false,
|
|
8823
|
+
stateMutability: "view",
|
|
8824
|
+
type: "function"
|
|
8825
|
+
},
|
|
8826
|
+
{
|
|
8827
|
+
constant: true,
|
|
8828
|
+
inputs: [],
|
|
8829
|
+
name: "basisPointsRate",
|
|
8830
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
8831
|
+
payable: false,
|
|
8832
|
+
stateMutability: "view",
|
|
8833
|
+
type: "function"
|
|
8834
|
+
},
|
|
8835
|
+
{
|
|
8836
|
+
constant: true,
|
|
8837
|
+
inputs: [{ name: "", type: "address" }],
|
|
8838
|
+
name: "isBlackListed",
|
|
8839
|
+
outputs: [{ name: "", type: "bool" }],
|
|
8840
|
+
payable: false,
|
|
8841
|
+
stateMutability: "view",
|
|
8842
|
+
type: "function"
|
|
8843
|
+
},
|
|
8844
|
+
{
|
|
8845
|
+
constant: false,
|
|
8846
|
+
inputs: [{ name: "_clearedUser", type: "address" }],
|
|
8847
|
+
name: "removeBlackList",
|
|
8848
|
+
outputs: [],
|
|
8849
|
+
payable: false,
|
|
8850
|
+
stateMutability: "nonpayable",
|
|
8851
|
+
type: "function"
|
|
8852
|
+
},
|
|
8853
|
+
{
|
|
8854
|
+
constant: true,
|
|
8855
|
+
inputs: [],
|
|
8856
|
+
name: "MAX_UINT",
|
|
8857
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
8858
|
+
payable: false,
|
|
8859
|
+
stateMutability: "view",
|
|
8860
|
+
type: "function"
|
|
8861
|
+
},
|
|
8862
|
+
{
|
|
8863
|
+
constant: false,
|
|
8864
|
+
inputs: [{ name: "newOwner", type: "address" }],
|
|
8865
|
+
name: "transferOwnership",
|
|
8866
|
+
outputs: [],
|
|
8867
|
+
payable: false,
|
|
8868
|
+
stateMutability: "nonpayable",
|
|
8869
|
+
type: "function"
|
|
8870
|
+
},
|
|
8871
|
+
{
|
|
8872
|
+
constant: false,
|
|
8873
|
+
inputs: [{ name: "_blackListedUser", type: "address" }],
|
|
8874
|
+
name: "destroyBlackFunds",
|
|
8875
|
+
outputs: [],
|
|
8876
|
+
payable: false,
|
|
8877
|
+
stateMutability: "nonpayable",
|
|
8878
|
+
type: "function"
|
|
8879
|
+
},
|
|
8880
|
+
{
|
|
8881
|
+
inputs: [
|
|
8882
|
+
{ name: "_initialSupply", type: "uint256" },
|
|
8883
|
+
{ name: "_name", type: "string" },
|
|
8884
|
+
{ name: "_symbol", type: "string" },
|
|
8885
|
+
{ name: "_decimals", type: "uint256" }
|
|
8886
|
+
],
|
|
8887
|
+
payable: false,
|
|
8888
|
+
stateMutability: "nonpayable",
|
|
8889
|
+
type: "constructor"
|
|
8890
|
+
},
|
|
8891
|
+
{
|
|
8892
|
+
anonymous: false,
|
|
8893
|
+
inputs: [{ indexed: false, name: "amount", type: "uint256" }],
|
|
8894
|
+
name: "Issue",
|
|
8895
|
+
type: "event"
|
|
8896
|
+
},
|
|
8897
|
+
{
|
|
8898
|
+
anonymous: false,
|
|
8899
|
+
inputs: [{ indexed: false, name: "amount", type: "uint256" }],
|
|
8900
|
+
name: "Redeem",
|
|
8901
|
+
type: "event"
|
|
8902
|
+
},
|
|
8903
|
+
{
|
|
8904
|
+
anonymous: false,
|
|
8905
|
+
inputs: [{ indexed: false, name: "newAddress", type: "address" }],
|
|
8906
|
+
name: "Deprecate",
|
|
8907
|
+
type: "event"
|
|
8908
|
+
},
|
|
8909
|
+
{
|
|
8910
|
+
anonymous: false,
|
|
8911
|
+
inputs: [
|
|
8912
|
+
{ indexed: false, name: "feeBasisPoints", type: "uint256" },
|
|
8913
|
+
{ indexed: false, name: "maxFee", type: "uint256" }
|
|
8914
|
+
],
|
|
8915
|
+
name: "Params",
|
|
8916
|
+
type: "event"
|
|
8917
|
+
},
|
|
8918
|
+
{
|
|
8919
|
+
anonymous: false,
|
|
8920
|
+
inputs: [
|
|
8921
|
+
{ indexed: false, name: "_blackListedUser", type: "address" },
|
|
8922
|
+
{ indexed: false, name: "_balance", type: "uint256" }
|
|
8923
|
+
],
|
|
8924
|
+
name: "DestroyedBlackFunds",
|
|
8925
|
+
type: "event"
|
|
8926
|
+
},
|
|
8927
|
+
{
|
|
8928
|
+
anonymous: false,
|
|
8929
|
+
inputs: [{ indexed: false, name: "_user", type: "address" }],
|
|
8930
|
+
name: "AddedBlackList",
|
|
8931
|
+
type: "event"
|
|
8932
|
+
},
|
|
8933
|
+
{
|
|
8934
|
+
anonymous: false,
|
|
8935
|
+
inputs: [{ indexed: false, name: "_user", type: "address" }],
|
|
8936
|
+
name: "RemovedBlackList",
|
|
8937
|
+
type: "event"
|
|
8938
|
+
},
|
|
8939
|
+
{
|
|
8940
|
+
anonymous: false,
|
|
8941
|
+
inputs: [
|
|
8942
|
+
{ indexed: true, name: "owner", type: "address" },
|
|
8943
|
+
{ indexed: true, name: "spender", type: "address" },
|
|
8944
|
+
{ indexed: false, name: "value", type: "uint256" }
|
|
8945
|
+
],
|
|
8946
|
+
name: "Approval",
|
|
8947
|
+
type: "event"
|
|
8948
|
+
},
|
|
8949
|
+
{
|
|
8950
|
+
anonymous: false,
|
|
8951
|
+
inputs: [
|
|
8952
|
+
{ indexed: true, name: "from", type: "address" },
|
|
8953
|
+
{ indexed: true, name: "to", type: "address" },
|
|
8954
|
+
{ indexed: false, name: "value", type: "uint256" }
|
|
8955
|
+
],
|
|
8956
|
+
name: "Transfer",
|
|
8957
|
+
type: "event"
|
|
8958
|
+
},
|
|
8959
|
+
{ anonymous: false, inputs: [], name: "Pause", type: "event" },
|
|
8960
|
+
{ anonymous: false, inputs: [], name: "Unpause", type: "event" }
|
|
8961
|
+
],
|
|
8962
|
+
addresses: {
|
|
8963
|
+
"1": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
|
|
8964
|
+
"5": "0x5c392FFF741F3f1e1544d308f9ADD02a3C38BBaA",
|
|
8965
|
+
"10": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
|
|
8966
|
+
"137": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
|
|
8967
|
+
"8453": "",
|
|
8968
|
+
"36865": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
|
|
8969
|
+
"42161": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
|
|
8970
|
+
"421614": "0xc05e448FfDDcE0976CB4dFbFB188bD8Cc3d5c35f",
|
|
8971
|
+
"534352": "0xf55bec9cafdbe8730f096aa55dad6d22d44099df"
|
|
8972
|
+
}
|
|
8973
|
+
};
|
|
8974
|
+
|
|
8570
8975
|
// src/abis/UserAuthentication.json
|
|
8571
8976
|
var UserAuthentication_default = {
|
|
8572
8977
|
name: "UserAuthentication",
|
|
@@ -11762,6 +12167,7 @@ var APPROVE_AND_EXEC_ABI = ApproveAndExec_default["abi"];
|
|
|
11762
12167
|
var APPROVE_AND_SWAP_ABI = ApproveAndSwap_default["abi"];
|
|
11763
12168
|
var ENTRYPOINT_ABI = EntryPoint_default["abi"];
|
|
11764
12169
|
var ERC20_ABI = ERC20_default["abi"];
|
|
12170
|
+
var USDT_ABI = USDT_default["abi"];
|
|
11765
12171
|
var WALLET_ABI = FunWallet_default["abi"];
|
|
11766
12172
|
var FACTORY_ABI = FunWalletFactory_default["abi"];
|
|
11767
12173
|
var GASLESS_PAYMASTER_ABI = GaslessPaymaster_default["abi"];
|
|
@@ -11780,6 +12186,7 @@ var ENTRYPOINT_CONTRACT_INTERFACE = new ContractInterface(
|
|
|
11780
12186
|
);
|
|
11781
12187
|
var ERC721_CONTRACT_INTERFACE = new ContractInterface(ERC_721_ABI);
|
|
11782
12188
|
var ERC20_CONTRACT_INTERFACE = new ContractInterface(ERC20_ABI);
|
|
12189
|
+
var USDT_CONTRACT_INTERFACE = new ContractInterface(USDT_ABI);
|
|
11783
12190
|
var FACTORY_CONTRACT_INTERFACE = new ContractInterface(FACTORY_ABI);
|
|
11784
12191
|
var GASLESS_PAYMASTER_CONTRACT_INTERFACE = new ContractInterface(
|
|
11785
12192
|
GASLESS_PAYMASTER_ABI
|
|
@@ -16107,6 +16514,8 @@ export {
|
|
|
16107
16514
|
UNISWAPV2ROUTER02_INTERFACE,
|
|
16108
16515
|
UNISWAP_V3_LIMIT_ORDER_ABI,
|
|
16109
16516
|
UNISWAP_V3_LIMIT_ORDER_CONTRACT_INTERFACE,
|
|
16517
|
+
USDT_ABI,
|
|
16518
|
+
USDT_CONTRACT_INTERFACE,
|
|
16110
16519
|
USER_AUTHENTICATION_ABI,
|
|
16111
16520
|
USER_AUTHENTICATION_CONTRACT_INTERFACE,
|
|
16112
16521
|
UniswapPoolFeeOptions,
|