ERC721 tokenURI
method.
function tokenURI(uint256 tokenId) public view override returns (string memory) {
// Code to do things...
}
I am attesting that this GitHub handle KamesCG is linked to the Ethereum Address 0x761d584f1C2d43cBc3F42ECd739701a36dFFAa31 | |
0xaba9401f7b2dd4bf5be4cd7eb979f2193550c697c45a59123901845d5f2bf9b61699c2b3a4364c8a72d1e4f18f74cb080e855dac5430acd89c3085f8adab96d41b |
import { getResolver } from '@ceramicnetwork/3id-did-resolver'; | |
import { Caip10Link } from '@ceramicnetwork/stream-caip10-link'; | |
import { | |
recoverTypedSignature, | |
SignTypedDataVersion, | |
} from '@metamask/eth-sig-util'; | |
import { decodeJWT, verifyJWS } from 'did-jwt'; | |
import { Resolver } from 'did-resolver'; | |
import { |
ERC721 tokenURI
method.
function tokenURI(uint256 tokenId) public view override returns (string memory) {
// Code to do things...
}
function _render(bytes memory input) internal view returns (string memory) { | |
(uint8 head, uint8 body, uint8 headAcc, uint8 bodyAcc, uint8 bg) = abi.decode( | |
input, | |
(uint8, uint8, uint8, uint8, uint8) | |
); | |
return | |
string( | |
abi.encodePacked( | |
svg.start(), | |
_registry(PIXEL_POOLY_V0, abi.encode(4, bg)), |
did:3:kjzl6cwe1jw14940a5nu6u24nurhgnqc45wfn25pg790aq935gyfqzubgno40ve |
function render() public view returns (string memory) { | |
string memory _defs = WidgetRouter(_widgetRouter).fetch(_defId, bytes(abi.encodePacked("0x"))); | |
return | |
string( | |
abi.encodePacked( | |
svg.start(), | |
svg.text( | |
string.concat( | |
svg.prop("x", "50%"), | |
svg.prop("y", "50%"), |
Delegation: 0x0d08c081570d568dd8b0a2e7f7da917702df7769ccf352d05473e271b744e1af0da1ac34fab1a80c93ee11aab7400526392f2efa94c44d0f8e7dbe99d8063ed31b Invocation: 0x3391095669eb7281e2c892e8469fe9ebaffd84559dd96bf9a3d837ae089aa17161b2fea1cd44000f3b7a1ae0d3f20184a9a4b600bb2007b117ece00bcce321561c
Delegation: 0xab6a147eef995d90a7959f057e25f96941b26cc99b97e1f7bf9bda7873f2b6a97b662640961d582367c7eaffb9dc0a7e74a97816d941a064e9506385502227851b Invocation: 0x65d265e2e476d103ec4ff96bbb0c9c1b57bb3cc3a7916c4f388dace712304e051a68f53eecd80ee2985ebcc09dc2a64961df79fe29984228b666b3217d0a64201c
Delegation: | |
0x5da91c1ef8cb7c155bafd080e8b2823cef24f6c08f915f663abaacd01dabc0d05010872a41dc65e4ee83ba4ebd4214ad01997d95939cb6a935c56a47122640f61b | |
Invocation: | |
0xccccab3c47035ef834a04efeb26c85a014afd35580ad50ec4d4ac5ba1ccec9e404c166c2b13d3e979a5cd11d6f95a2fa3a49ea28f42ce73abe44e9428490ad161b |
Delegation: 0xac3ca816975af2e720f779e6f67a9b3db85cca18d361ba8960d5698ca3ee6e86248054cd6f8c00b08a446be433f6bfe56152451ed244a550bb167305bc6ad3b81c Invocation: 0x0ee6c5df09c6620575e929ae7b38767eda5fd150928509a589b4197ad8bd57923f3161ef8e233075810d375e187a48d323ddfe914b78fb4b2eb0191dbe3209721c