config: base-config: &base-config tezos_client_path: "tezos-client -A rpcalpha.tzbeta.net -P 443 -S" user_address: tz1R3vJ5TV8Y5pVj8dicBR23Zv8JArusDkYr param_path: /Users/michaelklein/Coding/forwarder-contract stack_path: /Users/michaelklein/Coding/forwarder-contract/stack do: - user: name: Alice address: tz1R3vJ5TV8Y5pVj8dicBR23Zv8JArusDkYr - originate: &originate-forwarder alias: ValidatedForwarder1 config: $base-config command: dstoken-forwarder-contract print-validated-expiring --central-wallet tz1R3vJ5TV8Y5pVj8dicBR23Zv8JArusDkYr --dstoken-address tz1R3vJ5TV8Y5pVj8dicBR23Zv8JArusDkYr storage_command: dstoken-forwarder-contract initial-storage-validated-expiring initial_storage: dstoken-address: $Alice whitelisted-investors: '"[\"alice\"]"' token-limit: 10 expiration-date: "$(date -u -d '9:00 next Fri' +%FT%T.%NZ)" burn_cap: '1.644' - run: &validate-forwarder alias: RejectsNonWhitelistedUser config: $base-config contract: ValidatedForwarder1 command: dstoken-forwarder-contract validate-transfer parameters: received-amount: 3 from-user: "bob" burn_cap: '0.000001' expect_failure: true - run: <<: *validate-forwarder alias: RejectsTokenLimitExceeded parameters: received-amount: 12 from-user: "alice" burn_cap: '0.000001' expect_failure: true - run: <<: *validate-forwarder alias: AcceptsNonExpiredWhitelistedWithinLimit parameters: received-amount: 3 from-user: "alice" expect_failure: false - run: <<: *validate-forwarder alias: RejectsTokenLimitExceededAfterTransfer parameters: received-amount: 8 from-user: "alice" expect_failure: true - originate: <<: *originate-forwarder alias: ValidatedForwarderExpired initial_storage: dstoken-address: $Alice whitelisted-investors: '"[\"alice\"]"' token-limit: 10 expiration-date: "$(date -u -d '9:00 a week ago' +%FT%T.%NZ)" - run: <<: *validate-forwarder alias: RejectsBecauseExpired contract: ValidatedForwarderExpired parameters: received-amount: 3 from-user: "alice" expect_failure: true