@sentio/sdk 2.41.4-rc.1 → 2.41.4-rc.3
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/lib/btc/btc-plugin.d.ts.map +1 -1
- package/lib/btc/btc-plugin.js +42 -8
- package/lib/btc/btc-plugin.js.map +1 -1
- package/lib/btc/btc-processor.d.ts +4 -3
- package/lib/btc/btc-processor.d.ts.map +1 -1
- package/lib/btc/btc-processor.js +4 -3
- package/lib/btc/btc-processor.js.map +1 -1
- package/lib/btc/types.d.ts +15 -0
- package/lib/btc/types.d.ts.map +1 -1
- package/lib/btc/types.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +131 -145
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +44 -52
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +104 -112
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +53 -55
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +80 -88
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +67 -65
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/function-calls.d.ts.map +1 -1
- package/lib/eth/codegen/function-calls.js +3 -5
- package/lib/eth/codegen/function-calls.js.map +1 -1
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +6 -46
- package/lib/store/store.js.map +1 -1
- package/lib/store/util.d.ts +3 -0
- package/lib/store/util.d.ts.map +1 -0
- package/lib/store/util.js +46 -0
- package/lib/store/util.js.map +1 -0
- package/package.json +4 -3
- package/src/btc/btc-plugin.ts +49 -8
- package/src/btc/btc-processor.ts +10 -5
- package/src/btc/types.ts +31 -0
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +131 -168
- package/src/eth/builtin/internal/erc1155-processor.ts +44 -60
- package/src/eth/builtin/internal/erc20-processor.ts +104 -130
- package/src/eth/builtin/internal/erc20bytes-processor.ts +53 -64
- package/src/eth/builtin/internal/erc721-processor.ts +80 -102
- package/src/eth/builtin/internal/weth9-processor.ts +67 -76
- package/src/eth/codegen/function-calls.ts +3 -5
- package/src/store/store.ts +7 -53
- package/src/store/util.ts +53 -0
@@ -1170,340 +1170,326 @@ export class EACAggregatorProxyBoundContractView extends BoundContractView {
|
|
1170
1170
|
view: this.view,
|
1171
1171
|
context: this.context,
|
1172
1172
|
acceptOwnership(overrides) {
|
1173
|
-
|
1174
|
-
const address = this.context.address;
|
1175
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1173
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1176
1174
|
if (overrides?.blockTag) {
|
1177
|
-
|
1175
|
+
blockTagWithOverride =
|
1178
1176
|
typeof overrides.blockTag == "string"
|
1179
1177
|
? overrides.blockTag
|
1180
1178
|
: "0x" + overrides.blockTag.toString(16);
|
1181
1179
|
}
|
1182
1180
|
return this.view.encodeCall.acceptOwnership({
|
1183
|
-
chainId,
|
1184
|
-
address,
|
1185
|
-
blockTag,
|
1181
|
+
chainId: this.context.chainId.toString(),
|
1182
|
+
address: this.context.address,
|
1183
|
+
blockTag: blockTagWithOverride,
|
1186
1184
|
});
|
1187
1185
|
},
|
1188
1186
|
accessController(overrides) {
|
1189
|
-
|
1190
|
-
const address = this.context.address;
|
1191
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1187
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1192
1188
|
if (overrides?.blockTag) {
|
1193
|
-
|
1189
|
+
blockTagWithOverride =
|
1194
1190
|
typeof overrides.blockTag == "string"
|
1195
1191
|
? overrides.blockTag
|
1196
1192
|
: "0x" + overrides.blockTag.toString(16);
|
1197
1193
|
}
|
1198
1194
|
return this.view.encodeCall.accessController({
|
1199
|
-
chainId,
|
1200
|
-
address,
|
1201
|
-
blockTag,
|
1195
|
+
chainId: this.context.chainId.toString(),
|
1196
|
+
address: this.context.address,
|
1197
|
+
blockTag: blockTagWithOverride,
|
1202
1198
|
});
|
1203
1199
|
},
|
1204
1200
|
aggregator(overrides) {
|
1205
|
-
|
1206
|
-
const address = this.context.address;
|
1207
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1201
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1208
1202
|
if (overrides?.blockTag) {
|
1209
|
-
|
1203
|
+
blockTagWithOverride =
|
1210
1204
|
typeof overrides.blockTag == "string"
|
1211
1205
|
? overrides.blockTag
|
1212
1206
|
: "0x" + overrides.blockTag.toString(16);
|
1213
1207
|
}
|
1214
|
-
return this.view.encodeCall.aggregator({
|
1208
|
+
return this.view.encodeCall.aggregator({
|
1209
|
+
chainId: this.context.chainId.toString(),
|
1210
|
+
address: this.context.address,
|
1211
|
+
blockTag: blockTagWithOverride,
|
1212
|
+
});
|
1215
1213
|
},
|
1216
1214
|
confirmAggregator(_aggregator, overrides) {
|
1217
|
-
|
1218
|
-
const address = this.context.address;
|
1219
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1215
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1220
1216
|
if (overrides?.blockTag) {
|
1221
|
-
|
1217
|
+
blockTagWithOverride =
|
1222
1218
|
typeof overrides.blockTag == "string"
|
1223
1219
|
? overrides.blockTag
|
1224
1220
|
: "0x" + overrides.blockTag.toString(16);
|
1225
1221
|
}
|
1226
1222
|
return this.view.encodeCall.confirmAggregator(_aggregator, {
|
1227
|
-
chainId,
|
1228
|
-
address,
|
1229
|
-
blockTag,
|
1223
|
+
chainId: this.context.chainId.toString(),
|
1224
|
+
address: this.context.address,
|
1225
|
+
blockTag: blockTagWithOverride,
|
1230
1226
|
});
|
1231
1227
|
},
|
1232
1228
|
decimals(overrides) {
|
1233
|
-
|
1234
|
-
const address = this.context.address;
|
1235
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1229
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1236
1230
|
if (overrides?.blockTag) {
|
1237
|
-
|
1231
|
+
blockTagWithOverride =
|
1238
1232
|
typeof overrides.blockTag == "string"
|
1239
1233
|
? overrides.blockTag
|
1240
1234
|
: "0x" + overrides.blockTag.toString(16);
|
1241
1235
|
}
|
1242
|
-
return this.view.encodeCall.decimals({
|
1236
|
+
return this.view.encodeCall.decimals({
|
1237
|
+
chainId: this.context.chainId.toString(),
|
1238
|
+
address: this.context.address,
|
1239
|
+
blockTag: blockTagWithOverride,
|
1240
|
+
});
|
1243
1241
|
},
|
1244
1242
|
description(overrides) {
|
1245
|
-
|
1246
|
-
const address = this.context.address;
|
1247
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1243
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1248
1244
|
if (overrides?.blockTag) {
|
1249
|
-
|
1245
|
+
blockTagWithOverride =
|
1250
1246
|
typeof overrides.blockTag == "string"
|
1251
1247
|
? overrides.blockTag
|
1252
1248
|
: "0x" + overrides.blockTag.toString(16);
|
1253
1249
|
}
|
1254
|
-
return this.view.encodeCall.description({
|
1250
|
+
return this.view.encodeCall.description({
|
1251
|
+
chainId: this.context.chainId.toString(),
|
1252
|
+
address: this.context.address,
|
1253
|
+
blockTag: blockTagWithOverride,
|
1254
|
+
});
|
1255
1255
|
},
|
1256
1256
|
getAnswer(_roundId, overrides) {
|
1257
|
-
|
1258
|
-
const address = this.context.address;
|
1259
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1257
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1260
1258
|
if (overrides?.blockTag) {
|
1261
|
-
|
1259
|
+
blockTagWithOverride =
|
1262
1260
|
typeof overrides.blockTag == "string"
|
1263
1261
|
? overrides.blockTag
|
1264
1262
|
: "0x" + overrides.blockTag.toString(16);
|
1265
1263
|
}
|
1266
1264
|
return this.view.encodeCall.getAnswer(_roundId, {
|
1267
|
-
chainId,
|
1268
|
-
address,
|
1269
|
-
blockTag,
|
1265
|
+
chainId: this.context.chainId.toString(),
|
1266
|
+
address: this.context.address,
|
1267
|
+
blockTag: blockTagWithOverride,
|
1270
1268
|
});
|
1271
1269
|
},
|
1272
1270
|
getRoundData(_roundId, overrides) {
|
1273
|
-
|
1274
|
-
const address = this.context.address;
|
1275
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1271
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1276
1272
|
if (overrides?.blockTag) {
|
1277
|
-
|
1273
|
+
blockTagWithOverride =
|
1278
1274
|
typeof overrides.blockTag == "string"
|
1279
1275
|
? overrides.blockTag
|
1280
1276
|
: "0x" + overrides.blockTag.toString(16);
|
1281
1277
|
}
|
1282
1278
|
return this.view.encodeCall.getRoundData(_roundId, {
|
1283
|
-
chainId,
|
1284
|
-
address,
|
1285
|
-
blockTag,
|
1279
|
+
chainId: this.context.chainId.toString(),
|
1280
|
+
address: this.context.address,
|
1281
|
+
blockTag: blockTagWithOverride,
|
1286
1282
|
});
|
1287
1283
|
},
|
1288
1284
|
getTimestamp(_roundId, overrides) {
|
1289
|
-
|
1290
|
-
const address = this.context.address;
|
1291
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1285
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1292
1286
|
if (overrides?.blockTag) {
|
1293
|
-
|
1287
|
+
blockTagWithOverride =
|
1294
1288
|
typeof overrides.blockTag == "string"
|
1295
1289
|
? overrides.blockTag
|
1296
1290
|
: "0x" + overrides.blockTag.toString(16);
|
1297
1291
|
}
|
1298
1292
|
return this.view.encodeCall.getTimestamp(_roundId, {
|
1299
|
-
chainId,
|
1300
|
-
address,
|
1301
|
-
blockTag,
|
1293
|
+
chainId: this.context.chainId.toString(),
|
1294
|
+
address: this.context.address,
|
1295
|
+
blockTag: blockTagWithOverride,
|
1302
1296
|
});
|
1303
1297
|
},
|
1304
1298
|
latestAnswer(overrides) {
|
1305
|
-
|
1306
|
-
const address = this.context.address;
|
1307
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1299
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1308
1300
|
if (overrides?.blockTag) {
|
1309
|
-
|
1301
|
+
blockTagWithOverride =
|
1310
1302
|
typeof overrides.blockTag == "string"
|
1311
1303
|
? overrides.blockTag
|
1312
1304
|
: "0x" + overrides.blockTag.toString(16);
|
1313
1305
|
}
|
1314
|
-
return this.view.encodeCall.latestAnswer({
|
1306
|
+
return this.view.encodeCall.latestAnswer({
|
1307
|
+
chainId: this.context.chainId.toString(),
|
1308
|
+
address: this.context.address,
|
1309
|
+
blockTag: blockTagWithOverride,
|
1310
|
+
});
|
1315
1311
|
},
|
1316
1312
|
latestRound(overrides) {
|
1317
|
-
|
1318
|
-
const address = this.context.address;
|
1319
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1313
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1320
1314
|
if (overrides?.blockTag) {
|
1321
|
-
|
1315
|
+
blockTagWithOverride =
|
1322
1316
|
typeof overrides.blockTag == "string"
|
1323
1317
|
? overrides.blockTag
|
1324
1318
|
: "0x" + overrides.blockTag.toString(16);
|
1325
1319
|
}
|
1326
|
-
return this.view.encodeCall.latestRound({
|
1320
|
+
return this.view.encodeCall.latestRound({
|
1321
|
+
chainId: this.context.chainId.toString(),
|
1322
|
+
address: this.context.address,
|
1323
|
+
blockTag: blockTagWithOverride,
|
1324
|
+
});
|
1327
1325
|
},
|
1328
1326
|
latestRoundData(overrides) {
|
1329
|
-
|
1330
|
-
const address = this.context.address;
|
1331
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1327
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1332
1328
|
if (overrides?.blockTag) {
|
1333
|
-
|
1329
|
+
blockTagWithOverride =
|
1334
1330
|
typeof overrides.blockTag == "string"
|
1335
1331
|
? overrides.blockTag
|
1336
1332
|
: "0x" + overrides.blockTag.toString(16);
|
1337
1333
|
}
|
1338
1334
|
return this.view.encodeCall.latestRoundData({
|
1339
|
-
chainId,
|
1340
|
-
address,
|
1341
|
-
blockTag,
|
1335
|
+
chainId: this.context.chainId.toString(),
|
1336
|
+
address: this.context.address,
|
1337
|
+
blockTag: blockTagWithOverride,
|
1342
1338
|
});
|
1343
1339
|
},
|
1344
1340
|
latestTimestamp(overrides) {
|
1345
|
-
|
1346
|
-
const address = this.context.address;
|
1347
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1341
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1348
1342
|
if (overrides?.blockTag) {
|
1349
|
-
|
1343
|
+
blockTagWithOverride =
|
1350
1344
|
typeof overrides.blockTag == "string"
|
1351
1345
|
? overrides.blockTag
|
1352
1346
|
: "0x" + overrides.blockTag.toString(16);
|
1353
1347
|
}
|
1354
1348
|
return this.view.encodeCall.latestTimestamp({
|
1355
|
-
chainId,
|
1356
|
-
address,
|
1357
|
-
blockTag,
|
1349
|
+
chainId: this.context.chainId.toString(),
|
1350
|
+
address: this.context.address,
|
1351
|
+
blockTag: blockTagWithOverride,
|
1358
1352
|
});
|
1359
1353
|
},
|
1360
1354
|
owner(overrides) {
|
1361
|
-
|
1362
|
-
const address = this.context.address;
|
1363
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1355
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1364
1356
|
if (overrides?.blockTag) {
|
1365
|
-
|
1357
|
+
blockTagWithOverride =
|
1366
1358
|
typeof overrides.blockTag == "string"
|
1367
1359
|
? overrides.blockTag
|
1368
1360
|
: "0x" + overrides.blockTag.toString(16);
|
1369
1361
|
}
|
1370
|
-
return this.view.encodeCall.owner({
|
1362
|
+
return this.view.encodeCall.owner({
|
1363
|
+
chainId: this.context.chainId.toString(),
|
1364
|
+
address: this.context.address,
|
1365
|
+
blockTag: blockTagWithOverride,
|
1366
|
+
});
|
1371
1367
|
},
|
1372
1368
|
phaseAggregators(arg0, overrides) {
|
1373
|
-
|
1374
|
-
const address = this.context.address;
|
1375
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1369
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1376
1370
|
if (overrides?.blockTag) {
|
1377
|
-
|
1371
|
+
blockTagWithOverride =
|
1378
1372
|
typeof overrides.blockTag == "string"
|
1379
1373
|
? overrides.blockTag
|
1380
1374
|
: "0x" + overrides.blockTag.toString(16);
|
1381
1375
|
}
|
1382
1376
|
return this.view.encodeCall.phaseAggregators(arg0, {
|
1383
|
-
chainId,
|
1384
|
-
address,
|
1385
|
-
blockTag,
|
1377
|
+
chainId: this.context.chainId.toString(),
|
1378
|
+
address: this.context.address,
|
1379
|
+
blockTag: blockTagWithOverride,
|
1386
1380
|
});
|
1387
1381
|
},
|
1388
1382
|
phaseId(overrides) {
|
1389
|
-
|
1390
|
-
const address = this.context.address;
|
1391
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1383
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1392
1384
|
if (overrides?.blockTag) {
|
1393
|
-
|
1385
|
+
blockTagWithOverride =
|
1394
1386
|
typeof overrides.blockTag == "string"
|
1395
1387
|
? overrides.blockTag
|
1396
1388
|
: "0x" + overrides.blockTag.toString(16);
|
1397
1389
|
}
|
1398
|
-
return this.view.encodeCall.phaseId({
|
1390
|
+
return this.view.encodeCall.phaseId({
|
1391
|
+
chainId: this.context.chainId.toString(),
|
1392
|
+
address: this.context.address,
|
1393
|
+
blockTag: blockTagWithOverride,
|
1394
|
+
});
|
1399
1395
|
},
|
1400
1396
|
proposeAggregator(_aggregator, overrides) {
|
1401
|
-
|
1402
|
-
const address = this.context.address;
|
1403
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1397
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1404
1398
|
if (overrides?.blockTag) {
|
1405
|
-
|
1399
|
+
blockTagWithOverride =
|
1406
1400
|
typeof overrides.blockTag == "string"
|
1407
1401
|
? overrides.blockTag
|
1408
1402
|
: "0x" + overrides.blockTag.toString(16);
|
1409
1403
|
}
|
1410
1404
|
return this.view.encodeCall.proposeAggregator(_aggregator, {
|
1411
|
-
chainId,
|
1412
|
-
address,
|
1413
|
-
blockTag,
|
1405
|
+
chainId: this.context.chainId.toString(),
|
1406
|
+
address: this.context.address,
|
1407
|
+
blockTag: blockTagWithOverride,
|
1414
1408
|
});
|
1415
1409
|
},
|
1416
1410
|
proposedAggregator(overrides) {
|
1417
|
-
|
1418
|
-
const address = this.context.address;
|
1419
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1411
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1420
1412
|
if (overrides?.blockTag) {
|
1421
|
-
|
1413
|
+
blockTagWithOverride =
|
1422
1414
|
typeof overrides.blockTag == "string"
|
1423
1415
|
? overrides.blockTag
|
1424
1416
|
: "0x" + overrides.blockTag.toString(16);
|
1425
1417
|
}
|
1426
1418
|
return this.view.encodeCall.proposedAggregator({
|
1427
|
-
chainId,
|
1428
|
-
address,
|
1429
|
-
blockTag,
|
1419
|
+
chainId: this.context.chainId.toString(),
|
1420
|
+
address: this.context.address,
|
1421
|
+
blockTag: blockTagWithOverride,
|
1430
1422
|
});
|
1431
1423
|
},
|
1432
1424
|
proposedGetRoundData(_roundId, overrides) {
|
1433
|
-
|
1434
|
-
const address = this.context.address;
|
1435
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1425
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1436
1426
|
if (overrides?.blockTag) {
|
1437
|
-
|
1427
|
+
blockTagWithOverride =
|
1438
1428
|
typeof overrides.blockTag == "string"
|
1439
1429
|
? overrides.blockTag
|
1440
1430
|
: "0x" + overrides.blockTag.toString(16);
|
1441
1431
|
}
|
1442
1432
|
return this.view.encodeCall.proposedGetRoundData(_roundId, {
|
1443
|
-
chainId,
|
1444
|
-
address,
|
1445
|
-
blockTag,
|
1433
|
+
chainId: this.context.chainId.toString(),
|
1434
|
+
address: this.context.address,
|
1435
|
+
blockTag: blockTagWithOverride,
|
1446
1436
|
});
|
1447
1437
|
},
|
1448
1438
|
proposedLatestRoundData(overrides) {
|
1449
|
-
|
1450
|
-
const address = this.context.address;
|
1451
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1439
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1452
1440
|
if (overrides?.blockTag) {
|
1453
|
-
|
1441
|
+
blockTagWithOverride =
|
1454
1442
|
typeof overrides.blockTag == "string"
|
1455
1443
|
? overrides.blockTag
|
1456
1444
|
: "0x" + overrides.blockTag.toString(16);
|
1457
1445
|
}
|
1458
1446
|
return this.view.encodeCall.proposedLatestRoundData({
|
1459
|
-
chainId,
|
1460
|
-
address,
|
1461
|
-
blockTag,
|
1447
|
+
chainId: this.context.chainId.toString(),
|
1448
|
+
address: this.context.address,
|
1449
|
+
blockTag: blockTagWithOverride,
|
1462
1450
|
});
|
1463
1451
|
},
|
1464
1452
|
setController(_accessController, overrides) {
|
1465
|
-
|
1466
|
-
const address = this.context.address;
|
1467
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1453
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1468
1454
|
if (overrides?.blockTag) {
|
1469
|
-
|
1455
|
+
blockTagWithOverride =
|
1470
1456
|
typeof overrides.blockTag == "string"
|
1471
1457
|
? overrides.blockTag
|
1472
1458
|
: "0x" + overrides.blockTag.toString(16);
|
1473
1459
|
}
|
1474
1460
|
return this.view.encodeCall.setController(_accessController, {
|
1475
|
-
chainId,
|
1476
|
-
address,
|
1477
|
-
blockTag,
|
1461
|
+
chainId: this.context.chainId.toString(),
|
1462
|
+
address: this.context.address,
|
1463
|
+
blockTag: blockTagWithOverride,
|
1478
1464
|
});
|
1479
1465
|
},
|
1480
1466
|
transferOwnership(_to, overrides) {
|
1481
|
-
|
1482
|
-
const address = this.context.address;
|
1483
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1467
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1484
1468
|
if (overrides?.blockTag) {
|
1485
|
-
|
1469
|
+
blockTagWithOverride =
|
1486
1470
|
typeof overrides.blockTag == "string"
|
1487
1471
|
? overrides.blockTag
|
1488
1472
|
: "0x" + overrides.blockTag.toString(16);
|
1489
1473
|
}
|
1490
1474
|
return this.view.encodeCall.transferOwnership(_to, {
|
1491
|
-
chainId,
|
1492
|
-
address,
|
1493
|
-
blockTag,
|
1475
|
+
chainId: this.context.chainId.toString(),
|
1476
|
+
address: this.context.address,
|
1477
|
+
blockTag: blockTagWithOverride,
|
1494
1478
|
});
|
1495
1479
|
},
|
1496
1480
|
version(overrides) {
|
1497
|
-
|
1498
|
-
const address = this.context.address;
|
1499
|
-
let blockTag = "0x" + this.context.blockNumber.toString(16);
|
1481
|
+
let blockTagWithOverride = "0x" + this.context.blockNumber.toString(16);
|
1500
1482
|
if (overrides?.blockTag) {
|
1501
|
-
|
1483
|
+
blockTagWithOverride =
|
1502
1484
|
typeof overrides.blockTag == "string"
|
1503
1485
|
? overrides.blockTag
|
1504
1486
|
: "0x" + overrides.blockTag.toString(16);
|
1505
1487
|
}
|
1506
|
-
return this.view.encodeCall.version({
|
1488
|
+
return this.view.encodeCall.version({
|
1489
|
+
chainId: this.context.chainId.toString(),
|
1490
|
+
address: this.context.address,
|
1491
|
+
blockTag: blockTagWithOverride,
|
1492
|
+
});
|
1507
1493
|
},
|
1508
1494
|
};
|
1509
1495
|
}
|