Skip to content

Different Key/password fields for each network #3

Description

@ICONationDevTeam
deployJar {
    endpoints {
        local {
            uri = 'http://localhost:9082/api/v3'
            nid = 0x3
        }
    }
    keystore = './mykey.json'
    password = 'keypass'
    parameters {
        arg('name', 'Alice')
    }
}

The current format allows a keystore and a password field which is useful, but it becomes useless whenever you need to manage multiple keys on different networks.

Would it be possible to move this field in the network section, in order to be able to use different keys without modifying the gradle.build file ?

Suggestion :

deployJar {
    endpoints {
        local {
            uri = 'http://localhost:9082/api/v3'
            nid = 0x3
            keystore = './mykey-local.json'
            password = 'keypass'
        }

        sejong {
            uri = 'https://sejong.net.solidwallet.io/api/v3'
            nid = 0x83
            keystore = './mykey-sejong.json'
            password = 'keypass'
        }
    }
    parameters {
        arg('name', 'Alice')
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions