1.1.0-alpha.2 • Published 3 days ago

@iota/iscmagic v1.1.0-alpha.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 days ago

@iota/iscmagic

The Magic contract is an EVM contract deployed by default on every ISC chain, in the EVM genesis block, at address 0x1074000000000000000000000000000000000000. The implementation of the Magic contract is baked-in in the evm core contract; i.e. it is not a pure-Solidity contract.

The Magic contract has several methods, which are categorized into specialized interfaces: ISCSandbox, ISCAccounts, ISCUtil and so on. You can access these interfaces from any Solidity contract by importing this library.

The Magic contract also provides proxy ERC20 contracts to manipulate ISC base tokens and native tokens on L2.

Read more in the Wiki.

Installing @iota/iscmagic contracts

The @iota/iscmagic contracts are installable via NPM with

npm install @iota/iscmagic

After installing @iota/iscmagic you can use the functions by importing them as you normally would.

pragma solidity >=0.8.5;

import "@iota/iscmagic/ISC.sol";

contract MyEVMContract {
    event EntropyEvent(bytes32 entropy);

    // this will emit a "random" value taken from the ISC entropy value
    function emitEntropy() public {
        bytes32 e = ISC.sandbox.getEntropy();
        emit EntropyEvent(e);
    }
}
1.1.0-alpha.2

3 days ago

1.1.0-alpha.1

4 days ago

1.0.4-alpha.4

5 days ago

1.0.4-alpha.3

17 days ago

1.0.3

2 months ago

1.0.3-rc.2

2 months ago

1.0.3-alpha.6

2 months ago

0.0.0

2 months ago

1.0.3-rc.1

2 months ago

1.0.3-alpha.5

2 months ago

1.0.3-alpha.4

2 months ago

1.0.3-alpha.3

3 months ago

1.0.3-alpha.1

3 months ago

1.0.3-alpha.2

3 months ago

1.0.2-rc.1

3 months ago

1.0.2-alpha.4

4 months ago

1.0.2-alpha.3

4 months ago

1.0.2-alpha.2

4 months ago

1.0.2-alpha.1

4 months ago

1.0.1-rc.17

4 months ago

1.0.1-rc.16

4 months ago

1.0.1-rc.15

5 months ago

1.0.1-rc.14

5 months ago

1.0.1-rc.13

6 months ago

1.0.1-rc.12

6 months ago

1.0.1-rc.11

6 months ago

1.0.1-rc.10

7 months ago

1.0.1-rc.9

7 months ago

1.0.1-rc.8

7 months ago

1.0.1-rc.7

7 months ago

1.0.1-rc.6

7 months ago

1.0.1-rc.4

7 months ago

1.0.1-rc.3

7 months ago

1.0.0-rc.6

8 months ago

1.0.0-rc-6

8 months ago

1.0.0-rc.5

8 months ago

1.0.0-rc.4

8 months ago

1.0.0-rc.3

8 months ago

1.0.0-rc.2

8 months ago

1.0.0-rc.1

8 months ago

0.7.0-alpha.16

9 months ago

0.7.0-alpha.15

9 months ago

0.7.0-alpha.12

9 months ago

0.7.0-alpha.11

9 months ago

0.7.0-alpha.10

10 months ago

0.7.0-alpha.9

10 months ago

0.7.0-alpha.8

10 months ago

0.7.0-alpha.7

10 months ago

0.7.0-alpha.6

10 months ago

0.7.0-alpha.5

10 months ago