Skip to content

Commit

Permalink
Merge pull request #4 from GuiGou12358/main
Browse files Browse the repository at this point in the history
add terminate_me function
  • Loading branch information
GuiGou12358 authored Dec 8, 2023
2 parents 2ae3ec6 + 883b5ef commit 675da12
Show file tree
Hide file tree
Showing 32 changed files with 645 additions and 549 deletions.
2 changes: 1 addition & 1 deletion ink/artifacts/dapps_staking_developer.contract

Large diffs are not rendered by default.

122 changes: 70 additions & 52 deletions ink/artifacts/dapps_staking_developer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"source": {
"hash": "0x377c430850efd64e8ed8f006fd01ca6ba6999d00dae3ca9abbc6014a547f1228",
"hash": "0xd644fa3b07179e8602a4656aea5d4de0e0fe9fb2a02ae69138ba7db601aa8a48",
"language": "ink! 4.3.0",
"compiler": "rustc 1.72.0",
"build_info": {
"build_mode": "Release",
"build_mode": "Debug",
"cargo_contract_version": "3.2.0",
"rust_toolchain": "stable-x86_64-unknown-linux-gnu",
"wasm_opt_settings": {
Expand All @@ -15,7 +15,7 @@
},
"contract": {
"name": "dapps_staking_developer",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
"guigou"
]
Expand Down Expand Up @@ -44,7 +44,7 @@
"displayName": [
"AccountId"
],
"type": 13
"type": 14
},
"balance": {
"displayName": [
Expand All @@ -68,7 +68,7 @@
"displayName": [
"Hash"
],
"type": 18
"type": 9
},
"maxEventTopics": 4,
"timestamp": {
Expand Down Expand Up @@ -118,7 +118,9 @@
{
"label": "new_code_hash",
"type": {
"displayName": [],
"displayName": [
"Hash"
],
"type": 9
}
}
Expand All @@ -137,6 +139,22 @@
},
"selector": "0x1345543d"
},
{
"args": [],
"default": false,
"docs": [],
"label": "terminate_me",
"mutates": true,
"payable": false,
"returnType": {
"displayName": [
"ink",
"MessageResult"
],
"type": 5
},
"selector": "0x17feb370"
},
{
"args": [],
"default": false,
Expand All @@ -149,7 +167,7 @@
"ink",
"MessageResult"
],
"type": 11
"type": 12
},
"selector": "0x9e448aa7"
},
Expand All @@ -172,7 +190,7 @@
"accesscontrol_external",
"RevokeRoleInput2"
],
"type": 12
"type": 13
}
}
],
Expand All @@ -186,7 +204,7 @@
"ink",
"MessageResult"
],
"type": 14
"type": 15
},
"selector": "0x6e4f0991"
},
Expand All @@ -209,7 +227,7 @@
"accesscontrol_external",
"RenounceRoleInput2"
],
"type": 12
"type": 13
}
}
],
Expand All @@ -223,7 +241,7 @@
"ink",
"MessageResult"
],
"type": 14
"type": 15
},
"selector": "0xeaf1248a"
},
Expand All @@ -246,7 +264,7 @@
"accesscontrol_external",
"HasRoleInput2"
],
"type": 12
"type": 13
}
}
],
Expand All @@ -260,7 +278,7 @@
"ink",
"MessageResult"
],
"type": 16
"type": 17
},
"selector": "0xc1d9ac18"
},
Expand All @@ -287,7 +305,7 @@
"ink",
"MessageResult"
],
"type": 11
"type": 12
},
"selector": "0x83da3bb2"
},
Expand All @@ -310,7 +328,7 @@
"accesscontrol_external",
"GrantRoleInput2"
],
"type": 12
"type": 13
}
}
],
Expand All @@ -324,7 +342,7 @@
"ink",
"MessageResult"
],
"type": 14
"type": 15
},
"selector": "0x4ac062fd"
}
Expand Down Expand Up @@ -616,25 +634,45 @@
},
{
"id": 9,
"type": {
"def": {
"composite": {
"fields": [
{
"type": 10,
"typeName": "[u8; 32]"
}
]
}
},
"path": [
"ink_primitives",
"types",
"Hash"
]
}
},
{
"id": 10,
"type": {
"def": {
"array": {
"len": 32,
"type": 10
"type": 11
}
}
}
},
{
"id": 10,
"id": 11,
"type": {
"def": {
"primitive": "u8"
}
}
},
{
"id": 11,
"id": 12,
"type": {
"def": {
"variant": {
Expand Down Expand Up @@ -676,7 +714,7 @@
}
},
{
"id": 12,
"id": 13,
"type": {
"def": {
"variant": {
Expand All @@ -688,7 +726,7 @@
{
"fields": [
{
"type": 13
"type": 14
}
],
"index": 1,
Expand All @@ -700,7 +738,7 @@
"params": [
{
"name": "T",
"type": 13
"type": 14
}
],
"path": [
Expand All @@ -709,13 +747,13 @@
}
},
{
"id": 13,
"id": 14,
"type": {
"def": {
"composite": {
"fields": [
{
"type": 9,
"type": 10,
"typeName": "[u8; 32]"
}
]
Expand All @@ -729,15 +767,15 @@
}
},
{
"id": 14,
"id": 15,
"type": {
"def": {
"variant": {
"variants": [
{
"fields": [
{
"type": 15
"type": 16
}
],
"index": 0,
Expand All @@ -758,7 +796,7 @@
"params": [
{
"name": "T",
"type": 15
"type": 16
},
{
"name": "E",
Expand All @@ -771,7 +809,7 @@
}
},
{
"id": 15,
"id": 16,
"type": {
"def": {
"variant": {
Expand Down Expand Up @@ -813,15 +851,15 @@
}
},
{
"id": 16,
"id": 17,
"type": {
"def": {
"variant": {
"variants": [
{
"fields": [
{
"type": 17
"type": 18
}
],
"index": 0,
Expand All @@ -842,7 +880,7 @@
"params": [
{
"name": "T",
"type": 17
"type": 18
},
{
"name": "E",
Expand All @@ -855,33 +893,13 @@
}
},
{
"id": 17,
"id": 18,
"type": {
"def": {
"primitive": "bool"
}
}
},
{
"id": 18,
"type": {
"def": {
"composite": {
"fields": [
{
"type": 9,
"typeName": "[u8; 32]"
}
]
}
},
"path": [
"ink_primitives",
"types",
"Hash"
]
}
},
{
"id": 19,
"type": {
Expand Down
Binary file modified ink/artifacts/dapps_staking_developer.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion ink/artifacts/lucky_raffle.contract

Large diffs are not rendered by default.

Loading

0 comments on commit 675da12

Please sign in to comment.