List Super Token #109
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
name: List Super Token | |
on: | |
workflow_dispatch: | |
inputs: | |
release_version: | |
description: 'Protocol release version (test/master/v1/etc.)' | |
required: true | |
default: 'v1' | |
admin_type: | |
description: 'Choose the admin type: MULTISIG, or OWNABLE' | |
required: true | |
default: 'MULTISIG' | |
network: | |
description: 'Network for the script to run on' | |
required: true | |
token_address: | |
description: 'Address of the Super Token to be listed' | |
required: true | |
environments: | |
description: 'Additional env vars, separated by semicolons' | |
required: false | |
jobs: | |
list-super-token-script: | |
runs-on: ubuntu-22.04 | |
env: | |
RELEASE_VERSION: ${{ github.event.inputs.release_version }} | |
RESOLVER_ADMIN_TYPE: ${{ github.event.inputs.admin_type }} | |
DEFAULT_MNEMONIC: ${{ secrets.BUILD_AGENT_MNEMONIC }} | |
PROVIDER_URL_TEMPLATE: ${{ secrets.PROVIDER_URL_TEMPLATE }} | |
defaults: | |
run: | |
shell: nix develop .#ci-default -c bash -xe {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v13 | |
- name: Build | |
run: | | |
yarn install --frozen-lockfile | |
yarn build-for-contracts-dev | |
- name: Execute truffle script | |
run: | | |
cd packages/ethereum-contracts | |
echo "Admin type: ${{ github.event.inputs.admin_type }}" | |
echo "${{ github.event.inputs.environments }}" | sed 's/;/\n/' > .env | |
npx truffle exec \ | |
--network ${{ github.event.inputs.network }} \ | |
ops-scripts/resolver-list-super-token.js \ | |
: ${{ github.event.inputs.token_address }} |