Skip to content

Commit

Permalink
new SC
Browse files Browse the repository at this point in the history
  • Loading branch information
0xk0stas committed Oct 12, 2023
1 parent 76d5133 commit 8762292
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 58 deletions.
66 changes: 9 additions & 57 deletions src/assets/abi/xlogin.abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,84 +26,37 @@
"name": "createUser",
"mutability": "mutable",
"inputs": [
{
"name": "username",
"type": "bytes"
},
{
"name": "email",
"type": "bytes"
},
{
"name": "platform",
"type": "bytes"
},
{
"name": "address",
"type": "Address"
},
{
"name": "secret_words",
"name": "secret_words_encrypted",
"type": "variadic<bytes>",
"multi_arg": true
}
],
"outputs": []
},
{
"name": "users",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "variadic<bytes>",
"multi_result": true
}
]
},
{
"name": "user_username",
"mutability": "readonly",
"name": "clearUser",
"mutability": "mutable",
"inputs": [
{
"name": "email",
"type": "bytes"
},
{
"name": "platform",
"type": "bytes"
}
],
"outputs": [
{
"type": "bytes"
}
]
},
{
"name": "user_address",
"mutability": "readonly",
"inputs": [
{
"name": "username",
"type": "bytes"
}
],
"outputs": [
{
"type": "Address"
}
]
"outputs": []
},
{
"name": "user_secret_words",
"name": "users",
"mutability": "readonly",
"inputs": [
{
"name": "username",
"type": "bytes"
}
],
"inputs": [],
"outputs": [
{
"type": "variadic<bytes>",
Expand Down Expand Up @@ -338,16 +291,15 @@
"outputs": []
},
{
"docs": [
"Returns the user's username, address, and secret words."
],
"name": "getUserInfo",
"mutability": "readonly",
"inputs": [
{
"name": "email",
"type": "bytes"
},
{
"name": "platform",
"type": "bytes"
}
],
"outputs": [
Expand Down
2 changes: 1 addition & 1 deletion src/config.devnet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const contractAddress = {
xlogin: "erd1qqqqqqqqqqqqqpgq0eedny2wqlj6d3lgzux09tan0mmhcsptu7zsmvkp40"
xlogin: "erd1qqqqqqqqqqqqqpgq9l9rmhsndd48249cew3j682nmrjzkd83u7zsnzpaw8"
}
export const ENVIROMENT = "devnet";

Expand Down

0 comments on commit 8762292

Please sign in to comment.