github.com/Tri-stone/burrow@v0.25.0/tests/jobs_fixtures/app25-multiple_contracts_single_factory/deploy.yaml (about)

     1  jobs:
     2  
     3  - name: setStorageBase
     4    set:
     5        val: 5
     6  
     7  - name: deployGSFactory
     8    deploy:
     9        contract: contracts/Factory.sol
    10        instance: GSFactory
    11  
    12  - name: deployGSABIFactory
    13    deploy:
    14        contract: contracts/Factory.sol
    15        instance: Storage
    16  
    17  - name: createGSContract1
    18    call:
    19        destination: $deployGSFactory
    20        function: create
    21        bin: GSFactory
    22  
    23  - name: createGSContract2
    24    call:
    25        destination: $deployGSFactory
    26        function: create
    27        bin: GSFactory
    28  
    29  - name: createGSContract3
    30    call:
    31        destination: $deployGSFactory
    32        function: create
    33        bin: GSFactory
    34  
    35  - name: getLastAddr
    36    query-contract:
    37        destination: $deployGSFactory
    38        function: last
    39        bin: GSFactory
    40  
    41  - name: assertAddrSingle
    42    assert:
    43        key: $getLastAddr
    44        relation: eq
    45        val: $createGSContract3
    46  
    47  - name: setStorageBase
    48    set:
    49        val: 5
    50  
    51  - name: setStorage1
    52    call:
    53        destination: $createGSContract1
    54        function: set 
    55        data:
    56          - $setStorageBase
    57        bin: $deployGSABIFactory
    58  
    59  - name: queryStorage1
    60    query-contract:
    61        destination: $createGSContract1
    62        function: get
    63        bin: $deployGSABIFactory
    64  
    65  - name: assertStorage1
    66    assert:
    67        key: $queryStorage1
    68        relation: eq
    69        val: $setStorageBase
    70  
    71  - name: setStorage2
    72    call:
    73        destination: $createGSContract2
    74        function: set 
    75        data:
    76          - $setStorageBase
    77        bin: $deployGSABIFactory
    78  
    79  - name: queryStorage2
    80    query-contract:
    81        destination: $createGSContract2
    82        function: get
    83        bin: $deployGSABIFactory
    84  
    85  - name: assertStorage2
    86    assert:
    87        key: $queryStorage2
    88        relation: eq
    89        val: $setStorageBase
    90  
    91  - name: setStorage3
    92    call:
    93        destination: $createGSContract3
    94        function: set 
    95        data:
    96          - $setStorageBase
    97        bin: $deployGSABIFactory
    98  
    99  - name: queryStorage3
   100    query-contract:
   101        destination: $createGSContract3
   102        function: get
   103        bin: $deployGSABIFactory
   104  
   105  - name: assertStorage3
   106    assert:
   107        key: $queryStorage3
   108        relation: eq
   109        val: $setStorageBase
   110  
   111  # tests variable overwrite
   112  - name: createGSContract3
   113    call:
   114        destination: $deployGSFactory
   115        function: create
   116        bin: GSFactory
   117  
   118  - name: getLastAddr
   119    query-contract:
   120        destination: $deployGSFactory
   121        function: last
   122        bin: GSFactory
   123  
   124  - name: assertAddrSingle
   125    assert:
   126        key: $getLastAddr
   127        relation: eq
   128        val: $createGSContract3