From 8e3a87d4772b7d12edab60ad2299f8d49ef9b76e Mon Sep 17 00:00:00 2001 From: Alex Metelli Date: Sat, 10 Aug 2024 08:01:06 +0800 Subject: [PATCH] created all files req --- .../token/extensions/fast_hyp_erc20.cairo | 1 + .../fast_hyp_erc20_collateral.cairo | 1 + .../hyp_erc20_collateral_vault_deposit.cairo | 1 + .../hyp_erc721_URI_collateral.cairo | 1 + .../extensions/hyp_erc721_URI_storage.cairo | 1 + .../token/extensions/hyp_fiat_token.cairo | 1 + .../token/extensions/hyp_native_scaled.cairo | 1 + .../token/extensions/hyp_xerc20.cairo | 1 + .../token/extensions/hyp_xerc20_lockbox.cairo | 1 + cairo/src/contracts/token/hyp_erc20.cairo | 23 +++++++++++++++ .../token/hyp_erc20_collateral.cairo | 1 + cairo/src/contracts/token/hyp_erc721.cairo | 1 + .../token/hyp_erc721_collateral.cairo | 1 + cairo/src/contracts/token/hyp_native.cairo | 1 + .../token/interfaces/ifiat_token.cairo | 1 + .../contracts/token/interfaces/ixerc20.cairo | 1 + .../token/interfaces/ixerc20_lockbox.cairo | 1 + .../token/libs/fast_token_router.cairo | 1 + .../contracts/token/libs/token_message.cairo | 1 + .../contracts/token/libs/token_router.cairo | 1 + cairo/src/lib.cairo | 28 +++++++++++++++++++ 21 files changed, 70 insertions(+) create mode 100644 cairo/src/contracts/token/extensions/fast_hyp_erc20.cairo create mode 100644 cairo/src/contracts/token/extensions/fast_hyp_erc20_collateral.cairo create mode 100644 cairo/src/contracts/token/extensions/hyp_erc20_collateral_vault_deposit.cairo create mode 100644 cairo/src/contracts/token/extensions/hyp_erc721_URI_collateral.cairo create mode 100644 cairo/src/contracts/token/extensions/hyp_erc721_URI_storage.cairo create mode 100644 cairo/src/contracts/token/extensions/hyp_fiat_token.cairo create mode 100644 cairo/src/contracts/token/extensions/hyp_native_scaled.cairo create mode 100644 cairo/src/contracts/token/extensions/hyp_xerc20.cairo create mode 100644 cairo/src/contracts/token/extensions/hyp_xerc20_lockbox.cairo create mode 100644 cairo/src/contracts/token/hyp_erc20.cairo create mode 100644 cairo/src/contracts/token/hyp_erc20_collateral.cairo create mode 100644 cairo/src/contracts/token/hyp_erc721.cairo create mode 100644 cairo/src/contracts/token/hyp_erc721_collateral.cairo create mode 100644 cairo/src/contracts/token/hyp_native.cairo create mode 100644 cairo/src/contracts/token/interfaces/ifiat_token.cairo create mode 100644 cairo/src/contracts/token/interfaces/ixerc20.cairo create mode 100644 cairo/src/contracts/token/interfaces/ixerc20_lockbox.cairo create mode 100644 cairo/src/contracts/token/libs/fast_token_router.cairo create mode 100644 cairo/src/contracts/token/libs/token_message.cairo create mode 100644 cairo/src/contracts/token/libs/token_router.cairo diff --git a/cairo/src/contracts/token/extensions/fast_hyp_erc20.cairo b/cairo/src/contracts/token/extensions/fast_hyp_erc20.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/extensions/fast_hyp_erc20.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/extensions/fast_hyp_erc20_collateral.cairo b/cairo/src/contracts/token/extensions/fast_hyp_erc20_collateral.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/extensions/fast_hyp_erc20_collateral.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/extensions/hyp_erc20_collateral_vault_deposit.cairo b/cairo/src/contracts/token/extensions/hyp_erc20_collateral_vault_deposit.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/extensions/hyp_erc20_collateral_vault_deposit.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/extensions/hyp_erc721_URI_collateral.cairo b/cairo/src/contracts/token/extensions/hyp_erc721_URI_collateral.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/extensions/hyp_erc721_URI_collateral.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/extensions/hyp_erc721_URI_storage.cairo b/cairo/src/contracts/token/extensions/hyp_erc721_URI_storage.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/extensions/hyp_erc721_URI_storage.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/extensions/hyp_fiat_token.cairo b/cairo/src/contracts/token/extensions/hyp_fiat_token.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/extensions/hyp_fiat_token.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/extensions/hyp_native_scaled.cairo b/cairo/src/contracts/token/extensions/hyp_native_scaled.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/extensions/hyp_native_scaled.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/extensions/hyp_xerc20.cairo b/cairo/src/contracts/token/extensions/hyp_xerc20.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/extensions/hyp_xerc20.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/extensions/hyp_xerc20_lockbox.cairo b/cairo/src/contracts/token/extensions/hyp_xerc20_lockbox.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/extensions/hyp_xerc20_lockbox.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/hyp_erc20.cairo b/cairo/src/contracts/token/hyp_erc20.cairo new file mode 100644 index 0000000..911a920 --- /dev/null +++ b/cairo/src/contracts/token/hyp_erc20.cairo @@ -0,0 +1,23 @@ +#[starknet::interface] +pub mod IHypErc20 { + fn initialize(ref self: TState); + fn decimals() -> u8; + fn balance_of(ref self: TState) -> Uint256; +} + +#[starknet::contract] +pub mod HypErc20 { + + #[storage] + struct Storage {} + + fn constructor() {} + + impl HypErc20Impl of super::IHypErc20 { + fn initialize() {} + + fn decimals() -> u8 {0} + + fn balance_of(ref self: ContractState) -> Uint256 {0} + } +} \ No newline at end of file diff --git a/cairo/src/contracts/token/hyp_erc20_collateral.cairo b/cairo/src/contracts/token/hyp_erc20_collateral.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/hyp_erc20_collateral.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/hyp_erc721.cairo b/cairo/src/contracts/token/hyp_erc721.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/hyp_erc721.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/hyp_erc721_collateral.cairo b/cairo/src/contracts/token/hyp_erc721_collateral.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/hyp_erc721_collateral.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/hyp_native.cairo b/cairo/src/contracts/token/hyp_native.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/hyp_native.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/interfaces/ifiat_token.cairo b/cairo/src/contracts/token/interfaces/ifiat_token.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/interfaces/ifiat_token.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/interfaces/ixerc20.cairo b/cairo/src/contracts/token/interfaces/ixerc20.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/interfaces/ixerc20.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/interfaces/ixerc20_lockbox.cairo b/cairo/src/contracts/token/interfaces/ixerc20_lockbox.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/interfaces/ixerc20_lockbox.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/libs/fast_token_router.cairo b/cairo/src/contracts/token/libs/fast_token_router.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/libs/fast_token_router.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/libs/token_message.cairo b/cairo/src/contracts/token/libs/token_message.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/libs/token_message.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/contracts/token/libs/token_router.cairo b/cairo/src/contracts/token/libs/token_router.cairo new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/cairo/src/contracts/token/libs/token_router.cairo @@ -0,0 +1 @@ + diff --git a/cairo/src/lib.cairo b/cairo/src/lib.cairo index 483e18d..d2b0dfc 100644 --- a/cairo/src/lib.cairo +++ b/cairo/src/lib.cairo @@ -29,6 +29,34 @@ mod contracts { pub mod message_recipient; pub mod mock_validator_announce; } + pub mod token { + pub mod hyp_erc20; + pub mod hyp_erc20_collateral; + pub mod hyp_erc721; + pub mod hyp_erc721_collateral; + pub mod hyp_native; + pub mod extensions { + pub mod fast_hyp_erc20; + pub mod fast_hyp_erc20_collateral; + pub mod hyp_erc20_collateral_vault_deposit; + pub mod hyp_erc721_URI_collateral; + pub mod hyp_erc721_URI_storage; + pub mod hyp_fiat_token; + pub mod hyp_native_scaled; + pub mod hyp_xerc20; + pub mod hyp_xerc20_lockbox; + } + pub mod interfaces { + pub mod ifiat_token; + pub mod ixerc20; + pub mod ixerc20_lockbox; + } + pub mod libs { + pub mod fast_token_router; + pub mod token_message; + pub mod token_router; + } + } pub mod isms { pub mod noop_ism; pub mod pausable_ism;