Skip to content

Commit

Permalink
chore: update NFTs metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Darlington02 committed Dec 17, 2024
1 parent 7e3707c commit a0bbdc0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/coloniznft/coloniznft.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ pub mod ColonizNFT {
// *************************************************************************
/// @notice returns the collection name
fn name(self: @ContractState) -> ByteArray {
return "coloniz";
return "Coloniz";
}

/// @notice returns the collection symbol
fn symbol(self: @ContractState) -> ByteArray {
return "KST";
return "CLZ:PROFILE";
}

/// @notice returns the token_uri for a particular token_id
Expand Down
6 changes: 3 additions & 3 deletions src/follownft/follownft.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub mod Follow {
admin: ContractAddress
) {
self.admin.write(admin);
self.erc721.initializer("coloniz:FOLLOWER", "KFL", "");
self.erc721.initializer("Coloniz Followers", "CLZ:FOLLOWERS", "");
self.coloniz_hub.write(hub);
self.followed_profile_address.write(profile_address);
}
Expand Down Expand Up @@ -277,12 +277,12 @@ pub mod Follow {
// *************************************************************************
/// @notice returns the collection name
fn name(self: @ContractState) -> ByteArray {
return "coloniz:FOLLOWER";
return "Coloniz Followers";
}

/// @notice returns the collection symbol
fn symbol(self: @ContractState) -> ByteArray {
return "KFL";
return "CLZ:FOLLOWERS";
}

/// @notice returns the token URI of a particular follow NFT
Expand Down
4 changes: 3 additions & 1 deletion src/interfaces/IHandle.cairo
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// *************************************************************************
// INTERFACE of HANDLE NFT
// *************************************************************************
use starknet::ContractAddress;

#[starknet::interface]
pub trait IHandle<TState> {
// *************************************************************************
// EXTERNALS
// *************************************************************************
fn mint_handle(ref self: TState, local_name: felt252,) -> u256;
fn mint_handle(ref self: TState, local_name: felt252, profile: ContractAddress) -> u256;
fn burn_handle(ref self: TState, token_id: u256);
// *************************************************************************
// GETTERS
Expand Down
12 changes: 7 additions & 5 deletions src/namespaces/handles.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub mod Handles {
constants::errors::Errors, utils::byte_array_extra::FeltTryIntoByteArray,
token_uris::handle_token_uri::HandleTokenUri,
};
use coloniz::interfaces::{IHandle::IHandle};
use coloniz::interfaces::IHandle::IHandle;

component!(path: OwnableComponent, storage: ownable, event: OwnableEvent);
component!(path: SRC5Component, storage: src5, event: SRC5Event);
Expand Down Expand Up @@ -120,10 +120,11 @@ pub mod Handles {
/// @notice mints a handle to a profile address
/// @param address profile address to mint handle to
/// @param local_name username to be minted
fn mint_handle(ref self: ContractState, local_name: felt252,) -> u256 {
let address = get_caller_address();
fn mint_handle(
ref self: ContractState, local_name: felt252, profile: ContractAddress
) -> u256 {
self._validate_local_name(local_name);
let token_id = self._mint_handle(address, local_name);
let token_id = self._mint_handle(profile, local_name);
token_id
}

Expand Down Expand Up @@ -204,7 +205,7 @@ pub mod Handles {

/// @notice returns the collection symbol
fn symbol(self: @ContractState) -> ByteArray {
return "CHandles";
return "CLZ:HANDLES";
}

/// @notice returns the token URI of a particular handle
Expand Down Expand Up @@ -278,3 +279,4 @@ pub mod Handles {
}
}
}

0 comments on commit a0bbdc0

Please sign in to comment.