diff --git a/example.md b/example.md new file mode 100644 index 0000000..8a35971 --- /dev/null +++ b/example.md @@ -0,0 +1,70 @@ +> 欢迎歌曲作者联系我 +> +> 作品收益将全部给到作者方 + +歌曲名 小河淌水(歌手2019) + +歌手名 龚琳娜 + +作曲:老锣 + +新编:云南民歌 + +编曲:老锣 + +Program:老锣 + +制作人:老锣 + +笙:聂云雷 + +中国鼓:郑瑀李尚 + +月亮出来亮汪汪 + +亮汪汪 + +想起我的阿哥在深山 + +哥像月亮天上走 + +天上走 + +哥啊哥啊哥啊 + +山下小河淌水 + +清悠悠 + +月亮出来照半坡 + +照半坡 + +望见月亮想起我的哥 + +一阵清风吹上坡 + +吹上坡 + +哥啊哥啊哥啊 + +你可听见阿妹 + +叫阿哥 + +月亮出来亮汪汪 + +亮汪汪 + +想起我的阿哥在深山 + +一阵清风吹上坡 + +吹上坡 + +哥啊哥啊哥啊 + +你可听见阿妹 +叫阿哥 + + diff --git a/lib/components/galxe_graphql_interactor.ex b/lib/components/galxe_graphql_interactor.ex index 3d65968..3b25df1 100644 --- a/lib/components/galxe_graphql_interactor.ex +++ b/lib/components/galxe_graphql_interactor.ex @@ -48,12 +48,4 @@ defmodule Components.GalxeGraphQLInteractor do {:error, inspect(error)} end end - - def build_body_query_nft_holder(campaign_id, block, fir, aft) do - Poison.encode!(%{query: - "query NFTHolders {\n campaign(id: \"#{campaign_id}\") {\n nftHolderSnapshot {\n holders(block: #{block}, first: #{fir}, after: \"#{aft}\") {\n list {\n id\n holder\n }\n totalCount\n edges {\n node {\n id\n holder\n }\n cursor\n }\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n }\n }\n }\n }\n}\n" - }) - end - - # def build end \ No newline at end of file diff --git a/mix.exs b/mix.exs index a1f954a..7e78b29 100644 --- a/mix.exs +++ b/mix.exs @@ -81,7 +81,7 @@ defmodule TaiShangMicroFaasSystem.MixProject do {:ex_struct_translator, "~> 0.1.1"}, # eth - {:eth_wallet, "~> 0.1.0"}, + {:eth_wallet, "~> 0.1.1"}, # handle_uri {:ex_url, "~> 1.4"}, diff --git a/mix.lock b/mix.lock index 255140a..d12b38b 100644 --- a/mix.lock +++ b/mix.lock @@ -2,7 +2,7 @@ "arweave_sdk_ex": {:hex, :arweave_sdk_ex, "0.1.10", "92cc993569ad896b6c6608bf584f1b46cf9d861870071446f7ba9d8f72265b21", [:mix], [{:ex_struct_translator, "~> 0.1.1", [hex: :ex_struct_translator, repo: "hexpm", optional: false]}, {:export, "~> 0.1.0", [hex: :export, repo: "hexpm", optional: false]}, {:httpoison, "~> 1.8", [hex: :httpoison, repo: "hexpm", optional: false]}, {:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: false]}, {:jose, "~> 1.11", [hex: :jose, repo: "hexpm", optional: false]}], "hexpm", "3ccf179eb85cdfa113b890a122ca10d2cb678ac5c70edbac7b3ccb30f581a84d"}, "bcs": {:hex, :bcs, "0.1.0", "0047d5b1defd98cc52b218ccc41226e46c43f30b6b5290864b507539bedcb66d", [:mix], [], "hexpm", "bd29dde6f2d88cf278b5cf457f1d2d83474dceb9c9c9265af9dd79cc24f1c392"}, "binary": {:hex, :binary, "0.0.5", "20d816f7274ea34f1b673b4cff2fdb9ebec9391a7a68c349070d515c66b1b2cf", [:mix], [], "hexpm", "ee1e9ebcab703a4e24db554957fbb540642fe9327eb9e295cb3f07dd7c11ddb2"}, - "castore": {:hex, :castore, "1.0.4", "ff4d0fb2e6411c0479b1d965a814ea6d00e51eb2f58697446e9c41a97d940b28", [:mix], [], "hexpm", "9418c1b8144e11656f0be99943db4caf04612e3eaecefb5dae9a2a87565584f8"}, + "castore": {:hex, :castore, "1.0.5", "9eeebb394cc9a0f3ae56b813459f990abb0a3dedee1be6b27fdb50301930502f", [:mix], [], "hexpm", "8d7c597c3e4a64c395980882d4bca3cebb8d74197c590dc272cfd3b6a6310578"}, "certifi": {:hex, :certifi, "2.12.0", "2d1cca2ec95f59643862af91f001478c9863c2ac9cb6e2f89780bfd8de987329", [:rebar3], [], "hexpm", "ee68d85df22e554040cdb4be100f33873ac6051387baf6a8f6ce82272340ff1c"}, "connection": {:hex, :connection, "1.1.0", "ff2a49c4b75b6fb3e674bfc5536451607270aac754ffd1bdfe175abe4a6d7a68", [:mix], [], "hexpm", "722c1eb0a418fbe91ba7bd59a47e28008a189d47e37e0e7bb85585a016b2869c"}, "cors_plug": {:hex, :cors_plug, "2.0.3", "316f806d10316e6d10f09473f19052d20ba0a0ce2a1d910ddf57d663dac402ae", [:mix], [{:plug, "~> 1.8", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "ee4ae1418e6ce117fc42c2ba3e6cbdca4e95ecd2fe59a05ec6884ca16d469aea"}, @@ -18,12 +18,13 @@ "embedbase_ex": {:hex, :embedbase_ex, "0.1.0", "282abfca19bfc4c6c7a7686457b35241372b2270fbcf70c79b05baeebce7f21e", [:mix], [{:ex_struct_translator, "~> 0.1.1", [hex: :ex_struct_translator, repo: "hexpm", optional: false]}, {:httpoison, "~> 2.0", [hex: :httpoison, repo: "hexpm", optional: false]}, {:poison, "~> 3.1", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm", "9b35135a93e46af553f83308f7ea6ee6138ece9aa94e619309e5b4ddb7ac05ec"}, "erlport": {:hex, :erlport, "0.10.1", "c96ffa51bbcab0298232fcdfe8c3e110f1598011de71ae6b9082b80c9e2e476a", [:rebar3], [], "hexpm", "34931e8cb62a131d1bc8a2bd04d4007c73c03e4f10e22ee4a218e7172227a918"}, "esbuild": {:hex, :esbuild, "0.5.0", "d5bb08ff049d7880ee3609ed5c4b864bd2f46445ea40b16b4acead724fb4c4a3", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "f183a0b332d963c4cfaf585477695ea59eef9a6f2204fdd0efa00e099694ffe5"}, - "eth_wallet": {:hex, :eth_wallet, "0.1.0", "1eb794c3e5b222a7d5cbd24c9e058443ccde4f32dfdcc945c1b8155e9c8eeaf0", [:mix], [{:binary, "~> 0.0.5", [hex: :binary, repo: "hexpm", optional: false]}, {:ex_abi, "~> 0.5.2", [hex: :ex_abi, repo: "hexpm", optional: false]}, {:ex_crypto, "~> 0.10.0", [hex: :ex_crypto, repo: "hexpm", optional: false]}, {:ex_rlp, "~> 0.2.1", [hex: :ex_rlp, repo: "hexpm", optional: false]}, {:libsecp256k1, "~> 0.1.9", [hex: :libsecp256k1, repo: "hexpm", optional: false]}], "hexpm", "d9572a7226a88c6bc3b3bbacc23b4ba53c56419039e4238776fdafd71b669f4a"}, + "eth_wallet": {:hex, :eth_wallet, "0.1.1", "24157247773de29904498a249585209a4fb3335e2481f46e8a2c639473a1d775", [:mix], [{:binary, "~> 0.0.5", [hex: :binary, repo: "hexpm", optional: false]}, {:ex_abi, "~> 0.5.2", [hex: :ex_abi, repo: "hexpm", optional: false]}, {:ex_crypto, "~> 0.10.0", [hex: :ex_crypto, repo: "hexpm", optional: false]}, {:ex_rlp, "~> 0.2.1", [hex: :ex_rlp, repo: "hexpm", optional: false]}, {:ex_secp256k1, "~> 0.7.0", [hex: :ex_secp256k1, repo: "hexpm", optional: false]}, {:libsecp256k1, "~> 0.1.9", [hex: :libsecp256k1, repo: "hexpm", optional: false]}], "hexpm", "eb0d69a6fc492c0ab18589e515674fc8286e004949d709e4615bfe031b6dc72d"}, "ethereumex": {:hex, :ethereumex, "0.10.0", "a848cd3068ab4139752fb4b7ddcf19a43504a00aa40953b9a86d087e98ed13d5", [:make, :mix], [{:finch, "~> 0.12", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.3", [hex: :jason, repo: "hexpm", optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "ca4d80548d2802e0a0a238f145527f3819791826072999627bfad12194cbad7e"}, "ex_abi": {:hex, :ex_abi, "0.6.4", "f722a38298f176dab511cf94627b2815282669255bc2eb834674f23ca71f5cfb", [:mix], [{:ex_keccak, "~> 0.7.3", [hex: :ex_keccak, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "07eaf39b70dd3beac1286c10368d27091a9a64844830eb26a38f1c8d8b19dfbb"}, "ex_crypto": {:hex, :ex_crypto, "0.10.0", "af600a89b784b36613a989da6e998c1b200ff1214c3cfbaf8deca4aa2f0a1739", [:mix], [{:poison, ">= 2.0.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm", "ccc7472cfe8a0f4565f97dce7e9280119bf15a5ea51c6535e5b65f00660cde1c"}, "ex_keccak": {:hex, :ex_keccak, "0.7.3", "33298f97159f6b0acd28f6e96ce5ea975a0f4a19f85fe615b4f4579b88b24d06", [:mix], [{:rustler, ">= 0.0.0", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.6.1", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "4c5e6d9d5f77b64ab48769a0166a9814180d40ced68ed74ce60a5174ab55b3fc"}, "ex_rlp": {:hex, :ex_rlp, "0.2.1", "bd320900d6316cdfe01d365d4bda22eb2f39b359798daeeffd3bd1ca7ba958ec", [:mix], [], "hexpm", "3a524ee871392ed2891390285a26507aee0a0c2a7789145e45730321a788e50a"}, + "ex_secp256k1": {:hex, :ex_secp256k1, "0.7.2", "33398c172813b90fab9ab75c12b98d16cfab472c6dcbde832b13c45ce1c01947", [:mix], [{:rustler, ">= 0.0.0", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.6", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "f3b1bf56e6992e28b9d86e3bf741a4aca3e641052eb47d13ae4f5f4d4944bdaf"}, "ex_struct_translator": {:hex, :ex_struct_translator, "0.1.1", "d61b8f9c18583f3ca0e48db569d29fd50704c3f0ed0994ec96efff8bc32fa1a0", [:mix], [{:ecto, "~> 3.4.6", [hex: :ecto, repo: "hexpm", optional: false]}, {:poison, "~> 3.1", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm", "1eca168d8c5bd6c8f20a2fa15a2ee1277ae6ac90bd4b576edecea72d27bd5e24"}, "ex_url": {:hex, :ex_url, "1.4.0", "4610c8c267d988164edcc3c76777202e2151e3a6336b7f16698e672ee98dc1ef", [:mix], [{:ex_cldr, "~> 2.18", [hex: :ex_cldr, repo: "hexpm", optional: true]}, {:ex_phone_number, "~> 0.1", [hex: :ex_phone_number, repo: "hexpm", optional: true]}, {:gettext, "~> 0.13", [hex: :gettext, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "56e5b0d27215651bba3f8fab92a964c46bd1142649d942270673f108ef5a20cb"}, "exbase58": {:hex, :exbase58, "1.0.2", "2caa5df4d769b5c555cde11b85e93199037ed8b41f1da23e812619c10e3a3424", [:mix], [], "hexpm", "fe6b6b465750bdc1bd01c7b33b265902dabd63061f7db24e663509b45b4bba3c"}, diff --git a/payload.json b/payload.json new file mode 100644 index 0000000..048cd94 --- /dev/null +++ b/payload.json @@ -0,0 +1,11 @@ +{ + "type": "INSERT", + "table": "raw_data", + "record": { + "id_on_chain": 13, "creator": "0x0", + "content": "fdsfsdsfdsfd", + "created_at": "2023-12-16T22:22:08.542514+00:00" + }, + "schema": "public", + "old_record": null + }