├── .gitignore ├── .waffle.json ├── README.md ├── contracts ├── AddressWhiteList.sol ├── Burger.sol ├── DgasHub.sol ├── SwitchAcross.sol ├── SwitchConfig.sol ├── SwitchFarm.sol ├── SwitchFarmQuery.sol ├── SwitchPool.sol ├── SwitchQuery.sol ├── SwitchSigner.sol ├── SwitchTicket.sol ├── SwitchTicketFactory.sol ├── SwitchTicketMerchant.sol ├── SwitchTreasury.sol ├── SwitchTrigger.sol ├── SwitchVotingEscrow.sol ├── interfaces │ ├── IAddressWhitelist.sol │ ├── IERC20.sol │ ├── IERC2917.sol │ ├── IRewardToken.sol │ ├── ISwitchAcross.sol │ ├── ISwitchAcrossOrder.sol │ ├── ISwitchFarm.sol │ ├── ISwitchSigner.sol │ ├── ISwitchTicket.sol │ ├── ISwitchTicketFactory.sol │ ├── ISwitchTreasury.sol │ ├── ISwitchTreasurySubscriber.sol │ ├── ISwitchVotingEscrow.sol │ └── IWETH.sol ├── libraries │ ├── Address.sol │ ├── SafeMath.sol │ ├── StringHelper.sol │ └── TransferHelper.sol └── modules │ ├── Configable.sol │ ├── ERC20Token.sol │ ├── Initializable.sol │ ├── Ownable.sol │ ├── Pausable.sol │ ├── ReentrancyGuard.sol │ ├── SwitchERC20.sol │ └── UserTokenLimit.sol ├── hardhat.config.ts ├── hardhat.switch.js ├── package.json ├── scripts ├── callData.example.json ├── data.example.json ├── deploy.ts ├── proxy.ts ├── setup.ts ├── test.js └── verify.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/.gitignore -------------------------------------------------------------------------------- /.waffle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/.waffle.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/README.md -------------------------------------------------------------------------------- /contracts/AddressWhiteList.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/AddressWhiteList.sol -------------------------------------------------------------------------------- /contracts/Burger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/Burger.sol -------------------------------------------------------------------------------- /contracts/DgasHub.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/DgasHub.sol -------------------------------------------------------------------------------- /contracts/SwitchAcross.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchAcross.sol -------------------------------------------------------------------------------- /contracts/SwitchConfig.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchConfig.sol -------------------------------------------------------------------------------- /contracts/SwitchFarm.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchFarm.sol -------------------------------------------------------------------------------- /contracts/SwitchFarmQuery.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchFarmQuery.sol -------------------------------------------------------------------------------- /contracts/SwitchPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchPool.sol -------------------------------------------------------------------------------- /contracts/SwitchQuery.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchQuery.sol -------------------------------------------------------------------------------- /contracts/SwitchSigner.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchSigner.sol -------------------------------------------------------------------------------- /contracts/SwitchTicket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchTicket.sol -------------------------------------------------------------------------------- /contracts/SwitchTicketFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchTicketFactory.sol -------------------------------------------------------------------------------- /contracts/SwitchTicketMerchant.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchTicketMerchant.sol -------------------------------------------------------------------------------- /contracts/SwitchTreasury.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchTreasury.sol -------------------------------------------------------------------------------- /contracts/SwitchTrigger.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchTrigger.sol -------------------------------------------------------------------------------- /contracts/SwitchVotingEscrow.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/SwitchVotingEscrow.sol -------------------------------------------------------------------------------- /contracts/interfaces/IAddressWhitelist.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/IAddressWhitelist.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC2917.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/IERC2917.sol -------------------------------------------------------------------------------- /contracts/interfaces/IRewardToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/IRewardToken.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwitchAcross.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/ISwitchAcross.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwitchAcrossOrder.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/ISwitchAcrossOrder.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwitchFarm.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/ISwitchFarm.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwitchSigner.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/ISwitchSigner.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwitchTicket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/ISwitchTicket.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwitchTicketFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/ISwitchTicketFactory.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwitchTreasury.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/ISwitchTreasury.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwitchTreasurySubscriber.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/ISwitchTreasurySubscriber.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISwitchVotingEscrow.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/ISwitchVotingEscrow.sol -------------------------------------------------------------------------------- /contracts/interfaces/IWETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/interfaces/IWETH.sol -------------------------------------------------------------------------------- /contracts/libraries/Address.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/libraries/Address.sol -------------------------------------------------------------------------------- /contracts/libraries/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/libraries/SafeMath.sol -------------------------------------------------------------------------------- /contracts/libraries/StringHelper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/libraries/StringHelper.sol -------------------------------------------------------------------------------- /contracts/libraries/TransferHelper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/libraries/TransferHelper.sol -------------------------------------------------------------------------------- /contracts/modules/Configable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/modules/Configable.sol -------------------------------------------------------------------------------- /contracts/modules/ERC20Token.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/modules/ERC20Token.sol -------------------------------------------------------------------------------- /contracts/modules/Initializable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/modules/Initializable.sol -------------------------------------------------------------------------------- /contracts/modules/Ownable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/modules/Ownable.sol -------------------------------------------------------------------------------- /contracts/modules/Pausable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/modules/Pausable.sol -------------------------------------------------------------------------------- /contracts/modules/ReentrancyGuard.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/modules/ReentrancyGuard.sol -------------------------------------------------------------------------------- /contracts/modules/SwitchERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/modules/SwitchERC20.sol -------------------------------------------------------------------------------- /contracts/modules/UserTokenLimit.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/contracts/modules/UserTokenLimit.sol -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /hardhat.switch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/hardhat.switch.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/package.json -------------------------------------------------------------------------------- /scripts/callData.example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/scripts/callData.example.json -------------------------------------------------------------------------------- /scripts/data.example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/scripts/data.example.json -------------------------------------------------------------------------------- /scripts/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/scripts/deploy.ts -------------------------------------------------------------------------------- /scripts/proxy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/scripts/proxy.ts -------------------------------------------------------------------------------- /scripts/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/scripts/setup.ts -------------------------------------------------------------------------------- /scripts/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/scripts/test.js -------------------------------------------------------------------------------- /scripts/verify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/scripts/verify.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burgerswap-org/burger-switch-protocol/HEAD/yarn.lock --------------------------------------------------------------------------------