Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: onflow/flow-js-testing
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.2
Choose a base ref
...
head repository: onflow/flow-js-testing
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jan 5, 2021

  1. Update code deployment (#7)

    * Update contract deployment scripts
    
    * Bump version number to current one
    Maksim Daunarovich authored Jan 5, 2021
    Copy the full SHA
    4f4382e View commit details

Commits on Feb 1, 2021

  1. Fix FlowManager contract and implement suggestion (#11)

    * Update path types
    
    * Remove unused force operator
    Maksim Daunarovich authored Feb 1, 2021
    Copy the full SHA
    f79656c View commit details

Commits on Feb 2, 2021

  1. Deploy contract arguments (#14)

    * Refactor mapArgs. Export unwrap
    
    * Update contract deploying transaction template
    
    * Add args option to contract deployment methods
    
    * Remove console.log. Replace markers if no args are specified
    
    * Remove unused import
    Maksim Daunarovich authored Feb 2, 2021
    Copy the full SHA
    f6e7fe3 View commit details
  2. 0.1.4 (#12)

    Maksim Daunarovich authored Feb 2, 2021
    Copy the full SHA
    450e2cd View commit details

Commits on Apr 26, 2021

  1. Update code to work with latest flow.json schema (#16)

    * Refactor string generation. Add exports.
    
    * Use updated path for service account private key
    
    * Refactor initManager to use new contract. Update contract. Add manager account checker script.
    
    * Add update field to deployContractByName and deployContract to update existing contract
    
    * Update transaction for code deployment
    
    * Unify import address to a generic one
    
    * Update dependencies
    
    * Add new line at eof
    
    * Bump version
    
    * Prettify
    
    * Adjust exports
    
    * Add documentation for methods
    
    * Refactor link variables
    
    * Rename account module
    
    * Update README
    
    * Add more methods and usage examples.
    
    * Pass default value
    
    * Add instructions for basic test environment setup
    
    * Update lock file
    Maksim Daunarovich authored Apr 26, 2021
    Copy the full SHA
    61dffa9 View commit details

Commits on May 3, 2021

  1. Quickfix imports and version bump (#18)

    * Bump version to include built files and Cadence templates
    
    * Fix import. Bump version
    Maksim Daunarovich authored May 3, 2021
    Copy the full SHA
    0c97ca1 View commit details
  2. Update README (#19)

    * Update README
    
    * Update code template getters
    Maksim Daunarovich authored May 3, 2021
    Copy the full SHA
    f3bde6f View commit details

Commits on May 20, 2021

  1. Update documentation (#20)

    * Update documentation
    
    * Fix wording
    
    * Support local imports (#22)
    
    * Create tests for import replacer
    
    * Add jest packages. Bump version with beta release
    
    * Update regexp to include local paths
    Maksim Daunarovich authored May 20, 2021
    Copy the full SHA
    9f300e7 View commit details

Commits on May 21, 2021

  1. Microbundle build setup (#24)

    * Add basic webpack config
    
    * Install necessary packages
    
    * Update config
    
    * Update @onflow packages
    
    * Commit lock file
    
    * Replace Babel and Webpack with microbundle
    
    * Add jest config for eslint
    
    * Create shell script to copy cadence files to distribution
    
    * Update scripts
    
    * Create publish workflow
    Maksim Daunarovich authored May 21, 2021
    Copy the full SHA
    26cc6d4 View commit details
  2. Promisify emulator process (#26)

    * Promisify emulator
    
    * Remove console.log
    
    * Allow to specify emulator ports
    
    * Directly set access api port
    
    * Add Prettier config
    
    * Add jest refactor package.json
    
    * Add docstrings to emulator methods
    
    * Add Jest assertion methods
    
    * Export new modules. Prettify.
    
    * Set es6 flag to true
    
    * Update files with missing headers
    
    * Fix eslint config
    
    * Add prettify script. Update lock file
    
    * Specify config for Prettier
    
    * Update documentation
    
    * Update prettier config
    
    * Update documentation
    
    * Bump version
    Maksim Daunarovich authored May 21, 2021
    Copy the full SHA
    672807c View commit details

Commits on May 22, 2021

  1. Update publish.yml (#27)

    * Update publish.yml
    
    Change release type to trigger workflow
    
    * Add manual run hook. Add comments
    Maksim Daunarovich authored May 22, 2021
    Copy the full SHA
    d0b5059 View commit details

Commits on May 23, 2021

  1. Add test script. Sort scripts alphabetically (#28)

    Maksim Daunarovich authored May 23, 2021
    Copy the full SHA
    ec0f3f3 View commit details

Commits on Jun 7, 2021

  1. Fix Cadence imports (#29)

    * Update publish.yml
    
    * Update token name. Create .npmrc file
    
    * Remove publish script
    
    * Set token with npm set. Remove npmrc file
    
    * Move Cadence templates to a single folder
    
    * Simplify copy script
    
    * Move src files out of utils into src
    
    * Bump version to alpha
    
    * Scaffold test for loading service templates
    
    * Move Cadence files out of src folder
    
    * Mark signers as optionals
    
    * Remove redundant code
    
    * Pull in generated code
    
    * Refactor code with use of template utilities
    
    * Add integration tests for development
    
    * Update packages. Remove SDK dependency
    
    * Refactor methods with use of generated templates. Replace sdk bindings with fcl
    
    * Commit working generated code
    
    * Add test to ensure templates are working
    
    * Fix authorization function
    
    * Update usage test
    
    * Restore emulator usage
    
    * Update jest asserts. Add tests
    
    * Fix FlowToken templates
    
    * Remove console call
    
    * Update version. Bump jest version. Set test environment
    
    * Use flow-cadut. Remove local package dependency
    
    * Update imports
    
    * Update publish
    
    * Add tests to ci workflow
    
    * Exclude dev-test folder from running in CI/CD environment
    
    * Remove unnecessary shell script
    
    * Remove unused method getSeqNum
    
    * Clean up FlowManager generated code
    
    * Update script to exclude generated folder
    
    * Move prettier config to package.json. Add prettierignore
    
    * Regenerate code
    
    * Prettify
    
    * Update Prettier config
    
    * Add check-headers script
    
    * Add rejects and resolve
    
    * Add interaction updates tests
    
    * Update usage tests
    
    * Replace reject with resolve
    
    * Remove service flag parameter
    
    * Export shallThrow
    
    * Simplify interactions and allow multiple signatures
    
    * Update publish script
    
    * Update dev-test/usage.test.js
    
    Co-authored-by: Mackenzie <remember.mackenzie@gmail.com>
    
    * Update dev-test/usage.test.js
    
    Co-authored-by: Mackenzie <remember.mackenzie@gmail.com>
    
    * Update src/generated/contracts/FlowManager.js
    
    Co-authored-by: Mackenzie <remember.mackenzie@gmail.com>
    
    * Update src/generated/scripts/checkManager.js
    
    Co-authored-by: Mackenzie <remember.mackenzie@gmail.com>
    
    Co-authored-by: Mackenzie <remember.mackenzie@gmail.com>
    Maksim Daunarovich and 10thfloor authored Jun 7, 2021
    Copy the full SHA
    2921e88 View commit details

Commits on Jun 8, 2021

  1. Fix import in basic example (#31)

    dimes authored Jun 8, 2021
    Copy the full SHA
    569f63e View commit details

Commits on Jun 15, 2021

  1. Add automatic resolvers for imports and arguments (#33)

    * Prettify
    
    * Add auto resolver for arguments
    
    * Update flow-cadut version
    
    * Remove console.log. Add new tests for arguments
    
    * Bump version
    
    * Add tests around import resolver
    
    * Export resolveImports method
    
    * Implement resolveImports method
    
    * Use babel-jest for tests
    
    * Update interactions to use importResolver
    
    * Pass service tag to prevent infinite loop
    
    * Refactor code around service interactions
    
    * Exclude dev tests
    
    * Deploy to service account by default
    
    * Update import test and assertions
    
    * Remove unused import
    
    * Add new line at the eof
    
    * Bring back slash
    
    * Export getServiceAddress method from index.
    
    * Prettify
    
    * Fix docstrings for resolveImports method
    Maksim Daunarovich authored Jun 15, 2021
    Copy the full SHA
    072dc23 View commit details

Commits on Jun 24, 2021

  1. Fix double publish issue with workflow (#36)

    Maksim Daunarovich authored Jun 24, 2021
    Copy the full SHA
    15cec5c View commit details

Commits on Jul 20, 2021

  1. Quickfix/config path update (#42)

    * Fix flow.json path to private key on service account
    
    * Bump version
    
    * Refactor init usage with new props
    
    * Update flow.json file
    
    * Ensure that fallback value is used
    
    * Pass additional values as object
    Maksim Daunarovich authored Jul 20, 2021
    Copy the full SHA
    a90459d View commit details

Commits on Aug 5, 2021

  1. Update flow-cadut dependency. Introduce bootstrap utility (#46)

    * Create metadata tests
    
    * Update flow-cadut version.
    Fix jest config
    
    * Fix logging for emulator exit
    
    * Disable logging in tests
    
    * Prettify
    
    * Setup bin field. Add Prettier config. Install yargs package
    
    * Setup bin executable
    
    * Create templates, commands and CLI processor
    
    * Add make command
    
    * Refactor imports
    
    * Bump version
    
    * CHANGELOG added
    
    * Add flag to make command to specify base path
    
    * Create documentation for bootstrap utility
    
    * Set jest matcher
    
    * Remove prettier duplicate
    
    * Update fcl dependency
    
    * Add more templates for dev tests
    
    * Add proposed changes
    
    * Destructure arguments in short notation based on interaction type
    
    * Update dev tests
    
    * Bump @onflow/types
    
    * Prettify
    
    * Move isObject to utils module
    
    * Refactor deployByName to allow short notation
    
    * Add dev tests for deployment methods
    
    * Add header
    
    * Prettify
    
    * Refactor prefix
    Maksim Daunarovich authored Aug 5, 2021
    Copy the full SHA
    1e35afb View commit details

Commits on Sep 8, 2021

  1. API documentation (#48)

    * Move old docs out
    
    * Add README for docs contributors
    
    * Add installation instructions
    
    * Add init section
    
    * Add index page
    
    * Add structure section
    
    * Add templates section
    
    * Add FLOW section
    
    * Add emulator section
    
    * Add contracts section
    
    * Add accounts section
    
    * Scaffold interaction sections
    
    * Add test for simple script execution
    
    * Update jsdoc for name field
    
    * Add documentation for executeScript
    
    * Add examples section
    
    * Add jest helpers
    
    * Describe sendTransaction method
    
    * Add more "padding" text to index page
    
    * Update executeScript section
    
    * Remove old documentation
    
    * proposed formatting
    
    * Update documentation with new formatting
    
    * More changes and editing
    
    * Create API reference page. Update init page
    
    * Fix pkey field
    
    * Update api
    
    * Update documentation according to changes. Add emulator.setLogging description
    
    * Add proposed changes. Add return types
    
    * Fix links to used types
    
    * Fix array notion
    
    * Remove "done" callback from before/afterEach
    
    Co-authored-by: srinjoyc <srinjoy@live.ca>
    Maksim Daunarovich and srinjoyc authored Sep 8, 2021
    Copy the full SHA
    0b920c8 View commit details
  2. Update banner (#52)

    * Update README.md
    
    * Add files via upload
    
    * Update README.md
    devbugging authored Sep 8, 2021
    Copy the full SHA
    7d70b70 View commit details

Commits on Oct 8, 2021

  1. Add code transformers (#51)

    * Implement transformers
    
    * Add transformer for Playground
    
    * Create TestUtilities contract
    
    * Add scripts and transactions for TestUtilities
    
    * Add tests for TestUtilities
    
    * Temporarily enable dev-tests
    
    * Update path resolvers to use enable complex configs
    
    * Add future code for removing hacky solution with import
    
    * Update config for base path
    
    * Drop type
    
    * Update tests
    
    * Uncomment line
    
    * Update NOTICE
    
    * Move testing utilities into FlowManager
    
    * Remove TestUtilities
    
    * Add interactions for block offset
    
    * Remove dangerous rm -rf call
    
    * Update package.lock
    
    * Add utilities tests
    
    * Add transformers for interactions
    
    * Add transformers code
    
    * Regenerate code
    
    * Use AuthAccount
    
    * Update utilities tests
    
    * Update blockHeight related code and tests
    
    * Brush up dev tests
    
    * Refactor playground transformer
    
    * Refactor emulator
    
    * More tests around transformers
    
    * Update year. Remove unused import
    
    * Provide public method to resolve alias to address
    
    * Regenerate code
    
    * Update transformers and FlowManager to allow passing arguments instead of hardcoded values
    
    * Refactor and clean the code
    
    * Add new line at eof
    
    * Remove dev tests
    
    * Add new line at eof
    
    * Fix package.json
    
    * Update exports
    
    * Remove unused import
    
    * Fix test
    
    * Regenerate code
    
    * Export blockOffset related methods from generated code
    
    * Update header with new year range
    
    * Update tests to use generated method for controlling blockOffset
    
    * Add documentation for blockOffset methods. Update executeScript and sendTransaction signatures. Add CadenceTransformer type
    
    * Fix templates
    
    * Bump flow-cadut version. Bump package version
    
    * Update docs with new links. Update code examples in API section
    
    * Create runnable code
    
    * Add example runner
    
    * Update  examples in API documentation
    
    * Create runnable examples
    
    * Update deploy code logic
    
    * Prettify
    
    * Update cadut package
    
    * Update runner to include list of examples and allow to run by number
    
    * Add more examples
    
    * Update typo in documentation
    
    * Get title from filename
    
    * Update cadut package
    
    * Refactor
    
    * Update code for getBlockOffset and setBlockOffset methods
    
    * Add more functionality to emulator
    
    * Refactor block offset example
    
    * Update emulator management example
    
    * Add manager tests for block offset
    
    * Fix exports for block offset methods
    
    * Add test for emulator processing
    
    * Refactor methods for data parsing
    
    * Add array of dictionaries example
    
    * Default logging to false
    
    * Enable dev-test temporarly
    
    * Add example to pass array of dictionaries
    
    * Update cadut dependency
    
    * Fix complex arg example
    
    * Update example regexp
    
    * Provide more examples
    
    * Update example code in API reference
    
    * Update flow-cadut package
    
    * Prettify
    
    * Use new version of flow-cadut
    
    * Update array value
    
    * Fix flow-cadut imports
    Maksim Daunarovich authored Oct 8, 2021
    Copy the full SHA
    1ccf76e View commit details

Commits on Nov 3, 2021

  1. Update Cadut and Transformers (#58)

    * Implement transformers
    
    * Add transformer for Playground
    
    * Create TestUtilities contract
    
    * Add scripts and transactions for TestUtilities
    
    * Add tests for TestUtilities
    
    * Temporarily enable dev-tests
    
    * Update path resolvers to use enable complex configs
    
    * Add future code for removing hacky solution with import
    
    * Update config for base path
    
    * Drop type
    
    * Update tests
    
    * Uncomment line
    
    * Update NOTICE
    
    * Move testing utilities into FlowManager
    
    * Remove TestUtilities
    
    * Add interactions for block offset
    
    * Remove dangerous rm -rf call
    
    * Update package.lock
    
    * Add utilities tests
    
    * Add transformers for interactions
    
    * Add transformers code
    
    * Regenerate code
    
    * Use AuthAccount
    
    * Update utilities tests
    
    * Update blockHeight related code and tests
    
    * Brush up dev tests
    
    * Refactor playground transformer
    
    * Refactor emulator
    
    * More tests around transformers
    
    * Update year. Remove unused import
    
    * Provide public method to resolve alias to address
    
    * Regenerate code
    
    * Update transformers and FlowManager to allow passing arguments instead of hardcoded values
    
    * Refactor and clean the code
    
    * Add new line at eof
    
    * Remove dev tests
    
    * Add new line at eof
    
    * Fix package.json
    
    * Update exports
    
    * Remove unused import
    
    * Fix test
    
    * Regenerate code
    
    * Export blockOffset related methods from generated code
    
    * Update header with new year range
    
    * Update tests to use generated method for controlling blockOffset
    
    * Add documentation for blockOffset methods. Update executeScript and sendTransaction signatures. Add CadenceTransformer type
    
    * Fix templates
    
    * Bump flow-cadut version. Bump package version
    
    * Update docs with new links. Update code examples in API section
    
    * Create runnable code
    
    * Add example runner
    
    * Update  examples in API documentation
    
    * Create runnable examples
    
    * Update deploy code logic
    
    * Prettify
    
    * Update cadut package
    
    * Update runner to include list of examples and allow to run by number
    
    * Add more examples
    
    * Update typo in documentation
    
    * Get title from filename
    
    * Update cadut package
    
    * Refactor
    
    * Update code for getBlockOffset and setBlockOffset methods
    
    * Add more functionality to emulator
    
    * Refactor block offset example
    
    * Update emulator management example
    
    * Add manager tests for block offset
    
    * Fix exports for block offset methods
    
    * Add test for emulator processing
    
    * Refactor methods for data parsing
    
    * Add array of dictionaries example
    
    * Default logging to false
    
    * Enable dev-test temporarly
    
    * Add example to pass array of dictionaries
    
    * Update cadut dependency
    
    * Fix complex arg example
    
    * Update example regexp
    
    * Provide more examples
    
    * Update example code in API reference
    
    * Update flow-cadut package
    
    * Prettify
    
    * Use new version of flow-cadut
    
    * Update array value
    
    * Fix flow-cadut imports
    
    * Update CHANGELOG
    
    * Update cadut package and use proper imports
    
    * Update cadut package and tests.
    
    * Create alpha release. Remove dev tests
    
    * Fix jest config template
    
    * Update flow-cadut package. Run audit fix
    
    * Bump cadut version
    
    * Allow to specify execution limit
    
    * Bump version
    
    * Update changelog
    
    * Fix interactions
    
    * Update cadut package
    
    * Bump version to release
    
    * Update package lock
    
    * Add new line at eof. Fix port numbers
    Maksim Daunarovich authored Nov 3, 2021
    Copy the full SHA
    68e8399 View commit details

Commits on Nov 21, 2021

  1. Update packages to newer versions (#60)

    * Bump cadut version
    
    * Remove imports
    
    * Fix argument resolver condition
    
    * Add test for empty array
    
    * Use flow-cadut
    
    * Bump flow-cadut package
    
    * Clear second transaction
    
    * Bump flow-cadut version
    
    * Bump packages to latest versions
    Maksim Daunarovich authored Nov 21, 2021
    Copy the full SHA
    fbe8432 View commit details

Commits on Dec 8, 2021

  1. FLIP Fest - Merge PR (#63)

    * Code submission for FLIP fest 'JS Testing Feature: Multiple return values from interaction 30' (#57)
    
    * squash merge of TeamExponential work for flip 30
    
    * add fixes to final submission requested by Max
    
    * add remaining fixes for Max feedback
    
    * get basic fixes done requested by Max
    
    * update all usage of args for sendTransaction to allow flow-cadut to to resolve types
    
    * update all points where executeScript is used to make sure args used correctly, allowing flow-cadut to resolve
    
    * remove fcl/types
    
    * revert package-lock.json to master plus package.json changes after running `npm install`
    
    * revert ports in tests back to 8080, remove testMatch for 'dev-test' in package.json
    
    * squash merge of latest changes per Max feedback
    
    * make package.json flow-cadut match recent release from Max
    
    * revert package-lock.json to master verion
    
    * update version in package.json to match Max release, run npm install to update package-lock
    
    * ran npm install
    
    * squash merge latest updates/fixes
    
    * replace package-lock.json
    
    * revert package-lock.json
    
    * remove try catch from tests
    
    * remove onflow/types
    
    * remove space
    
    * prettify
    
    * update cadut to release version
    
    * add fix to generated code to mitigate error running tests
    
    * ran prettify
    
    * re-add 'limit' prop and usage in interaction.js
    
    Co-authored-by: justjoolz <justjoolz@gmail.com>
    Co-authored-by: Maksim Daunarovich <max.daunarovich@dapperlabs.com>
    
    * Bump version to next major release
    
    * Add release notes with breaking changes.
    
    Co-authored-by: Matt Chana <8943047+hichana@users.noreply.github.com>
    Co-authored-by: justjoolz <justjoolz@gmail.com>
    3 people authored Dec 8, 2021
    Copy the full SHA
    f19756f View commit details

Commits on Dec 9, 2021

  1. Fix getContractAddress method (#66)

    * Add test to check contract value after deployment
    
    * Use tuple for executeScript result
    
    * Fix interaction test
    
    * Bump version
    Maksim Daunarovich authored Dec 9, 2021
    Copy the full SHA
    4639dfb View commit details

Commits on Dec 16, 2021

  1. fix bad links (#62)

    * fix links
    use relative links whenever possible (instead of using docs.onflow.org)
    
    * Update templates.md
    
    * Update templates.md
    
    * test index.md page
    
    * contracts -> contracts.md
    
    Co-authored-by: Mackenzie <remember.mackenzie@gmail.com>
    kerrywei and 10thfloor authored Dec 16, 2021
    Copy the full SHA
    9a8b5ac View commit details

Commits on Dec 21, 2021

  1. Update init.md (#71)

    fix-typo: change bastPath to basePath
    endigo authored Dec 21, 2021
    Copy the full SHA
    c8fad25 View commit details

Commits on Jan 12, 2022

  1. Copy the full SHA
    3aeb4f1 View commit details
  2. publish 0.2.2 (#75)

    kerrywei authored Jan 12, 2022
    Copy the full SHA
    8ea6adb View commit details

Commits on Jan 14, 2022

  1. Copy the full SHA
    367605e View commit details

Commits on Jan 20, 2022

  1. Remove emulator console logs (#78)

    * Remove emulator console logs
    
    * Update emulator.js
    psiemens authored Jan 20, 2022
    Copy the full SHA
    f3d43cd View commit details

Commits on Feb 10, 2022

  1. Fix emulator flags (#84)

    * Update emulator flags
    
    * Update emulator process
    
    * Update package.lock
    
    * Refactor emulator code around logging logic
    
    * Update examples
    
    * Remove dev-test from package.json
    
    * Fix result treatment in examples
    
    * Prettify
    
    * Fix tests
    
    * Bump version
    
    * Reset polling interval
    
    * Update Jest asserts
    
    * Bump alpha version
    
    * Remove unused comment
    MaxStalker authored Feb 10, 2022
    Copy the full SHA
    12b3f59 View commit details

Commits on Apr 25, 2022

  1. fix: import typo (#98)

    There was a typo with the import statement in the example code. Code imported flow-js-testing functions from "flow-js-testing".
    bartolomej authored Apr 25, 2022
    Copy the full SHA
    433abde View commit details

Commits on May 31, 2022

  1. Copy the full SHA
    80bba53 View commit details
  2. Copy the full SHA
    c9e5acc View commit details

Commits on Jun 14, 2022

  1. Copy the full SHA
    a9074ab View commit details

Commits on Jun 18, 2022

  1. Copy the full SHA
    381f5ea View commit details

Commits on Jun 21, 2022

  1. New Emulator updates (#90)

    * Update emulator flags
    
    * Update emulator process
    
    * Refactor emulator code around logging logic
    
    * Remove dev-test from package.json
    
    * Fix tests
    
    * Bump version
    
    * Reset polling interval
    
    * Bump alpha version
    
    * Remove unused comment
    
    * Update event name
    
    * Fix filters
    
    * Bump alpha version
    
    * Add path tests
    
    * Add the ability to automatically resolve import addresses, when deploying contracts
    
    * refactor jest asserts
    
    * Bump alpha version
    
    * Throw error if transaction is not properly executed
    
    * Add automatic resolver for contract name
    
    * refactor
    
    * Fix deployment tests
    
    * Fix removeFilter method
    
    * Revert changes for AccountAdded event
    
    * Add access node config to emulator. Refactor "start" method props.
    
    * Refactor accessNode port on init method
    
    * Update tests
    
    * Update package.json
    
    * Update package lock
    
    * Fix shallResolve assert
    
    * Fix linter error
    
    * Prettify
    
    * Bump version to release
    
    * Switch version to alpha.6
    
    * Update cadut to latest stable
    
    * Fix emulator logging
    
    * Update logging management
    
    * Add check for nested contracts
    
    * Update dev tests for nested contracts
    
    * Fix regexp to comply with eslint
    MaxStalker authored Jun 21, 2022
    Copy the full SHA
    d95d5b6 View commit details

Commits on Jun 23, 2022

  1. Introduce changesets

    jribbink authored Jun 23, 2022
    Copy the full SHA
    5791e66 View commit details
  2. Format changelog

    jribbink authored Jun 23, 2022
    Copy the full SHA
    b99b5bd View commit details
  3. Format changelog (#123)

    jribbink authored Jun 23, 2022
    Copy the full SHA
    51e8570 View commit details

Commits on Jun 28, 2022

  1. Copy the full SHA
    082ca9e View commit details
  2. Copy the full SHA
    48a2165 View commit details

Commits on Jun 29, 2022

  1. Copy the full SHA
    0ba5c33 View commit details
  2. Update polite-apes-shop.md

    jribbink authored Jun 29, 2022
    Copy the full SHA
    2e9fda0 View commit details

Commits on Jun 30, 2022

  1. Dynamically select emulator ports from machine instead of static port…

    …s specified by user or defaults (#117)
    jribbink authored Jun 30, 2022
    Copy the full SHA
    033562b View commit details

Commits on Jul 1, 2022

  1. Copy the full SHA
    2f517e1 View commit details

Commits on Jul 4, 2022

  1. Copy the full SHA
    ba2de53 View commit details

Commits on Jul 5, 2022

  1. Copy the full SHA
    78944c1 View commit details
  2. Copy the full SHA
    a2a8574 View commit details
Showing with 34,209 additions and 4,027 deletions.
  1. +0 −17 .babelrc
  2. +8 −0 .changeset/README.md
  3. +14 −0 .changeset/config.json
  4. +18 −11 .eslintrc.js
  5. +2 −3 .github/ISSUE_TEMPLATE/bug-report.md
  6. +4 −6 .github/ISSUE_TEMPLATE/feature-request.md
  7. +3 −4 .github/pull_request_template.md
  8. +16 −0 .github/workflows/add-issues-to-devx-project.yml
  9. +71 −23 .github/workflows/ci.yml
  10. +38 −0 .github/workflows/release.yml
  11. +2 −0 .gitignore
  12. +3 −0 .npmignore
  13. +1 −0 .prettierignore
  14. +4 −0 .vscode/settings.json
  15. +326 −0 CHANGELOG.md
  16. +1 −1 CODEOWNERS
  17. +11 −13 CODE_OF_CONDUCT.md
  18. +0 −1 CONTRIBUTING.md
  19. +1 −1 NOTICE
  20. +58 −4 README.md
  21. +2 −3 SECURITY.md
  22. +3 −3 TODO.md
  23. +23 −0 TRANSITIONS.md
  24. +3 −0 babel.config.json
  25. +3 −0 bin/index.js
  26. +132 −0 cadence/contracts/FlowManager.cdc
  27. +6 −0 cadence/scripts/check-manager.cdc
  28. +10 −0 cadence/scripts/get-account-address.cdc
  29. +5 −0 cadence/scripts/get-block-offset.cdc
  30. +10 −0 cadence/scripts/get-contract-address.cdc
  31. +7 −0 cadence/scripts/get-manager-address.cdc
  32. +5 −0 cadence/scripts/get-timestamp-offset.cdc
  33. +16 −0 cadence/scripts/get_balance.cdc
  34. +29 −0 cadence/transactions/create-account.cdc
  35. +18 −0 cadence/transactions/deploy-contract.cdc
  36. +8 −0 cadence/transactions/init-manager.cdc
  37. +36 −0 cadence/transactions/mint_tokens.cdc
  38. +9 −0 cadence/transactions/register-contract.cdc
  39. +2 −2 {src/manager → cadence}/transactions/scratch.cdc
  40. +7 −0 cadence/transactions/set-block-offset.cdc
  41. +7 −0 cadence/transactions/set-timestamp-offset.cdc
  42. +23 −0 cadence/transactions/update-contract.cdc
  43. +1 −1 check-headers.sh
  44. +3 −0 docs/README.md
  45. +3 −0 docs/accounts.md
  46. +3 −0 docs/api.md
  47. +3 −0 docs/contracts.md
  48. +3 −0 docs/emulator.md
  49. +3 −0 docs/examples/basic.md
  50. +3 −0 docs/examples/metadata.md
  51. +3 −0 docs/execute-scripts.md
  52. +3 −0 docs/flow-token.md
  53. +3 −0 docs/generator.md
  54. +3 −0 docs/index.md
  55. +3 −0 docs/init.md
  56. +3 −0 docs/install.md
  57. +3 −0 docs/jest-helpers.md
  58. +3 −0 docs/send-transactions.md
  59. +3 −0 docs/structure.md
  60. +3 −0 docs/templates.md
  61. +3 −0 docs/types.md
  62. +20 −0 examples/01-get-account-address.test.js
  63. +62 −0 examples/02-deploy-contract-by-name.test.js
  64. +51 −0 examples/03-deploy-contract.test.js
  65. +30 −0 examples/04-get-contract-address.test.js
  66. +57 −0 examples/05-emulator-management.test.js
  67. +35 −0 examples/06-flow-management.test.js
  68. +52 −0 examples/07-block-offset.test.js
  69. +73 −0 examples/08-execute-script.test.js
  70. +63 −0 examples/09-send-transaction.test.js
  71. +45 −0 examples/10-templates.test.js
  72. +34 −0 examples/100-pass-array-of-dictionaries.test.js
  73. +27 −0 examples/101-pass-int-dictionary.test.js
  74. +27 −0 examples/102-pass-string-to-int-dictionary.test.js
  75. +11 −0 examples/README.md
  76. +9 −0 examples/cadence/contracts/Greeting.cdc
  77. +7 −0 examples/cadence/contracts/Hello.cdc
  78. +3 −0 examples/cadence/scripts/hello.cdc
  79. +10 −0 examples/cadence/scripts/log-args.cdc
  80. +6 −0 examples/cadence/scripts/replace-address.cdc
  81. +7 −0 examples/cadence/transactions/log-signers.cdc
  82. +21 −0 examples/flow.json
  83. +52 −0 examples/run.js
  84. +14 −0 flow.json
  85. +39 −0 js-testing-banner.svg
  86. +26,470 −2,920 package-lock.json
  87. +66 −20 package.json
  88. +97 −0 src/account.js
  89. +20 −0 src/cli/commands/index.js
  90. +52 −0 src/cli/commands/init.js
  91. +69 −0 src/cli/commands/make.js
  92. +5 −8 src/{utils/address.js → cli/index.js}
  93. +31 −0 src/cli/templates/babel-config.js
  94. +25 −0 src/cli/templates/jest-config.js
  95. +41 −0 src/cli/templates/test.js
  96. +8 −19 src/{utils/init.js → cli/utils/index.js}
  97. +53 −0 src/contract.js
  98. +348 −0 src/crypto.js
  99. +182 −0 src/deploy-code.js
  100. +240 −0 src/emulator/emulator.js
  101. +20 −0 src/emulator/index.js
  102. +116 −0 src/emulator/logger.js
  103. +4 −18 src/{manager/index.js → exports.js}
  104. +158 −0 src/file.js
  105. +66 −0 src/flow-config.js
  106. +49 −0 src/flow-token.js
  107. +175 −0 src/generated/contracts/FlowManager.js
  108. +4 −0 src/generated/contracts/index.js
  109. +6 −0 src/generated/index.js
  110. +45 −0 src/generated/scripts/checkManager.js
  111. +48 −0 src/generated/scripts/getAccountAddress.js
  112. +54 −0 src/generated/scripts/getBalance.js
  113. +44 −0 src/generated/scripts/getBlockOffset.js
  114. +48 −0 src/generated/scripts/getContractAddress.js
  115. +46 −0 src/generated/scripts/getManagerAddress.js
  116. +44 −0 src/generated/scripts/getTimestampOffset.js
  117. +40 −0 src/generated/scripts/index.js
  118. +76 −0 src/generated/transactions/createAccount.js
  119. +65 −0 src/generated/transactions/deployContract.js
  120. +50 −0 src/generated/transactions/index.js
  121. +55 −0 src/generated/transactions/initManager.js
  122. +83 −0 src/generated/transactions/mintTokens.js
  123. +56 −0 src/generated/transactions/registerContract.js
  124. +51 −0 src/generated/transactions/scratch.js
  125. +54 −0 src/generated/transactions/setBlockOffset.js
  126. +54 −0 src/generated/transactions/setTimestampOffset.js
  127. +70 −0 src/generated/transactions/updateContract.js
  128. +58 −0 src/imports.js
  129. +39 −9 src/index.js
  130. +76 −0 src/init.js
  131. +211 −0 src/interaction.js
  132. +1 −1 src/{utils → }/invariant.js
  133. +170 −0 src/jest-asserts.js
  134. +102 −0 src/manager.js
  135. +0 −48 src/manager/contracts/FlowManager.cdc
  136. +0 −21 src/manager/scratch-deploy.cdc
  137. +0 −7 src/manager/scratch-read.cdc
  138. +0 −12 src/manager/scripts/get-account-address.cdc
  139. +0 −12 src/manager/scripts/get-contract-address.cdc
  140. +0 −9 src/manager/scripts/get-manager-address.cdc
  141. +0 −18 src/manager/transactions/create-account.cdc
  142. +0 −15 src/manager/transactions/deploy-contract.cdc
  143. +0 −16 src/manager/transactions/init-manager.cdc
  144. +0 −10 src/manager/transactions/register-contract.cdc
  145. +258 −0 src/storage.js
  146. +52 −0 src/templates.js
  147. +0 −44 src/templates/index.js
  148. +0 −12 src/templates/scripts/get_balance.cdc
  149. +0 −27 src/templates/transactions/mint_tokens.cdc
  150. +84 −0 src/transformers.js
  151. +114 −0 src/utils.js
  152. +0 −39 src/utils/config.js
  153. +0 −52 src/utils/contract.js
  154. +0 −105 src/utils/create-account.js
  155. +0 −95 src/utils/crypto.js
  156. +0 −60 src/utils/deploy-code.js
  157. +0 −72 src/utils/file.js
  158. +0 −43 src/utils/flow-token.js
  159. +0 −65 src/utils/imports.js
  160. +0 −83 src/utils/init-manager.js
  161. +0 −74 src/utils/interaction.js
  162. +10 −0 test/basic/cadence.test.js
  163. +67 −0 test/basic/imports.test.js
  164. +16 −0 test/basic/logger.test.js
  165. +8 −0 test/cadence/contracts/HelloWorld.cdc
  166. +7 −0 test/cadence/contracts/utility/Message.cdc
  167. +5 −0 test/cadence/scripts/get-message.cdc
  168. +4 −0 test/cadence/scripts/log-message.cdc
  169. +4 −0 test/cadence/scripts/log-passed-message.cdc
  170. +10 −0 test/cadence/scripts/read-mocked-block-offset.cdc
  171. +10 −0 test/cadence/scripts/read-mocked-timestamp-offset.cdc
  172. +5 −0 test/cadence/transactions/log-message.cdc
  173. +5 −0 test/cadence/transactions/log-signer-address.cdc
  174. +14 −0 test/flow.json
  175. +149 −0 test/integration/account.test.js
  176. +211 −0 test/integration/crypto.test.js
  177. +135 −0 test/integration/deploy.test.js
  178. +68 −0 test/integration/imports.test.js
  179. +373 −0 test/integration/interaction.test.js
  180. +72 −0 test/integration/metadata.test.js
  181. +120 −0 test/integration/storage.test.js
  182. +28 −0 test/integration/transformers.test.js
  183. +202 −0 test/integration/usage.test.js
  184. +360 −0 test/integration/utilities.test.js
  185. +36 −0 test/util/index.test.js
  186. +8 −0 test/util/permute.js
  187. +1 −0 test/util/timeout.const.js
  188. +26 −0 test/util/validate-key-pair.js
  189. +47 −0 webpack.config.js
17 changes: 0 additions & 17 deletions .babelrc

This file was deleted.

8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
"changelog": [
"@changesets/changelog-github",
{"repo": "onflow/flow-js-testing"}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
29 changes: 18 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
module.exports = {
"env": {
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
}
};
extends: [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
],
env: {
node: true,
es6: true,
},
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
rules: {
"jest/expect-expect": "off",
},
plugins: ["jest"],
}
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
name: Reporting a Problem/Bug
about: Reporting a Problem/Bug
title: ''
title: ""
labels: bug, Feedback
assignees: MaxStalker

---

### Instructions

Please fill out the template below to the best of your ability and include a label indicating which tool/service you were working with when you encountered the problem.
10 changes: 4 additions & 6 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
name: Requesting a Feature or Improvement
about: "For feature requests. Please search for existing issues first. Also see CONTRIBUTING.md"
title: ''
title: ""
labels: Feedback, Feature
assignees: MaxStalker

---

## Instructions
@@ -21,9 +19,9 @@ Please be clear what parts of the problem are considered to be in-scope and out-

(Replace this text: A concise description of your preferred solution. Things to address include:

* Details of the technical implementation
* Tradeoffs made in design decisions
* Caveats and considerations for the future
- Details of the technical implementation
- Tradeoffs made in design decisions
- Caveats and considerations for the future

If there are multiple solutions, please present each one separately. Save comparisons for the very end.)

7 changes: 3 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -7,14 +7,13 @@ Add a description of the changes that this PR introduces and the files that
are the most critical to review.
-->

______
---

For contributor use:

- [ ] Targeted PR against `master` branch
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
- [ ] Code follows the [standards mentioned here](https://github.com/onflow/flow-js-testing/blob/master/CONTRIBUTING.md#styleguides)
- [ ] Updated relevant documentation
- [ ] Updated relevant documentation
- [ ] Re-reviewed `Files changed` in the Github PR explorer
- [ ] Added appropriate labels

- [ ] Added appropriate labels
16 changes: 16 additions & 0 deletions .github/workflows/add-issues-to-devx-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Adds all issues to the DevEx project board.

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.4.1
with:
project-url: https://github.com/orgs/onflow/projects/13
github-token: ${{ secrets.GH_ACTION_FOR_PROJECTS }}
94 changes: 71 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,81 @@
name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
branches:
- master
- feature/*
pull_request:
branches: [ master ]
branches:
- master
- feature/*

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Check license headers
run: ./check-headers.sh
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Cache Node.js Modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Check License Headers
run: ./check-headers.sh

- name: Install Flow CLI
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)"

- name: Get Flow CLI version
id: testbed
run: |
echo "flow-version=$(flow version --output=json | jq -r '.version')" >> $GITHUB_OUTPUT
echo "package-version=$(grep version package.json | sed 's/.*"version": "\(.*\)".*/\1/')" >> $GITHUB_OUTPUT
echo "fcl-version=$(grep 'fcl":' package.json | sed 's/.*"@onflow\/fcl": "\(.*\)".*/\1/')" >> $GITHUB_OUTPUT
- name: Output Flow Version
uses: marocchino/sticky-pull-request-comment@v2
with:
# pass output from the previous step by id.
header: Flow Version
message: |
### Dependency Testbed
- **Flow CLI**: `${{ steps.testbed.outputs.flow-version }}`
- **FCL**: `${{ steps.testbed.outputs.fcl-version }}`
### Release Version
The package containing these changes will be released with version **${{ steps.testbed.outputs.package-version }}**
- name: Install Dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Find PR Number
uses: jwalton/gh-find-current-pr@v1
id: currentPr

- name: Test Coverage
uses: ArtiomTr/jest-coverage-report-action@v2.2.1
id: coverage
with:
skip-step: install
prnumber: ${{ steps.currentPr.outputs.number }}
output: report-markdown

- name: Output As Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: Coverage Report
message: ${{ steps.coverage.outputs.report }}
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release
on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install Flow CLI
# We will need Flow CLI in order to run tests, so we need to install it
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/refs/heads/master/install.sh)"

- name: Install Dependencies
run: npm ci

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -3,3 +3,5 @@
.history
node_modules
dist
.DS_Store
coverage
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.changeset
.github
node_modules
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/generated
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
Loading