@mezo-org/passport 0.16.0-dev.0 → 0.16.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/auth.d.ts +9 -0
- package/dist/src/api/auth.d.ts.map +1 -1
- package/dist/src/api/auth.js +7 -0
- package/dist/src/api/auth.js.map +1 -1
- package/dist/src/config.d.ts +3 -4
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +9 -13
- package/dist/src/config.js.map +1 -1
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/index.js +2 -0
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/hooks/useAcceptDocuments.d.ts +18 -0
- package/dist/src/hooks/useAcceptDocuments.d.ts.map +1 -1
- package/dist/src/hooks/useAuthenticateWithWallet.d.ts +11 -11
- package/dist/src/hooks/useAuthenticateWithWallet.js +1 -1
- package/dist/src/hooks/useAuthenticateWithWallet.js.map +1 -1
- package/dist/src/hooks/useBorrowData.js +1 -1
- package/dist/src/hooks/useBorrowData.js.map +1 -1
- package/dist/src/hooks/useCollateralPrice.js +1 -1
- package/dist/src/hooks/useCollateralPrice.js.map +1 -1
- package/dist/src/hooks/useCreateAccount.d.ts +18 -0
- package/dist/src/hooks/useCreateAccount.d.ts.map +1 -1
- package/dist/src/hooks/useCreateAccount.js +1 -1
- package/dist/src/hooks/useCreateAccount.js.map +1 -1
- package/dist/src/hooks/useLinkAccount.js +1 -1
- package/dist/src/hooks/useLinkAccount.js.map +1 -1
- package/dist/src/hooks/useSignInWithWallet.d.ts +11 -11
- package/dist/src/hooks/useSignUpWithWallet.d.ts +11 -11
- package/dist/src/hooks/useTokensBalances.d.ts.map +1 -1
- package/dist/src/hooks/useTokensBalances.js +2 -10
- package/dist/src/hooks/useTokensBalances.js.map +1 -1
- package/dist/src/hooks/useUpdateMezoId.d.ts +18 -0
- package/dist/src/hooks/useUpdateMezoId.d.ts.map +1 -1
- package/dist/src/hooks/useUpdateUserProfile.d.ts +171 -0
- package/dist/src/hooks/useUpdateUserProfile.d.ts.map +1 -0
- package/dist/src/hooks/useUpdateUserProfile.js +19 -0
- package/dist/src/hooks/useUpdateUserProfile.js.map +1 -0
- package/dist/src/hooks/useWalletAccount.d.ts +3 -6
- package/dist/src/hooks/useWalletAccount.d.ts.map +1 -1
- package/dist/src/hooks/useWalletAccount.js +6 -4
- package/dist/src/hooks/useWalletAccount.js.map +1 -1
- package/dist/src/hooks/useWatchTransferEvents.d.ts.map +1 -1
- package/dist/src/hooks/useWatchTransferEvents.js +0 -1
- package/dist/src/hooks/useWatchTransferEvents.js.map +1 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/contracts/index.d.ts +1 -1
- package/dist/src/lib/contracts/index.d.ts.map +1 -1
- package/dist/src/lib/contracts/index.js +0 -3
- package/dist/src/lib/contracts/index.js.map +1 -1
- package/dist/src/stores/dropdownStore.d.ts +2 -1
- package/dist/src/stores/dropdownStore.d.ts.map +1 -1
- package/dist/src/stores/dropdownStore.js +1 -0
- package/dist/src/stores/dropdownStore.js.map +1 -1
- package/dist/src/utils/assets.d.ts +0 -15
- package/dist/src/utils/assets.d.ts.map +1 -1
- package/dist/src/utils/assets.js +0 -13
- package/dist/src/utils/assets.js.map +1 -1
- package/dist/src/utils/validation.d.ts +13 -0
- package/dist/src/utils/validation.d.ts.map +1 -0
- package/dist/src/utils/validation.js +34 -0
- package/dist/src/utils/validation.js.map +1 -0
- package/dist/src/utils/validation.test.d.ts +2 -0
- package/dist/src/utils/validation.test.d.ts.map +1 -0
- package/dist/src/utils/validation.test.js +63 -0
- package/dist/src/utils/validation.test.js.map +1 -0
- package/package.json +10 -9
- package/src/api/auth.ts +22 -0
- package/src/config.ts +16 -26
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useAuthenticateWithWallet.ts +1 -1
- package/src/hooks/useBorrowData.ts +1 -1
- package/src/hooks/useCollateralPrice.ts +1 -1
- package/src/hooks/useCreateAccount.ts +1 -1
- package/src/hooks/useLinkAccount.ts +1 -1
- package/src/hooks/useTokensBalances.ts +1 -10
- package/src/hooks/useUpdateUserProfile.ts +34 -0
- package/src/hooks/useWalletAccount.ts +15 -10
- package/src/hooks/useWatchTransferEvents.ts +0 -1
- package/src/index.ts +0 -2
- package/src/lib/contracts/index.ts +0 -4
- package/src/stores/dropdownStore.ts +1 -0
- package/src/utils/assets.ts +0 -14
- package/src/utils/validation.test.ts +97 -0
- package/src/utils/validation.ts +35 -0
- package/dist/src/assets/DefaultAvatar.d.ts +0 -5
- package/dist/src/assets/DefaultAvatar.d.ts.map +0 -1
- package/dist/src/assets/DefaultAvatar.js +0 -21
- package/dist/src/assets/DefaultAvatar.js.map +0 -1
- package/dist/src/components/Dropdown/ConnectedTrigger.d.ts +0 -8
- package/dist/src/components/Dropdown/ConnectedTrigger.d.ts.map +0 -1
- package/dist/src/components/Dropdown/ConnectedTrigger.js +0 -39
- package/dist/src/components/Dropdown/ConnectedTrigger.js.map +0 -1
- package/dist/src/components/Dropdown/Content.d.ts +0 -8
- package/dist/src/components/Dropdown/Content.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Content.js +0 -27
- package/dist/src/components/Dropdown/Content.js.map +0 -1
- package/dist/src/components/Dropdown/DisconnectedTrigger.d.ts +0 -7
- package/dist/src/components/Dropdown/DisconnectedTrigger.d.ts.map +0 -1
- package/dist/src/components/Dropdown/DisconnectedTrigger.js +0 -13
- package/dist/src/components/Dropdown/DisconnectedTrigger.js.map +0 -1
- package/dist/src/components/Dropdown/Dropdown.d.ts +0 -23
- package/dist/src/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Dropdown.js +0 -45
- package/dist/src/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/src/components/Dropdown/ListingItem.d.ts +0 -14
- package/dist/src/components/Dropdown/ListingItem.d.ts.map +0 -1
- package/dist/src/components/Dropdown/ListingItem.js +0 -42
- package/dist/src/components/Dropdown/ListingItem.js.map +0 -1
- package/dist/src/components/Dropdown/NestedViewLayout.d.ts +0 -8
- package/dist/src/components/Dropdown/NestedViewLayout.d.ts.map +0 -1
- package/dist/src/components/Dropdown/NestedViewLayout.js +0 -32
- package/dist/src/components/Dropdown/NestedViewLayout.js.map +0 -1
- package/dist/src/components/Dropdown/Receive/Receive.d.ts +0 -4
- package/dist/src/components/Dropdown/Receive/Receive.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Receive/Receive.js +0 -64
- package/dist/src/components/Dropdown/Receive/Receive.js.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountAddressActions.d.ts +0 -4
- package/dist/src/components/Dropdown/Root/AccountAddressActions.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountAddressActions.js +0 -49
- package/dist/src/components/Dropdown/Root/AccountAddressActions.js.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountBalance.d.ts +0 -6
- package/dist/src/components/Dropdown/Root/AccountBalance.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountBalance.js +0 -32
- package/dist/src/components/Dropdown/Root/AccountBalance.js.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountBtcListing.d.ts +0 -6
- package/dist/src/components/Dropdown/Root/AccountBtcListing.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountBtcListing.js +0 -28
- package/dist/src/components/Dropdown/Root/AccountBtcListing.js.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountError.d.ts +0 -8
- package/dist/src/components/Dropdown/Root/AccountError.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountError.js +0 -17
- package/dist/src/components/Dropdown/Root/AccountError.js.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountMusdListing.d.ts +0 -4
- package/dist/src/components/Dropdown/Root/AccountMusdListing.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountMusdListing.js +0 -21
- package/dist/src/components/Dropdown/Root/AccountMusdListing.js.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountOtherAssets.d.ts +0 -8
- package/dist/src/components/Dropdown/Root/AccountOtherAssets.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Root/AccountOtherAssets.js +0 -43
- package/dist/src/components/Dropdown/Root/AccountOtherAssets.js.map +0 -1
- package/dist/src/components/Dropdown/Root/Root.d.ts +0 -8
- package/dist/src/components/Dropdown/Root/Root.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Root/Root.js +0 -45
- package/dist/src/components/Dropdown/Root/Root.js.map +0 -1
- package/dist/src/components/Dropdown/Root/WalletAddress.d.ts +0 -4
- package/dist/src/components/Dropdown/Root/WalletAddress.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Root/WalletAddress.js +0 -66
- package/dist/src/components/Dropdown/Root/WalletAddress.js.map +0 -1
- package/dist/src/components/Dropdown/Root/WelcomeBlock.d.ts +0 -6
- package/dist/src/components/Dropdown/Root/WelcomeBlock.d.ts.map +0 -1
- package/dist/src/components/Dropdown/Root/WelcomeBlock.js +0 -88
- package/dist/src/components/Dropdown/Root/WelcomeBlock.js.map +0 -1
- package/dist/src/components/Dropdown/SlotNumber.d.ts +0 -19
- package/dist/src/components/Dropdown/SlotNumber.d.ts.map +0 -1
- package/dist/src/components/Dropdown/SlotNumber.js +0 -67
- package/dist/src/components/Dropdown/SlotNumber.js.map +0 -1
- package/dist/src/components/Dropdown/TestnetTopBanner.d.ts +0 -3
- package/dist/src/components/Dropdown/TestnetTopBanner.d.ts.map +0 -1
- package/dist/src/components/Dropdown/TestnetTopBanner.js +0 -14
- package/dist/src/components/Dropdown/TestnetTopBanner.js.map +0 -1
- package/dist/src/components/Dropdown/index.d.ts +0 -3
- package/dist/src/components/Dropdown/index.d.ts.map +0 -1
- package/dist/src/components/Dropdown/index.js +0 -2
- package/dist/src/components/Dropdown/index.js.map +0 -1
- package/dist/src/components/index.d.ts +0 -2
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/components/index.js +0 -2
- package/dist/src/components/index.js.map +0 -1
- package/dist/src/lib/contracts/artifacts/MEZO.json +0 -428
- package/src/assets/DefaultAvatar.tsx +0 -74
- package/src/components/Dropdown/ConnectedTrigger.tsx +0 -76
- package/src/components/Dropdown/Content.tsx +0 -53
- package/src/components/Dropdown/DisconnectedTrigger.tsx +0 -36
- package/src/components/Dropdown/Dropdown.tsx +0 -100
- package/src/components/Dropdown/ListingItem.tsx +0 -176
- package/src/components/Dropdown/NestedViewLayout.tsx +0 -87
- package/src/components/Dropdown/README.md +0 -41
- package/src/components/Dropdown/Receive/Receive.tsx +0 -144
- package/src/components/Dropdown/Root/AccountAddressActions.tsx +0 -99
- package/src/components/Dropdown/Root/AccountBalance.tsx +0 -69
- package/src/components/Dropdown/Root/AccountBtcListing.tsx +0 -53
- package/src/components/Dropdown/Root/AccountError.tsx +0 -34
- package/src/components/Dropdown/Root/AccountMusdListing.tsx +0 -45
- package/src/components/Dropdown/Root/AccountOtherAssets.tsx +0 -85
- package/src/components/Dropdown/Root/Root.tsx +0 -77
- package/src/components/Dropdown/Root/WalletAddress.tsx +0 -123
- package/src/components/Dropdown/Root/WelcomeBlock.tsx +0 -173
- package/src/components/Dropdown/SlotNumber.tsx +0 -131
- package/src/components/Dropdown/TestnetTopBanner.tsx +0 -32
- package/src/components/Dropdown/index.ts +0 -2
- package/src/components/index.ts +0 -1
- package/src/lib/contracts/artifacts/MEZO.json +0 -428
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/no-array-index-key */
|
|
2
|
-
import React, { useMemo } from "react";
|
|
3
|
-
import { AnimatePresence, motion } from "motion/react";
|
|
4
|
-
import { Block, useStyletron } from "@mezo-org/mezo-clay";
|
|
5
|
-
function SlotNumberDigit(props) {
|
|
6
|
-
const { children: value, ...restProps } = props;
|
|
7
|
-
const [css] = useStyletron();
|
|
8
|
-
const digits = [...Array(10).keys()];
|
|
9
|
-
return (React.createElement(AnimatePresence, { initial: false },
|
|
10
|
-
React.createElement(motion.div, { initial: {
|
|
11
|
-
y: "100%",
|
|
12
|
-
}, animate: {
|
|
13
|
-
y: "0%",
|
|
14
|
-
}, layout: "position", className: css({
|
|
15
|
-
position: "relative",
|
|
16
|
-
}), ...restProps },
|
|
17
|
-
React.createElement(Block, { overrides: {
|
|
18
|
-
Block: {
|
|
19
|
-
style: {
|
|
20
|
-
visibility: "hidden",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
} }, value),
|
|
24
|
-
React.createElement(motion.div, { className: css({
|
|
25
|
-
display: "flex",
|
|
26
|
-
flexDirection: "column",
|
|
27
|
-
position: "absolute",
|
|
28
|
-
inset: 0,
|
|
29
|
-
height: "fit-content",
|
|
30
|
-
}), initial: false, animate: { y: `${(value / 10) * -100}%` }, transition: {
|
|
31
|
-
type: "spring",
|
|
32
|
-
damping: 16,
|
|
33
|
-
stiffness: 220,
|
|
34
|
-
} }, digits.map((digit) => (React.createElement(Block, { as: "span", key: digit }, digit)))))));
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* SlotNumber component displays a number with animated digits.
|
|
38
|
-
*
|
|
39
|
-
* @typedef {object} SlotNumberProps
|
|
40
|
-
* @property {number} children - The number to display.
|
|
41
|
-
* @property {function} [formatFunction] - Optional function to format the number.
|
|
42
|
-
* @property {BlockProps} [restProps] - Additional properties for the Block component.
|
|
43
|
-
* @see https://pyszkowski.dev/writings/slot-number
|
|
44
|
-
* @returns {JSX.Element} The rendered SlotNumber component.
|
|
45
|
-
*/
|
|
46
|
-
function SlotNumber(props) {
|
|
47
|
-
const { children: value, formatFunction, ...restProps } = props;
|
|
48
|
-
const [css] = useStyletron();
|
|
49
|
-
const characters = useMemo(() => {
|
|
50
|
-
const formattedValue = formatFunction
|
|
51
|
-
? formatFunction(value)
|
|
52
|
-
: value.toString();
|
|
53
|
-
return formattedValue
|
|
54
|
-
.split("")
|
|
55
|
-
.map((character) => (/^[0-9]$/.test(character) ? +character : character))
|
|
56
|
-
.reverse();
|
|
57
|
-
}, [formatFunction, value]);
|
|
58
|
-
return (React.createElement(motion.div, { layout: true, className: css({
|
|
59
|
-
display: "inline-flex",
|
|
60
|
-
flexDirection: "row-reverse",
|
|
61
|
-
justifyContent: "flex-end",
|
|
62
|
-
overflow: "hidden",
|
|
63
|
-
userSelect: "none",
|
|
64
|
-
}), ...restProps }, characters.map((character, index) => typeof character === "number" ? (React.createElement(SlotNumberDigit, { key: `slot-number-character-${index}` }, character)) : (React.createElement(motion.span, { layout: true, key: `slot-number-character-${index}` }, character)))));
|
|
65
|
-
}
|
|
66
|
-
export default SlotNumber;
|
|
67
|
-
//# sourceMappingURL=SlotNumber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlotNumber.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/SlotNumber.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestnetTopBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/TestnetTopBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,MAAM,CAAC,OAAO,UAAU,gBAAgB,6BAsBvC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Block, InfoCircle, LabelSmall, useStyletron, } from "@mezo-org/mezo-clay";
|
|
3
|
-
import { usePassportContext } from "../../hooks/usePassportContext";
|
|
4
|
-
export default function TestnetTopBanner() {
|
|
5
|
-
const [, theme] = useStyletron();
|
|
6
|
-
const { environment } = usePassportContext();
|
|
7
|
-
if (environment !== "testnet") {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
return (React.createElement(Block, { display: "flex", alignItems: "center", padding: `${theme.sizing.scale700} ${theme.sizing.scale600}`, backgroundColor: theme.colors.warning },
|
|
11
|
-
React.createElement(InfoCircle, { size: theme.sizing.scale550 }),
|
|
12
|
-
React.createElement(LabelSmall, { marginLeft: theme.sizing.scale500 }, "You are using testnet funds.")));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=TestnetTopBanner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestnetTopBanner.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/TestnetTopBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,KAAK,EACL,UAAU,EACV,UAAU,EACV,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAEnE,MAAM,CAAC,OAAO,UAAU,gBAAgB;IACtC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,YAAY,EAAE,CAAA;IAEhC,MAAM,EAAE,WAAW,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAE5C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,oBAAC,KAAK,IACJ,OAAO,EAAC,MAAM,EACd,UAAU,EAAC,QAAQ,EACnB,OAAO,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EAC5D,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;QAErC,oBAAC,UAAU,IAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,GAAI;QAC3C,oBAAC,UAAU,IAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,mCAEhC,CACP,CACT,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA"}
|
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"address": "0x7B7c000000000000000000000000000000000001",
|
|
3
|
-
"abi": [
|
|
4
|
-
{
|
|
5
|
-
"anonymous": false,
|
|
6
|
-
"inputs": [
|
|
7
|
-
{
|
|
8
|
-
"indexed": true,
|
|
9
|
-
"internalType": "address",
|
|
10
|
-
"name": "owner",
|
|
11
|
-
"type": "address"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"indexed": true,
|
|
15
|
-
"internalType": "address",
|
|
16
|
-
"name": "spender",
|
|
17
|
-
"type": "address"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"indexed": false,
|
|
21
|
-
"internalType": "uint256",
|
|
22
|
-
"name": "value",
|
|
23
|
-
"type": "uint256"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"name": "Approval",
|
|
27
|
-
"type": "event"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"anonymous": false,
|
|
31
|
-
"inputs": [
|
|
32
|
-
{
|
|
33
|
-
"indexed": true,
|
|
34
|
-
"internalType": "address",
|
|
35
|
-
"name": "to",
|
|
36
|
-
"type": "address"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"indexed": false,
|
|
40
|
-
"internalType": "uint256",
|
|
41
|
-
"name": "amount",
|
|
42
|
-
"type": "uint256"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"name": "Minted",
|
|
46
|
-
"type": "event"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"anonymous": false,
|
|
50
|
-
"inputs": [
|
|
51
|
-
{
|
|
52
|
-
"indexed": true,
|
|
53
|
-
"internalType": "address",
|
|
54
|
-
"name": "minter",
|
|
55
|
-
"type": "address"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"name": "MinterSet",
|
|
59
|
-
"type": "event"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"anonymous": false,
|
|
63
|
-
"inputs": [
|
|
64
|
-
{
|
|
65
|
-
"indexed": true,
|
|
66
|
-
"internalType": "address",
|
|
67
|
-
"name": "from",
|
|
68
|
-
"type": "address"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"indexed": true,
|
|
72
|
-
"internalType": "address",
|
|
73
|
-
"name": "to",
|
|
74
|
-
"type": "address"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"indexed": false,
|
|
78
|
-
"internalType": "uint256",
|
|
79
|
-
"name": "value",
|
|
80
|
-
"type": "uint256"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"name": "Transfer",
|
|
84
|
-
"type": "event"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"inputs": [],
|
|
88
|
-
"name": "DOMAIN_SEPARATOR",
|
|
89
|
-
"outputs": [
|
|
90
|
-
{
|
|
91
|
-
"internalType": "bytes32",
|
|
92
|
-
"name": "",
|
|
93
|
-
"type": "bytes32"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"stateMutability": "view",
|
|
97
|
-
"type": "function"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"inputs": [],
|
|
101
|
-
"name": "PERMIT_TYPEHASH",
|
|
102
|
-
"outputs": [
|
|
103
|
-
{
|
|
104
|
-
"internalType": "bytes32",
|
|
105
|
-
"name": "",
|
|
106
|
-
"type": "bytes32"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"stateMutability": "pure",
|
|
110
|
-
"type": "function"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"inputs": [
|
|
114
|
-
{
|
|
115
|
-
"internalType": "address",
|
|
116
|
-
"name": "owner",
|
|
117
|
-
"type": "address"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"internalType": "address",
|
|
121
|
-
"name": "spender",
|
|
122
|
-
"type": "address"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"name": "allowance",
|
|
126
|
-
"outputs": [
|
|
127
|
-
{
|
|
128
|
-
"internalType": "uint256",
|
|
129
|
-
"name": "",
|
|
130
|
-
"type": "uint256"
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"stateMutability": "view",
|
|
134
|
-
"type": "function"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"inputs": [
|
|
138
|
-
{
|
|
139
|
-
"internalType": "address",
|
|
140
|
-
"name": "spender",
|
|
141
|
-
"type": "address"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"internalType": "uint256",
|
|
145
|
-
"name": "value",
|
|
146
|
-
"type": "uint256"
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
"name": "approve",
|
|
150
|
-
"outputs": [
|
|
151
|
-
{
|
|
152
|
-
"internalType": "bool",
|
|
153
|
-
"name": "",
|
|
154
|
-
"type": "bool"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"stateMutability": "nonpayable",
|
|
158
|
-
"type": "function"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"inputs": [
|
|
162
|
-
{
|
|
163
|
-
"internalType": "address",
|
|
164
|
-
"name": "account",
|
|
165
|
-
"type": "address"
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"name": "balanceOf",
|
|
169
|
-
"outputs": [
|
|
170
|
-
{
|
|
171
|
-
"internalType": "uint256",
|
|
172
|
-
"name": "",
|
|
173
|
-
"type": "uint256"
|
|
174
|
-
}
|
|
175
|
-
],
|
|
176
|
-
"stateMutability": "view",
|
|
177
|
-
"type": "function"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"inputs": [],
|
|
181
|
-
"name": "decimals",
|
|
182
|
-
"outputs": [
|
|
183
|
-
{
|
|
184
|
-
"internalType": "uint8",
|
|
185
|
-
"name": "",
|
|
186
|
-
"type": "uint8"
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"stateMutability": "view",
|
|
190
|
-
"type": "function"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"inputs": [],
|
|
194
|
-
"name": "getMinter",
|
|
195
|
-
"outputs": [
|
|
196
|
-
{
|
|
197
|
-
"internalType": "address",
|
|
198
|
-
"name": "",
|
|
199
|
-
"type": "address"
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"stateMutability": "view",
|
|
203
|
-
"type": "function"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"inputs": [
|
|
207
|
-
{
|
|
208
|
-
"internalType": "address",
|
|
209
|
-
"name": "to",
|
|
210
|
-
"type": "address"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"internalType": "uint256",
|
|
214
|
-
"name": "amount",
|
|
215
|
-
"type": "uint256"
|
|
216
|
-
}
|
|
217
|
-
],
|
|
218
|
-
"name": "mint",
|
|
219
|
-
"outputs": [
|
|
220
|
-
{
|
|
221
|
-
"internalType": "bool",
|
|
222
|
-
"name": "",
|
|
223
|
-
"type": "bool"
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"stateMutability": "nonpayable",
|
|
227
|
-
"type": "function"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"inputs": [],
|
|
231
|
-
"name": "name",
|
|
232
|
-
"outputs": [
|
|
233
|
-
{
|
|
234
|
-
"internalType": "string",
|
|
235
|
-
"name": "",
|
|
236
|
-
"type": "string"
|
|
237
|
-
}
|
|
238
|
-
],
|
|
239
|
-
"stateMutability": "view",
|
|
240
|
-
"type": "function"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"inputs": [
|
|
244
|
-
{
|
|
245
|
-
"internalType": "address",
|
|
246
|
-
"name": "owner",
|
|
247
|
-
"type": "address"
|
|
248
|
-
}
|
|
249
|
-
],
|
|
250
|
-
"name": "nonce",
|
|
251
|
-
"outputs": [
|
|
252
|
-
{
|
|
253
|
-
"internalType": "uint256",
|
|
254
|
-
"name": "",
|
|
255
|
-
"type": "uint256"
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
"stateMutability": "view",
|
|
259
|
-
"type": "function"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"inputs": [
|
|
263
|
-
{
|
|
264
|
-
"internalType": "address",
|
|
265
|
-
"name": "owner",
|
|
266
|
-
"type": "address"
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"name": "nonces",
|
|
270
|
-
"outputs": [
|
|
271
|
-
{
|
|
272
|
-
"internalType": "uint256",
|
|
273
|
-
"name": "",
|
|
274
|
-
"type": "uint256"
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
"stateMutability": "view",
|
|
278
|
-
"type": "function"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"inputs": [
|
|
282
|
-
{
|
|
283
|
-
"internalType": "address",
|
|
284
|
-
"name": "owner",
|
|
285
|
-
"type": "address"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"internalType": "address",
|
|
289
|
-
"name": "spender",
|
|
290
|
-
"type": "address"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"internalType": "uint256",
|
|
294
|
-
"name": "amount",
|
|
295
|
-
"type": "uint256"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"internalType": "uint256",
|
|
299
|
-
"name": "deadline",
|
|
300
|
-
"type": "uint256"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"internalType": "uint8",
|
|
304
|
-
"name": "v",
|
|
305
|
-
"type": "uint8"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"internalType": "bytes32",
|
|
309
|
-
"name": "r",
|
|
310
|
-
"type": "bytes32"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"internalType": "bytes32",
|
|
314
|
-
"name": "s",
|
|
315
|
-
"type": "bytes32"
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"name": "permit",
|
|
319
|
-
"outputs": [
|
|
320
|
-
{
|
|
321
|
-
"internalType": "bool",
|
|
322
|
-
"name": "",
|
|
323
|
-
"type": "bool"
|
|
324
|
-
}
|
|
325
|
-
],
|
|
326
|
-
"stateMutability": "nonpayable",
|
|
327
|
-
"type": "function"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"inputs": [
|
|
331
|
-
{
|
|
332
|
-
"internalType": "address",
|
|
333
|
-
"name": "minter",
|
|
334
|
-
"type": "address"
|
|
335
|
-
}
|
|
336
|
-
],
|
|
337
|
-
"name": "setMinter",
|
|
338
|
-
"outputs": [
|
|
339
|
-
{
|
|
340
|
-
"internalType": "bool",
|
|
341
|
-
"name": "",
|
|
342
|
-
"type": "bool"
|
|
343
|
-
}
|
|
344
|
-
],
|
|
345
|
-
"stateMutability": "nonpayable",
|
|
346
|
-
"type": "function"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
"inputs": [],
|
|
350
|
-
"name": "symbol",
|
|
351
|
-
"outputs": [
|
|
352
|
-
{
|
|
353
|
-
"internalType": "string",
|
|
354
|
-
"name": "",
|
|
355
|
-
"type": "string"
|
|
356
|
-
}
|
|
357
|
-
],
|
|
358
|
-
"stateMutability": "view",
|
|
359
|
-
"type": "function"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"inputs": [],
|
|
363
|
-
"name": "totalSupply",
|
|
364
|
-
"outputs": [
|
|
365
|
-
{
|
|
366
|
-
"internalType": "uint256",
|
|
367
|
-
"name": "",
|
|
368
|
-
"type": "uint256"
|
|
369
|
-
}
|
|
370
|
-
],
|
|
371
|
-
"stateMutability": "view",
|
|
372
|
-
"type": "function"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"inputs": [
|
|
376
|
-
{
|
|
377
|
-
"internalType": "address",
|
|
378
|
-
"name": "to",
|
|
379
|
-
"type": "address"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"internalType": "uint256",
|
|
383
|
-
"name": "value",
|
|
384
|
-
"type": "uint256"
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
"name": "transfer",
|
|
388
|
-
"outputs": [
|
|
389
|
-
{
|
|
390
|
-
"internalType": "bool",
|
|
391
|
-
"name": "",
|
|
392
|
-
"type": "bool"
|
|
393
|
-
}
|
|
394
|
-
],
|
|
395
|
-
"stateMutability": "nonpayable",
|
|
396
|
-
"type": "function"
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
"inputs": [
|
|
400
|
-
{
|
|
401
|
-
"internalType": "address",
|
|
402
|
-
"name": "from",
|
|
403
|
-
"type": "address"
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
"internalType": "address",
|
|
407
|
-
"name": "to",
|
|
408
|
-
"type": "address"
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"internalType": "uint256",
|
|
412
|
-
"name": "value",
|
|
413
|
-
"type": "uint256"
|
|
414
|
-
}
|
|
415
|
-
],
|
|
416
|
-
"name": "transferFrom",
|
|
417
|
-
"outputs": [
|
|
418
|
-
{
|
|
419
|
-
"internalType": "bool",
|
|
420
|
-
"name": "",
|
|
421
|
-
"type": "bool"
|
|
422
|
-
}
|
|
423
|
-
],
|
|
424
|
-
"stateMutability": "nonpayable",
|
|
425
|
-
"type": "function"
|
|
426
|
-
}
|
|
427
|
-
]
|
|
428
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Block, BlockProps } from "@mezo-org/mezo-clay"
|
|
2
|
-
import React, { SVGProps } from "react"
|
|
3
|
-
|
|
4
|
-
function DefaultAvatar(props: SVGProps<SVGSVGElement>) {
|
|
5
|
-
return (
|
|
6
|
-
<svg viewBox="0 0 214 214" fill="none" {...props}>
|
|
7
|
-
<rect y="-0.478027" width="166.379" height="81.7091" fill="#FF004D" />
|
|
8
|
-
<rect x="166" y="-0.478027" width="48" height="82" fill="black" />
|
|
9
|
-
<rect
|
|
10
|
-
x="166.379"
|
|
11
|
-
y="81.231"
|
|
12
|
-
width="24.1044"
|
|
13
|
-
height="132.291"
|
|
14
|
-
fill="#DFFF80"
|
|
15
|
-
/>
|
|
16
|
-
<rect
|
|
17
|
-
x="118.758"
|
|
18
|
-
y="81.231"
|
|
19
|
-
width="24.1044"
|
|
20
|
-
height="132.291"
|
|
21
|
-
fill="#FF5500"
|
|
22
|
-
/>
|
|
23
|
-
<rect
|
|
24
|
-
x="71.1372"
|
|
25
|
-
y="81.231"
|
|
26
|
-
width="24.1044"
|
|
27
|
-
height="132.291"
|
|
28
|
-
fill="#5A59A7"
|
|
29
|
-
/>
|
|
30
|
-
<rect
|
|
31
|
-
x="23.5166"
|
|
32
|
-
y="81.231"
|
|
33
|
-
width="24.1044"
|
|
34
|
-
height="132.291"
|
|
35
|
-
fill="#47B5FF"
|
|
36
|
-
/>
|
|
37
|
-
<rect y="81.231" width="23.5165" height="132.291" fill="#A3C238" />
|
|
38
|
-
<rect
|
|
39
|
-
x="190.483"
|
|
40
|
-
y="81.231"
|
|
41
|
-
width="23.5165"
|
|
42
|
-
height="132.291"
|
|
43
|
-
fill="#6E6E70"
|
|
44
|
-
/>
|
|
45
|
-
<rect
|
|
46
|
-
x="142.863"
|
|
47
|
-
y="81.231"
|
|
48
|
-
width="23.5165"
|
|
49
|
-
height="132.291"
|
|
50
|
-
fill="#0A3C01"
|
|
51
|
-
/>
|
|
52
|
-
<rect
|
|
53
|
-
x="95.2417"
|
|
54
|
-
y="81.231"
|
|
55
|
-
width="23.5165"
|
|
56
|
-
height="132.291"
|
|
57
|
-
fill="#F2A91F"
|
|
58
|
-
/>
|
|
59
|
-
<rect
|
|
60
|
-
x="47.6211"
|
|
61
|
-
y="81.231"
|
|
62
|
-
width="23.5165"
|
|
63
|
-
height="132.291"
|
|
64
|
-
fill="#6B3D01"
|
|
65
|
-
/>
|
|
66
|
-
</svg>
|
|
67
|
-
)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function DefaultAvatarComponent(props: BlockProps) {
|
|
71
|
-
return <Block as={DefaultAvatar} {...props} />
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export default DefaultAvatarComponent
|