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
defmodule CodesOnChain.ReadmeAnalyzer do | |
@moduledoc """ | |
analyze the readme of a repo. | |
functions: | |
- analyze_readme(text) | |
""" | |
def get_module_doc, do: @moduledoc |
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
defmodule CodesOnChain.Contracts.RMUDLottery do | |
@moduledoc """ | |
the interact with RMUDLottery on mappo chain. | |
> https://mainnet.optimism.io | |
> 10 | |
> https://explorer.optimism.io | |
""" | |
alias Ethereumex.HttpClient | |
alias Components.Transaction |
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
defmodule CodesOnChain.ArweaveUploader do | |
alias Components.ArweaveHandler | |
@moduledoc """ | |
generate map by a given hash. | |
""" | |
def get_module_doc, do: @moduledoc | |
def send_tx(api_key, data, tags) do |
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: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
/** | |
* @title ItemTagger v1.0.0 | |
* @dev Implements tagger process along with judger. | |
*/ | |
contract ItemTagger { | |
address public chairperson; |
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
defmodule CodesOnChain.Crypto do | |
@moduledoc """ | |
the funcs about crypto | |
""" | |
def get_module_doc, do: @moduledoc | |
defdelegate verify_compact(msg, sig, addr), to: EthWallet | |
end |
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
defmodule CodesOnChain.Contracts.Bodhi do | |
@moduledoc """ | |
the interact with bodhi on op chain. | |
> https://mainnet.optimism.io | |
> 10 | |
> https://explorer.optimism.io | |
""" | |
alias Ethereumex.HttpClient | |
alias Components.Transaction | |
require Logger |
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
defmodule CodesOnChain.GalxeInteractor do | |
@moduledoc """ | |
Interact with Galxe. | |
""" | |
alias Components.GalxeGraphQLInteractor | |
def get_module_doc, do: @moduledoc | |
def query_campaign_list(the_alias, fir, aft) do |
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
defmodule CodesOnChain.DataPipeExample.ByLine do | |
@moduledoc """ | |
just split the markdown file by line. | |
""" | |
def get_module_doc(), do: @moduledoc | |
def handle(raw_data) do | |
String.split(raw_data, "\n") | |
end |
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
defmodule CodesOnChain.VectorAPI do | |
@moduledoc """ | |
API for the Vector Datasets of Movespace. | |
> https://movespace.xyz | |
# TODO: record necessary data in local database. | |
# TODO: using embedbase surpase to auth. | |
""" |
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
defmodule CodesOnChain.MoveCrowdfund do | |
@moduledoc """ | |
Weightlight backend for MoveCrowdfund. | |
""" | |
alias Web3SuiEx.Sui | |
@network "https://fullnode.testnet.sui.io:443" | |
@move_crowdfund_contract "0x928530ad292091fde082959ca7131f8b0f6209f8faf1a3fe8dc5ca86b2583acf" | |
@shared_fund_info "0x807b26a94f540b4164f5dd03acfb1fecf0c996db627945da4b2cd09ec3014a07" |
NewerOlder