-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #472 from identity-com/develop
Gateway Ethereum: Post Audit 2 Upgrade
- Loading branch information
Showing
542 changed files
with
129,143 additions
and
2,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
ethereum/gatekeeper-cli/src/commands/rename-gatekeeper-network.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import {Command, Flags} from '@oclif/core' | ||
|
||
import {makeGatewayTs} from '../utils/oclif/utils' | ||
import { | ||
confirmationsFlag, DEFAULT_GATEKEEPER_NETWORK, | ||
feesFlag, gatewayTokenAddressFlag, chainFlag, parseFlagsWithPrivateKey, | ||
privateKeyFlag, gasLimitFlag, | ||
} from '../utils/oclif/flags' | ||
|
||
export default class RenameGatekeeperNetwork extends Command { | ||
static description = 'Rename a gatekeeper network'; | ||
|
||
static examples = [ | ||
`$ gateway-eth rename-gatekeeper-network <name> <number> | ||
`, | ||
]; | ||
|
||
static flags = { | ||
help: Flags.help({char: 'h'}), | ||
privateKey: privateKeyFlag(), | ||
chain: chainFlag(), | ||
gatewayTokenAddress: gatewayTokenAddressFlag(), | ||
fees: feesFlag(), | ||
gasLimit: gasLimitFlag(), | ||
confirmations: confirmationsFlag(), | ||
}; | ||
|
||
static args = [ | ||
{name: 'id', required: true, description: 'ID of the new network'}, | ||
{name: 'name', required: true, description: 'New name of the new network'}, | ||
]; | ||
|
||
async run(): Promise<void> { | ||
const {args, flags} = await this.parse(RenameGatekeeperNetwork) | ||
|
||
const confirmations = flags.confirmations | ||
|
||
const parsedFlags = parseFlagsWithPrivateKey({...flags, gatekeeperNetwork: DEFAULT_GATEKEEPER_NETWORK}) | ||
|
||
this.log(`Renaming gatekeeper network: | ||
id ${args.id} | ||
name ${args.name}`) | ||
|
||
const gateway = await makeGatewayTs(parsedFlags) | ||
const sendableTransaction = await gateway.renameNetwork(args.name, BigInt(args.id)) | ||
|
||
const receipt = await sendableTransaction.wait(confirmations) | ||
|
||
this.log( | ||
`Renamed Gatekeeper Network. TxHash: ${receipt.transactionHash}`, | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ethereum/gateway-eth-ts/src/contracts/abi/ChargeHandler.sol/ChargeHandler.dbg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../../build-info/ef6a6ff54ef252fafc7b6ec8743a33dc.json" | ||
"buildInfo": "../../build-info/b3a5313a52c225a35e47d8376069d6d0.json" | ||
} |
Oops, something went wrong.