flowchart TD;
A[Contract Deployment] -->|Establish DEFAULT_ADMIN_ROLE as Deployer| B(Add Additional ADMIN_ROLE as needed)
B --> C(DEFAULT_ADMIN_ROLE builds REGISTRY_ADMIN_ROLE)
C -->|Continuous| D[REGISTRY ADMIN performs upgrade]
C -->|As Needed| E[DEFAULT ROLE assigned or removed]
C -->|As Needed| F[REGISTRY ROLE assigned or removed]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.22; | |
// Mock imports | |
import { OFTMock } from "./mocks/OFTMock.sol"; | |
import { ERC20Mock } from "./mocks/ERC20Mock.sol"; | |
import { OFTComposerMock } from "./mocks/OFTComposerMock.sol"; | |
// OApp imports | |
import { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GNU-3.0-or-later | |
pragma solidity 0.8.22; | |
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; | |
import { OFTAdapter } from "@layerzerolabs/lz-evm-oapp-v2/contracts/oft/OFTAdapter.sol"; | |
import { OptionsBuilder } from "@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/libs/OptionsBuilder.sol"; | |
import { MessagingFee } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol"; | |
import { IPausable } from "./IPausable.sol"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.20; | |
// Mock imports | |
import { OFTMock } from "./mocks/OFTMock.sol"; | |
import { ERC20Mock } from "./mocks/ERC20Mock.sol"; | |
import { OFTComposerMock } from "./mocks/OFTComposerMock.sol"; | |
// OApp imports | |
import { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <cstdlib> | |
#include <memory> | |
#include <atomic> | |
#include <new> | |
template <typename T, typename Alloc = std::allocator<T>> | |
class spsc : private Alloc | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use lyn::Scanner; | |
enum EthrToken { | |
DID, | |
NETWORK, | |
CHAIN_ID, | |
ADDRESS, | |
PUBLIC_KEY, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGWdzBQBEADqFiG8LNCiMYlAwNNKTKSxChejQWIvBAeAIVJ3LxipUdjzI20e | |
kowGd44wYkwRBv+Spf3Faztkj45yF30vMHQFZXBk9gasWQ5ZR3URfcN4BEJgPos4 | |
eHz3J/EYQ3aGWGSOjR+/9G3xmAqOyp5RQ8LBg6WJm6CGudPps3AC/R2ICjs8yvzK | |
VvQe7u5bi0j4UtX6YDdU6nDZOgK6Wq7OER0ZXGOOZb/U43IBFfmwR6aNmoajpnof | |
XiYv/J7zgp6Logh5eVj2PiwUCsZXGB7rEc+g7pOVikuCdBhirl5W1krJa/C5Hd5R | |
PTSGx4OF4oPgscIgXt6c6ULfy01j65Yho5bcImMbeB79rDTj1OOLoQlew3CmhK/x | |
nguqMD5LVUV63DfA5cHPHw8z/ZXsWZ5ZWqhBuVn1CTOnzqj7fHZyqea3i70Cv4Oj | |
v/JcH1rXS/f70rNUd81OA3ld7Ccrw64HtcRUTd3TYnLUYeChaFSY1rZHCipyylko |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* MIX AL PROGRAM TO CALCULATE FIBONACCI NUMBERS | |
X EQU 1000 | |
Y EQU 1005 | |
N EQU 1010 | |
COUNT CON 40 | |
ORIG 3000 | |
FIB STJ EXIT | |
ENT1 0 | |
ST1 X | |
ENT1 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* MIX AL PROGRAM | |
* example of a simple loop | |
* count from 0 to 1000 | |
ORIG 1000 | |
START STJ EXIT | |
LOOP LDA COUNT | |
INCA 1 | |
STA COUNT | |
CMPA MAX | |
JL LOOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* hello world MIXAL | |
TERM EQU 19 * unit number of terminal | |
ORIG 3000 | |
START OUT HELLO(TERM) * output terminal | |
HLT | |
HELLO ALF HELLO | |
ALF " WORL" | |
ALF D | |
END START * end of program |
NewerOlder