feat: Added more inputs and outputs
All checks were successful
Build Docker / Build Image (push) Successful in 32s
All checks were successful
Build Docker / Build Image (push) Successful in 32s
This commit is contained in:
@@ -8,7 +8,7 @@ functions = {
|
||||
"description": "Check if domains in file are owned by the wallet",
|
||||
"params": {
|
||||
"domains": {
|
||||
"name":"File of domains to check",
|
||||
"name":"List of domains to check",
|
||||
"type":"longText"
|
||||
}
|
||||
},
|
||||
@@ -36,6 +36,54 @@ functions = {
|
||||
"type": "list"
|
||||
}
|
||||
}
|
||||
},
|
||||
"transfer":{
|
||||
"name": "Bulk Transfer Domains",
|
||||
"description": "Transfer domains to another wallet",
|
||||
"params": {
|
||||
"address": {
|
||||
"name":"Address to transfer to",
|
||||
"type":"address"
|
||||
},
|
||||
"domains": {
|
||||
"name":"List of domains to transfer",
|
||||
"type":"longText"
|
||||
}
|
||||
},
|
||||
"returns": {
|
||||
"hash": {
|
||||
"name": "Hash of the transaction",
|
||||
"type": "tx"
|
||||
},
|
||||
"address":{
|
||||
"name": "Address of the new owner",
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dns":{
|
||||
"name": "Set DNS for Domains",
|
||||
"description": "Set DNS for domains",
|
||||
"params": {
|
||||
"domains": {
|
||||
"name":"List of domains to set DNS for",
|
||||
"type":"longText"
|
||||
},
|
||||
"dns": {
|
||||
"name":"DNS",
|
||||
"type":"dns"
|
||||
}
|
||||
},
|
||||
"returns": {
|
||||
"hash": {
|
||||
"name": "Hash of the transaction",
|
||||
"type": "tx"
|
||||
},
|
||||
"dns":{
|
||||
"name": "DNS",
|
||||
"type": "dns"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +95,10 @@ def runFunction(function, params, authentication):
|
||||
return check(params['domains'], authentication)
|
||||
elif function == "search":
|
||||
return search(params['search'], authentication)
|
||||
elif function == "transfer":
|
||||
return transfer(params['address'], params['domains'], authentication)
|
||||
elif function == "dns":
|
||||
return dns(params['domains'],params['dns'],authentication)
|
||||
else:
|
||||
return "Function not found"
|
||||
|
||||
@@ -74,3 +126,9 @@ def search(search, authentication):
|
||||
|
||||
return {"domains": domains}
|
||||
|
||||
|
||||
def transfer(address, domains, authentication):
|
||||
return {"hash":"f921ffe1bb01884bf515a8079073ee9381cb93a56b486694eda2cce0719f27c0","address":address}
|
||||
|
||||
def dns(domains,dns,authentication):
|
||||
return {"hash":"f921ffe1bb01884bf515a8079073ee9381cb93a56b486694eda2cce0719f27c0","dns":dns}
|
||||
Reference in New Issue
Block a user