1.3.1 • Published 5 months ago

@moraswap/v3-core v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Moraswap V3

npm version

This repository contains the core smart contracts for the Moraswap V3 Protocol. For higher level contracts, see the v3-periphery repository.

Local deployment

In order to deploy this code to a local testnet, you should install the npm package @moraswap/v3-core and import the factory bytecode located at @moraswap/v3-core/artifacts/contracts/MoraswapV3Factory.sol/MoraswapV3Factory.json. For example:

import {
  abi as FACTORY_ABI,
  bytecode as FACTORY_BYTECODE,
} from '@moraswap/v3-core/artifacts/contracts/MoraswapV3Factory.sol/MoraswapV3Factory.json'

// deploy the bytecode

This will ensure that you are testing against the same bytecode that is deployed to mainnet and public testnets, and all Moraswap code will correctly interoperate with your local deployment.

Using solidity interfaces

The Moraswap v3 interfaces are available for import into solidity smart contracts via the npm artifact @moraswap/v3-core, e.g.:

import '@moraswap/v3-core/contracts/interfaces/IMoraswapV3Pool.sol';

contract MyContract {
  IMoraswapV3Pool pool;

  function doSomethingWithPool() {
    // pool.swap(...);
  }
}
1.3.1

5 months ago

1.3.0

5 months ago

1.2.0

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.1.8

10 months ago

1.0.9

10 months ago

1.1.7

10 months ago

1.0.8

10 months ago

1.1.6

10 months ago

1.0.7

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.2.2

5 months ago

1.1.3

10 months ago

1.2.1

10 months ago

1.1.2

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.14

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.6

10 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago