github.com/tri-stone/burrow@v0.25.0/tests/jobs_fixtures/app18-factory_contract_deployment_by_address_convention/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  
    11  - name: deployGSFactoryABIBase
    12    deploy:
    13        contract: GSFactoryFactory.sol
    14        instance: GSFactory
    15  
    16  - name: deployGSABIBase
    17    deploy:
    18        contract: GSFactoryFactory.sol
    19        instance: GSContract
    20  
    21  - name: createGSFactory
    22    call:
    23        destination: $deployGSFactoryFactory
    24        function: create
    25        bin: $deployGSFactoryFactory
    26  
    27  #Double check created address
    28  - name:  getGSFactoryAddr
    29    query-contract:
    30        destination: $deployGSFactoryFactory
    31        bin: $deployGSFactoryFactory
    32        function: getLast
    33  
    34  - name: assertFactoryAddr
    35    assert:
    36        key: $getGSFactoryAddr
    37        relation: eq
    38        val: $createGSFactory
    39  
    40  # Now talking to the factory-created factory...
    41  - name: createGSContract
    42    call:
    43        destination: $createGSFactory
    44        bin: $deployGSFactoryABIBase
    45        function: create
    46  
    47  #Double check created address
    48  - name:  getGSAddr
    49    query-contract:
    50        destination: $createGSFactory
    51        bin: $deployGSFactoryABIBase
    52        function: getLast
    53  
    54  - name: assertAddr
    55    assert:
    56        key: $getGSAddr
    57        relation: eq
    58        val: $createGSContract
    59  
    60  #Normal get set contract testing
    61  - name: setStorage
    62    call:
    63        destination: $createGSContract
    64        function: set 
    65        data: 
    66          - $setStorageBase
    67        bin: $deployGSABIBase
    68  
    69  - name: queryStorage
    70    query-contract:
    71        destination: $createGSContract
    72        bin: $deployGSABIBase
    73        function: get
    74  
    75  - name: assertStorage
    76    assert:
    77        key: $queryStorage
    78        relation: eq
    79        val: $setStorageBase