From 991c109980920b5cac408c65841166e1cabe0e36 Mon Sep 17 00:00:00 2001 From: ZapFi <119051126+ZapFi@users.noreply.github.com> Date: Tue, 16 Jul 2024 22:56:05 +0700 Subject: [PATCH 1/6] Create info.json --- .../info.json | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/info.json diff --git a/tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/info.json b/tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/info.json new file mode 100644 index 0000000..ddb73dd --- /dev/null +++ b/tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/info.json @@ -0,0 +1,30 @@ +{ + "name": "ZPF Token", + "symbol": "ZPF", + "type": "PSP22", + "contractAddress": "5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE", + "decimals": 12, + "description": "Utility Token for ZPF Ecosystem", + "website": "https://zapfi.org", + "sourceCode": "https://github.com/ZapFi/token/tree/966f67adb0dd2e3a55acf88af17d50340871bf91/sourcecode", + "links": [ + { + "name": "X/Twitter", + "url": "https://x.com/zap_finance" + }, + { + "name": "Telegram", + "url": "https://t.me/ZapFiOfficial" + }, + { + "name": "Discord", + "url": "" + } + ], + "customTags": [ + "ZPF Contract Address" + ], + "warnings": [], + "owner": "5G1cYC4E5MDs4F32RdaMynyr9Pk9DrsjbquA931UskvojVAg", + "minter": "5G1cYC4E5MDs4F32RdaMynyr9Pk9DrsjbquA931UskvojVAg" +} From e78383f1e489cc3a7261719b4394a245de057e20 Mon Sep 17 00:00:00 2001 From: ZapFi <119051126+ZapFi@users.noreply.github.com> Date: Tue, 16 Jul 2024 23:01:57 +0700 Subject: [PATCH 2/6] ZPF Token Logo --- .../logo.png | Bin 0 -> 13466 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/logo.png diff --git a/tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/logo.png b/tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..59ebd8c3dd39edc70951ad84da69e7e351deb217 GIT binary patch literal 13466 zcmdVBc|6oz`#3)Kk)5&@1{H;wVQiCiNRlmtM2wlSGZ_0$RI+E}wnP$g+Y>^zgj7h% zzGe&AcVqaz)qVFo-_PrLKF{a(`+fiTedjf1&ikC}T<1F1e$F+b4D_xro!~tI0)d#W zYH1jPKomfe0tBW6zIs_z;J_EXo7PPN2*ki~{6_&w%isnYk`BgZo@Tl_NDSUZ5{<>% z;3R!r+yH10NKwVt4UKWac?#O#>>ON`gjVVrg#;b2N8m946E6~IA9q8A1b>2fIw=XM9WN+orfVRm zj`zR`%1Xi{Fff>upqzpvTo!?lg^3GF!K7eNm<$vyB>|U3!VpNfoZw$CAz(ERtS!<| zL-Vh-fF~s(drwa{Boyl7<0I)KEs6KAgTfUQ6reCEsFaih03ku}bM-{~O1Kh)|Hhz! zBVarn+&mrdu7bxH(KdK5PbDFM(qCI}ar=$dmGBpv0ER(*(QZ(taV|JlPXYi7|GfafT3y}W;Qx{q7nk4A1kcOf zz&8G3$iIXp82h>5poTaC-pd1nyX+0DDE#+s2%d(xfAI5vFdYE@J=xR2_TS7s9{JxG zfb(_uH=xHOzd_xQ>K-_>C*H#tk9YoCcMSgKxS$kVQc6(N)WH>t_aTTK@8PcrI1RKX zPDuz*Bq<4)9Pl=VNh9I%NNK5ya2OH>`vs~Cs3sQeiT(|YI0lBx8cRtbW#o}?nTs&F ze*ojL4z_;(5%jmbk?MG7yoW9x3(z4gB>0d1tLo|o9(Y>^XJCL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ZWc1@9TG5USL~093^~g81xA(=Z z_lci<75SrEtvND04z4|+hS4>@vW_y1edH6QC3|bYwqjX8D$~wmaFnj6$0)G3Xo~~& zvlurh*f%aiHWTNJ)y$SF^EmkM6v$vuVBs(Bp7*$xYb&K6_UU)yf+MgksjKrmgq4=> z=g-frEOyRql$G0#77M&U)|ROA3COn@r#4(8fypdL-a){1U0~2DQ|Hpk5mq` zu(@G8SEz*{1J8LB6&#iWsMpD(C+tM^wQ>zJHuUm)U8}Qon7oG>?b)hHU(3=MZlQs) zJ?)*l=%y1drO2ly0w}B_%v~&>9CWb^sk^&K#e-8T4|}Bt>sTiJ3N0f^@*11Ad7azJ7N_&ci zk|K!z$;FvGWsu#7oihKg{y?GQOd7 zjezetm)E?1XUb^s49mAE4(AQWZfC{DMsQ|()ZXZ_ol&1WJhgrUq~LdVi+|^$q~pPP5bB-r znBND!qWBRlkF&B;*bMok`bCJxI-`Je^2!dMG6$&bm3e;8aYPNb=3(H=&-+-D(M?P$mqio{7btCNo*Uo|Vd7Hb;0&**gs`{dfJC_>RKwRdYXO_{n4Id6xH$ddCtX)2ufCQ9#kg0*vb|p#k3~K%zqQh%*DarZH}OK%b-@Ur zL?Smjr5F zt}lON`MFG`l$`P3y%uJw_aYH;YUd*7#EggiRV^65T$V3$qnpN!8Zpk}{1vVK+JkX8 zPV2mJgH^d`CTD1ZPL5eWaqFUFM9Lh<-b>=@$>63bN(0eHn)IrZPQZ`P8vd_t%pOsB YoEZ;)5%X&5_`ip)Ue?nnL0O0YFQDG=*#H0l literal 0 HcmV?d00001 From a4bf1d309a62194a55396212d367cbcdfeb5a0e4 Mon Sep 17 00:00:00 2001 From: ZapFi <119051126+ZapFi@users.noreply.github.com> Date: Tue, 16 Jul 2024 23:03:59 +0700 Subject: [PATCH 3/6] ZPF Token Metadata --- .../metadata.json | 1545 +++++++++++++++++ 1 file changed, 1545 insertions(+) create mode 100644 tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/metadata.json diff --git a/tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/metadata.json b/tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/metadata.json new file mode 100644 index 0000000..74df697 --- /dev/null +++ b/tokens/psp22/5ESKJbkpVa1ppUCmrkCmaZDHqm9SHihws9Uqqsoi4VrDCDLE/metadata.json @@ -0,0 +1,1545 @@ +{ + "source": { + "hash": "0x35797562597042357e38893062564dbe17cd1e791b19fe967f4275266aa143fe", + "language": "ink! 4.2.1", + "compiler": "rustc 1.69.0-nightly", + "build_info": { + "build_mode": "Release", + "cargo_contract_version": "2.2.1", + "rust_toolchain": "nightly-x86_64-apple-darwin", + "wasm_opt_settings": { + "keep_debug_symbols": false, + "optimization_passes": "Z" + } + } + }, + "contract": { + "name": "psp22", + "version": "2.9.6", + "authors": [ + "ZapFi Team " + ] + }, + "spec": { + "constructors": [ + { + "args": [ + { + "label": "total_supply", + "type": { + "displayName": [ + "Balance" + ], + "type": 0 + } + }, + { + "label": "name", + "type": { + "displayName": [ + "Option" + ], + "type": 6 + } + }, + { + "label": "symbol", + "type": { + "displayName": [ + "Option" + ], + "type": 6 + } + }, + { + "label": "decimal", + "type": { + "displayName": [ + "u8" + ], + "type": 3 + } + } + ], + "default": false, + "docs": [], + "label": "new", + "payable": false, + "returnType": { + "displayName": [ + "ink_primitives", + "ConstructorResult" + ], + "type": 7 + }, + "selector": "0x9bae9d5e" + } + ], + "docs": [], + "environment": { + "accountId": { + "displayName": [ + "AccountId" + ], + "type": 4 + }, + "balance": { + "displayName": [ + "Balance" + ], + "type": 0 + }, + "blockNumber": { + "displayName": [ + "BlockNumber" + ], + "type": 22 + }, + "chainExtension": { + "displayName": [ + "ChainExtension" + ], + "type": 23 + }, + "hash": { + "displayName": [ + "Hash" + ], + "type": 20 + }, + "maxEventTopics": 4, + "timestamp": { + "displayName": [ + "Timestamp" + ], + "type": 21 + } + }, + "events": [], + "lang_error": { + "displayName": [ + "ink", + "LangError" + ], + "type": 8 + }, + "messages": [ + { + "args": [ + { + "label": "value", + "type": { + "displayName": [ + "Balance" + ], + "type": 0 + } + } + ], + "default": false, + "docs": [], + "label": "withdraw_specific_amount", + "mutates": true, + "payable": true, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 9 + }, + "selector": "0xa1ea9e79" + }, + { + "args": [ + { + "label": "owner", + "type": { + "displayName": [ + "psp22_external", + "AllowanceInput1" + ], + "type": 4 + } + }, + { + "label": "spender", + "type": { + "displayName": [ + "psp22_external", + "AllowanceInput2" + ], + "type": 4 + } + } + ], + "default": false, + "docs": [ + " Returns the amount which `spender` is still allowed to withdraw from `owner`.", + "", + " Returns `0` if no allowance has been set `0`." + ], + "label": "PSP22::allowance", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 12 + }, + "selector": "0x4d47d921" + }, + { + "args": [ + { + "label": "spender", + "type": { + "displayName": [ + "psp22_external", + "IncreaseAllowanceInput1" + ], + "type": 4 + } + }, + { + "label": "delta_value", + "type": { + "displayName": [ + "psp22_external", + "IncreaseAllowanceInput2" + ], + "type": 0 + } + } + ], + "default": false, + "docs": [ + " Atomically increases the allowance granted to `spender` by the caller.", + "", + " An `Approval` event is emitted.", + "", + " # Errors", + "", + " Returns `ZeroSenderAddress` error if sender's address is zero.", + "", + " Returns `ZeroRecipientAddress` error if recipient's address is zero." + ], + "label": "PSP22::increase_allowance", + "mutates": true, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 9 + }, + "selector": "0x96d6b57a" + }, + { + "args": [ + { + "label": "spender", + "type": { + "displayName": [ + "psp22_external", + "DecreaseAllowanceInput1" + ], + "type": 4 + } + }, + { + "label": "delta_value", + "type": { + "displayName": [ + "psp22_external", + "DecreaseAllowanceInput2" + ], + "type": 0 + } + } + ], + "default": false, + "docs": [ + " Atomically decreases the allowance granted to `spender` by the caller.", + "", + " An `Approval` event is emitted.", + "", + " # Errors", + "", + " Returns `InsufficientAllowance` error if there are not enough tokens allowed", + " by owner for `spender`.", + "", + " Returns `ZeroSenderAddress` error if sender's address is zero.", + "", + " Returns `ZeroRecipientAddress` error if recipient's address is zero." + ], + "label": "PSP22::decrease_allowance", + "mutates": true, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 9 + }, + "selector": "0xfecb57d5" + }, + { + "args": [ + { + "label": "owner", + "type": { + "displayName": [ + "psp22_external", + "BalanceOfInput1" + ], + "type": 4 + } + } + ], + "default": false, + "docs": [ + " Returns the account Balance for the specified `owner`.", + "", + " Returns `0` if the account is non-existent." + ], + "label": "PSP22::balance_of", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 12 + }, + "selector": "0x6568382f" + }, + { + "args": [ + { + "label": "spender", + "type": { + "displayName": [ + "psp22_external", + "ApproveInput1" + ], + "type": 4 + } + }, + { + "label": "value", + "type": { + "displayName": [ + "psp22_external", + "ApproveInput2" + ], + "type": 0 + } + } + ], + "default": false, + "docs": [ + " Allows `spender` to withdraw from the caller's account multiple times, up to", + " the `value` amount.", + "", + " If this function is called again it overwrites the current allowance with `value`.", + "", + " An `Approval` event is emitted.", + "", + " # Errors", + "", + " Returns `ZeroSenderAddress` error if sender's address is zero.", + "", + " Returns `ZeroRecipientAddress` error if recipient's address is zero." + ], + "label": "PSP22::approve", + "mutates": true, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 9 + }, + "selector": "0xb20f1bbd" + }, + { + "args": [], + "default": false, + "docs": [ + " Returns the total token supply." + ], + "label": "PSP22::total_supply", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 12 + }, + "selector": "0x162df8c2" + }, + { + "args": [ + { + "label": "from", + "type": { + "displayName": [ + "psp22_external", + "TransferFromInput1" + ], + "type": 4 + } + }, + { + "label": "to", + "type": { + "displayName": [ + "psp22_external", + "TransferFromInput2" + ], + "type": 4 + } + }, + { + "label": "value", + "type": { + "displayName": [ + "psp22_external", + "TransferFromInput3" + ], + "type": 0 + } + }, + { + "label": "data", + "type": { + "displayName": [ + "psp22_external", + "TransferFromInput4" + ], + "type": 13 + } + } + ], + "default": false, + "docs": [ + " Transfers `value` tokens on the behalf of `from` to the account `to`", + " with additional `data` in unspecified format.", + "", + " This can be used to allow a contract to transfer tokens on ones behalf and/or", + " to charge fees in sub-currencies, for example.", + "", + " On success a `Transfer` and `Approval` events are emitted.", + "", + " # Errors", + "", + " Returns `InsufficientAllowance` error if there are not enough tokens allowed", + " for the caller to withdraw from `from`.", + "", + " Returns `InsufficientBalance` error if there are not enough tokens on", + " the the account Balance of `from`.", + "", + " Returns `ZeroSenderAddress` error if sender's address is zero.", + "", + " Returns `ZeroRecipientAddress` error if recipient's address is zero." + ], + "label": "PSP22::transfer_from", + "mutates": true, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 9 + }, + "selector": "0x54b3c76e" + }, + { + "args": [ + { + "label": "to", + "type": { + "displayName": [ + "psp22_external", + "TransferInput1" + ], + "type": 4 + } + }, + { + "label": "value", + "type": { + "displayName": [ + "psp22_external", + "TransferInput2" + ], + "type": 0 + } + }, + { + "label": "data", + "type": { + "displayName": [ + "psp22_external", + "TransferInput3" + ], + "type": 13 + } + } + ], + "default": false, + "docs": [ + " Transfers `value` amount of tokens from the caller's account to account `to`", + " with additional `data` in unspecified format.", + "", + " On success a `Transfer` event is emitted.", + "", + " # Errors", + "", + " Returns `InsufficientBalance` error if there are not enough tokens on", + " the caller's account Balance.", + "", + " Returns `ZeroSenderAddress` error if sender's address is zero.", + "", + " Returns `ZeroRecipientAddress` error if recipient's address is zero." + ], + "label": "PSP22::transfer", + "mutates": true, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 9 + }, + "selector": "0xdb20f9f5" + }, + { + "args": [], + "default": false, + "docs": [ + " Leaves the contract without owner. It will not be possible to call", + " owner's functions anymore. Can only be called by the current owner.", + "", + " NOTE: Renouncing ownership will leave the contract without an owner,", + " thereby removing any functionality that is only available to the owner.", + "", + " On success a `OwnershipTransferred` event is emitted.", + "", + " # Errors", + "", + " Panics with `CallerIsNotOwner` error if caller is not owner" + ], + "label": "Ownable::renounce_ownership", + "mutates": true, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 14 + }, + "selector": "0x5e228753" + }, + { + "args": [ + { + "label": "new_owner", + "type": { + "displayName": [ + "ownable_external", + "TransferOwnershipInput1" + ], + "type": 4 + } + } + ], + "default": false, + "docs": [ + " Transfers ownership of the contract to a `new_owner`.", + " Can only be called by the current owner.", + "", + " On success a `OwnershipTransferred` event is emitted.", + "", + " # Errors", + "", + " Panics with `CallerIsNotOwner` error if caller is not owner.", + "", + " Panics with `NewOwnerIsZero` error if new owner's address is zero." + ], + "label": "Ownable::transfer_ownership", + "mutates": true, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 14 + }, + "selector": "0x11f43efd" + }, + { + "args": [], + "default": false, + "docs": [ + " Returns the address of the current owner." + ], + "label": "Ownable::owner", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 17 + }, + "selector": "0x4fa43c8c" + }, + { + "args": [], + "default": false, + "docs": [ + " Returns the token name." + ], + "label": "PSP22Metadata::token_name", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 18 + }, + "selector": "0x3d261bd4" + }, + { + "args": [], + "default": false, + "docs": [ + " Returns the token symbol." + ], + "label": "PSP22Metadata::token_symbol", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 18 + }, + "selector": "0x34205be5" + }, + { + "args": [], + "default": false, + "docs": [ + " Returns the token decimals." + ], + "label": "PSP22Metadata::token_decimals", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 19 + }, + "selector": "0x7271b782" + } + ] + }, + "storage": { + "root": { + "layout": { + "struct": { + "fields": [ + { + "layout": { + "struct": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 0 + } + }, + "name": "supply" + }, + { + "layout": { + "root": { + "layout": { + "leaf": { + "key": "0x1d458d3b", + "ty": 0 + } + }, + "root_key": "0x1d458d3b" + } + }, + "name": "balances" + }, + { + "layout": { + "root": { + "layout": { + "leaf": { + "key": "0x0abd72fb", + "ty": 0 + } + }, + "root_key": "0x0abd72fb" + } + }, + "name": "allowances" + }, + { + "layout": { + "enum": { + "dispatchKey": "0x00000000", + "name": "Option", + "variants": { + "0": { + "fields": [], + "name": "None" + }, + "1": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 1 + } + }, + "name": "0" + } + ], + "name": "Some" + } + } + } + }, + "name": "_reserved" + } + ], + "name": "Data" + } + }, + "name": "psp22" + }, + { + "layout": { + "struct": { + "fields": [ + { + "layout": { + "enum": { + "dispatchKey": "0x00000000", + "name": "Option", + "variants": { + "0": { + "fields": [], + "name": "None" + }, + "1": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 2 + } + }, + "name": "0" + } + ], + "name": "Some" + } + } + } + }, + "name": "name" + }, + { + "layout": { + "enum": { + "dispatchKey": "0x00000000", + "name": "Option", + "variants": { + "0": { + "fields": [], + "name": "None" + }, + "1": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 2 + } + }, + "name": "0" + } + ], + "name": "Some" + } + } + } + }, + "name": "symbol" + }, + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 3 + } + }, + "name": "decimals" + }, + { + "layout": { + "enum": { + "dispatchKey": "0x00000000", + "name": "Option", + "variants": { + "0": { + "fields": [], + "name": "None" + }, + "1": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 1 + } + }, + "name": "0" + } + ], + "name": "Some" + } + } + } + }, + "name": "_reserved" + } + ], + "name": "Data" + } + }, + "name": "metadata" + }, + { + "layout": { + "struct": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 4 + } + }, + "name": "owner" + }, + { + "layout": { + "enum": { + "dispatchKey": "0x00000000", + "name": "Option", + "variants": { + "0": { + "fields": [], + "name": "None" + }, + "1": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 1 + } + }, + "name": "0" + } + ], + "name": "Some" + } + } + } + }, + "name": "_reserved" + } + ], + "name": "Data" + } + }, + "name": "ownable" + } + ], + "name": "Contract" + } + }, + "root_key": "0x00000000" + } + }, + "types": [ + { + "id": 0, + "type": { + "def": { + "primitive": "u128" + } + } + }, + { + "id": 1, + "type": { + "def": { + "tuple": [] + } + } + }, + { + "id": 2, + "type": { + "def": { + "primitive": "str" + } + } + }, + { + "id": 3, + "type": { + "def": { + "primitive": "u8" + } + } + }, + { + "id": 4, + "type": { + "def": { + "composite": { + "fields": [ + { + "type": 5, + "typeName": "[u8; 32]" + } + ] + } + }, + "path": [ + "ink_primitives", + "types", + "AccountId" + ] + } + }, + { + "id": 5, + "type": { + "def": { + "array": { + "len": 32, + "type": 3 + } + } + } + }, + { + "id": 6, + "type": { + "def": { + "variant": { + "variants": [ + { + "index": 0, + "name": "None" + }, + { + "fields": [ + { + "type": 2 + } + ], + "index": 1, + "name": "Some" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 2 + } + ], + "path": [ + "Option" + ] + } + }, + { + "id": 7, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 1 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 8 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 1 + }, + { + "name": "E", + "type": 8 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 8, + "type": { + "def": { + "variant": { + "variants": [ + { + "index": 1, + "name": "CouldNotReadInput" + } + ] + } + }, + "path": [ + "ink_primitives", + "LangError" + ] + } + }, + { + "id": 9, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 10 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 8 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 10 + }, + { + "name": "E", + "type": 8 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 10, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 1 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 11 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 1 + }, + { + "name": "E", + "type": 11 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 11, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 2, + "typeName": "String" + } + ], + "index": 0, + "name": "Custom" + }, + { + "index": 1, + "name": "InsufficientBalance" + }, + { + "index": 2, + "name": "InsufficientAllowance" + }, + { + "index": 3, + "name": "ZeroRecipientAddress" + }, + { + "index": 4, + "name": "ZeroSenderAddress" + }, + { + "fields": [ + { + "type": 2, + "typeName": "String" + } + ], + "index": 5, + "name": "SafeTransferCheckFailed" + } + ] + } + }, + "path": [ + "openbrush_contracts", + "traits", + "errors", + "psp22", + "PSP22Error" + ] + } + }, + { + "id": 12, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 0 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 8 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 0 + }, + { + "name": "E", + "type": 8 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 13, + "type": { + "def": { + "sequence": { + "type": 3 + } + } + } + }, + { + "id": 14, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 15 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 8 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 15 + }, + { + "name": "E", + "type": 8 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 15, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 1 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 16 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 1 + }, + { + "name": "E", + "type": 16 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 16, + "type": { + "def": { + "variant": { + "variants": [ + { + "index": 0, + "name": "CallerIsNotOwner" + }, + { + "index": 1, + "name": "NewOwnerIsZero" + } + ] + } + }, + "path": [ + "openbrush_contracts", + "traits", + "errors", + "ownable", + "OwnableError" + ] + } + }, + { + "id": 17, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 4 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 8 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 4 + }, + { + "name": "E", + "type": 8 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 18, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 6 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 8 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 6 + }, + { + "name": "E", + "type": 8 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 19, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 3 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 8 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 3 + }, + { + "name": "E", + "type": 8 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 20, + "type": { + "def": { + "composite": { + "fields": [ + { + "type": 5, + "typeName": "[u8; 32]" + } + ] + } + }, + "path": [ + "ink_primitives", + "types", + "Hash" + ] + } + }, + { + "id": 21, + "type": { + "def": { + "primitive": "u64" + } + } + }, + { + "id": 22, + "type": { + "def": { + "primitive": "u32" + } + } + }, + { + "id": 23, + "type": { + "def": { + "variant": {} + }, + "path": [ + "ink_env", + "types", + "NoChainExtension" + ] + } + } + ], + "version": "4" +} \ No newline at end of file From 938bcc405ab545ab03ed883528d08ca0039d25be Mon Sep 17 00:00:00 2001 From: Piotr Szacilowski Date: Wed, 17 Jul 2024 09:40:59 +0200 Subject: [PATCH 4/6] add logs to pipeline --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3b9d2b..06e9399 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,8 +12,14 @@ jobs: steps: - name: Log PR Info run: | - echo "PR Number: ${{ github.event.number }}" - echo "Action: ${{ github.event.action }}" + if [ "${{ github.event_name }}" == "pull_request_review" ]; then + echo "PR Number: ${{ github.event.pull_request.number }}" + echo "Action: ${{ github.event.review.state }}" + elif [ "${{ github.event_name }}" == "pull_request" ]; then + echo "PR Number: ${{ github.event.number }}" + echo "Action: ${{ github.event.action }}" + else + echo "Unhandled event type: ${{ github.event_name }}" validate_and_notify: runs-on: ubuntu-latest From ea69813de738b59bb32f177ae7b56c31b7ff01d3 Mon Sep 17 00:00:00 2001 From: Piotr Szacilowski Date: Wed, 17 Jul 2024 10:49:06 +0200 Subject: [PATCH 5/6] fixup pipeline --- .github/workflows/main.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 06e9399..4e42ba0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -90,8 +90,18 @@ jobs: - name: Send Notification to Telegram if: env.TG_SENDER_PAYLOAD_MESSAGE != '' && success() + env: + TELEGRAM_BOT_TOKEN: ${{ secrets.BOTTOKEN }} + TELEGRAM_CHAT_ID: ${{ secrets.CHATID }} run: | curl -X POST \ - -H "Content-Type: application/json" \ - -d '{"chat_id": "${{ secrets.CHATID }}", "text": "${{ env.TG_SENDER_PAYLOAD_MESSAGE }}"}' \ - "https://api.telegram.org/bot${{ secrets.BotToken }}/sendMessage" + -H "Content-Type: application/json" \ + -d "{\"chat_id\": \"$TELEGRAM_CHAT_ID\", \"text\": \"${{ env.TG_SENDER_PAYLOAD_MESSAGE }}\"}" \ + "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" + + # if: env.TG_SENDER_PAYLOAD_MESSAGE != '' && success() + # run: | + # curl -X POST \ + # -H "Content-Type: application/json" \ + # -d '{"chat_id": "${{ secrets.CHATID }}", "text": "${{ env.TG_SENDER_PAYLOAD_MESSAGE }}"}' \ + # "https://api.telegram.org/bot${{ secrets.BotToken }}/sendMessage" From 22b6f2828531f0b80a1fa451826d68f462539be0 Mon Sep 17 00:00:00 2001 From: Piotr Szacilowski Date: Wed, 17 Jul 2024 10:56:57 +0200 Subject: [PATCH 6/6] fixup pipeline --- .github/workflows/main.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e42ba0..e398b8e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,13 +13,17 @@ jobs: - name: Log PR Info run: | if [ "${{ github.event_name }}" == "pull_request_review" ]; then - echo "PR Number: ${{ github.event.pull_request.number }}" - echo "Action: ${{ github.event.review.state }}" + echo "PR Number: ${{ github.event.pull_request.number }}" + echo "Action: ${{ github.event.review.state }}" elif [ "${{ github.event_name }}" == "pull_request" ]; then - echo "PR Number: ${{ github.event.number }}" - echo "Action: ${{ github.event.action }}" + echo "PR Number: ${{ github.event.number }}" + echo "Action: ${{ github.event.action }}" else - echo "Unhandled event type: ${{ github.event_name }}" + echo "Unhandled event type: ${{ github.event_name }}" + fi + - name: Debug Information + run: | + echo "Test var: ${{ secrets.TEST }}" validate_and_notify: runs-on: ubuntu-latest