Open tupui opened 1 month ago
I could call Enrique's associated contract:
import base64
import soroban
contract_id = "CDS6WQMDH6RTPFFWLPK3TPVBIH5TNMKUCNPXHZTDV2YYVHXPIAQEUXAX"
seed_phrase = "..."
identity = soroban.Identity(seed_phrase=seed_phrase)
node = "IyTcSfr4OtAQzuAhGLgkRWbj+QZelKJpSo9X43f3J1w="
node = base64.b64decode(node)
args = [
{"name": "node", "type": "bytes", "value": node},
{"name": "key", "type": "symbol", "value": "Tansu"},
{"name": "value", "type": "vec", "value": [
{
"type": "symbol",
"value": "Bytes"
},
{
"type": "bytes",
"value": b"68efd0ae3ef8900a1d3ad53838aba85892b6e478"
},
]},
]
args = soroban.Parameters(args=args)
soroban.invoke(
contract_id=contract_id,
function_name="set",
args=args,
source_account=identity,
)
There is some news
I have deployed the Key-Value contract to mainnet: https://stellar.expert/explorer/public/contract/CDH2T2CBGFPFNVRWFK4XJIRP6VOWSVTSDCRBCJ2TEIO22GADQP6RG3Y6
The contract follows the same logic from the one on testnet with the only difference that: the fee is paid in PSD instead of XLM.
Btw I also added the stellar.expert deployment flow so the contract code is shown on stellar.expert
https://stellar.expert/explorer/public/contract/CDH2T2CBGFPFNVRWFK4XJIRP6VOWSVTSDCRBCJ2TEIO22GADQP6RG3Y6
I would like to propose a few keys as a standard:
## SEP-1 TOML file url
TOML = Value::String(TOML_URL)
## Optional, could help in verifying the content hasn't been tempered
TOML_HASH = Value::Bytes(TOML_SHA256_HASH)
## Projects like xlm.sh could use this key, that way they don't need to look for the CID elsewhere
WEBSITE_IPFS = Value::Bytes(IPFS_CID)
We are discussing with Soroban Domains (Enrique) to add link metadata to a domain. See this discussion:
https://discord.com/channels/897514728459468821/1213642853339766805/1293795340515934230