@moonwell-fi/moonwell-sdk 0.21.0 → 0.22.0
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/CHANGELOG.md +41 -0
- package/README.md +9 -3
- package/_cjs/actions/beam/common.js +1 -2
- package/_cjs/actions/beam/common.js.map +1 -1
- package/_cjs/actions/core/markets/common.js +146 -96
- package/_cjs/actions/core/markets/common.js.map +1 -1
- package/_cjs/actions/governance/getDelegates.js +2 -7
- package/_cjs/actions/governance/getDelegates.js.map +1 -1
- package/_cjs/actions/governance/getGovernanceTokenInfo.js +7 -12
- package/_cjs/actions/governance/getGovernanceTokenInfo.js.map +1 -1
- package/_cjs/actions/governance/getUserVoteReceipt.js +5 -4
- package/_cjs/actions/governance/getUserVoteReceipt.js.map +1 -1
- package/_cjs/actions/governance/governor-api-client.js.map +1 -1
- package/_cjs/actions/governance/proposals/common.js +73 -6
- package/_cjs/actions/governance/proposals/common.js.map +1 -1
- package/_cjs/actions/governance/proposals/getProposal.js +6 -73
- package/_cjs/actions/governance/proposals/getProposal.js.map +1 -1
- package/_cjs/actions/governance/proposals/getProposals.js +12 -92
- package/_cjs/actions/governance/proposals/getProposals.js.map +1 -1
- package/_cjs/client/createMoonwellClient.js +17 -15
- package/_cjs/client/createMoonwellClient.js.map +1 -1
- package/_cjs/common/index.js +4 -4
- package/_cjs/common/index.js.map +1 -1
- package/_cjs/environments/definitions/governance.js +1 -8
- package/_cjs/environments/definitions/governance.js.map +1 -1
- package/_cjs/environments/index.js +28 -42
- package/_cjs/environments/index.js.map +1 -1
- package/_cjs/environments/types/config.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/actions/beam/common.js +3 -2
- package/_esm/actions/beam/common.js.map +1 -1
- package/_esm/actions/core/markets/common.js +192 -104
- package/_esm/actions/core/markets/common.js.map +1 -1
- package/_esm/actions/governance/getDelegates.js +8 -8
- package/_esm/actions/governance/getDelegates.js.map +1 -1
- package/_esm/actions/governance/getGovernanceTokenInfo.js +20 -13
- package/_esm/actions/governance/getGovernanceTokenInfo.js.map +1 -1
- package/_esm/actions/governance/getUserVoteReceipt.js +16 -5
- package/_esm/actions/governance/getUserVoteReceipt.js.map +1 -1
- package/_esm/actions/governance/governor-api-client.js +14 -5
- package/_esm/actions/governance/governor-api-client.js.map +1 -1
- package/_esm/actions/governance/proposals/common.js +122 -10
- package/_esm/actions/governance/proposals/common.js.map +1 -1
- package/_esm/actions/governance/proposals/getProposal.js +16 -93
- package/_esm/actions/governance/proposals/getProposal.js.map +1 -1
- package/_esm/actions/governance/proposals/getProposals.js +37 -132
- package/_esm/actions/governance/proposals/getProposals.js.map +1 -1
- package/_esm/client/createMoonwellClient.js +24 -16
- package/_esm/client/createMoonwellClient.js.map +1 -1
- package/_esm/common/index.js +15 -4
- package/_esm/common/index.js.map +1 -1
- package/_esm/environments/definitions/governance.js +5 -9
- package/_esm/environments/definitions/governance.js.map +1 -1
- package/_esm/environments/index.js +2 -14
- package/_esm/environments/index.js.map +1 -1
- package/_esm/environments/types/config.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/actions/beam/common.d.ts +1 -1
- package/_types/actions/beam/common.d.ts.map +1 -1
- package/_types/actions/core/markets/common.d.ts.map +1 -1
- package/_types/actions/governance/getGovernanceTokenInfo.d.ts.map +1 -1
- package/_types/actions/governance/getUserVoteReceipt.d.ts.map +1 -1
- package/_types/actions/governance/governor-api-client.d.ts +14 -5
- package/_types/actions/governance/governor-api-client.d.ts.map +1 -1
- package/_types/actions/governance/proposals/common.d.ts +41 -6
- package/_types/actions/governance/proposals/common.d.ts.map +1 -1
- package/_types/actions/governance/proposals/getProposal.d.ts +1 -1
- package/_types/actions/governance/proposals/getProposal.d.ts.map +1 -1
- package/_types/actions/governance/proposals/getProposals.d.ts +1 -1
- package/_types/actions/governance/proposals/getProposals.d.ts.map +1 -1
- package/_types/client/createMoonwellClient.d.ts +9 -839
- package/_types/client/createMoonwellClient.d.ts.map +1 -1
- package/_types/common/index.d.ts +11 -0
- package/_types/common/index.d.ts.map +1 -1
- package/_types/environments/definitions/governance.d.ts +0 -7
- package/_types/environments/definitions/governance.d.ts.map +1 -1
- package/_types/environments/index.d.ts +5 -516
- package/_types/environments/index.d.ts.map +1 -1
- package/_types/environments/types/config.d.ts +14 -0
- package/_types/environments/types/config.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/actions/beam/common.ts +4 -9
- package/actions/core/markets/common.ts +307 -166
- package/actions/governance/getDelegates.ts +8 -8
- package/actions/governance/getGovernanceTokenInfo.ts +23 -15
- package/actions/governance/getUserVoteReceipt.ts +19 -5
- package/actions/governance/governor-api-client.ts +14 -5
- package/actions/governance/proposals/common.ts +143 -10
- package/actions/governance/proposals/getProposal.ts +29 -112
- package/actions/governance/proposals/getProposals.ts +52 -153
- package/client/createMoonwellClient.ts +32 -40
- package/common/index.ts +17 -6
- package/environments/definitions/governance.ts +5 -9
- package/environments/index.ts +28 -70
- package/environments/types/config.ts +14 -0
- package/errors/version.ts +1 -1
- package/package.json +1 -1
- package/_cjs/environments/definitions/moonbeam/contracts.js +0 -22
- package/_cjs/environments/definitions/moonbeam/contracts.js.map +0 -1
- package/_cjs/environments/definitions/moonbeam/core-markets.js +0 -65
- package/_cjs/environments/definitions/moonbeam/core-markets.js.map +0 -1
- package/_cjs/environments/definitions/moonbeam/custom.js +0 -24
- package/_cjs/environments/definitions/moonbeam/custom.js.map +0 -1
- package/_cjs/environments/definitions/moonbeam/environment.js +0 -38
- package/_cjs/environments/definitions/moonbeam/environment.js.map +0 -1
- package/_cjs/environments/definitions/moonbeam/tokens.js +0 -176
- package/_cjs/environments/definitions/moonbeam/tokens.js.map +0 -1
- package/_cjs/environments/definitions/moonriver/contracts.js +0 -19
- package/_cjs/environments/definitions/moonriver/contracts.js.map +0 -1
- package/_cjs/environments/definitions/moonriver/core-markets.js +0 -46
- package/_cjs/environments/definitions/moonriver/core-markets.js.map +0 -1
- package/_cjs/environments/definitions/moonriver/custom.js +0 -12
- package/_cjs/environments/definitions/moonriver/custom.js.map +0 -1
- package/_cjs/environments/definitions/moonriver/environment.js +0 -36
- package/_cjs/environments/definitions/moonriver/environment.js.map +0 -1
- package/_cjs/environments/definitions/moonriver/tokens.js +0 -110
- package/_cjs/environments/definitions/moonriver/tokens.js.map +0 -1
- package/_esm/environments/definitions/moonbeam/contracts.js +0 -19
- package/_esm/environments/definitions/moonbeam/contracts.js.map +0 -1
- package/_esm/environments/definitions/moonbeam/core-markets.js +0 -62
- package/_esm/environments/definitions/moonbeam/core-markets.js.map +0 -1
- package/_esm/environments/definitions/moonbeam/custom.js +0 -21
- package/_esm/environments/definitions/moonbeam/custom.js.map +0 -1
- package/_esm/environments/definitions/moonbeam/environment.js +0 -32
- package/_esm/environments/definitions/moonbeam/environment.js.map +0 -1
- package/_esm/environments/definitions/moonbeam/tokens.js +0 -173
- package/_esm/environments/definitions/moonbeam/tokens.js.map +0 -1
- package/_esm/environments/definitions/moonriver/contracts.js +0 -16
- package/_esm/environments/definitions/moonriver/contracts.js.map +0 -1
- package/_esm/environments/definitions/moonriver/core-markets.js +0 -43
- package/_esm/environments/definitions/moonriver/core-markets.js.map +0 -1
- package/_esm/environments/definitions/moonriver/custom.js +0 -9
- package/_esm/environments/definitions/moonriver/custom.js.map +0 -1
- package/_esm/environments/definitions/moonriver/environment.js +0 -31
- package/_esm/environments/definitions/moonriver/environment.js.map +0 -1
- package/_esm/environments/definitions/moonriver/tokens.js +0 -107
- package/_esm/environments/definitions/moonriver/tokens.js.map +0 -1
- package/_types/environments/definitions/moonbeam/contracts.d.ts +0 -14
- package/_types/environments/definitions/moonbeam/contracts.d.ts.map +0 -1
- package/_types/environments/definitions/moonbeam/core-markets.d.ts +0 -57
- package/_types/environments/definitions/moonbeam/core-markets.d.ts.map +0 -1
- package/_types/environments/definitions/moonbeam/custom.d.ts +0 -25
- package/_types/environments/definitions/moonbeam/custom.d.ts.map +0 -1
- package/_types/environments/definitions/moonbeam/environment.d.ts +0 -265
- package/_types/environments/definitions/moonbeam/environment.d.ts.map +0 -1
- package/_types/environments/definitions/moonbeam/tokens.d.ts +0 -171
- package/_types/environments/definitions/moonbeam/tokens.d.ts.map +0 -1
- package/_types/environments/definitions/moonriver/contracts.d.ts +0 -11
- package/_types/environments/definitions/moonriver/contracts.d.ts.map +0 -1
- package/_types/environments/definitions/moonriver/core-markets.d.ts +0 -38
- package/_types/environments/definitions/moonriver/core-markets.d.ts.map +0 -1
- package/_types/environments/definitions/moonriver/custom.d.ts +0 -8
- package/_types/environments/definitions/moonriver/custom.d.ts.map +0 -1
- package/_types/environments/definitions/moonriver/environment.d.ts +0 -159
- package/_types/environments/definitions/moonriver/environment.d.ts.map +0 -1
- package/_types/environments/definitions/moonriver/tokens.d.ts +0 -105
- package/_types/environments/definitions/moonriver/tokens.d.ts.map +0 -1
- package/environments/definitions/moonbeam/contracts.ts +0 -19
- package/environments/definitions/moonbeam/core-markets.ts +0 -62
- package/environments/definitions/moonbeam/custom.ts +0 -21
- package/environments/definitions/moonbeam/environment.ts +0 -39
- package/environments/definitions/moonbeam/tokens.ts +0 -173
- package/environments/definitions/moonriver/contracts.ts +0 -16
- package/environments/definitions/moonriver/core-markets.ts +0 -43
- package/environments/definitions/moonriver/custom.ts +0 -9
- package/environments/definitions/moonriver/environment.ts +0 -38
- package/environments/definitions/moonriver/tokens.ts +0 -107
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Narrow, Prettify } from "viem";
|
|
2
|
-
import { type ArbitrumEnvironment, type AvalancheEnvironment, type BaseEnvironment, type Environment, type EthereumEnvironment, type
|
|
2
|
+
import { type ArbitrumEnvironment, type AvalancheEnvironment, type BaseEnvironment, type Environment, type EthereumEnvironment, type OptimismEnvironment, type PolygonEnvironment, type SupportedChains } from "../environments/index.js";
|
|
3
3
|
export type MoonwellClient<environments = {
|
|
4
4
|
[name in SupportedChains]?: Environment;
|
|
5
5
|
}> = {
|
|
@@ -7,10 +7,6 @@ export type MoonwellClient<environments = {
|
|
|
7
7
|
[name in keyof environments as Extract<name, "base">]: BaseEnvironment;
|
|
8
8
|
} & {
|
|
9
9
|
[name in keyof environments as Extract<name, "optimism">]: OptimismEnvironment;
|
|
10
|
-
} & {
|
|
11
|
-
[name in keyof environments as Extract<name, "moonbeam">]: MoonbeamEnvironment;
|
|
12
|
-
} & {
|
|
13
|
-
[name in keyof environments as Extract<name, "moonriver">]: MoonriverEnvironment;
|
|
14
10
|
} & {
|
|
15
11
|
[name in keyof environments as Extract<name, "ethereum">]: EthereumEnvironment;
|
|
16
12
|
} & {
|
|
@@ -835,420 +831,7 @@ export declare const createMoonwellClient: <const networks>(config: {
|
|
|
835
831
|
multiRewarder: {
|
|
836
832
|
rewardToken: string;
|
|
837
833
|
}[];
|
|
838
|
-
}>; } & { [name_2 in keyof networks as Extract<name_2, "
|
|
839
|
-
readonly GLMR: {
|
|
840
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
841
|
-
readonly decimals: 18;
|
|
842
|
-
readonly name: "Moonbeam";
|
|
843
|
-
readonly symbol: "GLMR";
|
|
844
|
-
};
|
|
845
|
-
readonly WGLMR: {
|
|
846
|
-
readonly address: "0xAcc15dC74880C9944775448304B263D191c6077F";
|
|
847
|
-
readonly decimals: 18;
|
|
848
|
-
readonly name: "Wrapped GLMR";
|
|
849
|
-
readonly symbol: "WGLMR";
|
|
850
|
-
};
|
|
851
|
-
readonly MOONWELL_GLMR: {
|
|
852
|
-
readonly address: "0x091608f4e4a15335145be0A279483C0f8E4c7955";
|
|
853
|
-
readonly decimals: 8;
|
|
854
|
-
readonly name: "Moonwell GLMR";
|
|
855
|
-
readonly symbol: "mGLMR";
|
|
856
|
-
};
|
|
857
|
-
readonly xcDOT: {
|
|
858
|
-
readonly address: "0xffffffff1fcacbd218edc0eba20fc2308c778080";
|
|
859
|
-
readonly decimals: 10;
|
|
860
|
-
readonly name: "Polkadot";
|
|
861
|
-
readonly symbol: "xcDOT";
|
|
862
|
-
};
|
|
863
|
-
readonly MOONWELL_xcDOT: {
|
|
864
|
-
readonly address: "0xD22Da948c0aB3A27f5570b604f3ADef5F68211C3";
|
|
865
|
-
readonly decimals: 8;
|
|
866
|
-
readonly name: "Moonwell xcDOT";
|
|
867
|
-
readonly symbol: "mDOT";
|
|
868
|
-
};
|
|
869
|
-
readonly FRAX: {
|
|
870
|
-
readonly address: "0x322e86852e492a7ee17f28a78c663da38fb33bfb";
|
|
871
|
-
readonly decimals: 18;
|
|
872
|
-
readonly name: "Frax";
|
|
873
|
-
readonly symbol: "FRAX";
|
|
874
|
-
};
|
|
875
|
-
readonly MOONWELL_FRAX: {
|
|
876
|
-
readonly address: "0x1C55649f73CDA2f72CEf3DD6C5CA3d49EFcF484C";
|
|
877
|
-
readonly decimals: 8;
|
|
878
|
-
readonly name: "Moonwell FRAX";
|
|
879
|
-
readonly symbol: "mFRAX";
|
|
880
|
-
};
|
|
881
|
-
readonly xcUSDC: {
|
|
882
|
-
readonly address: "0xFFfffffF7D2B0B761Af01Ca8e25242976ac0aD7D";
|
|
883
|
-
readonly decimals: 6;
|
|
884
|
-
readonly name: "USD Coin";
|
|
885
|
-
readonly symbol: "xcUSDC";
|
|
886
|
-
};
|
|
887
|
-
readonly MOONWELL_xcUSDC: {
|
|
888
|
-
readonly address: "0x22b1a40e3178fe7C7109eFCc247C5bB2B34ABe32";
|
|
889
|
-
readonly decimals: 8;
|
|
890
|
-
readonly name: "Moonwell xcUSDC";
|
|
891
|
-
readonly symbol: "mxcUSDC";
|
|
892
|
-
};
|
|
893
|
-
readonly xcUSDT: {
|
|
894
|
-
readonly address: "0xFFFFFFfFea09FB06d082fd1275CD48b191cbCD1d";
|
|
895
|
-
readonly decimals: 6;
|
|
896
|
-
readonly name: "Tether";
|
|
897
|
-
readonly symbol: "xcUSDT";
|
|
898
|
-
};
|
|
899
|
-
readonly MOONWELL_xcUSDT: {
|
|
900
|
-
readonly address: "0x42A96C0681B74838eC525AdbD13c37f66388f289";
|
|
901
|
-
readonly decimals: 8;
|
|
902
|
-
readonly name: "Moonwell xcUSDT";
|
|
903
|
-
readonly symbol: "mxcUSDT";
|
|
904
|
-
};
|
|
905
|
-
readonly ETH_NOMAD: {
|
|
906
|
-
readonly address: "0x30d2a9f5fdf90ace8c17952cbb4ee48a55d916a7";
|
|
907
|
-
readonly decimals: 18;
|
|
908
|
-
readonly name: "Ethereum";
|
|
909
|
-
readonly symbol: "ETH.mad";
|
|
910
|
-
};
|
|
911
|
-
readonly MOONWELL_ETH_NOMAD: {
|
|
912
|
-
readonly address: "0xc3090f41Eb54A7f18587FD6651d4D3ab477b07a4";
|
|
913
|
-
readonly decimals: 8;
|
|
914
|
-
readonly name: "Moonwell ETH";
|
|
915
|
-
readonly symbol: "mETH";
|
|
916
|
-
};
|
|
917
|
-
readonly BTC_NOMAD: {
|
|
918
|
-
readonly address: "0x1DC78Acda13a8BC4408B207c9E48CDBc096D95e0";
|
|
919
|
-
readonly decimals: 8;
|
|
920
|
-
readonly name: "Bitcoin";
|
|
921
|
-
readonly symbol: "BTC.mad";
|
|
922
|
-
};
|
|
923
|
-
readonly MOONWELL_BTC_NOMAD: {
|
|
924
|
-
readonly address: "0x24A9d8f1f350d59cB0368D3d52A77dB29c833D1D";
|
|
925
|
-
readonly decimals: 8;
|
|
926
|
-
readonly name: "Moonwell BTC";
|
|
927
|
-
readonly symbol: "mWBTC";
|
|
928
|
-
};
|
|
929
|
-
readonly USDC_NOMAD: {
|
|
930
|
-
readonly address: "0x8f552a71efe5eefc207bf75485b356a0b3f01ec9";
|
|
931
|
-
readonly decimals: 6;
|
|
932
|
-
readonly name: "USD Coin";
|
|
933
|
-
readonly symbol: "USDC.mad";
|
|
934
|
-
};
|
|
935
|
-
readonly MOONWELL_USDC_NOMAD: {
|
|
936
|
-
readonly address: "0x02e9081DfadD37A852F9a73C4d7d69e615E61334";
|
|
937
|
-
readonly decimals: 8;
|
|
938
|
-
readonly name: "Moonwell USDC";
|
|
939
|
-
readonly symbol: "mUSDC";
|
|
940
|
-
};
|
|
941
|
-
readonly ETH_WORMHOLE: {
|
|
942
|
-
readonly address: "0xab3f0245b83feb11d15aaffefd7ad465a59817ed";
|
|
943
|
-
readonly decimals: 18;
|
|
944
|
-
readonly name: "Ethereum";
|
|
945
|
-
readonly symbol: "ETH.wh";
|
|
946
|
-
};
|
|
947
|
-
readonly MOONWELL_ETH_WORMHOLE: {
|
|
948
|
-
readonly address: "0xb6c94b3A378537300387B57ab1cC0d2083f9AeaC";
|
|
949
|
-
readonly decimals: 8;
|
|
950
|
-
readonly name: "Moonwell ETH";
|
|
951
|
-
readonly symbol: "mETH.wh";
|
|
952
|
-
};
|
|
953
|
-
readonly BTC_WORMHOLE: {
|
|
954
|
-
readonly address: "0xe57ebd2d67b462e9926e04a8e33f01cd0d64346d";
|
|
955
|
-
readonly decimals: 8;
|
|
956
|
-
readonly name: "Bitcoin";
|
|
957
|
-
readonly symbol: "BTC.wh";
|
|
958
|
-
};
|
|
959
|
-
readonly MOONWELL_BTC_WORMHOLE: {
|
|
960
|
-
readonly address: "0xaaa20c5a584a9fECdFEDD71E46DA7858B774A9ce";
|
|
961
|
-
readonly decimals: 8;
|
|
962
|
-
readonly name: "Moonwell BTC";
|
|
963
|
-
readonly symbol: "mWBTC.wh";
|
|
964
|
-
};
|
|
965
|
-
readonly USDC_WORMHOLE: {
|
|
966
|
-
readonly address: "0x931715fee2d06333043d11f658c8ce934ac61d0c";
|
|
967
|
-
readonly decimals: 6;
|
|
968
|
-
readonly name: "USD Coin";
|
|
969
|
-
readonly symbol: "USDC.wh";
|
|
970
|
-
};
|
|
971
|
-
readonly MOONWELL_USDC_WORMHOLE: {
|
|
972
|
-
readonly address: "0x744b1756e7651c6D57f5311767EAFE5E931D615b";
|
|
973
|
-
readonly decimals: 8;
|
|
974
|
-
readonly name: "Moonwell USDC";
|
|
975
|
-
readonly symbol: "mUSDC.wh";
|
|
976
|
-
};
|
|
977
|
-
readonly BUSD_WORMHOLE: {
|
|
978
|
-
readonly address: "0x692c57641fc054c2ad6551ccc6566eba599de1ba";
|
|
979
|
-
readonly decimals: 18;
|
|
980
|
-
readonly name: "BUSD Coin";
|
|
981
|
-
readonly symbol: "BUSD.wh";
|
|
982
|
-
};
|
|
983
|
-
readonly MOONWELL_BUSD_WORMHOLE: {
|
|
984
|
-
readonly address: "0x298f2E346b82D69a473BF25f329BDF869e17dEc8";
|
|
985
|
-
readonly decimals: 8;
|
|
986
|
-
readonly name: "Moonwell BUSD";
|
|
987
|
-
readonly symbol: "mBUSD.wh";
|
|
988
|
-
};
|
|
989
|
-
readonly WELL: {
|
|
990
|
-
readonly address: "0x511aB53F793683763E5a8829738301368a2411E3";
|
|
991
|
-
readonly decimals: 18;
|
|
992
|
-
readonly name: "WELL";
|
|
993
|
-
readonly symbol: "WELL";
|
|
994
|
-
};
|
|
995
|
-
readonly XWELL: {
|
|
996
|
-
readonly address: "0xA88594D404727625A9437C3f886C7643872296AE";
|
|
997
|
-
readonly decimals: 18;
|
|
998
|
-
readonly name: "WELL";
|
|
999
|
-
readonly symbol: "WELL";
|
|
1000
|
-
};
|
|
1001
|
-
readonly stkWELL: {
|
|
1002
|
-
readonly address: "0x8568A675384d761f36eC269D695d6Ce4423cfaB1";
|
|
1003
|
-
readonly decimals: 18;
|
|
1004
|
-
readonly name: "stkWELL";
|
|
1005
|
-
readonly symbol: "stkWELL";
|
|
1006
|
-
};
|
|
1007
|
-
}, {
|
|
1008
|
-
readonly MOONWELL_GLMR: {
|
|
1009
|
-
readonly marketToken: "MOONWELL_GLMR";
|
|
1010
|
-
readonly underlyingToken: "GLMR";
|
|
1011
|
-
};
|
|
1012
|
-
readonly MOONWELL_xcDOT: {
|
|
1013
|
-
readonly marketToken: "MOONWELL_xcDOT";
|
|
1014
|
-
readonly underlyingToken: "xcDOT";
|
|
1015
|
-
readonly badDebt: true;
|
|
1016
|
-
};
|
|
1017
|
-
readonly MOONWELL_FRAX: {
|
|
1018
|
-
readonly marketToken: "MOONWELL_FRAX";
|
|
1019
|
-
readonly underlyingToken: "FRAX";
|
|
1020
|
-
readonly badDebt: true;
|
|
1021
|
-
};
|
|
1022
|
-
readonly MOONWELL_xcUSDC: {
|
|
1023
|
-
readonly marketToken: "MOONWELL_xcUSDC";
|
|
1024
|
-
readonly underlyingToken: "xcUSDC";
|
|
1025
|
-
};
|
|
1026
|
-
readonly MOONWELL_xcUSDT: {
|
|
1027
|
-
readonly marketToken: "MOONWELL_xcUSDT";
|
|
1028
|
-
readonly underlyingToken: "xcUSDT";
|
|
1029
|
-
};
|
|
1030
|
-
readonly MOONWELL_ETH_NOMAD: {
|
|
1031
|
-
readonly marketToken: "MOONWELL_ETH_NOMAD";
|
|
1032
|
-
readonly underlyingToken: "ETH_NOMAD";
|
|
1033
|
-
readonly deprecated: true;
|
|
1034
|
-
};
|
|
1035
|
-
readonly MOONWELL_BTC_NOMAD: {
|
|
1036
|
-
readonly marketToken: "MOONWELL_BTC_NOMAD";
|
|
1037
|
-
readonly underlyingToken: "BTC_NOMAD";
|
|
1038
|
-
readonly deprecated: true;
|
|
1039
|
-
};
|
|
1040
|
-
readonly MOONWELL_USDC_NOMAD: {
|
|
1041
|
-
readonly marketToken: "MOONWELL_USDC_NOMAD";
|
|
1042
|
-
readonly underlyingToken: "USDC_NOMAD";
|
|
1043
|
-
readonly deprecated: true;
|
|
1044
|
-
};
|
|
1045
|
-
readonly MOONWELL_ETH_WORMHOLE: {
|
|
1046
|
-
readonly marketToken: "MOONWELL_ETH_WORMHOLE";
|
|
1047
|
-
readonly underlyingToken: "ETH_WORMHOLE";
|
|
1048
|
-
};
|
|
1049
|
-
readonly MOONWELL_BTC_WORMHOLE: {
|
|
1050
|
-
readonly marketToken: "MOONWELL_BTC_WORMHOLE";
|
|
1051
|
-
readonly underlyingToken: "BTC_WORMHOLE";
|
|
1052
|
-
};
|
|
1053
|
-
readonly MOONWELL_USDC_WORMHOLE: {
|
|
1054
|
-
readonly marketToken: "MOONWELL_USDC_WORMHOLE";
|
|
1055
|
-
readonly underlyingToken: "USDC_WORMHOLE";
|
|
1056
|
-
};
|
|
1057
|
-
readonly MOONWELL_BUSD_WORMHOLE: {
|
|
1058
|
-
readonly marketToken: "MOONWELL_BUSD_WORMHOLE";
|
|
1059
|
-
readonly underlyingToken: "BUSD_WORMHOLE";
|
|
1060
|
-
readonly deprecated: true;
|
|
1061
|
-
};
|
|
1062
|
-
}, unknown, {
|
|
1063
|
-
readonly governanceToken: "WELL";
|
|
1064
|
-
readonly stakingToken: "stkWELL";
|
|
1065
|
-
readonly wrappedNativeToken: "WGLMR";
|
|
1066
|
-
readonly tokenSale: "0x933fCDf708481c57E9FD82f6BAA084f42e98B60e";
|
|
1067
|
-
readonly comptroller: "0x8E00D5e02E65A19337Cdba98bbA9F84d4186a180";
|
|
1068
|
-
readonly maximillion: "0xe5Ef9310cC7E3437bAD83466675f24FD62A380c3";
|
|
1069
|
-
readonly views: "0xe76C8B8706faC85a8Fbdcac3C42e3E7823c73994";
|
|
1070
|
-
readonly oracle: "0xED301cd3EB27217BDB05C4E9B820a8A3c8B665f9";
|
|
1071
|
-
readonly governor: "0xfc4DFB17101A12C5CEc5eeDd8E92B5b16557666d";
|
|
1072
|
-
readonly multichainGovernor: "0x9A8464C4C11CeA17e191653Deb7CdC1bE30F1Af4";
|
|
1073
|
-
readonly voteCollector: "0xB8A798a50a7274A13449B7f2Dd6Df22faF2d40E5";
|
|
1074
|
-
}, {
|
|
1075
|
-
governance: {
|
|
1076
|
-
token: "WELL";
|
|
1077
|
-
chainIds: (10 | 8453)[];
|
|
1078
|
-
proposalIdOffset: number;
|
|
1079
|
-
snapshotEnsName: string;
|
|
1080
|
-
};
|
|
1081
|
-
wormhole: {
|
|
1082
|
-
chainId: number;
|
|
1083
|
-
tokenBridge: {
|
|
1084
|
-
address: "0xB1731c586ca89a23809861c6103F0b96B3F57D92";
|
|
1085
|
-
};
|
|
1086
|
-
};
|
|
1087
|
-
socket: {
|
|
1088
|
-
gateway: {
|
|
1089
|
-
address: "0x3a23F943181408EAC424116Af7b7790c94Cb97a5";
|
|
1090
|
-
};
|
|
1091
|
-
};
|
|
1092
|
-
xWELL: {
|
|
1093
|
-
bridgeAdapter: {
|
|
1094
|
-
address: "0xb84543e036054E2cD5394A9D99fa701Eef666df4";
|
|
1095
|
-
};
|
|
1096
|
-
};
|
|
1097
|
-
}>; } & { [name_3 in keyof networks as Extract<name_3, "moonriver">]: Environment<{
|
|
1098
|
-
readonly MOVR: {
|
|
1099
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
1100
|
-
readonly decimals: 18;
|
|
1101
|
-
readonly name: "MOVR";
|
|
1102
|
-
readonly symbol: "MOVR";
|
|
1103
|
-
};
|
|
1104
|
-
readonly WMOVR: {
|
|
1105
|
-
readonly address: "0x98878B06940aE243284CA214f92Bb71a2b032B8A";
|
|
1106
|
-
readonly decimals: 18;
|
|
1107
|
-
readonly name: "Wrapped MOVR";
|
|
1108
|
-
readonly symbol: "MOVR";
|
|
1109
|
-
};
|
|
1110
|
-
readonly MOONWELL_MOVR: {
|
|
1111
|
-
readonly address: "0x6a1A771C7826596652daDC9145fEAaE62b1cd07f";
|
|
1112
|
-
readonly decimals: 8;
|
|
1113
|
-
readonly name: "Moonwell MOVR";
|
|
1114
|
-
readonly symbol: "mMOVR";
|
|
1115
|
-
};
|
|
1116
|
-
readonly xcKSM: {
|
|
1117
|
-
readonly address: "0xffffffff1fcacbd218edc0eba20fc2308c778080";
|
|
1118
|
-
readonly decimals: 12;
|
|
1119
|
-
readonly name: "Kusama";
|
|
1120
|
-
readonly symbol: "xcKSM";
|
|
1121
|
-
};
|
|
1122
|
-
readonly MOONWELL_xcKSM: {
|
|
1123
|
-
readonly address: "0xa0D116513Bd0B8f3F14e6Ea41556c6Ec34688e0f";
|
|
1124
|
-
readonly decimals: 8;
|
|
1125
|
-
readonly name: "Moonwell xcKSM";
|
|
1126
|
-
readonly symbol: "mxcKSM";
|
|
1127
|
-
};
|
|
1128
|
-
readonly FRAX: {
|
|
1129
|
-
readonly address: "0x1A93B23281CC1CDE4C4741353F3064709A16197d";
|
|
1130
|
-
readonly decimals: 18;
|
|
1131
|
-
readonly name: "Frax";
|
|
1132
|
-
readonly symbol: "FRAX";
|
|
1133
|
-
};
|
|
1134
|
-
readonly MOONWELL_FRAX: {
|
|
1135
|
-
readonly address: "0x93Ef8B7c6171BaB1C0A51092B2c9da8dc2ba0e9D";
|
|
1136
|
-
readonly decimals: 8;
|
|
1137
|
-
readonly name: "Moonwell FRAX";
|
|
1138
|
-
readonly symbol: "mFRAX";
|
|
1139
|
-
};
|
|
1140
|
-
readonly BTC: {
|
|
1141
|
-
readonly address: "0x6aB6d61428fde76768D7b45D8BFeec19c6eF91A8";
|
|
1142
|
-
readonly decimals: 8;
|
|
1143
|
-
readonly name: "Bitcoin";
|
|
1144
|
-
readonly symbol: "BTC";
|
|
1145
|
-
};
|
|
1146
|
-
readonly MOONWELL_BTC: {
|
|
1147
|
-
readonly address: "0x6E745367F4Ad2b3da7339aee65dC85d416614D90";
|
|
1148
|
-
readonly decimals: 8;
|
|
1149
|
-
readonly name: "Moonwell BTC";
|
|
1150
|
-
readonly symbol: "mWBTC";
|
|
1151
|
-
};
|
|
1152
|
-
readonly USDC: {
|
|
1153
|
-
readonly address: "0xE3F5a90F9cb311505cd691a46596599aA1A0AD7D";
|
|
1154
|
-
readonly decimals: 6;
|
|
1155
|
-
readonly name: "USD Coin";
|
|
1156
|
-
readonly symbol: "USDC";
|
|
1157
|
-
};
|
|
1158
|
-
readonly MOONWELL_USDC: {
|
|
1159
|
-
readonly address: "0xd0670AEe3698F66e2D4dAf071EB9c690d978BFA8";
|
|
1160
|
-
readonly decimals: 8;
|
|
1161
|
-
readonly name: "Moonwell USDC";
|
|
1162
|
-
readonly symbol: "mUSDC";
|
|
1163
|
-
};
|
|
1164
|
-
readonly ETH: {
|
|
1165
|
-
readonly address: "0x639A647fbe20b6c8ac19E48E2de44ea792c62c5C";
|
|
1166
|
-
readonly decimals: 18;
|
|
1167
|
-
readonly name: "Ethereum";
|
|
1168
|
-
readonly symbol: "ETH";
|
|
1169
|
-
};
|
|
1170
|
-
readonly MOONWELL_ETH: {
|
|
1171
|
-
readonly address: "0x6503D905338e2ebB550c9eC39Ced525b612E77aE";
|
|
1172
|
-
readonly decimals: 8;
|
|
1173
|
-
readonly name: "Moonwell ETH";
|
|
1174
|
-
readonly symbol: "mETH";
|
|
1175
|
-
};
|
|
1176
|
-
readonly USDT: {
|
|
1177
|
-
readonly address: "0xB44a9B6905aF7c801311e8F4E76932ee959c663C";
|
|
1178
|
-
readonly decimals: 6;
|
|
1179
|
-
readonly name: "Tether";
|
|
1180
|
-
readonly symbol: "USDT";
|
|
1181
|
-
};
|
|
1182
|
-
readonly MOONWELL_USDT: {
|
|
1183
|
-
readonly address: "0x36918B66F9A3eC7a59d0007D8458DB17bDffBF21";
|
|
1184
|
-
readonly decimals: 8;
|
|
1185
|
-
readonly name: "Moonwell USDT";
|
|
1186
|
-
readonly symbol: "mUSDT";
|
|
1187
|
-
};
|
|
1188
|
-
readonly MFAM: {
|
|
1189
|
-
readonly address: "0xBb8d88bcD9749636BC4D2bE22aaC4Bb3B01A58F1";
|
|
1190
|
-
readonly decimals: 18;
|
|
1191
|
-
readonly name: "MFAM";
|
|
1192
|
-
readonly symbol: "MFAM";
|
|
1193
|
-
};
|
|
1194
|
-
readonly stkMFAM: {
|
|
1195
|
-
readonly address: "0xCd76e63f3AbFA864c53b4B98F57c1aA6539FDa3a";
|
|
1196
|
-
readonly decimals: 18;
|
|
1197
|
-
readonly name: "stkMFAM";
|
|
1198
|
-
readonly symbol: "stkMFAM";
|
|
1199
|
-
};
|
|
1200
|
-
}, {
|
|
1201
|
-
readonly MOONWELL_MOVR: {
|
|
1202
|
-
readonly marketToken: "MOONWELL_MOVR";
|
|
1203
|
-
readonly underlyingToken: "MOVR";
|
|
1204
|
-
readonly deprecated: true;
|
|
1205
|
-
};
|
|
1206
|
-
readonly MOONWELL_xcKSM: {
|
|
1207
|
-
readonly marketToken: "MOONWELL_xcKSM";
|
|
1208
|
-
readonly underlyingToken: "xcKSM";
|
|
1209
|
-
readonly deprecated: true;
|
|
1210
|
-
};
|
|
1211
|
-
readonly MOONWELL_FRAX: {
|
|
1212
|
-
readonly marketToken: "MOONWELL_FRAX";
|
|
1213
|
-
readonly underlyingToken: "FRAX";
|
|
1214
|
-
readonly deprecated: true;
|
|
1215
|
-
};
|
|
1216
|
-
readonly MOONWELL_BTC: {
|
|
1217
|
-
readonly marketToken: "MOONWELL_BTC";
|
|
1218
|
-
readonly underlyingToken: "BTC";
|
|
1219
|
-
readonly deprecated: true;
|
|
1220
|
-
};
|
|
1221
|
-
readonly MOONWELL_USDC: {
|
|
1222
|
-
readonly marketToken: "MOONWELL_USDC";
|
|
1223
|
-
readonly underlyingToken: "USDC";
|
|
1224
|
-
readonly deprecated: true;
|
|
1225
|
-
};
|
|
1226
|
-
readonly MOONWELL_ETH: {
|
|
1227
|
-
readonly marketToken: "MOONWELL_ETH";
|
|
1228
|
-
readonly underlyingToken: "ETH";
|
|
1229
|
-
readonly deprecated: true;
|
|
1230
|
-
};
|
|
1231
|
-
readonly MOONWELL_USDT: {
|
|
1232
|
-
readonly marketToken: "MOONWELL_USDT";
|
|
1233
|
-
readonly underlyingToken: "USDT";
|
|
1234
|
-
readonly deprecated: true;
|
|
1235
|
-
};
|
|
1236
|
-
}, unknown, {
|
|
1237
|
-
readonly governanceToken: "MFAM";
|
|
1238
|
-
readonly stakingToken: "stkMFAM";
|
|
1239
|
-
readonly wrappedNativeToken: "WMOVR";
|
|
1240
|
-
readonly comptroller: "0x0b7a0EAA884849c6Af7a129e899536dDDcA4905E";
|
|
1241
|
-
readonly maximillion: "0x1650C0AD9483158f9e240fd58d0E173807A80CcC";
|
|
1242
|
-
readonly views: "0x6F0cC02e5a7640B28F538fcc06bCA3BdFA57d1BB";
|
|
1243
|
-
readonly oracle: "0x892bE716Dcf0A6199677F355f45ba8CC123BAF60";
|
|
1244
|
-
readonly governor: "0x2BE2e230e89c59c8E20E633C524AD2De246e7370";
|
|
1245
|
-
}, {
|
|
1246
|
-
governance: {
|
|
1247
|
-
token: "MFAM";
|
|
1248
|
-
chainIds: never[];
|
|
1249
|
-
snapshotEnsName: string;
|
|
1250
|
-
};
|
|
1251
|
-
}>; } & { [name_4 in keyof networks as Extract<name_4, "ethereum">]: Environment<{
|
|
834
|
+
}>; } & { [name_2 in keyof networks as Extract<name_2, "ethereum">]: Environment<{
|
|
1252
835
|
readonly ETH: {
|
|
1253
836
|
readonly address: "0x0000000000000000000000000000000000000000";
|
|
1254
837
|
readonly decimals: 18;
|
|
@@ -1357,7 +940,7 @@ export declare const createMoonwellClient: <const networks>(config: {
|
|
|
1357
940
|
address: "0x734AbBCe07679C9A6B4Fe3bC16325e028fA6DbB7";
|
|
1358
941
|
};
|
|
1359
942
|
};
|
|
1360
|
-
}>; } & { [
|
|
943
|
+
}>; } & { [name_3 in keyof networks as Extract<name_3, "avalanche">]: Environment<{
|
|
1361
944
|
readonly AVAX: {
|
|
1362
945
|
readonly address: "0x0000000000000000000000000000000000000000";
|
|
1363
946
|
readonly decimals: 18;
|
|
@@ -1370,7 +953,7 @@ export declare const createMoonwellClient: <const networks>(config: {
|
|
|
1370
953
|
readonly name: "USD Coin";
|
|
1371
954
|
readonly symbol: "USDC";
|
|
1372
955
|
};
|
|
1373
|
-
}, {}, {}, {}, {}>; } & { [
|
|
956
|
+
}, {}, {}, {}, {}>; } & { [name_4 in keyof networks as Extract<name_4, "arbitrum">]: Environment<{
|
|
1374
957
|
readonly ETH: {
|
|
1375
958
|
readonly address: "0x0000000000000000000000000000000000000000";
|
|
1376
959
|
readonly decimals: 18;
|
|
@@ -1383,7 +966,7 @@ export declare const createMoonwellClient: <const networks>(config: {
|
|
|
1383
966
|
readonly name: "USD Coin";
|
|
1384
967
|
readonly symbol: "USDC";
|
|
1385
968
|
};
|
|
1386
|
-
}, {}, {}, {}, {}>; } & { [
|
|
969
|
+
}, {}, {}, {}, {}>; } & { [name_5 in keyof networks as Extract<name_5, "polygon">]: Environment<{
|
|
1387
970
|
readonly POL: {
|
|
1388
971
|
readonly address: "0x0000000000000000000000000000000000000000";
|
|
1389
972
|
readonly decimals: 18;
|
|
@@ -2198,420 +1781,7 @@ export declare const createMoonwellClient: <const networks>(config: {
|
|
|
2198
1781
|
multiRewarder: {
|
|
2199
1782
|
rewardToken: string;
|
|
2200
1783
|
}[];
|
|
2201
|
-
}>; } & { [name_2 in keyof networks as Extract<name_2, "
|
|
2202
|
-
readonly GLMR: {
|
|
2203
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
2204
|
-
readonly decimals: 18;
|
|
2205
|
-
readonly name: "Moonbeam";
|
|
2206
|
-
readonly symbol: "GLMR";
|
|
2207
|
-
};
|
|
2208
|
-
readonly WGLMR: {
|
|
2209
|
-
readonly address: "0xAcc15dC74880C9944775448304B263D191c6077F";
|
|
2210
|
-
readonly decimals: 18;
|
|
2211
|
-
readonly name: "Wrapped GLMR";
|
|
2212
|
-
readonly symbol: "WGLMR";
|
|
2213
|
-
};
|
|
2214
|
-
readonly MOONWELL_GLMR: {
|
|
2215
|
-
readonly address: "0x091608f4e4a15335145be0A279483C0f8E4c7955";
|
|
2216
|
-
readonly decimals: 8;
|
|
2217
|
-
readonly name: "Moonwell GLMR";
|
|
2218
|
-
readonly symbol: "mGLMR";
|
|
2219
|
-
};
|
|
2220
|
-
readonly xcDOT: {
|
|
2221
|
-
readonly address: "0xffffffff1fcacbd218edc0eba20fc2308c778080";
|
|
2222
|
-
readonly decimals: 10;
|
|
2223
|
-
readonly name: "Polkadot";
|
|
2224
|
-
readonly symbol: "xcDOT";
|
|
2225
|
-
};
|
|
2226
|
-
readonly MOONWELL_xcDOT: {
|
|
2227
|
-
readonly address: "0xD22Da948c0aB3A27f5570b604f3ADef5F68211C3";
|
|
2228
|
-
readonly decimals: 8;
|
|
2229
|
-
readonly name: "Moonwell xcDOT";
|
|
2230
|
-
readonly symbol: "mDOT";
|
|
2231
|
-
};
|
|
2232
|
-
readonly FRAX: {
|
|
2233
|
-
readonly address: "0x322e86852e492a7ee17f28a78c663da38fb33bfb";
|
|
2234
|
-
readonly decimals: 18;
|
|
2235
|
-
readonly name: "Frax";
|
|
2236
|
-
readonly symbol: "FRAX";
|
|
2237
|
-
};
|
|
2238
|
-
readonly MOONWELL_FRAX: {
|
|
2239
|
-
readonly address: "0x1C55649f73CDA2f72CEf3DD6C5CA3d49EFcF484C";
|
|
2240
|
-
readonly decimals: 8;
|
|
2241
|
-
readonly name: "Moonwell FRAX";
|
|
2242
|
-
readonly symbol: "mFRAX";
|
|
2243
|
-
};
|
|
2244
|
-
readonly xcUSDC: {
|
|
2245
|
-
readonly address: "0xFFfffffF7D2B0B761Af01Ca8e25242976ac0aD7D";
|
|
2246
|
-
readonly decimals: 6;
|
|
2247
|
-
readonly name: "USD Coin";
|
|
2248
|
-
readonly symbol: "xcUSDC";
|
|
2249
|
-
};
|
|
2250
|
-
readonly MOONWELL_xcUSDC: {
|
|
2251
|
-
readonly address: "0x22b1a40e3178fe7C7109eFCc247C5bB2B34ABe32";
|
|
2252
|
-
readonly decimals: 8;
|
|
2253
|
-
readonly name: "Moonwell xcUSDC";
|
|
2254
|
-
readonly symbol: "mxcUSDC";
|
|
2255
|
-
};
|
|
2256
|
-
readonly xcUSDT: {
|
|
2257
|
-
readonly address: "0xFFFFFFfFea09FB06d082fd1275CD48b191cbCD1d";
|
|
2258
|
-
readonly decimals: 6;
|
|
2259
|
-
readonly name: "Tether";
|
|
2260
|
-
readonly symbol: "xcUSDT";
|
|
2261
|
-
};
|
|
2262
|
-
readonly MOONWELL_xcUSDT: {
|
|
2263
|
-
readonly address: "0x42A96C0681B74838eC525AdbD13c37f66388f289";
|
|
2264
|
-
readonly decimals: 8;
|
|
2265
|
-
readonly name: "Moonwell xcUSDT";
|
|
2266
|
-
readonly symbol: "mxcUSDT";
|
|
2267
|
-
};
|
|
2268
|
-
readonly ETH_NOMAD: {
|
|
2269
|
-
readonly address: "0x30d2a9f5fdf90ace8c17952cbb4ee48a55d916a7";
|
|
2270
|
-
readonly decimals: 18;
|
|
2271
|
-
readonly name: "Ethereum";
|
|
2272
|
-
readonly symbol: "ETH.mad";
|
|
2273
|
-
};
|
|
2274
|
-
readonly MOONWELL_ETH_NOMAD: {
|
|
2275
|
-
readonly address: "0xc3090f41Eb54A7f18587FD6651d4D3ab477b07a4";
|
|
2276
|
-
readonly decimals: 8;
|
|
2277
|
-
readonly name: "Moonwell ETH";
|
|
2278
|
-
readonly symbol: "mETH";
|
|
2279
|
-
};
|
|
2280
|
-
readonly BTC_NOMAD: {
|
|
2281
|
-
readonly address: "0x1DC78Acda13a8BC4408B207c9E48CDBc096D95e0";
|
|
2282
|
-
readonly decimals: 8;
|
|
2283
|
-
readonly name: "Bitcoin";
|
|
2284
|
-
readonly symbol: "BTC.mad";
|
|
2285
|
-
};
|
|
2286
|
-
readonly MOONWELL_BTC_NOMAD: {
|
|
2287
|
-
readonly address: "0x24A9d8f1f350d59cB0368D3d52A77dB29c833D1D";
|
|
2288
|
-
readonly decimals: 8;
|
|
2289
|
-
readonly name: "Moonwell BTC";
|
|
2290
|
-
readonly symbol: "mWBTC";
|
|
2291
|
-
};
|
|
2292
|
-
readonly USDC_NOMAD: {
|
|
2293
|
-
readonly address: "0x8f552a71efe5eefc207bf75485b356a0b3f01ec9";
|
|
2294
|
-
readonly decimals: 6;
|
|
2295
|
-
readonly name: "USD Coin";
|
|
2296
|
-
readonly symbol: "USDC.mad";
|
|
2297
|
-
};
|
|
2298
|
-
readonly MOONWELL_USDC_NOMAD: {
|
|
2299
|
-
readonly address: "0x02e9081DfadD37A852F9a73C4d7d69e615E61334";
|
|
2300
|
-
readonly decimals: 8;
|
|
2301
|
-
readonly name: "Moonwell USDC";
|
|
2302
|
-
readonly symbol: "mUSDC";
|
|
2303
|
-
};
|
|
2304
|
-
readonly ETH_WORMHOLE: {
|
|
2305
|
-
readonly address: "0xab3f0245b83feb11d15aaffefd7ad465a59817ed";
|
|
2306
|
-
readonly decimals: 18;
|
|
2307
|
-
readonly name: "Ethereum";
|
|
2308
|
-
readonly symbol: "ETH.wh";
|
|
2309
|
-
};
|
|
2310
|
-
readonly MOONWELL_ETH_WORMHOLE: {
|
|
2311
|
-
readonly address: "0xb6c94b3A378537300387B57ab1cC0d2083f9AeaC";
|
|
2312
|
-
readonly decimals: 8;
|
|
2313
|
-
readonly name: "Moonwell ETH";
|
|
2314
|
-
readonly symbol: "mETH.wh";
|
|
2315
|
-
};
|
|
2316
|
-
readonly BTC_WORMHOLE: {
|
|
2317
|
-
readonly address: "0xe57ebd2d67b462e9926e04a8e33f01cd0d64346d";
|
|
2318
|
-
readonly decimals: 8;
|
|
2319
|
-
readonly name: "Bitcoin";
|
|
2320
|
-
readonly symbol: "BTC.wh";
|
|
2321
|
-
};
|
|
2322
|
-
readonly MOONWELL_BTC_WORMHOLE: {
|
|
2323
|
-
readonly address: "0xaaa20c5a584a9fECdFEDD71E46DA7858B774A9ce";
|
|
2324
|
-
readonly decimals: 8;
|
|
2325
|
-
readonly name: "Moonwell BTC";
|
|
2326
|
-
readonly symbol: "mWBTC.wh";
|
|
2327
|
-
};
|
|
2328
|
-
readonly USDC_WORMHOLE: {
|
|
2329
|
-
readonly address: "0x931715fee2d06333043d11f658c8ce934ac61d0c";
|
|
2330
|
-
readonly decimals: 6;
|
|
2331
|
-
readonly name: "USD Coin";
|
|
2332
|
-
readonly symbol: "USDC.wh";
|
|
2333
|
-
};
|
|
2334
|
-
readonly MOONWELL_USDC_WORMHOLE: {
|
|
2335
|
-
readonly address: "0x744b1756e7651c6D57f5311767EAFE5E931D615b";
|
|
2336
|
-
readonly decimals: 8;
|
|
2337
|
-
readonly name: "Moonwell USDC";
|
|
2338
|
-
readonly symbol: "mUSDC.wh";
|
|
2339
|
-
};
|
|
2340
|
-
readonly BUSD_WORMHOLE: {
|
|
2341
|
-
readonly address: "0x692c57641fc054c2ad6551ccc6566eba599de1ba";
|
|
2342
|
-
readonly decimals: 18;
|
|
2343
|
-
readonly name: "BUSD Coin";
|
|
2344
|
-
readonly symbol: "BUSD.wh";
|
|
2345
|
-
};
|
|
2346
|
-
readonly MOONWELL_BUSD_WORMHOLE: {
|
|
2347
|
-
readonly address: "0x298f2E346b82D69a473BF25f329BDF869e17dEc8";
|
|
2348
|
-
readonly decimals: 8;
|
|
2349
|
-
readonly name: "Moonwell BUSD";
|
|
2350
|
-
readonly symbol: "mBUSD.wh";
|
|
2351
|
-
};
|
|
2352
|
-
readonly WELL: {
|
|
2353
|
-
readonly address: "0x511aB53F793683763E5a8829738301368a2411E3";
|
|
2354
|
-
readonly decimals: 18;
|
|
2355
|
-
readonly name: "WELL";
|
|
2356
|
-
readonly symbol: "WELL";
|
|
2357
|
-
};
|
|
2358
|
-
readonly XWELL: {
|
|
2359
|
-
readonly address: "0xA88594D404727625A9437C3f886C7643872296AE";
|
|
2360
|
-
readonly decimals: 18;
|
|
2361
|
-
readonly name: "WELL";
|
|
2362
|
-
readonly symbol: "WELL";
|
|
2363
|
-
};
|
|
2364
|
-
readonly stkWELL: {
|
|
2365
|
-
readonly address: "0x8568A675384d761f36eC269D695d6Ce4423cfaB1";
|
|
2366
|
-
readonly decimals: 18;
|
|
2367
|
-
readonly name: "stkWELL";
|
|
2368
|
-
readonly symbol: "stkWELL";
|
|
2369
|
-
};
|
|
2370
|
-
}, {
|
|
2371
|
-
readonly MOONWELL_GLMR: {
|
|
2372
|
-
readonly marketToken: "MOONWELL_GLMR";
|
|
2373
|
-
readonly underlyingToken: "GLMR";
|
|
2374
|
-
};
|
|
2375
|
-
readonly MOONWELL_xcDOT: {
|
|
2376
|
-
readonly marketToken: "MOONWELL_xcDOT";
|
|
2377
|
-
readonly underlyingToken: "xcDOT";
|
|
2378
|
-
readonly badDebt: true;
|
|
2379
|
-
};
|
|
2380
|
-
readonly MOONWELL_FRAX: {
|
|
2381
|
-
readonly marketToken: "MOONWELL_FRAX";
|
|
2382
|
-
readonly underlyingToken: "FRAX";
|
|
2383
|
-
readonly badDebt: true;
|
|
2384
|
-
};
|
|
2385
|
-
readonly MOONWELL_xcUSDC: {
|
|
2386
|
-
readonly marketToken: "MOONWELL_xcUSDC";
|
|
2387
|
-
readonly underlyingToken: "xcUSDC";
|
|
2388
|
-
};
|
|
2389
|
-
readonly MOONWELL_xcUSDT: {
|
|
2390
|
-
readonly marketToken: "MOONWELL_xcUSDT";
|
|
2391
|
-
readonly underlyingToken: "xcUSDT";
|
|
2392
|
-
};
|
|
2393
|
-
readonly MOONWELL_ETH_NOMAD: {
|
|
2394
|
-
readonly marketToken: "MOONWELL_ETH_NOMAD";
|
|
2395
|
-
readonly underlyingToken: "ETH_NOMAD";
|
|
2396
|
-
readonly deprecated: true;
|
|
2397
|
-
};
|
|
2398
|
-
readonly MOONWELL_BTC_NOMAD: {
|
|
2399
|
-
readonly marketToken: "MOONWELL_BTC_NOMAD";
|
|
2400
|
-
readonly underlyingToken: "BTC_NOMAD";
|
|
2401
|
-
readonly deprecated: true;
|
|
2402
|
-
};
|
|
2403
|
-
readonly MOONWELL_USDC_NOMAD: {
|
|
2404
|
-
readonly marketToken: "MOONWELL_USDC_NOMAD";
|
|
2405
|
-
readonly underlyingToken: "USDC_NOMAD";
|
|
2406
|
-
readonly deprecated: true;
|
|
2407
|
-
};
|
|
2408
|
-
readonly MOONWELL_ETH_WORMHOLE: {
|
|
2409
|
-
readonly marketToken: "MOONWELL_ETH_WORMHOLE";
|
|
2410
|
-
readonly underlyingToken: "ETH_WORMHOLE";
|
|
2411
|
-
};
|
|
2412
|
-
readonly MOONWELL_BTC_WORMHOLE: {
|
|
2413
|
-
readonly marketToken: "MOONWELL_BTC_WORMHOLE";
|
|
2414
|
-
readonly underlyingToken: "BTC_WORMHOLE";
|
|
2415
|
-
};
|
|
2416
|
-
readonly MOONWELL_USDC_WORMHOLE: {
|
|
2417
|
-
readonly marketToken: "MOONWELL_USDC_WORMHOLE";
|
|
2418
|
-
readonly underlyingToken: "USDC_WORMHOLE";
|
|
2419
|
-
};
|
|
2420
|
-
readonly MOONWELL_BUSD_WORMHOLE: {
|
|
2421
|
-
readonly marketToken: "MOONWELL_BUSD_WORMHOLE";
|
|
2422
|
-
readonly underlyingToken: "BUSD_WORMHOLE";
|
|
2423
|
-
readonly deprecated: true;
|
|
2424
|
-
};
|
|
2425
|
-
}, unknown, {
|
|
2426
|
-
readonly governanceToken: "WELL";
|
|
2427
|
-
readonly stakingToken: "stkWELL";
|
|
2428
|
-
readonly wrappedNativeToken: "WGLMR";
|
|
2429
|
-
readonly tokenSale: "0x933fCDf708481c57E9FD82f6BAA084f42e98B60e";
|
|
2430
|
-
readonly comptroller: "0x8E00D5e02E65A19337Cdba98bbA9F84d4186a180";
|
|
2431
|
-
readonly maximillion: "0xe5Ef9310cC7E3437bAD83466675f24FD62A380c3";
|
|
2432
|
-
readonly views: "0xe76C8B8706faC85a8Fbdcac3C42e3E7823c73994";
|
|
2433
|
-
readonly oracle: "0xED301cd3EB27217BDB05C4E9B820a8A3c8B665f9";
|
|
2434
|
-
readonly governor: "0xfc4DFB17101A12C5CEc5eeDd8E92B5b16557666d";
|
|
2435
|
-
readonly multichainGovernor: "0x9A8464C4C11CeA17e191653Deb7CdC1bE30F1Af4";
|
|
2436
|
-
readonly voteCollector: "0xB8A798a50a7274A13449B7f2Dd6Df22faF2d40E5";
|
|
2437
|
-
}, {
|
|
2438
|
-
governance: {
|
|
2439
|
-
token: "WELL";
|
|
2440
|
-
chainIds: (10 | 8453)[];
|
|
2441
|
-
proposalIdOffset: number;
|
|
2442
|
-
snapshotEnsName: string;
|
|
2443
|
-
};
|
|
2444
|
-
wormhole: {
|
|
2445
|
-
chainId: number;
|
|
2446
|
-
tokenBridge: {
|
|
2447
|
-
address: "0xB1731c586ca89a23809861c6103F0b96B3F57D92";
|
|
2448
|
-
};
|
|
2449
|
-
};
|
|
2450
|
-
socket: {
|
|
2451
|
-
gateway: {
|
|
2452
|
-
address: "0x3a23F943181408EAC424116Af7b7790c94Cb97a5";
|
|
2453
|
-
};
|
|
2454
|
-
};
|
|
2455
|
-
xWELL: {
|
|
2456
|
-
bridgeAdapter: {
|
|
2457
|
-
address: "0xb84543e036054E2cD5394A9D99fa701Eef666df4";
|
|
2458
|
-
};
|
|
2459
|
-
};
|
|
2460
|
-
}>; } & { [name_3 in keyof networks as Extract<name_3, "moonriver">]: Environment<{
|
|
2461
|
-
readonly MOVR: {
|
|
2462
|
-
readonly address: "0x0000000000000000000000000000000000000000";
|
|
2463
|
-
readonly decimals: 18;
|
|
2464
|
-
readonly name: "MOVR";
|
|
2465
|
-
readonly symbol: "MOVR";
|
|
2466
|
-
};
|
|
2467
|
-
readonly WMOVR: {
|
|
2468
|
-
readonly address: "0x98878B06940aE243284CA214f92Bb71a2b032B8A";
|
|
2469
|
-
readonly decimals: 18;
|
|
2470
|
-
readonly name: "Wrapped MOVR";
|
|
2471
|
-
readonly symbol: "MOVR";
|
|
2472
|
-
};
|
|
2473
|
-
readonly MOONWELL_MOVR: {
|
|
2474
|
-
readonly address: "0x6a1A771C7826596652daDC9145fEAaE62b1cd07f";
|
|
2475
|
-
readonly decimals: 8;
|
|
2476
|
-
readonly name: "Moonwell MOVR";
|
|
2477
|
-
readonly symbol: "mMOVR";
|
|
2478
|
-
};
|
|
2479
|
-
readonly xcKSM: {
|
|
2480
|
-
readonly address: "0xffffffff1fcacbd218edc0eba20fc2308c778080";
|
|
2481
|
-
readonly decimals: 12;
|
|
2482
|
-
readonly name: "Kusama";
|
|
2483
|
-
readonly symbol: "xcKSM";
|
|
2484
|
-
};
|
|
2485
|
-
readonly MOONWELL_xcKSM: {
|
|
2486
|
-
readonly address: "0xa0D116513Bd0B8f3F14e6Ea41556c6Ec34688e0f";
|
|
2487
|
-
readonly decimals: 8;
|
|
2488
|
-
readonly name: "Moonwell xcKSM";
|
|
2489
|
-
readonly symbol: "mxcKSM";
|
|
2490
|
-
};
|
|
2491
|
-
readonly FRAX: {
|
|
2492
|
-
readonly address: "0x1A93B23281CC1CDE4C4741353F3064709A16197d";
|
|
2493
|
-
readonly decimals: 18;
|
|
2494
|
-
readonly name: "Frax";
|
|
2495
|
-
readonly symbol: "FRAX";
|
|
2496
|
-
};
|
|
2497
|
-
readonly MOONWELL_FRAX: {
|
|
2498
|
-
readonly address: "0x93Ef8B7c6171BaB1C0A51092B2c9da8dc2ba0e9D";
|
|
2499
|
-
readonly decimals: 8;
|
|
2500
|
-
readonly name: "Moonwell FRAX";
|
|
2501
|
-
readonly symbol: "mFRAX";
|
|
2502
|
-
};
|
|
2503
|
-
readonly BTC: {
|
|
2504
|
-
readonly address: "0x6aB6d61428fde76768D7b45D8BFeec19c6eF91A8";
|
|
2505
|
-
readonly decimals: 8;
|
|
2506
|
-
readonly name: "Bitcoin";
|
|
2507
|
-
readonly symbol: "BTC";
|
|
2508
|
-
};
|
|
2509
|
-
readonly MOONWELL_BTC: {
|
|
2510
|
-
readonly address: "0x6E745367F4Ad2b3da7339aee65dC85d416614D90";
|
|
2511
|
-
readonly decimals: 8;
|
|
2512
|
-
readonly name: "Moonwell BTC";
|
|
2513
|
-
readonly symbol: "mWBTC";
|
|
2514
|
-
};
|
|
2515
|
-
readonly USDC: {
|
|
2516
|
-
readonly address: "0xE3F5a90F9cb311505cd691a46596599aA1A0AD7D";
|
|
2517
|
-
readonly decimals: 6;
|
|
2518
|
-
readonly name: "USD Coin";
|
|
2519
|
-
readonly symbol: "USDC";
|
|
2520
|
-
};
|
|
2521
|
-
readonly MOONWELL_USDC: {
|
|
2522
|
-
readonly address: "0xd0670AEe3698F66e2D4dAf071EB9c690d978BFA8";
|
|
2523
|
-
readonly decimals: 8;
|
|
2524
|
-
readonly name: "Moonwell USDC";
|
|
2525
|
-
readonly symbol: "mUSDC";
|
|
2526
|
-
};
|
|
2527
|
-
readonly ETH: {
|
|
2528
|
-
readonly address: "0x639A647fbe20b6c8ac19E48E2de44ea792c62c5C";
|
|
2529
|
-
readonly decimals: 18;
|
|
2530
|
-
readonly name: "Ethereum";
|
|
2531
|
-
readonly symbol: "ETH";
|
|
2532
|
-
};
|
|
2533
|
-
readonly MOONWELL_ETH: {
|
|
2534
|
-
readonly address: "0x6503D905338e2ebB550c9eC39Ced525b612E77aE";
|
|
2535
|
-
readonly decimals: 8;
|
|
2536
|
-
readonly name: "Moonwell ETH";
|
|
2537
|
-
readonly symbol: "mETH";
|
|
2538
|
-
};
|
|
2539
|
-
readonly USDT: {
|
|
2540
|
-
readonly address: "0xB44a9B6905aF7c801311e8F4E76932ee959c663C";
|
|
2541
|
-
readonly decimals: 6;
|
|
2542
|
-
readonly name: "Tether";
|
|
2543
|
-
readonly symbol: "USDT";
|
|
2544
|
-
};
|
|
2545
|
-
readonly MOONWELL_USDT: {
|
|
2546
|
-
readonly address: "0x36918B66F9A3eC7a59d0007D8458DB17bDffBF21";
|
|
2547
|
-
readonly decimals: 8;
|
|
2548
|
-
readonly name: "Moonwell USDT";
|
|
2549
|
-
readonly symbol: "mUSDT";
|
|
2550
|
-
};
|
|
2551
|
-
readonly MFAM: {
|
|
2552
|
-
readonly address: "0xBb8d88bcD9749636BC4D2bE22aaC4Bb3B01A58F1";
|
|
2553
|
-
readonly decimals: 18;
|
|
2554
|
-
readonly name: "MFAM";
|
|
2555
|
-
readonly symbol: "MFAM";
|
|
2556
|
-
};
|
|
2557
|
-
readonly stkMFAM: {
|
|
2558
|
-
readonly address: "0xCd76e63f3AbFA864c53b4B98F57c1aA6539FDa3a";
|
|
2559
|
-
readonly decimals: 18;
|
|
2560
|
-
readonly name: "stkMFAM";
|
|
2561
|
-
readonly symbol: "stkMFAM";
|
|
2562
|
-
};
|
|
2563
|
-
}, {
|
|
2564
|
-
readonly MOONWELL_MOVR: {
|
|
2565
|
-
readonly marketToken: "MOONWELL_MOVR";
|
|
2566
|
-
readonly underlyingToken: "MOVR";
|
|
2567
|
-
readonly deprecated: true;
|
|
2568
|
-
};
|
|
2569
|
-
readonly MOONWELL_xcKSM: {
|
|
2570
|
-
readonly marketToken: "MOONWELL_xcKSM";
|
|
2571
|
-
readonly underlyingToken: "xcKSM";
|
|
2572
|
-
readonly deprecated: true;
|
|
2573
|
-
};
|
|
2574
|
-
readonly MOONWELL_FRAX: {
|
|
2575
|
-
readonly marketToken: "MOONWELL_FRAX";
|
|
2576
|
-
readonly underlyingToken: "FRAX";
|
|
2577
|
-
readonly deprecated: true;
|
|
2578
|
-
};
|
|
2579
|
-
readonly MOONWELL_BTC: {
|
|
2580
|
-
readonly marketToken: "MOONWELL_BTC";
|
|
2581
|
-
readonly underlyingToken: "BTC";
|
|
2582
|
-
readonly deprecated: true;
|
|
2583
|
-
};
|
|
2584
|
-
readonly MOONWELL_USDC: {
|
|
2585
|
-
readonly marketToken: "MOONWELL_USDC";
|
|
2586
|
-
readonly underlyingToken: "USDC";
|
|
2587
|
-
readonly deprecated: true;
|
|
2588
|
-
};
|
|
2589
|
-
readonly MOONWELL_ETH: {
|
|
2590
|
-
readonly marketToken: "MOONWELL_ETH";
|
|
2591
|
-
readonly underlyingToken: "ETH";
|
|
2592
|
-
readonly deprecated: true;
|
|
2593
|
-
};
|
|
2594
|
-
readonly MOONWELL_USDT: {
|
|
2595
|
-
readonly marketToken: "MOONWELL_USDT";
|
|
2596
|
-
readonly underlyingToken: "USDT";
|
|
2597
|
-
readonly deprecated: true;
|
|
2598
|
-
};
|
|
2599
|
-
}, unknown, {
|
|
2600
|
-
readonly governanceToken: "MFAM";
|
|
2601
|
-
readonly stakingToken: "stkMFAM";
|
|
2602
|
-
readonly wrappedNativeToken: "WMOVR";
|
|
2603
|
-
readonly comptroller: "0x0b7a0EAA884849c6Af7a129e899536dDDcA4905E";
|
|
2604
|
-
readonly maximillion: "0x1650C0AD9483158f9e240fd58d0E173807A80CcC";
|
|
2605
|
-
readonly views: "0x6F0cC02e5a7640B28F538fcc06bCA3BdFA57d1BB";
|
|
2606
|
-
readonly oracle: "0x892bE716Dcf0A6199677F355f45ba8CC123BAF60";
|
|
2607
|
-
readonly governor: "0x2BE2e230e89c59c8E20E633C524AD2De246e7370";
|
|
2608
|
-
}, {
|
|
2609
|
-
governance: {
|
|
2610
|
-
token: "MFAM";
|
|
2611
|
-
chainIds: never[];
|
|
2612
|
-
snapshotEnsName: string;
|
|
2613
|
-
};
|
|
2614
|
-
}>; } & { [name_4 in keyof networks as Extract<name_4, "ethereum">]: Environment<{
|
|
1784
|
+
}>; } & { [name_2 in keyof networks as Extract<name_2, "ethereum">]: Environment<{
|
|
2615
1785
|
readonly ETH: {
|
|
2616
1786
|
readonly address: "0x0000000000000000000000000000000000000000";
|
|
2617
1787
|
readonly decimals: 18;
|
|
@@ -2720,7 +1890,7 @@ export declare const createMoonwellClient: <const networks>(config: {
|
|
|
2720
1890
|
address: "0x734AbBCe07679C9A6B4Fe3bC16325e028fA6DbB7";
|
|
2721
1891
|
};
|
|
2722
1892
|
};
|
|
2723
|
-
}>; } & { [
|
|
1893
|
+
}>; } & { [name_3 in keyof networks as Extract<name_3, "avalanche">]: Environment<{
|
|
2724
1894
|
readonly AVAX: {
|
|
2725
1895
|
readonly address: "0x0000000000000000000000000000000000000000";
|
|
2726
1896
|
readonly decimals: 18;
|
|
@@ -2733,7 +1903,7 @@ export declare const createMoonwellClient: <const networks>(config: {
|
|
|
2733
1903
|
readonly name: "USD Coin";
|
|
2734
1904
|
readonly symbol: "USDC";
|
|
2735
1905
|
};
|
|
2736
|
-
}, {}, {}, {}, {}>; } & { [
|
|
1906
|
+
}, {}, {}, {}, {}>; } & { [name_4 in keyof networks as Extract<name_4, "arbitrum">]: Environment<{
|
|
2737
1907
|
readonly ETH: {
|
|
2738
1908
|
readonly address: "0x0000000000000000000000000000000000000000";
|
|
2739
1909
|
readonly decimals: 18;
|
|
@@ -2746,7 +1916,7 @@ export declare const createMoonwellClient: <const networks>(config: {
|
|
|
2746
1916
|
readonly name: "USD Coin";
|
|
2747
1917
|
readonly symbol: "USDC";
|
|
2748
1918
|
};
|
|
2749
|
-
}, {}, {}, {}, {}>; } & { [
|
|
1919
|
+
}, {}, {}, {}, {}>; } & { [name_5 in keyof networks as Extract<name_5, "polygon">]: Environment<{
|
|
2750
1920
|
readonly POL: {
|
|
2751
1921
|
readonly address: "0x0000000000000000000000000000000000000000";
|
|
2752
1922
|
readonly decimals: 18;
|