github.com/tri-stone/burrow@v0.25.0/tests/jobs_fixtures/app17-factory_contract_deployment_by_instance_naming/deploy.yaml (about)

     1  jobs:
     2  
     3  - name: setStorageBase
     4    set:
     5        val: 5
     6  
     7  - name: deployGSFactoryFactory
     8    deploy:
     9        contract: GSFactoryFactory.sol
    10        instance: all
    11  
    12  - name: createGSFactory
    13    call:
    14        destination: $deployGSFactoryFactory
    15        function: create
    16        bin: GSFactoryFactory
    17  
    18  #Double check created address
    19  - name:  getGSFactoryAddr
    20    query-contract:
    21        destination: $deployGSFactoryFactory
    22        bin: GSFactoryFactory
    23        function: getLast
    24  
    25  - name: assertFactoryAddr
    26    assert:
    27        key: $getGSFactoryAddr
    28        relation: eq
    29        val: $createGSFactory
    30  
    31  # Now talking to the factory-created factory...
    32  - name: createGSContract
    33    call:
    34        destination: $createGSFactory
    35        bin: GSFactory
    36        function: create
    37  
    38  #Double check created address
    39  - name:  getGSAddr
    40    query-contract:
    41        bin: GSFactory
    42        destination: $createGSFactory
    43        function: getLast
    44  
    45  - name: assertAddr
    46    assert:
    47        key: $getGSAddr
    48        relation: eq
    49        val: $createGSContract
    50  
    51  #Normal get set contract testing
    52  - name: setStorage
    53    call:
    54        destination: $createGSContract
    55        function: set 
    56        data: 
    57          - $setStorageBase
    58        bin: GSContract
    59  
    60  - name: queryStorage
    61    query-contract:
    62        destination: $createGSContract
    63        bin: GSContract
    64        function: get
    65  
    66  - name: assertStorage
    67    assert:
    68        key: $queryStorage
    69        relation: eq
    70        val: $setStorageBase