Skip to content

Commit 0b721e5

Browse files
committed
Merge branch 'master' into deployer-eip1559
2 parents f247a41 + 6f96635 commit 0b721e5

File tree

5 files changed

+49
-8
lines changed

5 files changed

+49
-8
lines changed

publish/deployed/local-ovm/synths.json

+4
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@
1212
"sign": "Ξ",
1313
"description": "Ether",
1414
"name": "sETH"
15+
},
16+
{
17+
"name": "sREDEEMER",
18+
"asset": "USD"
1519
}
1620
]

publish/deployed/local/synths.json

+25-7
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@
357357
"asset": "BTC",
358358
"category": "crypto",
359359
"sign": "",
360-
"description": "Inverse Inverse Bitcoin",
360+
"description": "Inverse Inverse Inverse Inverse Inverse Bitcoin",
361361
"name": "iBTC",
362362
"inverted": {
363363
"entryPoint": 10600,
@@ -371,7 +371,7 @@
371371
"asset": "ETH",
372372
"category": "crypto",
373373
"sign": "Ξ",
374-
"description": "Inverse Inverse Ether",
374+
"description": "Inverse Inverse Inverse Inverse Inverse Ether",
375375
"name": "iETH",
376376
"inverted": {
377377
"entryPoint": 180.16,
@@ -385,7 +385,7 @@
385385
"asset": "BNB",
386386
"category": "crypto",
387387
"sign": "",
388-
"description": "Inverse Inverse Binance Coin",
388+
"description": "Inverse Inverse Inverse Inverse Inverse Binance Coin",
389389
"name": "iBNB",
390390
"inverted": {
391391
"entryPoint": 29,
@@ -399,7 +399,7 @@
399399
"asset": "TRX",
400400
"category": "crypto",
401401
"sign": "",
402-
"description": "Inverse Inverse TRON",
402+
"description": "Inverse Inverse Inverse Inverse Inverse TRON",
403403
"name": "iTRX",
404404
"subclass": "PurgeableSynth",
405405
"inverted": {
@@ -413,7 +413,7 @@
413413
"asset": "XTZ",
414414
"category": "crypto",
415415
"sign": "",
416-
"description": "Inverse Inverse Tezos",
416+
"description": "Inverse Inverse Inverse Inverse Inverse Tezos",
417417
"name": "iXTZ",
418418
"subclass": "PurgeableSynth",
419419
"inverted": {
@@ -427,7 +427,7 @@
427427
"asset": "CEX",
428428
"category": "index",
429429
"sign": "",
430-
"description": "Inverse Inverse Centralised Exchange Index",
430+
"description": "Inverse Inverse Inverse Inverse Inverse Centralised Exchange Index",
431431
"name": "iCEX",
432432
"index": [
433433
{
@@ -499,7 +499,7 @@
499499
"asset": "DEFI",
500500
"category": "index",
501501
"sign": "",
502-
"description": "Inverse Inverse DeFi Index",
502+
"description": "Inverse Inverse Inverse Inverse Inverse DeFi Index",
503503
"name": "iDEFI",
504504
"index": [
505505
{
@@ -620,5 +620,23 @@
620620
"exchange": "TSE",
621621
"description": "Nikkei 225 Index",
622622
"name": "sNIKKEI"
623+
},
624+
{
625+
"asset": "USD",
626+
"category": "forex",
627+
"sign": "$",
628+
"description": "US Dollars",
629+
"name": "sREDEEMER"
630+
},
631+
{
632+
"asset": "USD",
633+
"category": "forex",
634+
"sign": "$",
635+
"description": "US Dollars",
636+
"name": "sREDEEMER"
637+
},
638+
{
639+
"name": "sREDEEMER",
640+
"asset": "USD"
623641
}
624642
]

publish/src/Deployer.js

+16
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,20 @@ class Deployer {
114114
return ethers.utils.defaultAbiCoder.encode(types, params);
115115
}
116116

117+
async addGasOptions(tx) {
118+
if (this.gasPrice) {
119+
tx.gasPrice = ethers.utils.parseUnits(this.gasPrice.toString(), 'gwei');
120+
} else if ((await this.provider.getFeeData()).maxFeePerGas) {
121+
if (this.maxFeePerGas)
122+
tx.maxFeePerGas = ethers.utils.parseUnits(this.maxFeePerGas.toString(), 'gwei');
123+
if (this.maxPriorityFeePerGas)
124+
tx.maxPriorityFeePerGas = ethers.utils.parseUnits(
125+
this.maxPriorityFeePerGas.toString(),
126+
'gwei'
127+
);
128+
}
129+
}
130+
117131
async sendDummyTx() {
118132
const tx = await mixinGasOptions(
119133
{
@@ -126,6 +140,8 @@ class Deployer {
126140
this.maxPriorityFeePerGas
127141
);
128142

143+
this.addGasOptions(tx);
144+
129145
const response = await this.signer.sendTransaction(tx);
130146
await response.wait();
131147

publish/src/command-utils/transact.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const performTransactionalStep = async ({
2626
writeArg, // none, 1 or an array of args, array will be spread into params
2727
maxFeePerGas,
2828
maxPriorityFeePerGas,
29+
gasLimit,
2930
generateSolidity,
3031
skipSolidity,
3132
explorerLinkPrefix,
@@ -85,7 +86,7 @@ const performTransactionalStep = async ({
8586
hash = '0x' + _dryRunCounter.toString().padStart(64, '0');
8687
} else {
8788
const overrides = await mixinGasOptions(
88-
{},
89+
{ gasLimit },
8990
target.provider,
9091
maxFeePerGas,
9192
maxPriorityFeePerGas

publish/src/commands/deploy/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const takeDebtSnapshotWhenRequired = require('./take-debt-snapshot-when-required
4343

4444
const DEFAULTS = {
4545
priorityGasPrice: '1',
46+
methodCallGasLimit: 250e3, // 250k
47+
contractDeploymentGasLimit: 6.9e6, // TODO split out into separate limits for different contracts, Proxys, Synths, Synthetix
4648
debtSnapshotMaxDeviation: 0.01, // a 1 percent deviation will trigger a snapshot
4749
network: 'kovan',
4850
buildPath: path.join(__dirname, '..', '..', '..', '..', BUILD_FOLDER),

0 commit comments

Comments
 (0)