@aurigami/sdk 0.1.0 → 0.1.4
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/MoneyMarket.d.ts +7 -7
- package/dist/SDK.d.ts +6 -5
- package/dist/constants.d.ts +1 -1
- package/dist/dummy.d.ts +6 -5
- package/dist/helpers.d.ts +2 -0
- package/dist/sdk.cjs.development.js +2923 -81
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +2922 -82
- package/dist/sdk.esm.js.map +1 -1
- package/dist/token.d.ts +6 -0
- package/dist/tokenAmount.d.ts +8 -0
- package/package.json +5 -7
- package/src/MoneyMarket.ts +10 -13
- package/src/SDK.ts +37 -36
- package/src/abis/IERC20.json +1259 -0
- package/src/abis/auToken.json +1536 -0
- package/src/constants.ts +4 -7
- package/src/dummy.ts +30 -44
- package/src/helpers.ts +15 -0
- package/src/token.ts +11 -0
- package/src/tokenAmount.ts +29 -0
|
@@ -4,10 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
var IERC20 = _interopDefault(require('@aurigami/contracts/artifacts/contracts/EIP20Interface.sol/EIP20Interface.json'));
|
|
7
|
+
var BigNumber = _interopDefault(require('bignumber.js'));
|
|
9
8
|
var ethers$2 = require('ethers');
|
|
10
|
-
var AuToken = _interopDefault(require('@aurigami/contracts/artifacts/contracts/AuToken.sol/AuToken.json'));
|
|
11
9
|
|
|
12
10
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
13
11
|
try {
|
|
@@ -849,43 +847,47 @@ var BlockchainEntity = /*#__PURE__*/function () {
|
|
|
849
847
|
return BlockchainEntity;
|
|
850
848
|
}();
|
|
851
849
|
|
|
852
|
-
var
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
var
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
850
|
+
var Token = function Token(address, decimals, expiry) {
|
|
851
|
+
this.address = address.toLowerCase();
|
|
852
|
+
this.decimals = decimals;
|
|
853
|
+
this.expiry = expiry;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
var TokenAmount = /*#__PURE__*/function () {
|
|
857
|
+
function TokenAmount(token, amount, isRaw) {
|
|
858
|
+
if (isRaw === void 0) {
|
|
859
|
+
isRaw = true;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
if (isRaw) {
|
|
863
|
+
this.rawAmnt = amount;
|
|
864
|
+
} else {
|
|
865
|
+
this.rawAmnt = new BigNumber(amount).times(decimalFactor(token.decimals)).toFixed(0);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
this.token = token;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
var _proto = TokenAmount.prototype;
|
|
872
|
+
|
|
873
|
+
_proto.formattedAmount = function formattedAmount() {
|
|
874
|
+
return new BigNumber(this.rawAmnt).div(decimalFactor(this.token.decimals)).toString();
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
_proto.rawAmount = function rawAmount() {
|
|
878
|
+
return this.rawAmnt;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
return TokenAmount;
|
|
882
|
+
}();
|
|
883
|
+
|
|
884
|
+
var dummyToken = /*#__PURE__*/new Token('0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e', 6);
|
|
885
|
+
var dummyPly = /*#__PURE__*/new Token('0x8729438eb15e2c8b576fcc6aecda6a148776c0f5', 18);
|
|
886
|
+
var dummyPlyAurora = /*#__PURE__*/new Token('0xE530dC2095Ef5653205CF5ea79F8979a7028065c', 18);
|
|
887
|
+
var dummyTokenAmount = /*#__PURE__*/new TokenAmount(dummyToken, '123.456', false);
|
|
888
|
+
var dummyZeroTokenAmount = /*#__PURE__*/new TokenAmount(dummyToken, '0');
|
|
889
|
+
var dummyTokenAmount2 = /*#__PURE__*/new TokenAmount(dummyToken, '456.123', false);
|
|
890
|
+
var dummyTokenAmount3 = /*#__PURE__*/new TokenAmount(dummyToken, '1000.123', false);
|
|
889
891
|
var dummyMarketAddress = '0xbeb5d47a3f720ec0a390d04b4d41ed7d9688bc7f';
|
|
890
892
|
var dummyUserMarketDetails = {
|
|
891
893
|
market: dummyMarketAddress,
|
|
@@ -897,17 +899,1304 @@ var dummyUserMarketDetails = {
|
|
|
897
899
|
|
|
898
900
|
var ethers = /*#__PURE__*/require('ethers');
|
|
899
901
|
|
|
900
|
-
var DOLLAR = /*#__PURE__*/new
|
|
901
|
-
chainId: 43114,
|
|
902
|
-
decimal: 2,
|
|
903
|
-
symbol: 'USDC',
|
|
904
|
-
address: '0x0000000000000000000000000000000000000001'
|
|
905
|
-
});
|
|
902
|
+
var DOLLAR = /*#__PURE__*/new Token('0x0000000000000000000000000000000000000001', 2);
|
|
906
903
|
var AVAX_DEFAULT_PROVIDER_URL = 'https://api.avax.network/ext/bc/C/rpc';
|
|
907
904
|
var AVAX_DEFAULT_PROVIDER = /*#__PURE__*/new ethers.providers.JsonRpcProvider(AVAX_DEFAULT_PROVIDER_URL);
|
|
908
905
|
var dummyPrivateKey = '1111111111111111111111111111111111111111111111111111111111111111';
|
|
909
906
|
var AVAX_DEFAULT_SIGNER = /*#__PURE__*/new ethers.Wallet(dummyPrivateKey);
|
|
910
907
|
|
|
908
|
+
var abi = [
|
|
909
|
+
{
|
|
910
|
+
inputs: [
|
|
911
|
+
{
|
|
912
|
+
internalType: "string",
|
|
913
|
+
name: "_name",
|
|
914
|
+
type: "string"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
internalType: "string",
|
|
918
|
+
name: "_symbol",
|
|
919
|
+
type: "string"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
internalType: "uint8",
|
|
923
|
+
name: "_decimals",
|
|
924
|
+
type: "uint8"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
internalType: "address",
|
|
928
|
+
name: "_underlying",
|
|
929
|
+
type: "address"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
internalType: "address",
|
|
933
|
+
name: "_vault",
|
|
934
|
+
type: "address"
|
|
935
|
+
}
|
|
936
|
+
],
|
|
937
|
+
stateMutability: "nonpayable",
|
|
938
|
+
type: "constructor"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
anonymous: false,
|
|
942
|
+
inputs: [
|
|
943
|
+
{
|
|
944
|
+
indexed: true,
|
|
945
|
+
internalType: "address",
|
|
946
|
+
name: "owner",
|
|
947
|
+
type: "address"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
indexed: true,
|
|
951
|
+
internalType: "address",
|
|
952
|
+
name: "spender",
|
|
953
|
+
type: "address"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
indexed: false,
|
|
957
|
+
internalType: "uint256",
|
|
958
|
+
name: "value",
|
|
959
|
+
type: "uint256"
|
|
960
|
+
}
|
|
961
|
+
],
|
|
962
|
+
name: "Approval",
|
|
963
|
+
type: "event"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
anonymous: false,
|
|
967
|
+
inputs: [
|
|
968
|
+
{
|
|
969
|
+
indexed: true,
|
|
970
|
+
internalType: "address",
|
|
971
|
+
name: "auth",
|
|
972
|
+
type: "address"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
indexed: false,
|
|
976
|
+
internalType: "uint256",
|
|
977
|
+
name: "timestamp",
|
|
978
|
+
type: "uint256"
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
name: "LogAddAuth",
|
|
982
|
+
type: "event"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
anonymous: false,
|
|
986
|
+
inputs: [
|
|
987
|
+
{
|
|
988
|
+
indexed: true,
|
|
989
|
+
internalType: "address",
|
|
990
|
+
name: "oldOwner",
|
|
991
|
+
type: "address"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
indexed: true,
|
|
995
|
+
internalType: "address",
|
|
996
|
+
name: "newOwner",
|
|
997
|
+
type: "address"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
indexed: true,
|
|
1001
|
+
internalType: "uint256",
|
|
1002
|
+
name: "effectiveHeight",
|
|
1003
|
+
type: "uint256"
|
|
1004
|
+
}
|
|
1005
|
+
],
|
|
1006
|
+
name: "LogChangeMPCOwner",
|
|
1007
|
+
type: "event"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
anonymous: false,
|
|
1011
|
+
inputs: [
|
|
1012
|
+
{
|
|
1013
|
+
indexed: true,
|
|
1014
|
+
internalType: "address",
|
|
1015
|
+
name: "oldVault",
|
|
1016
|
+
type: "address"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
indexed: true,
|
|
1020
|
+
internalType: "address",
|
|
1021
|
+
name: "newVault",
|
|
1022
|
+
type: "address"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
indexed: true,
|
|
1026
|
+
internalType: "uint256",
|
|
1027
|
+
name: "effectiveTime",
|
|
1028
|
+
type: "uint256"
|
|
1029
|
+
}
|
|
1030
|
+
],
|
|
1031
|
+
name: "LogChangeVault",
|
|
1032
|
+
type: "event"
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
anonymous: false,
|
|
1036
|
+
inputs: [
|
|
1037
|
+
{
|
|
1038
|
+
indexed: true,
|
|
1039
|
+
internalType: "bytes32",
|
|
1040
|
+
name: "txhash",
|
|
1041
|
+
type: "bytes32"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
indexed: true,
|
|
1045
|
+
internalType: "address",
|
|
1046
|
+
name: "account",
|
|
1047
|
+
type: "address"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
indexed: false,
|
|
1051
|
+
internalType: "uint256",
|
|
1052
|
+
name: "amount",
|
|
1053
|
+
type: "uint256"
|
|
1054
|
+
}
|
|
1055
|
+
],
|
|
1056
|
+
name: "LogSwapin",
|
|
1057
|
+
type: "event"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
anonymous: false,
|
|
1061
|
+
inputs: [
|
|
1062
|
+
{
|
|
1063
|
+
indexed: true,
|
|
1064
|
+
internalType: "address",
|
|
1065
|
+
name: "account",
|
|
1066
|
+
type: "address"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
indexed: true,
|
|
1070
|
+
internalType: "address",
|
|
1071
|
+
name: "bindaddr",
|
|
1072
|
+
type: "address"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
indexed: false,
|
|
1076
|
+
internalType: "uint256",
|
|
1077
|
+
name: "amount",
|
|
1078
|
+
type: "uint256"
|
|
1079
|
+
}
|
|
1080
|
+
],
|
|
1081
|
+
name: "LogSwapout",
|
|
1082
|
+
type: "event"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
anonymous: false,
|
|
1086
|
+
inputs: [
|
|
1087
|
+
{
|
|
1088
|
+
indexed: true,
|
|
1089
|
+
internalType: "address",
|
|
1090
|
+
name: "from",
|
|
1091
|
+
type: "address"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
indexed: true,
|
|
1095
|
+
internalType: "address",
|
|
1096
|
+
name: "to",
|
|
1097
|
+
type: "address"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
indexed: false,
|
|
1101
|
+
internalType: "uint256",
|
|
1102
|
+
name: "value",
|
|
1103
|
+
type: "uint256"
|
|
1104
|
+
}
|
|
1105
|
+
],
|
|
1106
|
+
name: "Transfer",
|
|
1107
|
+
type: "event"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
inputs: [
|
|
1111
|
+
],
|
|
1112
|
+
name: "DOMAIN_SEPARATOR",
|
|
1113
|
+
outputs: [
|
|
1114
|
+
{
|
|
1115
|
+
internalType: "bytes32",
|
|
1116
|
+
name: "",
|
|
1117
|
+
type: "bytes32"
|
|
1118
|
+
}
|
|
1119
|
+
],
|
|
1120
|
+
stateMutability: "view",
|
|
1121
|
+
type: "function"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
inputs: [
|
|
1125
|
+
],
|
|
1126
|
+
name: "PERMIT_TYPEHASH",
|
|
1127
|
+
outputs: [
|
|
1128
|
+
{
|
|
1129
|
+
internalType: "bytes32",
|
|
1130
|
+
name: "",
|
|
1131
|
+
type: "bytes32"
|
|
1132
|
+
}
|
|
1133
|
+
],
|
|
1134
|
+
stateMutability: "view",
|
|
1135
|
+
type: "function"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
inputs: [
|
|
1139
|
+
{
|
|
1140
|
+
internalType: "bytes32",
|
|
1141
|
+
name: "txhash",
|
|
1142
|
+
type: "bytes32"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
internalType: "address",
|
|
1146
|
+
name: "account",
|
|
1147
|
+
type: "address"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
internalType: "uint256",
|
|
1151
|
+
name: "amount",
|
|
1152
|
+
type: "uint256"
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
name: "Swapin",
|
|
1156
|
+
outputs: [
|
|
1157
|
+
{
|
|
1158
|
+
internalType: "bool",
|
|
1159
|
+
name: "",
|
|
1160
|
+
type: "bool"
|
|
1161
|
+
}
|
|
1162
|
+
],
|
|
1163
|
+
stateMutability: "nonpayable",
|
|
1164
|
+
type: "function"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
inputs: [
|
|
1168
|
+
{
|
|
1169
|
+
internalType: "uint256",
|
|
1170
|
+
name: "amount",
|
|
1171
|
+
type: "uint256"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
internalType: "address",
|
|
1175
|
+
name: "bindaddr",
|
|
1176
|
+
type: "address"
|
|
1177
|
+
}
|
|
1178
|
+
],
|
|
1179
|
+
name: "Swapout",
|
|
1180
|
+
outputs: [
|
|
1181
|
+
{
|
|
1182
|
+
internalType: "bool",
|
|
1183
|
+
name: "",
|
|
1184
|
+
type: "bool"
|
|
1185
|
+
}
|
|
1186
|
+
],
|
|
1187
|
+
stateMutability: "nonpayable",
|
|
1188
|
+
type: "function"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
inputs: [
|
|
1192
|
+
],
|
|
1193
|
+
name: "TRANSFER_TYPEHASH",
|
|
1194
|
+
outputs: [
|
|
1195
|
+
{
|
|
1196
|
+
internalType: "bytes32",
|
|
1197
|
+
name: "",
|
|
1198
|
+
type: "bytes32"
|
|
1199
|
+
}
|
|
1200
|
+
],
|
|
1201
|
+
stateMutability: "view",
|
|
1202
|
+
type: "function"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
inputs: [
|
|
1206
|
+
{
|
|
1207
|
+
internalType: "address",
|
|
1208
|
+
name: "",
|
|
1209
|
+
type: "address"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
internalType: "address",
|
|
1213
|
+
name: "",
|
|
1214
|
+
type: "address"
|
|
1215
|
+
}
|
|
1216
|
+
],
|
|
1217
|
+
name: "allowance",
|
|
1218
|
+
outputs: [
|
|
1219
|
+
{
|
|
1220
|
+
internalType: "uint256",
|
|
1221
|
+
name: "",
|
|
1222
|
+
type: "uint256"
|
|
1223
|
+
}
|
|
1224
|
+
],
|
|
1225
|
+
stateMutability: "view",
|
|
1226
|
+
type: "function"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
inputs: [
|
|
1230
|
+
],
|
|
1231
|
+
name: "applyMinter",
|
|
1232
|
+
outputs: [
|
|
1233
|
+
],
|
|
1234
|
+
stateMutability: "nonpayable",
|
|
1235
|
+
type: "function"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
inputs: [
|
|
1239
|
+
],
|
|
1240
|
+
name: "applyVault",
|
|
1241
|
+
outputs: [
|
|
1242
|
+
],
|
|
1243
|
+
stateMutability: "nonpayable",
|
|
1244
|
+
type: "function"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
inputs: [
|
|
1248
|
+
{
|
|
1249
|
+
internalType: "address",
|
|
1250
|
+
name: "spender",
|
|
1251
|
+
type: "address"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
internalType: "uint256",
|
|
1255
|
+
name: "value",
|
|
1256
|
+
type: "uint256"
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
name: "approve",
|
|
1260
|
+
outputs: [
|
|
1261
|
+
{
|
|
1262
|
+
internalType: "bool",
|
|
1263
|
+
name: "",
|
|
1264
|
+
type: "bool"
|
|
1265
|
+
}
|
|
1266
|
+
],
|
|
1267
|
+
stateMutability: "nonpayable",
|
|
1268
|
+
type: "function"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
inputs: [
|
|
1272
|
+
{
|
|
1273
|
+
internalType: "address",
|
|
1274
|
+
name: "spender",
|
|
1275
|
+
type: "address"
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
internalType: "uint256",
|
|
1279
|
+
name: "value",
|
|
1280
|
+
type: "uint256"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
internalType: "bytes",
|
|
1284
|
+
name: "data",
|
|
1285
|
+
type: "bytes"
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
name: "approveAndCall",
|
|
1289
|
+
outputs: [
|
|
1290
|
+
{
|
|
1291
|
+
internalType: "bool",
|
|
1292
|
+
name: "",
|
|
1293
|
+
type: "bool"
|
|
1294
|
+
}
|
|
1295
|
+
],
|
|
1296
|
+
stateMutability: "nonpayable",
|
|
1297
|
+
type: "function"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
inputs: [
|
|
1301
|
+
{
|
|
1302
|
+
internalType: "address",
|
|
1303
|
+
name: "",
|
|
1304
|
+
type: "address"
|
|
1305
|
+
}
|
|
1306
|
+
],
|
|
1307
|
+
name: "balanceOf",
|
|
1308
|
+
outputs: [
|
|
1309
|
+
{
|
|
1310
|
+
internalType: "uint256",
|
|
1311
|
+
name: "",
|
|
1312
|
+
type: "uint256"
|
|
1313
|
+
}
|
|
1314
|
+
],
|
|
1315
|
+
stateMutability: "view",
|
|
1316
|
+
type: "function"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
inputs: [
|
|
1320
|
+
{
|
|
1321
|
+
internalType: "address",
|
|
1322
|
+
name: "from",
|
|
1323
|
+
type: "address"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
internalType: "uint256",
|
|
1327
|
+
name: "amount",
|
|
1328
|
+
type: "uint256"
|
|
1329
|
+
}
|
|
1330
|
+
],
|
|
1331
|
+
name: "burn",
|
|
1332
|
+
outputs: [
|
|
1333
|
+
{
|
|
1334
|
+
internalType: "bool",
|
|
1335
|
+
name: "",
|
|
1336
|
+
type: "bool"
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
stateMutability: "nonpayable",
|
|
1340
|
+
type: "function"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
inputs: [
|
|
1344
|
+
{
|
|
1345
|
+
internalType: "address",
|
|
1346
|
+
name: "newVault",
|
|
1347
|
+
type: "address"
|
|
1348
|
+
}
|
|
1349
|
+
],
|
|
1350
|
+
name: "changeMPCOwner",
|
|
1351
|
+
outputs: [
|
|
1352
|
+
{
|
|
1353
|
+
internalType: "bool",
|
|
1354
|
+
name: "",
|
|
1355
|
+
type: "bool"
|
|
1356
|
+
}
|
|
1357
|
+
],
|
|
1358
|
+
stateMutability: "nonpayable",
|
|
1359
|
+
type: "function"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
inputs: [
|
|
1363
|
+
{
|
|
1364
|
+
internalType: "address",
|
|
1365
|
+
name: "newVault",
|
|
1366
|
+
type: "address"
|
|
1367
|
+
}
|
|
1368
|
+
],
|
|
1369
|
+
name: "changeVault",
|
|
1370
|
+
outputs: [
|
|
1371
|
+
{
|
|
1372
|
+
internalType: "bool",
|
|
1373
|
+
name: "",
|
|
1374
|
+
type: "bool"
|
|
1375
|
+
}
|
|
1376
|
+
],
|
|
1377
|
+
stateMutability: "nonpayable",
|
|
1378
|
+
type: "function"
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
inputs: [
|
|
1382
|
+
],
|
|
1383
|
+
name: "decimals",
|
|
1384
|
+
outputs: [
|
|
1385
|
+
{
|
|
1386
|
+
internalType: "uint8",
|
|
1387
|
+
name: "",
|
|
1388
|
+
type: "uint8"
|
|
1389
|
+
}
|
|
1390
|
+
],
|
|
1391
|
+
stateMutability: "view",
|
|
1392
|
+
type: "function"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
inputs: [
|
|
1396
|
+
],
|
|
1397
|
+
name: "delay",
|
|
1398
|
+
outputs: [
|
|
1399
|
+
{
|
|
1400
|
+
internalType: "uint256",
|
|
1401
|
+
name: "",
|
|
1402
|
+
type: "uint256"
|
|
1403
|
+
}
|
|
1404
|
+
],
|
|
1405
|
+
stateMutability: "view",
|
|
1406
|
+
type: "function"
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
inputs: [
|
|
1410
|
+
],
|
|
1411
|
+
name: "delayDelay",
|
|
1412
|
+
outputs: [
|
|
1413
|
+
{
|
|
1414
|
+
internalType: "uint256",
|
|
1415
|
+
name: "",
|
|
1416
|
+
type: "uint256"
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
stateMutability: "view",
|
|
1420
|
+
type: "function"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
inputs: [
|
|
1424
|
+
],
|
|
1425
|
+
name: "delayMinter",
|
|
1426
|
+
outputs: [
|
|
1427
|
+
{
|
|
1428
|
+
internalType: "uint256",
|
|
1429
|
+
name: "",
|
|
1430
|
+
type: "uint256"
|
|
1431
|
+
}
|
|
1432
|
+
],
|
|
1433
|
+
stateMutability: "view",
|
|
1434
|
+
type: "function"
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
inputs: [
|
|
1438
|
+
],
|
|
1439
|
+
name: "delayVault",
|
|
1440
|
+
outputs: [
|
|
1441
|
+
{
|
|
1442
|
+
internalType: "uint256",
|
|
1443
|
+
name: "",
|
|
1444
|
+
type: "uint256"
|
|
1445
|
+
}
|
|
1446
|
+
],
|
|
1447
|
+
stateMutability: "view",
|
|
1448
|
+
type: "function"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
inputs: [
|
|
1452
|
+
{
|
|
1453
|
+
internalType: "uint256",
|
|
1454
|
+
name: "amount",
|
|
1455
|
+
type: "uint256"
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
internalType: "address",
|
|
1459
|
+
name: "to",
|
|
1460
|
+
type: "address"
|
|
1461
|
+
}
|
|
1462
|
+
],
|
|
1463
|
+
name: "deposit",
|
|
1464
|
+
outputs: [
|
|
1465
|
+
{
|
|
1466
|
+
internalType: "uint256",
|
|
1467
|
+
name: "",
|
|
1468
|
+
type: "uint256"
|
|
1469
|
+
}
|
|
1470
|
+
],
|
|
1471
|
+
stateMutability: "nonpayable",
|
|
1472
|
+
type: "function"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
inputs: [
|
|
1476
|
+
{
|
|
1477
|
+
internalType: "uint256",
|
|
1478
|
+
name: "amount",
|
|
1479
|
+
type: "uint256"
|
|
1480
|
+
}
|
|
1481
|
+
],
|
|
1482
|
+
name: "deposit",
|
|
1483
|
+
outputs: [
|
|
1484
|
+
{
|
|
1485
|
+
internalType: "uint256",
|
|
1486
|
+
name: "",
|
|
1487
|
+
type: "uint256"
|
|
1488
|
+
}
|
|
1489
|
+
],
|
|
1490
|
+
stateMutability: "nonpayable",
|
|
1491
|
+
type: "function"
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
inputs: [
|
|
1495
|
+
],
|
|
1496
|
+
name: "deposit",
|
|
1497
|
+
outputs: [
|
|
1498
|
+
{
|
|
1499
|
+
internalType: "uint256",
|
|
1500
|
+
name: "",
|
|
1501
|
+
type: "uint256"
|
|
1502
|
+
}
|
|
1503
|
+
],
|
|
1504
|
+
stateMutability: "nonpayable",
|
|
1505
|
+
type: "function"
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
inputs: [
|
|
1509
|
+
{
|
|
1510
|
+
internalType: "uint256",
|
|
1511
|
+
name: "amount",
|
|
1512
|
+
type: "uint256"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
internalType: "address",
|
|
1516
|
+
name: "to",
|
|
1517
|
+
type: "address"
|
|
1518
|
+
}
|
|
1519
|
+
],
|
|
1520
|
+
name: "depositVault",
|
|
1521
|
+
outputs: [
|
|
1522
|
+
{
|
|
1523
|
+
internalType: "uint256",
|
|
1524
|
+
name: "",
|
|
1525
|
+
type: "uint256"
|
|
1526
|
+
}
|
|
1527
|
+
],
|
|
1528
|
+
stateMutability: "nonpayable",
|
|
1529
|
+
type: "function"
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
inputs: [
|
|
1533
|
+
{
|
|
1534
|
+
internalType: "address",
|
|
1535
|
+
name: "target",
|
|
1536
|
+
type: "address"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
internalType: "uint256",
|
|
1540
|
+
name: "value",
|
|
1541
|
+
type: "uint256"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
internalType: "uint256",
|
|
1545
|
+
name: "deadline",
|
|
1546
|
+
type: "uint256"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
internalType: "uint8",
|
|
1550
|
+
name: "v",
|
|
1551
|
+
type: "uint8"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
internalType: "bytes32",
|
|
1555
|
+
name: "r",
|
|
1556
|
+
type: "bytes32"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
internalType: "bytes32",
|
|
1560
|
+
name: "s",
|
|
1561
|
+
type: "bytes32"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
internalType: "address",
|
|
1565
|
+
name: "to",
|
|
1566
|
+
type: "address"
|
|
1567
|
+
}
|
|
1568
|
+
],
|
|
1569
|
+
name: "depositWithPermit",
|
|
1570
|
+
outputs: [
|
|
1571
|
+
{
|
|
1572
|
+
internalType: "uint256",
|
|
1573
|
+
name: "",
|
|
1574
|
+
type: "uint256"
|
|
1575
|
+
}
|
|
1576
|
+
],
|
|
1577
|
+
stateMutability: "nonpayable",
|
|
1578
|
+
type: "function"
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
inputs: [
|
|
1582
|
+
{
|
|
1583
|
+
internalType: "address",
|
|
1584
|
+
name: "target",
|
|
1585
|
+
type: "address"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
internalType: "uint256",
|
|
1589
|
+
name: "value",
|
|
1590
|
+
type: "uint256"
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
internalType: "uint256",
|
|
1594
|
+
name: "deadline",
|
|
1595
|
+
type: "uint256"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
internalType: "uint8",
|
|
1599
|
+
name: "v",
|
|
1600
|
+
type: "uint8"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
internalType: "bytes32",
|
|
1604
|
+
name: "r",
|
|
1605
|
+
type: "bytes32"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
internalType: "bytes32",
|
|
1609
|
+
name: "s",
|
|
1610
|
+
type: "bytes32"
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
internalType: "address",
|
|
1614
|
+
name: "to",
|
|
1615
|
+
type: "address"
|
|
1616
|
+
}
|
|
1617
|
+
],
|
|
1618
|
+
name: "depositWithTransferPermit",
|
|
1619
|
+
outputs: [
|
|
1620
|
+
{
|
|
1621
|
+
internalType: "uint256",
|
|
1622
|
+
name: "",
|
|
1623
|
+
type: "uint256"
|
|
1624
|
+
}
|
|
1625
|
+
],
|
|
1626
|
+
stateMutability: "nonpayable",
|
|
1627
|
+
type: "function"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
inputs: [
|
|
1631
|
+
],
|
|
1632
|
+
name: "getAllMinters",
|
|
1633
|
+
outputs: [
|
|
1634
|
+
{
|
|
1635
|
+
internalType: "address[]",
|
|
1636
|
+
name: "",
|
|
1637
|
+
type: "address[]"
|
|
1638
|
+
}
|
|
1639
|
+
],
|
|
1640
|
+
stateMutability: "view",
|
|
1641
|
+
type: "function"
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
inputs: [
|
|
1645
|
+
{
|
|
1646
|
+
internalType: "address",
|
|
1647
|
+
name: "_vault",
|
|
1648
|
+
type: "address"
|
|
1649
|
+
}
|
|
1650
|
+
],
|
|
1651
|
+
name: "initVault",
|
|
1652
|
+
outputs: [
|
|
1653
|
+
],
|
|
1654
|
+
stateMutability: "nonpayable",
|
|
1655
|
+
type: "function"
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
inputs: [
|
|
1659
|
+
{
|
|
1660
|
+
internalType: "address",
|
|
1661
|
+
name: "",
|
|
1662
|
+
type: "address"
|
|
1663
|
+
}
|
|
1664
|
+
],
|
|
1665
|
+
name: "isMinter",
|
|
1666
|
+
outputs: [
|
|
1667
|
+
{
|
|
1668
|
+
internalType: "bool",
|
|
1669
|
+
name: "",
|
|
1670
|
+
type: "bool"
|
|
1671
|
+
}
|
|
1672
|
+
],
|
|
1673
|
+
stateMutability: "view",
|
|
1674
|
+
type: "function"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
inputs: [
|
|
1678
|
+
{
|
|
1679
|
+
internalType: "address",
|
|
1680
|
+
name: "to",
|
|
1681
|
+
type: "address"
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
internalType: "uint256",
|
|
1685
|
+
name: "amount",
|
|
1686
|
+
type: "uint256"
|
|
1687
|
+
}
|
|
1688
|
+
],
|
|
1689
|
+
name: "mint",
|
|
1690
|
+
outputs: [
|
|
1691
|
+
{
|
|
1692
|
+
internalType: "bool",
|
|
1693
|
+
name: "",
|
|
1694
|
+
type: "bool"
|
|
1695
|
+
}
|
|
1696
|
+
],
|
|
1697
|
+
stateMutability: "nonpayable",
|
|
1698
|
+
type: "function"
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
inputs: [
|
|
1702
|
+
{
|
|
1703
|
+
internalType: "uint256",
|
|
1704
|
+
name: "",
|
|
1705
|
+
type: "uint256"
|
|
1706
|
+
}
|
|
1707
|
+
],
|
|
1708
|
+
name: "minters",
|
|
1709
|
+
outputs: [
|
|
1710
|
+
{
|
|
1711
|
+
internalType: "address",
|
|
1712
|
+
name: "",
|
|
1713
|
+
type: "address"
|
|
1714
|
+
}
|
|
1715
|
+
],
|
|
1716
|
+
stateMutability: "view",
|
|
1717
|
+
type: "function"
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
inputs: [
|
|
1721
|
+
],
|
|
1722
|
+
name: "mpc",
|
|
1723
|
+
outputs: [
|
|
1724
|
+
{
|
|
1725
|
+
internalType: "address",
|
|
1726
|
+
name: "",
|
|
1727
|
+
type: "address"
|
|
1728
|
+
}
|
|
1729
|
+
],
|
|
1730
|
+
stateMutability: "view",
|
|
1731
|
+
type: "function"
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
inputs: [
|
|
1735
|
+
],
|
|
1736
|
+
name: "name",
|
|
1737
|
+
outputs: [
|
|
1738
|
+
{
|
|
1739
|
+
internalType: "string",
|
|
1740
|
+
name: "",
|
|
1741
|
+
type: "string"
|
|
1742
|
+
}
|
|
1743
|
+
],
|
|
1744
|
+
stateMutability: "view",
|
|
1745
|
+
type: "function"
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
inputs: [
|
|
1749
|
+
{
|
|
1750
|
+
internalType: "address",
|
|
1751
|
+
name: "",
|
|
1752
|
+
type: "address"
|
|
1753
|
+
}
|
|
1754
|
+
],
|
|
1755
|
+
name: "nonces",
|
|
1756
|
+
outputs: [
|
|
1757
|
+
{
|
|
1758
|
+
internalType: "uint256",
|
|
1759
|
+
name: "",
|
|
1760
|
+
type: "uint256"
|
|
1761
|
+
}
|
|
1762
|
+
],
|
|
1763
|
+
stateMutability: "view",
|
|
1764
|
+
type: "function"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
inputs: [
|
|
1768
|
+
],
|
|
1769
|
+
name: "owner",
|
|
1770
|
+
outputs: [
|
|
1771
|
+
{
|
|
1772
|
+
internalType: "address",
|
|
1773
|
+
name: "",
|
|
1774
|
+
type: "address"
|
|
1775
|
+
}
|
|
1776
|
+
],
|
|
1777
|
+
stateMutability: "view",
|
|
1778
|
+
type: "function"
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
inputs: [
|
|
1782
|
+
],
|
|
1783
|
+
name: "pendingDelay",
|
|
1784
|
+
outputs: [
|
|
1785
|
+
{
|
|
1786
|
+
internalType: "uint256",
|
|
1787
|
+
name: "",
|
|
1788
|
+
type: "uint256"
|
|
1789
|
+
}
|
|
1790
|
+
],
|
|
1791
|
+
stateMutability: "view",
|
|
1792
|
+
type: "function"
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
inputs: [
|
|
1796
|
+
],
|
|
1797
|
+
name: "pendingMinter",
|
|
1798
|
+
outputs: [
|
|
1799
|
+
{
|
|
1800
|
+
internalType: "address",
|
|
1801
|
+
name: "",
|
|
1802
|
+
type: "address"
|
|
1803
|
+
}
|
|
1804
|
+
],
|
|
1805
|
+
stateMutability: "view",
|
|
1806
|
+
type: "function"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
inputs: [
|
|
1810
|
+
],
|
|
1811
|
+
name: "pendingVault",
|
|
1812
|
+
outputs: [
|
|
1813
|
+
{
|
|
1814
|
+
internalType: "address",
|
|
1815
|
+
name: "",
|
|
1816
|
+
type: "address"
|
|
1817
|
+
}
|
|
1818
|
+
],
|
|
1819
|
+
stateMutability: "view",
|
|
1820
|
+
type: "function"
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
inputs: [
|
|
1824
|
+
{
|
|
1825
|
+
internalType: "address",
|
|
1826
|
+
name: "target",
|
|
1827
|
+
type: "address"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
internalType: "address",
|
|
1831
|
+
name: "spender",
|
|
1832
|
+
type: "address"
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
internalType: "uint256",
|
|
1836
|
+
name: "value",
|
|
1837
|
+
type: "uint256"
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
internalType: "uint256",
|
|
1841
|
+
name: "deadline",
|
|
1842
|
+
type: "uint256"
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
internalType: "uint8",
|
|
1846
|
+
name: "v",
|
|
1847
|
+
type: "uint8"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
internalType: "bytes32",
|
|
1851
|
+
name: "r",
|
|
1852
|
+
type: "bytes32"
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
internalType: "bytes32",
|
|
1856
|
+
name: "s",
|
|
1857
|
+
type: "bytes32"
|
|
1858
|
+
}
|
|
1859
|
+
],
|
|
1860
|
+
name: "permit",
|
|
1861
|
+
outputs: [
|
|
1862
|
+
],
|
|
1863
|
+
stateMutability: "nonpayable",
|
|
1864
|
+
type: "function"
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
inputs: [
|
|
1868
|
+
{
|
|
1869
|
+
internalType: "address",
|
|
1870
|
+
name: "_auth",
|
|
1871
|
+
type: "address"
|
|
1872
|
+
}
|
|
1873
|
+
],
|
|
1874
|
+
name: "revokeMinter",
|
|
1875
|
+
outputs: [
|
|
1876
|
+
],
|
|
1877
|
+
stateMutability: "nonpayable",
|
|
1878
|
+
type: "function"
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
inputs: [
|
|
1882
|
+
{
|
|
1883
|
+
internalType: "address",
|
|
1884
|
+
name: "_auth",
|
|
1885
|
+
type: "address"
|
|
1886
|
+
}
|
|
1887
|
+
],
|
|
1888
|
+
name: "setMinter",
|
|
1889
|
+
outputs: [
|
|
1890
|
+
],
|
|
1891
|
+
stateMutability: "nonpayable",
|
|
1892
|
+
type: "function"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
inputs: [
|
|
1896
|
+
{
|
|
1897
|
+
internalType: "address",
|
|
1898
|
+
name: "_vault",
|
|
1899
|
+
type: "address"
|
|
1900
|
+
}
|
|
1901
|
+
],
|
|
1902
|
+
name: "setVault",
|
|
1903
|
+
outputs: [
|
|
1904
|
+
],
|
|
1905
|
+
stateMutability: "nonpayable",
|
|
1906
|
+
type: "function"
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
inputs: [
|
|
1910
|
+
{
|
|
1911
|
+
internalType: "bool",
|
|
1912
|
+
name: "enabled",
|
|
1913
|
+
type: "bool"
|
|
1914
|
+
}
|
|
1915
|
+
],
|
|
1916
|
+
name: "setVaultOnly",
|
|
1917
|
+
outputs: [
|
|
1918
|
+
],
|
|
1919
|
+
stateMutability: "nonpayable",
|
|
1920
|
+
type: "function"
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
inputs: [
|
|
1924
|
+
],
|
|
1925
|
+
name: "symbol",
|
|
1926
|
+
outputs: [
|
|
1927
|
+
{
|
|
1928
|
+
internalType: "string",
|
|
1929
|
+
name: "",
|
|
1930
|
+
type: "string"
|
|
1931
|
+
}
|
|
1932
|
+
],
|
|
1933
|
+
stateMutability: "view",
|
|
1934
|
+
type: "function"
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
inputs: [
|
|
1938
|
+
],
|
|
1939
|
+
name: "totalSupply",
|
|
1940
|
+
outputs: [
|
|
1941
|
+
{
|
|
1942
|
+
internalType: "uint256",
|
|
1943
|
+
name: "",
|
|
1944
|
+
type: "uint256"
|
|
1945
|
+
}
|
|
1946
|
+
],
|
|
1947
|
+
stateMutability: "view",
|
|
1948
|
+
type: "function"
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
inputs: [
|
|
1952
|
+
{
|
|
1953
|
+
internalType: "address",
|
|
1954
|
+
name: "to",
|
|
1955
|
+
type: "address"
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
internalType: "uint256",
|
|
1959
|
+
name: "value",
|
|
1960
|
+
type: "uint256"
|
|
1961
|
+
}
|
|
1962
|
+
],
|
|
1963
|
+
name: "transfer",
|
|
1964
|
+
outputs: [
|
|
1965
|
+
{
|
|
1966
|
+
internalType: "bool",
|
|
1967
|
+
name: "",
|
|
1968
|
+
type: "bool"
|
|
1969
|
+
}
|
|
1970
|
+
],
|
|
1971
|
+
stateMutability: "nonpayable",
|
|
1972
|
+
type: "function"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
inputs: [
|
|
1976
|
+
{
|
|
1977
|
+
internalType: "address",
|
|
1978
|
+
name: "to",
|
|
1979
|
+
type: "address"
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
internalType: "uint256",
|
|
1983
|
+
name: "value",
|
|
1984
|
+
type: "uint256"
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
internalType: "bytes",
|
|
1988
|
+
name: "data",
|
|
1989
|
+
type: "bytes"
|
|
1990
|
+
}
|
|
1991
|
+
],
|
|
1992
|
+
name: "transferAndCall",
|
|
1993
|
+
outputs: [
|
|
1994
|
+
{
|
|
1995
|
+
internalType: "bool",
|
|
1996
|
+
name: "",
|
|
1997
|
+
type: "bool"
|
|
1998
|
+
}
|
|
1999
|
+
],
|
|
2000
|
+
stateMutability: "nonpayable",
|
|
2001
|
+
type: "function"
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
inputs: [
|
|
2005
|
+
{
|
|
2006
|
+
internalType: "address",
|
|
2007
|
+
name: "from",
|
|
2008
|
+
type: "address"
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
internalType: "address",
|
|
2012
|
+
name: "to",
|
|
2013
|
+
type: "address"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
internalType: "uint256",
|
|
2017
|
+
name: "value",
|
|
2018
|
+
type: "uint256"
|
|
2019
|
+
}
|
|
2020
|
+
],
|
|
2021
|
+
name: "transferFrom",
|
|
2022
|
+
outputs: [
|
|
2023
|
+
{
|
|
2024
|
+
internalType: "bool",
|
|
2025
|
+
name: "",
|
|
2026
|
+
type: "bool"
|
|
2027
|
+
}
|
|
2028
|
+
],
|
|
2029
|
+
stateMutability: "nonpayable",
|
|
2030
|
+
type: "function"
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
inputs: [
|
|
2034
|
+
{
|
|
2035
|
+
internalType: "address",
|
|
2036
|
+
name: "target",
|
|
2037
|
+
type: "address"
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
internalType: "address",
|
|
2041
|
+
name: "to",
|
|
2042
|
+
type: "address"
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
internalType: "uint256",
|
|
2046
|
+
name: "value",
|
|
2047
|
+
type: "uint256"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
internalType: "uint256",
|
|
2051
|
+
name: "deadline",
|
|
2052
|
+
type: "uint256"
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
internalType: "uint8",
|
|
2056
|
+
name: "v",
|
|
2057
|
+
type: "uint8"
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
internalType: "bytes32",
|
|
2061
|
+
name: "r",
|
|
2062
|
+
type: "bytes32"
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
internalType: "bytes32",
|
|
2066
|
+
name: "s",
|
|
2067
|
+
type: "bytes32"
|
|
2068
|
+
}
|
|
2069
|
+
],
|
|
2070
|
+
name: "transferWithPermit",
|
|
2071
|
+
outputs: [
|
|
2072
|
+
{
|
|
2073
|
+
internalType: "bool",
|
|
2074
|
+
name: "",
|
|
2075
|
+
type: "bool"
|
|
2076
|
+
}
|
|
2077
|
+
],
|
|
2078
|
+
stateMutability: "nonpayable",
|
|
2079
|
+
type: "function"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
inputs: [
|
|
2083
|
+
],
|
|
2084
|
+
name: "underlying",
|
|
2085
|
+
outputs: [
|
|
2086
|
+
{
|
|
2087
|
+
internalType: "address",
|
|
2088
|
+
name: "",
|
|
2089
|
+
type: "address"
|
|
2090
|
+
}
|
|
2091
|
+
],
|
|
2092
|
+
stateMutability: "view",
|
|
2093
|
+
type: "function"
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
inputs: [
|
|
2097
|
+
],
|
|
2098
|
+
name: "vault",
|
|
2099
|
+
outputs: [
|
|
2100
|
+
{
|
|
2101
|
+
internalType: "address",
|
|
2102
|
+
name: "",
|
|
2103
|
+
type: "address"
|
|
2104
|
+
}
|
|
2105
|
+
],
|
|
2106
|
+
stateMutability: "view",
|
|
2107
|
+
type: "function"
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
inputs: [
|
|
2111
|
+
{
|
|
2112
|
+
internalType: "uint256",
|
|
2113
|
+
name: "amount",
|
|
2114
|
+
type: "uint256"
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
internalType: "address",
|
|
2118
|
+
name: "to",
|
|
2119
|
+
type: "address"
|
|
2120
|
+
}
|
|
2121
|
+
],
|
|
2122
|
+
name: "withdraw",
|
|
2123
|
+
outputs: [
|
|
2124
|
+
{
|
|
2125
|
+
internalType: "uint256",
|
|
2126
|
+
name: "",
|
|
2127
|
+
type: "uint256"
|
|
2128
|
+
}
|
|
2129
|
+
],
|
|
2130
|
+
stateMutability: "nonpayable",
|
|
2131
|
+
type: "function"
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
inputs: [
|
|
2135
|
+
{
|
|
2136
|
+
internalType: "uint256",
|
|
2137
|
+
name: "amount",
|
|
2138
|
+
type: "uint256"
|
|
2139
|
+
}
|
|
2140
|
+
],
|
|
2141
|
+
name: "withdraw",
|
|
2142
|
+
outputs: [
|
|
2143
|
+
{
|
|
2144
|
+
internalType: "uint256",
|
|
2145
|
+
name: "",
|
|
2146
|
+
type: "uint256"
|
|
2147
|
+
}
|
|
2148
|
+
],
|
|
2149
|
+
stateMutability: "nonpayable",
|
|
2150
|
+
type: "function"
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
inputs: [
|
|
2154
|
+
],
|
|
2155
|
+
name: "withdraw",
|
|
2156
|
+
outputs: [
|
|
2157
|
+
{
|
|
2158
|
+
internalType: "uint256",
|
|
2159
|
+
name: "",
|
|
2160
|
+
type: "uint256"
|
|
2161
|
+
}
|
|
2162
|
+
],
|
|
2163
|
+
stateMutability: "nonpayable",
|
|
2164
|
+
type: "function"
|
|
2165
|
+
},
|
|
2166
|
+
{
|
|
2167
|
+
inputs: [
|
|
2168
|
+
{
|
|
2169
|
+
internalType: "address",
|
|
2170
|
+
name: "from",
|
|
2171
|
+
type: "address"
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
internalType: "uint256",
|
|
2175
|
+
name: "amount",
|
|
2176
|
+
type: "uint256"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
internalType: "address",
|
|
2180
|
+
name: "to",
|
|
2181
|
+
type: "address"
|
|
2182
|
+
}
|
|
2183
|
+
],
|
|
2184
|
+
name: "withdrawVault",
|
|
2185
|
+
outputs: [
|
|
2186
|
+
{
|
|
2187
|
+
internalType: "uint256",
|
|
2188
|
+
name: "",
|
|
2189
|
+
type: "uint256"
|
|
2190
|
+
}
|
|
2191
|
+
],
|
|
2192
|
+
stateMutability: "nonpayable",
|
|
2193
|
+
type: "function"
|
|
2194
|
+
}
|
|
2195
|
+
];
|
|
2196
|
+
var IERC20 = {
|
|
2197
|
+
abi: abi
|
|
2198
|
+
};
|
|
2199
|
+
|
|
911
2200
|
var ethers$1 = /*#__PURE__*/require('ethers');
|
|
912
2201
|
|
|
913
2202
|
var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
@@ -955,16 +2244,8 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
955
2244
|
return _context2.abrupt("return", {
|
|
956
2245
|
markets: [dummyUserMarketDetails],
|
|
957
2246
|
borrowLimit: dummyTokenAmount3,
|
|
958
|
-
accruedPly: new
|
|
959
|
-
|
|
960
|
-
amount: '100.12',
|
|
961
|
-
isRaw: false
|
|
962
|
-
}),
|
|
963
|
-
lockedPly: new sdkCore.CurrencyAmount({
|
|
964
|
-
currency: dummyPly,
|
|
965
|
-
amount: '200.12',
|
|
966
|
-
isRaw: false
|
|
967
|
-
}),
|
|
2247
|
+
accruedPly: new TokenAmount(dummyPly, '100.12', false),
|
|
2248
|
+
lockedPly: new TokenAmount(dummyPly, '200.12', false),
|
|
968
2249
|
borrowableAmount: dummyTokenAmount2
|
|
969
2250
|
});
|
|
970
2251
|
|
|
@@ -990,11 +2271,7 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
990
2271
|
switch (_context3.prev = _context3.next) {
|
|
991
2272
|
case 0:
|
|
992
2273
|
return _context3.abrupt("return", {
|
|
993
|
-
totalStakedLiquidity: new
|
|
994
|
-
currency: dummyPlyAurora,
|
|
995
|
-
amount: '12.1',
|
|
996
|
-
isRaw: false
|
|
997
|
-
}),
|
|
2274
|
+
totalStakedLiquidity: new TokenAmount(dummyPlyAurora, '12.1', false),
|
|
998
2275
|
apy: 1.21
|
|
999
2276
|
});
|
|
1000
2277
|
|
|
@@ -1024,18 +2301,10 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
1024
2301
|
break;
|
|
1025
2302
|
}
|
|
1026
2303
|
|
|
1027
|
-
return _context4.abrupt("return", new
|
|
1028
|
-
currency: DOLLAR,
|
|
1029
|
-
amount: '1',
|
|
1030
|
-
isRaw: false
|
|
1031
|
-
}));
|
|
2304
|
+
return _context4.abrupt("return", new TokenAmount(DOLLAR, '1', false));
|
|
1032
2305
|
|
|
1033
2306
|
case 2:
|
|
1034
|
-
return _context4.abrupt("return", new
|
|
1035
|
-
currency: DOLLAR,
|
|
1036
|
-
amount: '12.1',
|
|
1037
|
-
isRaw: false
|
|
1038
|
-
}));
|
|
2307
|
+
return _context4.abrupt("return", new TokenAmount(DOLLAR, '12.1', false));
|
|
1039
2308
|
|
|
1040
2309
|
case 3:
|
|
1041
2310
|
case "end":
|
|
@@ -1058,11 +2327,7 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
1058
2327
|
while (1) {
|
|
1059
2328
|
switch (_context5.prev = _context5.next) {
|
|
1060
2329
|
case 0:
|
|
1061
|
-
return _context5.abrupt("return", new
|
|
1062
|
-
currency: dummyPlyAurora,
|
|
1063
|
-
amount: '103.4',
|
|
1064
|
-
isRaw: false
|
|
1065
|
-
}));
|
|
2330
|
+
return _context5.abrupt("return", new TokenAmount(dummyPlyAurora, '103.4', false));
|
|
1066
2331
|
|
|
1067
2332
|
case 1:
|
|
1068
2333
|
case "end":
|
|
@@ -1204,6 +2469,1585 @@ var SDK = /*#__PURE__*/function (_BlockchainEntity) {
|
|
|
1204
2469
|
return SDK;
|
|
1205
2470
|
}(BlockchainEntity);
|
|
1206
2471
|
|
|
2472
|
+
var abi$1 = [
|
|
2473
|
+
{
|
|
2474
|
+
inputs: [
|
|
2475
|
+
{
|
|
2476
|
+
internalType: "address",
|
|
2477
|
+
name: "underlying_",
|
|
2478
|
+
type: "address"
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
internalType: "contract ComptrollerInterface",
|
|
2482
|
+
name: "comptroller_",
|
|
2483
|
+
type: "address"
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
internalType: "contract InterestRateModel",
|
|
2487
|
+
name: "interestRateModel_",
|
|
2488
|
+
type: "address"
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
internalType: "uint256",
|
|
2492
|
+
name: "initialExchangeRateMantissa_",
|
|
2493
|
+
type: "uint256"
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
internalType: "string",
|
|
2497
|
+
name: "name_",
|
|
2498
|
+
type: "string"
|
|
2499
|
+
},
|
|
2500
|
+
{
|
|
2501
|
+
internalType: "string",
|
|
2502
|
+
name: "symbol_",
|
|
2503
|
+
type: "string"
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
internalType: "uint8",
|
|
2507
|
+
name: "decimals_",
|
|
2508
|
+
type: "uint8"
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
internalType: "address payable",
|
|
2512
|
+
name: "admin_",
|
|
2513
|
+
type: "address"
|
|
2514
|
+
},
|
|
2515
|
+
{
|
|
2516
|
+
internalType: "address",
|
|
2517
|
+
name: "implementation_",
|
|
2518
|
+
type: "address"
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
internalType: "bytes",
|
|
2522
|
+
name: "becomeImplementationData",
|
|
2523
|
+
type: "bytes"
|
|
2524
|
+
}
|
|
2525
|
+
],
|
|
2526
|
+
payable: false,
|
|
2527
|
+
stateMutability: "nonpayable",
|
|
2528
|
+
type: "constructor"
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
anonymous: false,
|
|
2532
|
+
inputs: [
|
|
2533
|
+
{
|
|
2534
|
+
indexed: false,
|
|
2535
|
+
internalType: "uint256",
|
|
2536
|
+
name: "cashPrior",
|
|
2537
|
+
type: "uint256"
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
indexed: false,
|
|
2541
|
+
internalType: "uint256",
|
|
2542
|
+
name: "interestAccumulated",
|
|
2543
|
+
type: "uint256"
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
indexed: false,
|
|
2547
|
+
internalType: "uint256",
|
|
2548
|
+
name: "borrowIndex",
|
|
2549
|
+
type: "uint256"
|
|
2550
|
+
},
|
|
2551
|
+
{
|
|
2552
|
+
indexed: false,
|
|
2553
|
+
internalType: "uint256",
|
|
2554
|
+
name: "totalBorrows",
|
|
2555
|
+
type: "uint256"
|
|
2556
|
+
}
|
|
2557
|
+
],
|
|
2558
|
+
name: "AccrueInterest",
|
|
2559
|
+
type: "event"
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
anonymous: false,
|
|
2563
|
+
inputs: [
|
|
2564
|
+
{
|
|
2565
|
+
indexed: true,
|
|
2566
|
+
internalType: "address",
|
|
2567
|
+
name: "owner",
|
|
2568
|
+
type: "address"
|
|
2569
|
+
},
|
|
2570
|
+
{
|
|
2571
|
+
indexed: true,
|
|
2572
|
+
internalType: "address",
|
|
2573
|
+
name: "spender",
|
|
2574
|
+
type: "address"
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
indexed: false,
|
|
2578
|
+
internalType: "uint256",
|
|
2579
|
+
name: "amount",
|
|
2580
|
+
type: "uint256"
|
|
2581
|
+
}
|
|
2582
|
+
],
|
|
2583
|
+
name: "Approval",
|
|
2584
|
+
type: "event"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
anonymous: false,
|
|
2588
|
+
inputs: [
|
|
2589
|
+
{
|
|
2590
|
+
indexed: false,
|
|
2591
|
+
internalType: "address",
|
|
2592
|
+
name: "borrower",
|
|
2593
|
+
type: "address"
|
|
2594
|
+
},
|
|
2595
|
+
{
|
|
2596
|
+
indexed: false,
|
|
2597
|
+
internalType: "uint256",
|
|
2598
|
+
name: "borrowAmount",
|
|
2599
|
+
type: "uint256"
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
indexed: false,
|
|
2603
|
+
internalType: "uint256",
|
|
2604
|
+
name: "accountBorrows",
|
|
2605
|
+
type: "uint256"
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
indexed: false,
|
|
2609
|
+
internalType: "uint256",
|
|
2610
|
+
name: "totalBorrows",
|
|
2611
|
+
type: "uint256"
|
|
2612
|
+
}
|
|
2613
|
+
],
|
|
2614
|
+
name: "Borrow",
|
|
2615
|
+
type: "event"
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
anonymous: false,
|
|
2619
|
+
inputs: [
|
|
2620
|
+
{
|
|
2621
|
+
indexed: false,
|
|
2622
|
+
internalType: "uint256",
|
|
2623
|
+
name: "error",
|
|
2624
|
+
type: "uint256"
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
indexed: false,
|
|
2628
|
+
internalType: "uint256",
|
|
2629
|
+
name: "info",
|
|
2630
|
+
type: "uint256"
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
indexed: false,
|
|
2634
|
+
internalType: "uint256",
|
|
2635
|
+
name: "detail",
|
|
2636
|
+
type: "uint256"
|
|
2637
|
+
}
|
|
2638
|
+
],
|
|
2639
|
+
name: "Failure",
|
|
2640
|
+
type: "event"
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
anonymous: false,
|
|
2644
|
+
inputs: [
|
|
2645
|
+
{
|
|
2646
|
+
indexed: false,
|
|
2647
|
+
internalType: "address",
|
|
2648
|
+
name: "liquidator",
|
|
2649
|
+
type: "address"
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
indexed: false,
|
|
2653
|
+
internalType: "address",
|
|
2654
|
+
name: "borrower",
|
|
2655
|
+
type: "address"
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
indexed: false,
|
|
2659
|
+
internalType: "uint256",
|
|
2660
|
+
name: "repayAmount",
|
|
2661
|
+
type: "uint256"
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
indexed: false,
|
|
2665
|
+
internalType: "address",
|
|
2666
|
+
name: "qiTokenCollateral",
|
|
2667
|
+
type: "address"
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
indexed: false,
|
|
2671
|
+
internalType: "uint256",
|
|
2672
|
+
name: "seizeTokens",
|
|
2673
|
+
type: "uint256"
|
|
2674
|
+
}
|
|
2675
|
+
],
|
|
2676
|
+
name: "LiquidateBorrow",
|
|
2677
|
+
type: "event"
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
anonymous: false,
|
|
2681
|
+
inputs: [
|
|
2682
|
+
{
|
|
2683
|
+
indexed: false,
|
|
2684
|
+
internalType: "address",
|
|
2685
|
+
name: "minter",
|
|
2686
|
+
type: "address"
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
indexed: false,
|
|
2690
|
+
internalType: "uint256",
|
|
2691
|
+
name: "mintAmount",
|
|
2692
|
+
type: "uint256"
|
|
2693
|
+
},
|
|
2694
|
+
{
|
|
2695
|
+
indexed: false,
|
|
2696
|
+
internalType: "uint256",
|
|
2697
|
+
name: "mintTokens",
|
|
2698
|
+
type: "uint256"
|
|
2699
|
+
}
|
|
2700
|
+
],
|
|
2701
|
+
name: "Mint",
|
|
2702
|
+
type: "event"
|
|
2703
|
+
},
|
|
2704
|
+
{
|
|
2705
|
+
anonymous: false,
|
|
2706
|
+
inputs: [
|
|
2707
|
+
{
|
|
2708
|
+
indexed: false,
|
|
2709
|
+
internalType: "address",
|
|
2710
|
+
name: "oldAdmin",
|
|
2711
|
+
type: "address"
|
|
2712
|
+
},
|
|
2713
|
+
{
|
|
2714
|
+
indexed: false,
|
|
2715
|
+
internalType: "address",
|
|
2716
|
+
name: "newAdmin",
|
|
2717
|
+
type: "address"
|
|
2718
|
+
}
|
|
2719
|
+
],
|
|
2720
|
+
name: "NewAdmin",
|
|
2721
|
+
type: "event"
|
|
2722
|
+
},
|
|
2723
|
+
{
|
|
2724
|
+
anonymous: false,
|
|
2725
|
+
inputs: [
|
|
2726
|
+
{
|
|
2727
|
+
indexed: false,
|
|
2728
|
+
internalType: "contract ComptrollerInterface",
|
|
2729
|
+
name: "oldComptroller",
|
|
2730
|
+
type: "address"
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
indexed: false,
|
|
2734
|
+
internalType: "contract ComptrollerInterface",
|
|
2735
|
+
name: "newComptroller",
|
|
2736
|
+
type: "address"
|
|
2737
|
+
}
|
|
2738
|
+
],
|
|
2739
|
+
name: "NewComptroller",
|
|
2740
|
+
type: "event"
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
anonymous: false,
|
|
2744
|
+
inputs: [
|
|
2745
|
+
{
|
|
2746
|
+
indexed: false,
|
|
2747
|
+
internalType: "address",
|
|
2748
|
+
name: "oldImplementation",
|
|
2749
|
+
type: "address"
|
|
2750
|
+
},
|
|
2751
|
+
{
|
|
2752
|
+
indexed: false,
|
|
2753
|
+
internalType: "address",
|
|
2754
|
+
name: "newImplementation",
|
|
2755
|
+
type: "address"
|
|
2756
|
+
}
|
|
2757
|
+
],
|
|
2758
|
+
name: "NewImplementation",
|
|
2759
|
+
type: "event"
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
anonymous: false,
|
|
2763
|
+
inputs: [
|
|
2764
|
+
{
|
|
2765
|
+
indexed: false,
|
|
2766
|
+
internalType: "contract InterestRateModel",
|
|
2767
|
+
name: "oldInterestRateModel",
|
|
2768
|
+
type: "address"
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
indexed: false,
|
|
2772
|
+
internalType: "contract InterestRateModel",
|
|
2773
|
+
name: "newInterestRateModel",
|
|
2774
|
+
type: "address"
|
|
2775
|
+
}
|
|
2776
|
+
],
|
|
2777
|
+
name: "NewMarketInterestRateModel",
|
|
2778
|
+
type: "event"
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
anonymous: false,
|
|
2782
|
+
inputs: [
|
|
2783
|
+
{
|
|
2784
|
+
indexed: false,
|
|
2785
|
+
internalType: "address",
|
|
2786
|
+
name: "oldPendingAdmin",
|
|
2787
|
+
type: "address"
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
indexed: false,
|
|
2791
|
+
internalType: "address",
|
|
2792
|
+
name: "newPendingAdmin",
|
|
2793
|
+
type: "address"
|
|
2794
|
+
}
|
|
2795
|
+
],
|
|
2796
|
+
name: "NewPendingAdmin",
|
|
2797
|
+
type: "event"
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
anonymous: false,
|
|
2801
|
+
inputs: [
|
|
2802
|
+
{
|
|
2803
|
+
indexed: false,
|
|
2804
|
+
internalType: "uint256",
|
|
2805
|
+
name: "oldProtocolSeizeShareMantissa",
|
|
2806
|
+
type: "uint256"
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
indexed: false,
|
|
2810
|
+
internalType: "uint256",
|
|
2811
|
+
name: "newProtocolSeizeShareMantissa",
|
|
2812
|
+
type: "uint256"
|
|
2813
|
+
}
|
|
2814
|
+
],
|
|
2815
|
+
name: "NewProtocolSeizeShare",
|
|
2816
|
+
type: "event"
|
|
2817
|
+
},
|
|
2818
|
+
{
|
|
2819
|
+
anonymous: false,
|
|
2820
|
+
inputs: [
|
|
2821
|
+
{
|
|
2822
|
+
indexed: false,
|
|
2823
|
+
internalType: "uint256",
|
|
2824
|
+
name: "oldReserveFactorMantissa",
|
|
2825
|
+
type: "uint256"
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
indexed: false,
|
|
2829
|
+
internalType: "uint256",
|
|
2830
|
+
name: "newReserveFactorMantissa",
|
|
2831
|
+
type: "uint256"
|
|
2832
|
+
}
|
|
2833
|
+
],
|
|
2834
|
+
name: "NewReserveFactor",
|
|
2835
|
+
type: "event"
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
anonymous: false,
|
|
2839
|
+
inputs: [
|
|
2840
|
+
{
|
|
2841
|
+
indexed: false,
|
|
2842
|
+
internalType: "address",
|
|
2843
|
+
name: "redeemer",
|
|
2844
|
+
type: "address"
|
|
2845
|
+
},
|
|
2846
|
+
{
|
|
2847
|
+
indexed: false,
|
|
2848
|
+
internalType: "uint256",
|
|
2849
|
+
name: "redeemAmount",
|
|
2850
|
+
type: "uint256"
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
indexed: false,
|
|
2854
|
+
internalType: "uint256",
|
|
2855
|
+
name: "redeemTokens",
|
|
2856
|
+
type: "uint256"
|
|
2857
|
+
}
|
|
2858
|
+
],
|
|
2859
|
+
name: "Redeem",
|
|
2860
|
+
type: "event"
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
anonymous: false,
|
|
2864
|
+
inputs: [
|
|
2865
|
+
{
|
|
2866
|
+
indexed: false,
|
|
2867
|
+
internalType: "address",
|
|
2868
|
+
name: "payer",
|
|
2869
|
+
type: "address"
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
indexed: false,
|
|
2873
|
+
internalType: "address",
|
|
2874
|
+
name: "borrower",
|
|
2875
|
+
type: "address"
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
indexed: false,
|
|
2879
|
+
internalType: "uint256",
|
|
2880
|
+
name: "repayAmount",
|
|
2881
|
+
type: "uint256"
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
indexed: false,
|
|
2885
|
+
internalType: "uint256",
|
|
2886
|
+
name: "accountBorrows",
|
|
2887
|
+
type: "uint256"
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
indexed: false,
|
|
2891
|
+
internalType: "uint256",
|
|
2892
|
+
name: "totalBorrows",
|
|
2893
|
+
type: "uint256"
|
|
2894
|
+
}
|
|
2895
|
+
],
|
|
2896
|
+
name: "RepayBorrow",
|
|
2897
|
+
type: "event"
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
anonymous: false,
|
|
2901
|
+
inputs: [
|
|
2902
|
+
{
|
|
2903
|
+
indexed: false,
|
|
2904
|
+
internalType: "address",
|
|
2905
|
+
name: "benefactor",
|
|
2906
|
+
type: "address"
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
indexed: false,
|
|
2910
|
+
internalType: "uint256",
|
|
2911
|
+
name: "addAmount",
|
|
2912
|
+
type: "uint256"
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
indexed: false,
|
|
2916
|
+
internalType: "uint256",
|
|
2917
|
+
name: "newTotalReserves",
|
|
2918
|
+
type: "uint256"
|
|
2919
|
+
}
|
|
2920
|
+
],
|
|
2921
|
+
name: "ReservesAdded",
|
|
2922
|
+
type: "event"
|
|
2923
|
+
},
|
|
2924
|
+
{
|
|
2925
|
+
anonymous: false,
|
|
2926
|
+
inputs: [
|
|
2927
|
+
{
|
|
2928
|
+
indexed: false,
|
|
2929
|
+
internalType: "address",
|
|
2930
|
+
name: "admin",
|
|
2931
|
+
type: "address"
|
|
2932
|
+
},
|
|
2933
|
+
{
|
|
2934
|
+
indexed: false,
|
|
2935
|
+
internalType: "uint256",
|
|
2936
|
+
name: "reduceAmount",
|
|
2937
|
+
type: "uint256"
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
indexed: false,
|
|
2941
|
+
internalType: "uint256",
|
|
2942
|
+
name: "newTotalReserves",
|
|
2943
|
+
type: "uint256"
|
|
2944
|
+
}
|
|
2945
|
+
],
|
|
2946
|
+
name: "ReservesReduced",
|
|
2947
|
+
type: "event"
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
anonymous: false,
|
|
2951
|
+
inputs: [
|
|
2952
|
+
{
|
|
2953
|
+
indexed: true,
|
|
2954
|
+
internalType: "address",
|
|
2955
|
+
name: "from",
|
|
2956
|
+
type: "address"
|
|
2957
|
+
},
|
|
2958
|
+
{
|
|
2959
|
+
indexed: true,
|
|
2960
|
+
internalType: "address",
|
|
2961
|
+
name: "to",
|
|
2962
|
+
type: "address"
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
indexed: false,
|
|
2966
|
+
internalType: "uint256",
|
|
2967
|
+
name: "amount",
|
|
2968
|
+
type: "uint256"
|
|
2969
|
+
}
|
|
2970
|
+
],
|
|
2971
|
+
name: "Transfer",
|
|
2972
|
+
type: "event"
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
payable: true,
|
|
2976
|
+
stateMutability: "payable",
|
|
2977
|
+
type: "fallback"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
constant: false,
|
|
2981
|
+
inputs: [
|
|
2982
|
+
],
|
|
2983
|
+
name: "_acceptAdmin",
|
|
2984
|
+
outputs: [
|
|
2985
|
+
{
|
|
2986
|
+
internalType: "uint256",
|
|
2987
|
+
name: "",
|
|
2988
|
+
type: "uint256"
|
|
2989
|
+
}
|
|
2990
|
+
],
|
|
2991
|
+
payable: false,
|
|
2992
|
+
stateMutability: "nonpayable",
|
|
2993
|
+
type: "function"
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
constant: false,
|
|
2997
|
+
inputs: [
|
|
2998
|
+
{
|
|
2999
|
+
internalType: "uint256",
|
|
3000
|
+
name: "addAmount",
|
|
3001
|
+
type: "uint256"
|
|
3002
|
+
}
|
|
3003
|
+
],
|
|
3004
|
+
name: "_addReserves",
|
|
3005
|
+
outputs: [
|
|
3006
|
+
{
|
|
3007
|
+
internalType: "uint256",
|
|
3008
|
+
name: "",
|
|
3009
|
+
type: "uint256"
|
|
3010
|
+
}
|
|
3011
|
+
],
|
|
3012
|
+
payable: false,
|
|
3013
|
+
stateMutability: "nonpayable",
|
|
3014
|
+
type: "function"
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
constant: false,
|
|
3018
|
+
inputs: [
|
|
3019
|
+
{
|
|
3020
|
+
internalType: "uint256",
|
|
3021
|
+
name: "reduceAmount",
|
|
3022
|
+
type: "uint256"
|
|
3023
|
+
}
|
|
3024
|
+
],
|
|
3025
|
+
name: "_reduceReserves",
|
|
3026
|
+
outputs: [
|
|
3027
|
+
{
|
|
3028
|
+
internalType: "uint256",
|
|
3029
|
+
name: "",
|
|
3030
|
+
type: "uint256"
|
|
3031
|
+
}
|
|
3032
|
+
],
|
|
3033
|
+
payable: false,
|
|
3034
|
+
stateMutability: "nonpayable",
|
|
3035
|
+
type: "function"
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
constant: false,
|
|
3039
|
+
inputs: [
|
|
3040
|
+
{
|
|
3041
|
+
internalType: "contract ComptrollerInterface",
|
|
3042
|
+
name: "newComptroller",
|
|
3043
|
+
type: "address"
|
|
3044
|
+
}
|
|
3045
|
+
],
|
|
3046
|
+
name: "_setComptroller",
|
|
3047
|
+
outputs: [
|
|
3048
|
+
{
|
|
3049
|
+
internalType: "uint256",
|
|
3050
|
+
name: "",
|
|
3051
|
+
type: "uint256"
|
|
3052
|
+
}
|
|
3053
|
+
],
|
|
3054
|
+
payable: false,
|
|
3055
|
+
stateMutability: "nonpayable",
|
|
3056
|
+
type: "function"
|
|
3057
|
+
},
|
|
3058
|
+
{
|
|
3059
|
+
constant: false,
|
|
3060
|
+
inputs: [
|
|
3061
|
+
{
|
|
3062
|
+
internalType: "address",
|
|
3063
|
+
name: "implementation_",
|
|
3064
|
+
type: "address"
|
|
3065
|
+
},
|
|
3066
|
+
{
|
|
3067
|
+
internalType: "bool",
|
|
3068
|
+
name: "allowResign",
|
|
3069
|
+
type: "bool"
|
|
3070
|
+
},
|
|
3071
|
+
{
|
|
3072
|
+
internalType: "bytes",
|
|
3073
|
+
name: "becomeImplementationData",
|
|
3074
|
+
type: "bytes"
|
|
3075
|
+
}
|
|
3076
|
+
],
|
|
3077
|
+
name: "_setImplementation",
|
|
3078
|
+
outputs: [
|
|
3079
|
+
],
|
|
3080
|
+
payable: false,
|
|
3081
|
+
stateMutability: "nonpayable",
|
|
3082
|
+
type: "function"
|
|
3083
|
+
},
|
|
3084
|
+
{
|
|
3085
|
+
constant: false,
|
|
3086
|
+
inputs: [
|
|
3087
|
+
{
|
|
3088
|
+
internalType: "contract InterestRateModel",
|
|
3089
|
+
name: "newInterestRateModel",
|
|
3090
|
+
type: "address"
|
|
3091
|
+
}
|
|
3092
|
+
],
|
|
3093
|
+
name: "_setInterestRateModel",
|
|
3094
|
+
outputs: [
|
|
3095
|
+
{
|
|
3096
|
+
internalType: "uint256",
|
|
3097
|
+
name: "",
|
|
3098
|
+
type: "uint256"
|
|
3099
|
+
}
|
|
3100
|
+
],
|
|
3101
|
+
payable: false,
|
|
3102
|
+
stateMutability: "nonpayable",
|
|
3103
|
+
type: "function"
|
|
3104
|
+
},
|
|
3105
|
+
{
|
|
3106
|
+
constant: false,
|
|
3107
|
+
inputs: [
|
|
3108
|
+
{
|
|
3109
|
+
internalType: "address payable",
|
|
3110
|
+
name: "newPendingAdmin",
|
|
3111
|
+
type: "address"
|
|
3112
|
+
}
|
|
3113
|
+
],
|
|
3114
|
+
name: "_setPendingAdmin",
|
|
3115
|
+
outputs: [
|
|
3116
|
+
{
|
|
3117
|
+
internalType: "uint256",
|
|
3118
|
+
name: "",
|
|
3119
|
+
type: "uint256"
|
|
3120
|
+
}
|
|
3121
|
+
],
|
|
3122
|
+
payable: false,
|
|
3123
|
+
stateMutability: "nonpayable",
|
|
3124
|
+
type: "function"
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
constant: false,
|
|
3128
|
+
inputs: [
|
|
3129
|
+
{
|
|
3130
|
+
internalType: "uint256",
|
|
3131
|
+
name: "newProtocolSeizeShareMantissa",
|
|
3132
|
+
type: "uint256"
|
|
3133
|
+
}
|
|
3134
|
+
],
|
|
3135
|
+
name: "_setProtocolSeizeShare",
|
|
3136
|
+
outputs: [
|
|
3137
|
+
{
|
|
3138
|
+
internalType: "uint256",
|
|
3139
|
+
name: "",
|
|
3140
|
+
type: "uint256"
|
|
3141
|
+
}
|
|
3142
|
+
],
|
|
3143
|
+
payable: false,
|
|
3144
|
+
stateMutability: "nonpayable",
|
|
3145
|
+
type: "function"
|
|
3146
|
+
},
|
|
3147
|
+
{
|
|
3148
|
+
constant: false,
|
|
3149
|
+
inputs: [
|
|
3150
|
+
{
|
|
3151
|
+
internalType: "uint256",
|
|
3152
|
+
name: "newReserveFactorMantissa",
|
|
3153
|
+
type: "uint256"
|
|
3154
|
+
}
|
|
3155
|
+
],
|
|
3156
|
+
name: "_setReserveFactor",
|
|
3157
|
+
outputs: [
|
|
3158
|
+
{
|
|
3159
|
+
internalType: "uint256",
|
|
3160
|
+
name: "",
|
|
3161
|
+
type: "uint256"
|
|
3162
|
+
}
|
|
3163
|
+
],
|
|
3164
|
+
payable: false,
|
|
3165
|
+
stateMutability: "nonpayable",
|
|
3166
|
+
type: "function"
|
|
3167
|
+
},
|
|
3168
|
+
{
|
|
3169
|
+
constant: true,
|
|
3170
|
+
inputs: [
|
|
3171
|
+
],
|
|
3172
|
+
name: "accrualBlockTimestamp",
|
|
3173
|
+
outputs: [
|
|
3174
|
+
{
|
|
3175
|
+
internalType: "uint256",
|
|
3176
|
+
name: "",
|
|
3177
|
+
type: "uint256"
|
|
3178
|
+
}
|
|
3179
|
+
],
|
|
3180
|
+
payable: false,
|
|
3181
|
+
stateMutability: "view",
|
|
3182
|
+
type: "function"
|
|
3183
|
+
},
|
|
3184
|
+
{
|
|
3185
|
+
constant: false,
|
|
3186
|
+
inputs: [
|
|
3187
|
+
],
|
|
3188
|
+
name: "accrueInterest",
|
|
3189
|
+
outputs: [
|
|
3190
|
+
{
|
|
3191
|
+
internalType: "uint256",
|
|
3192
|
+
name: "",
|
|
3193
|
+
type: "uint256"
|
|
3194
|
+
}
|
|
3195
|
+
],
|
|
3196
|
+
payable: false,
|
|
3197
|
+
stateMutability: "nonpayable",
|
|
3198
|
+
type: "function"
|
|
3199
|
+
},
|
|
3200
|
+
{
|
|
3201
|
+
constant: true,
|
|
3202
|
+
inputs: [
|
|
3203
|
+
],
|
|
3204
|
+
name: "admin",
|
|
3205
|
+
outputs: [
|
|
3206
|
+
{
|
|
3207
|
+
internalType: "address payable",
|
|
3208
|
+
name: "",
|
|
3209
|
+
type: "address"
|
|
3210
|
+
}
|
|
3211
|
+
],
|
|
3212
|
+
payable: false,
|
|
3213
|
+
stateMutability: "view",
|
|
3214
|
+
type: "function"
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
constant: true,
|
|
3218
|
+
inputs: [
|
|
3219
|
+
{
|
|
3220
|
+
internalType: "address",
|
|
3221
|
+
name: "owner",
|
|
3222
|
+
type: "address"
|
|
3223
|
+
},
|
|
3224
|
+
{
|
|
3225
|
+
internalType: "address",
|
|
3226
|
+
name: "spender",
|
|
3227
|
+
type: "address"
|
|
3228
|
+
}
|
|
3229
|
+
],
|
|
3230
|
+
name: "allowance",
|
|
3231
|
+
outputs: [
|
|
3232
|
+
{
|
|
3233
|
+
internalType: "uint256",
|
|
3234
|
+
name: "",
|
|
3235
|
+
type: "uint256"
|
|
3236
|
+
}
|
|
3237
|
+
],
|
|
3238
|
+
payable: false,
|
|
3239
|
+
stateMutability: "view",
|
|
3240
|
+
type: "function"
|
|
3241
|
+
},
|
|
3242
|
+
{
|
|
3243
|
+
constant: false,
|
|
3244
|
+
inputs: [
|
|
3245
|
+
{
|
|
3246
|
+
internalType: "address",
|
|
3247
|
+
name: "spender",
|
|
3248
|
+
type: "address"
|
|
3249
|
+
},
|
|
3250
|
+
{
|
|
3251
|
+
internalType: "uint256",
|
|
3252
|
+
name: "amount",
|
|
3253
|
+
type: "uint256"
|
|
3254
|
+
}
|
|
3255
|
+
],
|
|
3256
|
+
name: "approve",
|
|
3257
|
+
outputs: [
|
|
3258
|
+
{
|
|
3259
|
+
internalType: "bool",
|
|
3260
|
+
name: "",
|
|
3261
|
+
type: "bool"
|
|
3262
|
+
}
|
|
3263
|
+
],
|
|
3264
|
+
payable: false,
|
|
3265
|
+
stateMutability: "nonpayable",
|
|
3266
|
+
type: "function"
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
constant: true,
|
|
3270
|
+
inputs: [
|
|
3271
|
+
{
|
|
3272
|
+
internalType: "address",
|
|
3273
|
+
name: "owner",
|
|
3274
|
+
type: "address"
|
|
3275
|
+
}
|
|
3276
|
+
],
|
|
3277
|
+
name: "balanceOf",
|
|
3278
|
+
outputs: [
|
|
3279
|
+
{
|
|
3280
|
+
internalType: "uint256",
|
|
3281
|
+
name: "",
|
|
3282
|
+
type: "uint256"
|
|
3283
|
+
}
|
|
3284
|
+
],
|
|
3285
|
+
payable: false,
|
|
3286
|
+
stateMutability: "view",
|
|
3287
|
+
type: "function"
|
|
3288
|
+
},
|
|
3289
|
+
{
|
|
3290
|
+
constant: false,
|
|
3291
|
+
inputs: [
|
|
3292
|
+
{
|
|
3293
|
+
internalType: "address",
|
|
3294
|
+
name: "owner",
|
|
3295
|
+
type: "address"
|
|
3296
|
+
}
|
|
3297
|
+
],
|
|
3298
|
+
name: "balanceOfUnderlying",
|
|
3299
|
+
outputs: [
|
|
3300
|
+
{
|
|
3301
|
+
internalType: "uint256",
|
|
3302
|
+
name: "",
|
|
3303
|
+
type: "uint256"
|
|
3304
|
+
}
|
|
3305
|
+
],
|
|
3306
|
+
payable: false,
|
|
3307
|
+
stateMutability: "nonpayable",
|
|
3308
|
+
type: "function"
|
|
3309
|
+
},
|
|
3310
|
+
{
|
|
3311
|
+
constant: false,
|
|
3312
|
+
inputs: [
|
|
3313
|
+
{
|
|
3314
|
+
internalType: "uint256",
|
|
3315
|
+
name: "borrowAmount",
|
|
3316
|
+
type: "uint256"
|
|
3317
|
+
}
|
|
3318
|
+
],
|
|
3319
|
+
name: "borrow",
|
|
3320
|
+
outputs: [
|
|
3321
|
+
{
|
|
3322
|
+
internalType: "uint256",
|
|
3323
|
+
name: "",
|
|
3324
|
+
type: "uint256"
|
|
3325
|
+
}
|
|
3326
|
+
],
|
|
3327
|
+
payable: false,
|
|
3328
|
+
stateMutability: "nonpayable",
|
|
3329
|
+
type: "function"
|
|
3330
|
+
},
|
|
3331
|
+
{
|
|
3332
|
+
constant: false,
|
|
3333
|
+
inputs: [
|
|
3334
|
+
{
|
|
3335
|
+
internalType: "address",
|
|
3336
|
+
name: "account",
|
|
3337
|
+
type: "address"
|
|
3338
|
+
}
|
|
3339
|
+
],
|
|
3340
|
+
name: "borrowBalanceCurrent",
|
|
3341
|
+
outputs: [
|
|
3342
|
+
{
|
|
3343
|
+
internalType: "uint256",
|
|
3344
|
+
name: "",
|
|
3345
|
+
type: "uint256"
|
|
3346
|
+
}
|
|
3347
|
+
],
|
|
3348
|
+
payable: false,
|
|
3349
|
+
stateMutability: "nonpayable",
|
|
3350
|
+
type: "function"
|
|
3351
|
+
},
|
|
3352
|
+
{
|
|
3353
|
+
constant: true,
|
|
3354
|
+
inputs: [
|
|
3355
|
+
{
|
|
3356
|
+
internalType: "address",
|
|
3357
|
+
name: "account",
|
|
3358
|
+
type: "address"
|
|
3359
|
+
}
|
|
3360
|
+
],
|
|
3361
|
+
name: "borrowBalanceStored",
|
|
3362
|
+
outputs: [
|
|
3363
|
+
{
|
|
3364
|
+
internalType: "uint256",
|
|
3365
|
+
name: "",
|
|
3366
|
+
type: "uint256"
|
|
3367
|
+
}
|
|
3368
|
+
],
|
|
3369
|
+
payable: false,
|
|
3370
|
+
stateMutability: "view",
|
|
3371
|
+
type: "function"
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
constant: true,
|
|
3375
|
+
inputs: [
|
|
3376
|
+
],
|
|
3377
|
+
name: "borrowIndex",
|
|
3378
|
+
outputs: [
|
|
3379
|
+
{
|
|
3380
|
+
internalType: "uint256",
|
|
3381
|
+
name: "",
|
|
3382
|
+
type: "uint256"
|
|
3383
|
+
}
|
|
3384
|
+
],
|
|
3385
|
+
payable: false,
|
|
3386
|
+
stateMutability: "view",
|
|
3387
|
+
type: "function"
|
|
3388
|
+
},
|
|
3389
|
+
{
|
|
3390
|
+
constant: true,
|
|
3391
|
+
inputs: [
|
|
3392
|
+
],
|
|
3393
|
+
name: "borrowRatePerTimestamp",
|
|
3394
|
+
outputs: [
|
|
3395
|
+
{
|
|
3396
|
+
internalType: "uint256",
|
|
3397
|
+
name: "",
|
|
3398
|
+
type: "uint256"
|
|
3399
|
+
}
|
|
3400
|
+
],
|
|
3401
|
+
payable: false,
|
|
3402
|
+
stateMutability: "view",
|
|
3403
|
+
type: "function"
|
|
3404
|
+
},
|
|
3405
|
+
{
|
|
3406
|
+
constant: true,
|
|
3407
|
+
inputs: [
|
|
3408
|
+
],
|
|
3409
|
+
name: "comptroller",
|
|
3410
|
+
outputs: [
|
|
3411
|
+
{
|
|
3412
|
+
internalType: "contract ComptrollerInterface",
|
|
3413
|
+
name: "",
|
|
3414
|
+
type: "address"
|
|
3415
|
+
}
|
|
3416
|
+
],
|
|
3417
|
+
payable: false,
|
|
3418
|
+
stateMutability: "view",
|
|
3419
|
+
type: "function"
|
|
3420
|
+
},
|
|
3421
|
+
{
|
|
3422
|
+
constant: true,
|
|
3423
|
+
inputs: [
|
|
3424
|
+
],
|
|
3425
|
+
name: "decimals",
|
|
3426
|
+
outputs: [
|
|
3427
|
+
{
|
|
3428
|
+
internalType: "uint8",
|
|
3429
|
+
name: "",
|
|
3430
|
+
type: "uint8"
|
|
3431
|
+
}
|
|
3432
|
+
],
|
|
3433
|
+
payable: false,
|
|
3434
|
+
stateMutability: "view",
|
|
3435
|
+
type: "function"
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
constant: false,
|
|
3439
|
+
inputs: [
|
|
3440
|
+
{
|
|
3441
|
+
internalType: "bytes",
|
|
3442
|
+
name: "data",
|
|
3443
|
+
type: "bytes"
|
|
3444
|
+
}
|
|
3445
|
+
],
|
|
3446
|
+
name: "delegateToImplementation",
|
|
3447
|
+
outputs: [
|
|
3448
|
+
{
|
|
3449
|
+
internalType: "bytes",
|
|
3450
|
+
name: "",
|
|
3451
|
+
type: "bytes"
|
|
3452
|
+
}
|
|
3453
|
+
],
|
|
3454
|
+
payable: false,
|
|
3455
|
+
stateMutability: "nonpayable",
|
|
3456
|
+
type: "function"
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
constant: true,
|
|
3460
|
+
inputs: [
|
|
3461
|
+
{
|
|
3462
|
+
internalType: "bytes",
|
|
3463
|
+
name: "data",
|
|
3464
|
+
type: "bytes"
|
|
3465
|
+
}
|
|
3466
|
+
],
|
|
3467
|
+
name: "delegateToViewImplementation",
|
|
3468
|
+
outputs: [
|
|
3469
|
+
{
|
|
3470
|
+
internalType: "bytes",
|
|
3471
|
+
name: "",
|
|
3472
|
+
type: "bytes"
|
|
3473
|
+
}
|
|
3474
|
+
],
|
|
3475
|
+
payable: false,
|
|
3476
|
+
stateMutability: "view",
|
|
3477
|
+
type: "function"
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
constant: false,
|
|
3481
|
+
inputs: [
|
|
3482
|
+
],
|
|
3483
|
+
name: "exchangeRateCurrent",
|
|
3484
|
+
outputs: [
|
|
3485
|
+
{
|
|
3486
|
+
internalType: "uint256",
|
|
3487
|
+
name: "",
|
|
3488
|
+
type: "uint256"
|
|
3489
|
+
}
|
|
3490
|
+
],
|
|
3491
|
+
payable: false,
|
|
3492
|
+
stateMutability: "nonpayable",
|
|
3493
|
+
type: "function"
|
|
3494
|
+
},
|
|
3495
|
+
{
|
|
3496
|
+
constant: true,
|
|
3497
|
+
inputs: [
|
|
3498
|
+
],
|
|
3499
|
+
name: "exchangeRateStored",
|
|
3500
|
+
outputs: [
|
|
3501
|
+
{
|
|
3502
|
+
internalType: "uint256",
|
|
3503
|
+
name: "",
|
|
3504
|
+
type: "uint256"
|
|
3505
|
+
}
|
|
3506
|
+
],
|
|
3507
|
+
payable: false,
|
|
3508
|
+
stateMutability: "view",
|
|
3509
|
+
type: "function"
|
|
3510
|
+
},
|
|
3511
|
+
{
|
|
3512
|
+
constant: true,
|
|
3513
|
+
inputs: [
|
|
3514
|
+
{
|
|
3515
|
+
internalType: "address",
|
|
3516
|
+
name: "account",
|
|
3517
|
+
type: "address"
|
|
3518
|
+
}
|
|
3519
|
+
],
|
|
3520
|
+
name: "getAccountSnapshot",
|
|
3521
|
+
outputs: [
|
|
3522
|
+
{
|
|
3523
|
+
internalType: "uint256",
|
|
3524
|
+
name: "",
|
|
3525
|
+
type: "uint256"
|
|
3526
|
+
},
|
|
3527
|
+
{
|
|
3528
|
+
internalType: "uint256",
|
|
3529
|
+
name: "",
|
|
3530
|
+
type: "uint256"
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
internalType: "uint256",
|
|
3534
|
+
name: "",
|
|
3535
|
+
type: "uint256"
|
|
3536
|
+
},
|
|
3537
|
+
{
|
|
3538
|
+
internalType: "uint256",
|
|
3539
|
+
name: "",
|
|
3540
|
+
type: "uint256"
|
|
3541
|
+
}
|
|
3542
|
+
],
|
|
3543
|
+
payable: false,
|
|
3544
|
+
stateMutability: "view",
|
|
3545
|
+
type: "function"
|
|
3546
|
+
},
|
|
3547
|
+
{
|
|
3548
|
+
constant: true,
|
|
3549
|
+
inputs: [
|
|
3550
|
+
],
|
|
3551
|
+
name: "getCash",
|
|
3552
|
+
outputs: [
|
|
3553
|
+
{
|
|
3554
|
+
internalType: "uint256",
|
|
3555
|
+
name: "",
|
|
3556
|
+
type: "uint256"
|
|
3557
|
+
}
|
|
3558
|
+
],
|
|
3559
|
+
payable: false,
|
|
3560
|
+
stateMutability: "view",
|
|
3561
|
+
type: "function"
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
constant: true,
|
|
3565
|
+
inputs: [
|
|
3566
|
+
],
|
|
3567
|
+
name: "implementation",
|
|
3568
|
+
outputs: [
|
|
3569
|
+
{
|
|
3570
|
+
internalType: "address",
|
|
3571
|
+
name: "",
|
|
3572
|
+
type: "address"
|
|
3573
|
+
}
|
|
3574
|
+
],
|
|
3575
|
+
payable: false,
|
|
3576
|
+
stateMutability: "view",
|
|
3577
|
+
type: "function"
|
|
3578
|
+
},
|
|
3579
|
+
{
|
|
3580
|
+
constant: true,
|
|
3581
|
+
inputs: [
|
|
3582
|
+
],
|
|
3583
|
+
name: "interestRateModel",
|
|
3584
|
+
outputs: [
|
|
3585
|
+
{
|
|
3586
|
+
internalType: "contract InterestRateModel",
|
|
3587
|
+
name: "",
|
|
3588
|
+
type: "address"
|
|
3589
|
+
}
|
|
3590
|
+
],
|
|
3591
|
+
payable: false,
|
|
3592
|
+
stateMutability: "view",
|
|
3593
|
+
type: "function"
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
constant: true,
|
|
3597
|
+
inputs: [
|
|
3598
|
+
],
|
|
3599
|
+
name: "isQiToken",
|
|
3600
|
+
outputs: [
|
|
3601
|
+
{
|
|
3602
|
+
internalType: "bool",
|
|
3603
|
+
name: "",
|
|
3604
|
+
type: "bool"
|
|
3605
|
+
}
|
|
3606
|
+
],
|
|
3607
|
+
payable: false,
|
|
3608
|
+
stateMutability: "view",
|
|
3609
|
+
type: "function"
|
|
3610
|
+
},
|
|
3611
|
+
{
|
|
3612
|
+
constant: false,
|
|
3613
|
+
inputs: [
|
|
3614
|
+
{
|
|
3615
|
+
internalType: "address",
|
|
3616
|
+
name: "borrower",
|
|
3617
|
+
type: "address"
|
|
3618
|
+
},
|
|
3619
|
+
{
|
|
3620
|
+
internalType: "uint256",
|
|
3621
|
+
name: "repayAmount",
|
|
3622
|
+
type: "uint256"
|
|
3623
|
+
},
|
|
3624
|
+
{
|
|
3625
|
+
internalType: "contract QiTokenInterface",
|
|
3626
|
+
name: "qiTokenCollateral",
|
|
3627
|
+
type: "address"
|
|
3628
|
+
}
|
|
3629
|
+
],
|
|
3630
|
+
name: "liquidateBorrow",
|
|
3631
|
+
outputs: [
|
|
3632
|
+
{
|
|
3633
|
+
internalType: "uint256",
|
|
3634
|
+
name: "",
|
|
3635
|
+
type: "uint256"
|
|
3636
|
+
}
|
|
3637
|
+
],
|
|
3638
|
+
payable: false,
|
|
3639
|
+
stateMutability: "nonpayable",
|
|
3640
|
+
type: "function"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
constant: false,
|
|
3644
|
+
inputs: [
|
|
3645
|
+
{
|
|
3646
|
+
internalType: "uint256",
|
|
3647
|
+
name: "mintAmount",
|
|
3648
|
+
type: "uint256"
|
|
3649
|
+
}
|
|
3650
|
+
],
|
|
3651
|
+
name: "mint",
|
|
3652
|
+
outputs: [
|
|
3653
|
+
{
|
|
3654
|
+
internalType: "uint256",
|
|
3655
|
+
name: "",
|
|
3656
|
+
type: "uint256"
|
|
3657
|
+
}
|
|
3658
|
+
],
|
|
3659
|
+
payable: false,
|
|
3660
|
+
stateMutability: "nonpayable",
|
|
3661
|
+
type: "function"
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
constant: true,
|
|
3665
|
+
inputs: [
|
|
3666
|
+
],
|
|
3667
|
+
name: "name",
|
|
3668
|
+
outputs: [
|
|
3669
|
+
{
|
|
3670
|
+
internalType: "string",
|
|
3671
|
+
name: "",
|
|
3672
|
+
type: "string"
|
|
3673
|
+
}
|
|
3674
|
+
],
|
|
3675
|
+
payable: false,
|
|
3676
|
+
stateMutability: "view",
|
|
3677
|
+
type: "function"
|
|
3678
|
+
},
|
|
3679
|
+
{
|
|
3680
|
+
constant: true,
|
|
3681
|
+
inputs: [
|
|
3682
|
+
],
|
|
3683
|
+
name: "pendingAdmin",
|
|
3684
|
+
outputs: [
|
|
3685
|
+
{
|
|
3686
|
+
internalType: "address payable",
|
|
3687
|
+
name: "",
|
|
3688
|
+
type: "address"
|
|
3689
|
+
}
|
|
3690
|
+
],
|
|
3691
|
+
payable: false,
|
|
3692
|
+
stateMutability: "view",
|
|
3693
|
+
type: "function"
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
constant: true,
|
|
3697
|
+
inputs: [
|
|
3698
|
+
],
|
|
3699
|
+
name: "protocolSeizeShareMantissa",
|
|
3700
|
+
outputs: [
|
|
3701
|
+
{
|
|
3702
|
+
internalType: "uint256",
|
|
3703
|
+
name: "",
|
|
3704
|
+
type: "uint256"
|
|
3705
|
+
}
|
|
3706
|
+
],
|
|
3707
|
+
payable: false,
|
|
3708
|
+
stateMutability: "view",
|
|
3709
|
+
type: "function"
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
constant: false,
|
|
3713
|
+
inputs: [
|
|
3714
|
+
{
|
|
3715
|
+
internalType: "uint256",
|
|
3716
|
+
name: "redeemTokens",
|
|
3717
|
+
type: "uint256"
|
|
3718
|
+
}
|
|
3719
|
+
],
|
|
3720
|
+
name: "redeem",
|
|
3721
|
+
outputs: [
|
|
3722
|
+
{
|
|
3723
|
+
internalType: "uint256",
|
|
3724
|
+
name: "",
|
|
3725
|
+
type: "uint256"
|
|
3726
|
+
}
|
|
3727
|
+
],
|
|
3728
|
+
payable: false,
|
|
3729
|
+
stateMutability: "nonpayable",
|
|
3730
|
+
type: "function"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
constant: false,
|
|
3734
|
+
inputs: [
|
|
3735
|
+
{
|
|
3736
|
+
internalType: "uint256",
|
|
3737
|
+
name: "redeemAmount",
|
|
3738
|
+
type: "uint256"
|
|
3739
|
+
}
|
|
3740
|
+
],
|
|
3741
|
+
name: "redeemUnderlying",
|
|
3742
|
+
outputs: [
|
|
3743
|
+
{
|
|
3744
|
+
internalType: "uint256",
|
|
3745
|
+
name: "",
|
|
3746
|
+
type: "uint256"
|
|
3747
|
+
}
|
|
3748
|
+
],
|
|
3749
|
+
payable: false,
|
|
3750
|
+
stateMutability: "nonpayable",
|
|
3751
|
+
type: "function"
|
|
3752
|
+
},
|
|
3753
|
+
{
|
|
3754
|
+
constant: false,
|
|
3755
|
+
inputs: [
|
|
3756
|
+
{
|
|
3757
|
+
internalType: "uint256",
|
|
3758
|
+
name: "repayAmount",
|
|
3759
|
+
type: "uint256"
|
|
3760
|
+
}
|
|
3761
|
+
],
|
|
3762
|
+
name: "repayBorrow",
|
|
3763
|
+
outputs: [
|
|
3764
|
+
{
|
|
3765
|
+
internalType: "uint256",
|
|
3766
|
+
name: "",
|
|
3767
|
+
type: "uint256"
|
|
3768
|
+
}
|
|
3769
|
+
],
|
|
3770
|
+
payable: false,
|
|
3771
|
+
stateMutability: "nonpayable",
|
|
3772
|
+
type: "function"
|
|
3773
|
+
},
|
|
3774
|
+
{
|
|
3775
|
+
constant: false,
|
|
3776
|
+
inputs: [
|
|
3777
|
+
{
|
|
3778
|
+
internalType: "address",
|
|
3779
|
+
name: "borrower",
|
|
3780
|
+
type: "address"
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
internalType: "uint256",
|
|
3784
|
+
name: "repayAmount",
|
|
3785
|
+
type: "uint256"
|
|
3786
|
+
}
|
|
3787
|
+
],
|
|
3788
|
+
name: "repayBorrowBehalf",
|
|
3789
|
+
outputs: [
|
|
3790
|
+
{
|
|
3791
|
+
internalType: "uint256",
|
|
3792
|
+
name: "",
|
|
3793
|
+
type: "uint256"
|
|
3794
|
+
}
|
|
3795
|
+
],
|
|
3796
|
+
payable: false,
|
|
3797
|
+
stateMutability: "nonpayable",
|
|
3798
|
+
type: "function"
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
constant: true,
|
|
3802
|
+
inputs: [
|
|
3803
|
+
],
|
|
3804
|
+
name: "reserveFactorMantissa",
|
|
3805
|
+
outputs: [
|
|
3806
|
+
{
|
|
3807
|
+
internalType: "uint256",
|
|
3808
|
+
name: "",
|
|
3809
|
+
type: "uint256"
|
|
3810
|
+
}
|
|
3811
|
+
],
|
|
3812
|
+
payable: false,
|
|
3813
|
+
stateMutability: "view",
|
|
3814
|
+
type: "function"
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
constant: false,
|
|
3818
|
+
inputs: [
|
|
3819
|
+
{
|
|
3820
|
+
internalType: "address",
|
|
3821
|
+
name: "liquidator",
|
|
3822
|
+
type: "address"
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
internalType: "address",
|
|
3826
|
+
name: "borrower",
|
|
3827
|
+
type: "address"
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
internalType: "uint256",
|
|
3831
|
+
name: "seizeTokens",
|
|
3832
|
+
type: "uint256"
|
|
3833
|
+
}
|
|
3834
|
+
],
|
|
3835
|
+
name: "seize",
|
|
3836
|
+
outputs: [
|
|
3837
|
+
{
|
|
3838
|
+
internalType: "uint256",
|
|
3839
|
+
name: "",
|
|
3840
|
+
type: "uint256"
|
|
3841
|
+
}
|
|
3842
|
+
],
|
|
3843
|
+
payable: false,
|
|
3844
|
+
stateMutability: "nonpayable",
|
|
3845
|
+
type: "function"
|
|
3846
|
+
},
|
|
3847
|
+
{
|
|
3848
|
+
constant: true,
|
|
3849
|
+
inputs: [
|
|
3850
|
+
],
|
|
3851
|
+
name: "supplyRatePerTimestamp",
|
|
3852
|
+
outputs: [
|
|
3853
|
+
{
|
|
3854
|
+
internalType: "uint256",
|
|
3855
|
+
name: "",
|
|
3856
|
+
type: "uint256"
|
|
3857
|
+
}
|
|
3858
|
+
],
|
|
3859
|
+
payable: false,
|
|
3860
|
+
stateMutability: "view",
|
|
3861
|
+
type: "function"
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
constant: false,
|
|
3865
|
+
inputs: [
|
|
3866
|
+
{
|
|
3867
|
+
internalType: "contract EIP20NonStandardInterface",
|
|
3868
|
+
name: "token",
|
|
3869
|
+
type: "address"
|
|
3870
|
+
}
|
|
3871
|
+
],
|
|
3872
|
+
name: "sweepToken",
|
|
3873
|
+
outputs: [
|
|
3874
|
+
],
|
|
3875
|
+
payable: false,
|
|
3876
|
+
stateMutability: "nonpayable",
|
|
3877
|
+
type: "function"
|
|
3878
|
+
},
|
|
3879
|
+
{
|
|
3880
|
+
constant: true,
|
|
3881
|
+
inputs: [
|
|
3882
|
+
],
|
|
3883
|
+
name: "symbol",
|
|
3884
|
+
outputs: [
|
|
3885
|
+
{
|
|
3886
|
+
internalType: "string",
|
|
3887
|
+
name: "",
|
|
3888
|
+
type: "string"
|
|
3889
|
+
}
|
|
3890
|
+
],
|
|
3891
|
+
payable: false,
|
|
3892
|
+
stateMutability: "view",
|
|
3893
|
+
type: "function"
|
|
3894
|
+
},
|
|
3895
|
+
{
|
|
3896
|
+
constant: true,
|
|
3897
|
+
inputs: [
|
|
3898
|
+
],
|
|
3899
|
+
name: "totalBorrows",
|
|
3900
|
+
outputs: [
|
|
3901
|
+
{
|
|
3902
|
+
internalType: "uint256",
|
|
3903
|
+
name: "",
|
|
3904
|
+
type: "uint256"
|
|
3905
|
+
}
|
|
3906
|
+
],
|
|
3907
|
+
payable: false,
|
|
3908
|
+
stateMutability: "view",
|
|
3909
|
+
type: "function"
|
|
3910
|
+
},
|
|
3911
|
+
{
|
|
3912
|
+
constant: false,
|
|
3913
|
+
inputs: [
|
|
3914
|
+
],
|
|
3915
|
+
name: "totalBorrowsCurrent",
|
|
3916
|
+
outputs: [
|
|
3917
|
+
{
|
|
3918
|
+
internalType: "uint256",
|
|
3919
|
+
name: "",
|
|
3920
|
+
type: "uint256"
|
|
3921
|
+
}
|
|
3922
|
+
],
|
|
3923
|
+
payable: false,
|
|
3924
|
+
stateMutability: "nonpayable",
|
|
3925
|
+
type: "function"
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
constant: true,
|
|
3929
|
+
inputs: [
|
|
3930
|
+
],
|
|
3931
|
+
name: "totalReserves",
|
|
3932
|
+
outputs: [
|
|
3933
|
+
{
|
|
3934
|
+
internalType: "uint256",
|
|
3935
|
+
name: "",
|
|
3936
|
+
type: "uint256"
|
|
3937
|
+
}
|
|
3938
|
+
],
|
|
3939
|
+
payable: false,
|
|
3940
|
+
stateMutability: "view",
|
|
3941
|
+
type: "function"
|
|
3942
|
+
},
|
|
3943
|
+
{
|
|
3944
|
+
constant: true,
|
|
3945
|
+
inputs: [
|
|
3946
|
+
],
|
|
3947
|
+
name: "totalSupply",
|
|
3948
|
+
outputs: [
|
|
3949
|
+
{
|
|
3950
|
+
internalType: "uint256",
|
|
3951
|
+
name: "",
|
|
3952
|
+
type: "uint256"
|
|
3953
|
+
}
|
|
3954
|
+
],
|
|
3955
|
+
payable: false,
|
|
3956
|
+
stateMutability: "view",
|
|
3957
|
+
type: "function"
|
|
3958
|
+
},
|
|
3959
|
+
{
|
|
3960
|
+
constant: false,
|
|
3961
|
+
inputs: [
|
|
3962
|
+
{
|
|
3963
|
+
internalType: "address",
|
|
3964
|
+
name: "dst",
|
|
3965
|
+
type: "address"
|
|
3966
|
+
},
|
|
3967
|
+
{
|
|
3968
|
+
internalType: "uint256",
|
|
3969
|
+
name: "amount",
|
|
3970
|
+
type: "uint256"
|
|
3971
|
+
}
|
|
3972
|
+
],
|
|
3973
|
+
name: "transfer",
|
|
3974
|
+
outputs: [
|
|
3975
|
+
{
|
|
3976
|
+
internalType: "bool",
|
|
3977
|
+
name: "",
|
|
3978
|
+
type: "bool"
|
|
3979
|
+
}
|
|
3980
|
+
],
|
|
3981
|
+
payable: false,
|
|
3982
|
+
stateMutability: "nonpayable",
|
|
3983
|
+
type: "function"
|
|
3984
|
+
},
|
|
3985
|
+
{
|
|
3986
|
+
constant: false,
|
|
3987
|
+
inputs: [
|
|
3988
|
+
{
|
|
3989
|
+
internalType: "address",
|
|
3990
|
+
name: "src",
|
|
3991
|
+
type: "address"
|
|
3992
|
+
},
|
|
3993
|
+
{
|
|
3994
|
+
internalType: "address",
|
|
3995
|
+
name: "dst",
|
|
3996
|
+
type: "address"
|
|
3997
|
+
},
|
|
3998
|
+
{
|
|
3999
|
+
internalType: "uint256",
|
|
4000
|
+
name: "amount",
|
|
4001
|
+
type: "uint256"
|
|
4002
|
+
}
|
|
4003
|
+
],
|
|
4004
|
+
name: "transferFrom",
|
|
4005
|
+
outputs: [
|
|
4006
|
+
{
|
|
4007
|
+
internalType: "bool",
|
|
4008
|
+
name: "",
|
|
4009
|
+
type: "bool"
|
|
4010
|
+
}
|
|
4011
|
+
],
|
|
4012
|
+
payable: false,
|
|
4013
|
+
stateMutability: "nonpayable",
|
|
4014
|
+
type: "function"
|
|
4015
|
+
},
|
|
4016
|
+
{
|
|
4017
|
+
constant: true,
|
|
4018
|
+
inputs: [
|
|
4019
|
+
],
|
|
4020
|
+
name: "underlying",
|
|
4021
|
+
outputs: [
|
|
4022
|
+
{
|
|
4023
|
+
internalType: "address",
|
|
4024
|
+
name: "",
|
|
4025
|
+
type: "address"
|
|
4026
|
+
}
|
|
4027
|
+
],
|
|
4028
|
+
payable: false,
|
|
4029
|
+
stateMutability: "view",
|
|
4030
|
+
type: "function"
|
|
4031
|
+
}
|
|
4032
|
+
];
|
|
4033
|
+
var AuToken = {
|
|
4034
|
+
abi: abi$1
|
|
4035
|
+
};
|
|
4036
|
+
|
|
4037
|
+
function formatObject(object) {
|
|
4038
|
+
return JSON.stringify(object, null, ' ');
|
|
4039
|
+
}
|
|
4040
|
+
var decimalFactor = function decimalFactor(decimal) {
|
|
4041
|
+
return ethers$2.BigNumber.from(10).pow(decimal).toString();
|
|
4042
|
+
};
|
|
4043
|
+
function validateAndParseAddress(address) {
|
|
4044
|
+
try {
|
|
4045
|
+
return ethers$2.utils.getAddress(address);
|
|
4046
|
+
} catch (error) {
|
|
4047
|
+
throw new Error("Invalid address " + address);
|
|
4048
|
+
}
|
|
4049
|
+
}
|
|
4050
|
+
|
|
1207
4051
|
var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
1208
4052
|
_inheritsLoose(MoneyMarketRead, _BlockchainEntityRead);
|
|
1209
4053
|
|
|
@@ -1430,7 +4274,7 @@ var MoneyMarket = /*#__PURE__*/function (_BlockchainEntity) {
|
|
|
1430
4274
|
var _this3;
|
|
1431
4275
|
|
|
1432
4276
|
_this3 = _BlockchainEntity.call(this) || this;
|
|
1433
|
-
_this3.address =
|
|
4277
|
+
_this3.address = validateAndParseAddress(address);
|
|
1434
4278
|
return _this3;
|
|
1435
4279
|
}
|
|
1436
4280
|
|
|
@@ -1443,10 +4287,6 @@ var MoneyMarket = /*#__PURE__*/function (_BlockchainEntity) {
|
|
|
1443
4287
|
return MoneyMarket;
|
|
1444
4288
|
}(BlockchainEntity);
|
|
1445
4289
|
|
|
1446
|
-
function formatObject(object) {
|
|
1447
|
-
return JSON.stringify(object, null, ' ');
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
4290
|
function sum(a, b) {
|
|
1451
4291
|
return a + b;
|
|
1452
4292
|
}
|
|
@@ -1464,6 +4304,7 @@ exports.MoneyMarketReadWrite = MoneyMarketReadWrite;
|
|
|
1464
4304
|
exports.SDK = SDK;
|
|
1465
4305
|
exports.SdkRead = SdkRead;
|
|
1466
4306
|
exports.SdkReadWrite = SdkReadWrite;
|
|
4307
|
+
exports.decimalFactor = decimalFactor;
|
|
1467
4308
|
exports.dummyMarketAddress = dummyMarketAddress;
|
|
1468
4309
|
exports.dummyPly = dummyPly;
|
|
1469
4310
|
exports.dummyPlyAurora = dummyPlyAurora;
|
|
@@ -1475,4 +4316,5 @@ exports.dummyUserMarketDetails = dummyUserMarketDetails;
|
|
|
1475
4316
|
exports.dummyZeroTokenAmount = dummyZeroTokenAmount;
|
|
1476
4317
|
exports.formatObject = formatObject;
|
|
1477
4318
|
exports.sum = sum;
|
|
4319
|
+
exports.validateAndParseAddress = validateAndParseAddress;
|
|
1478
4320
|
//# sourceMappingURL=sdk.cjs.development.js.map
|