@levrbet/shared 0.5.52 → 0.5.53
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.
|
@@ -14730,4 +14730,139 @@ export declare const abis: {
|
|
|
14730
14730
|
readonly stateMutability: "view";
|
|
14731
14731
|
readonly type: "function";
|
|
14732
14732
|
}];
|
|
14733
|
+
readonly usdcToken: readonly [{
|
|
14734
|
+
readonly type: "event";
|
|
14735
|
+
readonly name: "Approval";
|
|
14736
|
+
readonly inputs: readonly [{
|
|
14737
|
+
readonly indexed: true;
|
|
14738
|
+
readonly name: "owner";
|
|
14739
|
+
readonly type: "address";
|
|
14740
|
+
}, {
|
|
14741
|
+
readonly indexed: true;
|
|
14742
|
+
readonly name: "spender";
|
|
14743
|
+
readonly type: "address";
|
|
14744
|
+
}, {
|
|
14745
|
+
readonly indexed: false;
|
|
14746
|
+
readonly name: "value";
|
|
14747
|
+
readonly type: "uint256";
|
|
14748
|
+
}];
|
|
14749
|
+
}, {
|
|
14750
|
+
readonly type: "event";
|
|
14751
|
+
readonly name: "Transfer";
|
|
14752
|
+
readonly inputs: readonly [{
|
|
14753
|
+
readonly indexed: true;
|
|
14754
|
+
readonly name: "from";
|
|
14755
|
+
readonly type: "address";
|
|
14756
|
+
}, {
|
|
14757
|
+
readonly indexed: true;
|
|
14758
|
+
readonly name: "to";
|
|
14759
|
+
readonly type: "address";
|
|
14760
|
+
}, {
|
|
14761
|
+
readonly indexed: false;
|
|
14762
|
+
readonly name: "value";
|
|
14763
|
+
readonly type: "uint256";
|
|
14764
|
+
}];
|
|
14765
|
+
}, {
|
|
14766
|
+
readonly type: "function";
|
|
14767
|
+
readonly name: "allowance";
|
|
14768
|
+
readonly stateMutability: "view";
|
|
14769
|
+
readonly inputs: readonly [{
|
|
14770
|
+
readonly name: "owner";
|
|
14771
|
+
readonly type: "address";
|
|
14772
|
+
}, {
|
|
14773
|
+
readonly name: "spender";
|
|
14774
|
+
readonly type: "address";
|
|
14775
|
+
}];
|
|
14776
|
+
readonly outputs: readonly [{
|
|
14777
|
+
readonly type: "uint256";
|
|
14778
|
+
}];
|
|
14779
|
+
}, {
|
|
14780
|
+
readonly type: "function";
|
|
14781
|
+
readonly name: "approve";
|
|
14782
|
+
readonly stateMutability: "nonpayable";
|
|
14783
|
+
readonly inputs: readonly [{
|
|
14784
|
+
readonly name: "spender";
|
|
14785
|
+
readonly type: "address";
|
|
14786
|
+
}, {
|
|
14787
|
+
readonly name: "amount";
|
|
14788
|
+
readonly type: "uint256";
|
|
14789
|
+
}];
|
|
14790
|
+
readonly outputs: readonly [{
|
|
14791
|
+
readonly type: "bool";
|
|
14792
|
+
}];
|
|
14793
|
+
}, {
|
|
14794
|
+
readonly type: "function";
|
|
14795
|
+
readonly name: "balanceOf";
|
|
14796
|
+
readonly stateMutability: "view";
|
|
14797
|
+
readonly inputs: readonly [{
|
|
14798
|
+
readonly name: "account";
|
|
14799
|
+
readonly type: "address";
|
|
14800
|
+
}];
|
|
14801
|
+
readonly outputs: readonly [{
|
|
14802
|
+
readonly type: "uint256";
|
|
14803
|
+
}];
|
|
14804
|
+
}, {
|
|
14805
|
+
readonly type: "function";
|
|
14806
|
+
readonly name: "decimals";
|
|
14807
|
+
readonly stateMutability: "view";
|
|
14808
|
+
readonly inputs: readonly [];
|
|
14809
|
+
readonly outputs: readonly [{
|
|
14810
|
+
readonly type: "uint8";
|
|
14811
|
+
}];
|
|
14812
|
+
}, {
|
|
14813
|
+
readonly type: "function";
|
|
14814
|
+
readonly name: "name";
|
|
14815
|
+
readonly stateMutability: "view";
|
|
14816
|
+
readonly inputs: readonly [];
|
|
14817
|
+
readonly outputs: readonly [{
|
|
14818
|
+
readonly type: "string";
|
|
14819
|
+
}];
|
|
14820
|
+
}, {
|
|
14821
|
+
readonly type: "function";
|
|
14822
|
+
readonly name: "symbol";
|
|
14823
|
+
readonly stateMutability: "view";
|
|
14824
|
+
readonly inputs: readonly [];
|
|
14825
|
+
readonly outputs: readonly [{
|
|
14826
|
+
readonly type: "string";
|
|
14827
|
+
}];
|
|
14828
|
+
}, {
|
|
14829
|
+
readonly type: "function";
|
|
14830
|
+
readonly name: "totalSupply";
|
|
14831
|
+
readonly stateMutability: "view";
|
|
14832
|
+
readonly inputs: readonly [];
|
|
14833
|
+
readonly outputs: readonly [{
|
|
14834
|
+
readonly type: "uint256";
|
|
14835
|
+
}];
|
|
14836
|
+
}, {
|
|
14837
|
+
readonly type: "function";
|
|
14838
|
+
readonly name: "transfer";
|
|
14839
|
+
readonly stateMutability: "nonpayable";
|
|
14840
|
+
readonly inputs: readonly [{
|
|
14841
|
+
readonly name: "recipient";
|
|
14842
|
+
readonly type: "address";
|
|
14843
|
+
}, {
|
|
14844
|
+
readonly name: "amount";
|
|
14845
|
+
readonly type: "uint256";
|
|
14846
|
+
}];
|
|
14847
|
+
readonly outputs: readonly [{
|
|
14848
|
+
readonly type: "bool";
|
|
14849
|
+
}];
|
|
14850
|
+
}, {
|
|
14851
|
+
readonly type: "function";
|
|
14852
|
+
readonly name: "transferFrom";
|
|
14853
|
+
readonly stateMutability: "nonpayable";
|
|
14854
|
+
readonly inputs: readonly [{
|
|
14855
|
+
readonly name: "sender";
|
|
14856
|
+
readonly type: "address";
|
|
14857
|
+
}, {
|
|
14858
|
+
readonly name: "recipient";
|
|
14859
|
+
readonly type: "address";
|
|
14860
|
+
}, {
|
|
14861
|
+
readonly name: "amount";
|
|
14862
|
+
readonly type: "uint256";
|
|
14863
|
+
}];
|
|
14864
|
+
readonly outputs: readonly [{
|
|
14865
|
+
readonly type: "bool";
|
|
14866
|
+
}];
|
|
14867
|
+
}];
|
|
14733
14868
|
};
|
|
@@ -24,6 +24,7 @@ const LevrOrderbookLens_1 = __importDefault(require("./LevrOrderbookLens"));
|
|
|
24
24
|
const LevrOverUnderMarket_1 = __importDefault(require("./LevrOverUnderMarket"));
|
|
25
25
|
const LevrPythFeed_1 = __importDefault(require("./LevrPythFeed"));
|
|
26
26
|
const LevrUtil_1 = __importDefault(require("./LevrUtil"));
|
|
27
|
+
const viem_1 = require("viem");
|
|
27
28
|
exports.abis = {
|
|
28
29
|
levrBetCreditManager: LevrBetCreditManager_1.default,
|
|
29
30
|
levrConfigProvider: LevrConfigProvider_1.default,
|
|
@@ -45,5 +46,6 @@ exports.abis = {
|
|
|
45
46
|
levrOverUnderMarket: LevrOverUnderMarket_1.default,
|
|
46
47
|
levrPythFeed: LevrPythFeed_1.default,
|
|
47
48
|
levrUtil: LevrUtil_1.default,
|
|
49
|
+
usdcToken: viem_1.erc20Abi,
|
|
48
50
|
};
|
|
49
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/contracts/abis/index.ts"],"names":[],"mappings":";;;;;;AAAA,kFAAyD;AACzD,8EAAqD;AACrD,0EAAiD;AACjD,8EAAqD;AACrD,wEAA+C;AAC/C,oFAA2D;AAC3D,gEAAuC;AACvC,sEAA6C;AAC7C,wEAA+C;AAC/C,sFAA6D;AAC7D,0EAAiD;AACjD,4EAAmD;AACnD,oEAA2C;AAC3C,oEAA2C;AAC3C,kEAAyC;AACzC,oEAA2C;AAC3C,4EAAmD;AACnD,gFAAuD;AACvD,kEAAyC;AACzC,0DAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/contracts/abis/index.ts"],"names":[],"mappings":";;;;;;AAAA,kFAAyD;AACzD,8EAAqD;AACrD,0EAAiD;AACjD,8EAAqD;AACrD,wEAA+C;AAC/C,oFAA2D;AAC3D,gEAAuC;AACvC,sEAA6C;AAC7C,wEAA+C;AAC/C,sFAA6D;AAC7D,0EAAiD;AACjD,4EAAmD;AACnD,oEAA2C;AAC3C,oEAA2C;AAC3C,kEAAyC;AACzC,oEAA2C;AAC3C,4EAAmD;AACnD,gFAAuD;AACvD,kEAAyC;AACzC,0DAAiC;AACjC,+BAA+B;AAElB,QAAA,IAAI,GAAG;IAChB,oBAAoB,EAAE,8BAAoB;IAC1C,kBAAkB,EAAE,4BAAkB;IACtC,gBAAgB,EAAE,0BAAgB;IAClC,kBAAkB,EAAE,4BAAkB;IACtC,eAAe,EAAE,yBAAe;IAChC,qBAAqB,EAAE,+BAAqB;IAC5C,WAAW,EAAE,qBAAW;IACxB,cAAc,EAAE,wBAAc;IAC9B,eAAe,EAAE,yBAAe;IAChC,sBAAsB,EAAE,gCAAsB;IAC9C,gBAAgB,EAAE,0BAAgB;IAClC,iBAAiB,EAAE,2BAAiB;IACpC,aAAa,EAAE,uBAAa;IAC5B,aAAa,EAAE,uBAAa;IAC5B,YAAY,EAAE,sBAAY;IAC1B,aAAa,EAAE,uBAAa;IAC5B,iBAAiB,EAAE,2BAAiB;IACpC,mBAAmB,EAAE,6BAAmB;IACxC,YAAY,EAAE,sBAAY;IAC1B,QAAQ,EAAE,kBAAQ;IAClB,SAAS,EAAE,eAAQ;CACb,CAAA"}
|
|
@@ -20,6 +20,7 @@ import type LevrOverUnderMarket from "./abis/LevrOverUnderMarket";
|
|
|
20
20
|
import type LevrPythFeed from "./abis/LevrPythFeed";
|
|
21
21
|
import type LevrUtil from "./abis/LevrUtil";
|
|
22
22
|
import type { CustomWalletClient } from "./instances";
|
|
23
|
+
import { erc20Abi } from "viem";
|
|
23
24
|
export type LevrBetCreditManagerContractInstance = GetContractReturnType<typeof LevrBetCreditManager, CustomWalletClient>;
|
|
24
25
|
export type LevrConfigProviderContractInstance = GetContractReturnType<typeof LevrConfigProvider, CustomWalletClient>;
|
|
25
26
|
export type LevrFeeCollectorContractInstance = GetContractReturnType<typeof LevrFeeCollector, CustomWalletClient>;
|
|
@@ -40,6 +41,7 @@ export type LevrOrderbookLensContractInstance = GetContractReturnType<typeof Lev
|
|
|
40
41
|
export type LevrOverUnderMarketContractInstance = GetContractReturnType<typeof LevrOverUnderMarket, CustomWalletClient>;
|
|
41
42
|
export type LevrPythFeedContractInstance = GetContractReturnType<typeof LevrPythFeed, CustomWalletClient>;
|
|
42
43
|
export type LevrUtilContractInstance = GetContractReturnType<typeof LevrUtil, CustomWalletClient>;
|
|
44
|
+
export type Erc20UsdcContractInstance = GetContractReturnType<typeof erc20Abi, CustomWalletClient>;
|
|
43
45
|
export type ContractTypeMap = {
|
|
44
46
|
levrBetCreditManager: LevrBetCreditManagerContractInstance;
|
|
45
47
|
levrConfigProvider: LevrConfigProviderContractInstance;
|
|
@@ -61,4 +63,5 @@ export type ContractTypeMap = {
|
|
|
61
63
|
levrOverUnderMarket: LevrOverUnderMarketContractInstance;
|
|
62
64
|
levrPythFeed: LevrPythFeedContractInstance;
|
|
63
65
|
levrUtil: LevrUtilContractInstance;
|
|
66
|
+
usdcToken: Erc20UsdcContractInstance;
|
|
64
67
|
};
|