@matchain/matchid-sdk-react 0.1.56-alpha.10 → 0.1.56-alpha.12
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/api.js +1 -65
- package/dist/api.js.map +1 -1
- package/dist/api.mjs +2 -3
- package/dist/chains.mjs +1 -2
- package/dist/{chunk-JCMQBWWW.mjs → chunk-44JQQ34F.mjs} +2 -2
- package/dist/{chunk-LOZCAT7A.mjs → chunk-DUSDBXBT.mjs} +3 -7
- package/dist/chunk-DUSDBXBT.mjs.map +1 -0
- package/dist/{chunk-JX73EY6V.mjs → chunk-HYQ3T6WW.mjs} +14 -2
- package/dist/chunk-HYQ3T6WW.mjs.map +1 -0
- package/dist/components.js +21 -85
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1 -2
- package/dist/hooks.d.mts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +33 -97
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +1 -2
- package/dist/index.d.mts +31 -35
- package/dist/index.d.ts +31 -35
- package/dist/index.js +63 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/ui.js +4 -68
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +1 -2
- package/package.json +3 -2
- package/dist/chunk-3CR66BEX.mjs +0 -19
- package/dist/chunk-3CR66BEX.mjs.map +0 -1
- package/dist/chunk-JX73EY6V.mjs.map +0 -1
- package/dist/chunk-LOZCAT7A.mjs.map +0 -1
- package/example/yarn.lock +0 -3619
- package/dist/{chunk-JCMQBWWW.mjs.map → chunk-44JQQ34F.mjs.map} +0 -0
- package/dist/{index-DwmrgZa2.d.ts → index-hz9v-CNJ.d.ts} +30 -30
- package/dist/{index-D2E53ZMV.d.mts → index-uB9jBjgs.d.mts} +30 -30
package/dist/hooks.mjs
CHANGED
|
@@ -14,8 +14,7 @@ import {
|
|
|
14
14
|
useTransaction,
|
|
15
15
|
useUserInfo,
|
|
16
16
|
useWallet
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-JX73EY6V.mjs";
|
|
17
|
+
} from "./chunk-DUSDBXBT.mjs";
|
|
19
18
|
import "./chunk-UA6XHZHX.mjs";
|
|
20
19
|
import "./chunk-IZOOVZAD.mjs";
|
|
21
20
|
import "./chunk-FQ6PYZPD.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import * as wagmi_chains from 'wagmi/chains';
|
|
|
5
5
|
import * as viem from 'viem';
|
|
6
6
|
import React__default, { ReactNode } from 'react';
|
|
7
7
|
import { I as IMatchEvents, L as LocaleType, a as IEnvConfigType, W as WalletConfigType } from './types-BrVeC0c8.mjs';
|
|
8
|
-
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-
|
|
8
|
+
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-uB9jBjgs.mjs';
|
|
9
9
|
export { i as Components } from './index-DVlulZhE.mjs';
|
|
10
10
|
export { i as UI } from './index-DxHhOW24.mjs';
|
|
11
11
|
export { i as Api } from './index-Car1jFyN.mjs';
|
|
@@ -739,21 +739,24 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
739
739
|
}, {
|
|
740
740
|
blockExplorers: {
|
|
741
741
|
readonly default: {
|
|
742
|
-
readonly name: "
|
|
743
|
-
readonly url: "https://matchscan.io
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
742
|
+
readonly name: "Matchain Scan";
|
|
743
|
+
readonly url: "https://matchscan.io";
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
contracts?: {
|
|
747
|
+
[x: string]: viem.ChainContract | {
|
|
748
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
749
|
+
} | undefined;
|
|
750
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
751
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
752
|
+
multicall3?: viem.ChainContract | undefined;
|
|
753
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
754
|
+
} | undefined;
|
|
752
755
|
ensTlds?: readonly string[] | undefined;
|
|
753
756
|
id: 698;
|
|
754
757
|
name: "Matchain";
|
|
755
758
|
nativeCurrency: {
|
|
756
|
-
readonly name: "
|
|
759
|
+
readonly name: "BNB";
|
|
757
760
|
readonly symbol: "BNB";
|
|
758
761
|
readonly decimals: 18;
|
|
759
762
|
};
|
|
@@ -768,33 +771,27 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
768
771
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
769
772
|
formatters?: undefined;
|
|
770
773
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
771
|
-
readonly iconUrl: "https://matchscan.io/static/identicon_logos/blockies.png";
|
|
772
774
|
}, {
|
|
773
775
|
blockExplorers: {
|
|
774
776
|
readonly default: {
|
|
775
|
-
readonly name: "
|
|
776
|
-
readonly url: "https://testnet.matchscan.io
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
readonly ensUniversalResolver: {
|
|
789
|
-
readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
|
|
790
|
-
readonly blockCreated: 5317080;
|
|
791
|
-
};
|
|
792
|
-
};
|
|
777
|
+
readonly name: "Matchain Scan";
|
|
778
|
+
readonly url: "https://testnet.matchscan.io";
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
contracts?: {
|
|
782
|
+
[x: string]: viem.ChainContract | {
|
|
783
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
784
|
+
} | undefined;
|
|
785
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
786
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
787
|
+
multicall3?: viem.ChainContract | undefined;
|
|
788
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
789
|
+
} | undefined;
|
|
793
790
|
ensTlds?: readonly string[] | undefined;
|
|
794
791
|
id: 699;
|
|
795
|
-
name: "
|
|
792
|
+
name: "Matchain Testnet";
|
|
796
793
|
nativeCurrency: {
|
|
797
|
-
readonly name: "
|
|
794
|
+
readonly name: "BNB";
|
|
798
795
|
readonly symbol: "BNB";
|
|
799
796
|
readonly decimals: 18;
|
|
800
797
|
};
|
|
@@ -804,12 +801,11 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
804
801
|
};
|
|
805
802
|
};
|
|
806
803
|
sourceId?: number | undefined | undefined;
|
|
807
|
-
testnet
|
|
804
|
+
testnet: true;
|
|
808
805
|
custom?: Record<string, unknown> | undefined;
|
|
809
806
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
810
807
|
formatters?: undefined;
|
|
811
808
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
812
|
-
readonly iconUrl: "https://testnet.matchscan.io/static/identicon_logos/blockies.png";
|
|
813
809
|
}, {
|
|
814
810
|
blockExplorers: {
|
|
815
811
|
readonly default: {
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as wagmi_chains from 'wagmi/chains';
|
|
|
5
5
|
import * as viem from 'viem';
|
|
6
6
|
import React__default, { ReactNode } from 'react';
|
|
7
7
|
import { I as IMatchEvents, L as LocaleType, a as IEnvConfigType, W as WalletConfigType } from './types-BrVeC0c8.js';
|
|
8
|
-
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-
|
|
8
|
+
export { i as Hooks, M as ModalProvider, T as ToastProvider } from './index-hz9v-CNJ.js';
|
|
9
9
|
export { i as Components } from './index-qmC4zt6V.js';
|
|
10
10
|
export { i as UI } from './index-Cqdz_5bE.js';
|
|
11
11
|
export { i as Api } from './index-CcVHENNv.js';
|
|
@@ -739,21 +739,24 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
739
739
|
}, {
|
|
740
740
|
blockExplorers: {
|
|
741
741
|
readonly default: {
|
|
742
|
-
readonly name: "
|
|
743
|
-
readonly url: "https://matchscan.io
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
742
|
+
readonly name: "Matchain Scan";
|
|
743
|
+
readonly url: "https://matchscan.io";
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
contracts?: {
|
|
747
|
+
[x: string]: viem.ChainContract | {
|
|
748
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
749
|
+
} | undefined;
|
|
750
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
751
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
752
|
+
multicall3?: viem.ChainContract | undefined;
|
|
753
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
754
|
+
} | undefined;
|
|
752
755
|
ensTlds?: readonly string[] | undefined;
|
|
753
756
|
id: 698;
|
|
754
757
|
name: "Matchain";
|
|
755
758
|
nativeCurrency: {
|
|
756
|
-
readonly name: "
|
|
759
|
+
readonly name: "BNB";
|
|
757
760
|
readonly symbol: "BNB";
|
|
758
761
|
readonly decimals: 18;
|
|
759
762
|
};
|
|
@@ -768,33 +771,27 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
768
771
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
769
772
|
formatters?: undefined;
|
|
770
773
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
771
|
-
readonly iconUrl: "https://matchscan.io/static/identicon_logos/blockies.png";
|
|
772
774
|
}, {
|
|
773
775
|
blockExplorers: {
|
|
774
776
|
readonly default: {
|
|
775
|
-
readonly name: "
|
|
776
|
-
readonly url: "https://testnet.matchscan.io
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
readonly ensUniversalResolver: {
|
|
789
|
-
readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
|
|
790
|
-
readonly blockCreated: 5317080;
|
|
791
|
-
};
|
|
792
|
-
};
|
|
777
|
+
readonly name: "Matchain Scan";
|
|
778
|
+
readonly url: "https://testnet.matchscan.io";
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
contracts?: {
|
|
782
|
+
[x: string]: viem.ChainContract | {
|
|
783
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
784
|
+
} | undefined;
|
|
785
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
786
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
787
|
+
multicall3?: viem.ChainContract | undefined;
|
|
788
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
789
|
+
} | undefined;
|
|
793
790
|
ensTlds?: readonly string[] | undefined;
|
|
794
791
|
id: 699;
|
|
795
|
-
name: "
|
|
792
|
+
name: "Matchain Testnet";
|
|
796
793
|
nativeCurrency: {
|
|
797
|
-
readonly name: "
|
|
794
|
+
readonly name: "BNB";
|
|
798
795
|
readonly symbol: "BNB";
|
|
799
796
|
readonly decimals: 18;
|
|
800
797
|
};
|
|
@@ -804,12 +801,11 @@ declare const wagmiConfig: wagmi.Config<[{
|
|
|
804
801
|
};
|
|
805
802
|
};
|
|
806
803
|
sourceId?: number | undefined | undefined;
|
|
807
|
-
testnet
|
|
804
|
+
testnet: true;
|
|
808
805
|
custom?: Record<string, unknown> | undefined;
|
|
809
806
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
810
807
|
formatters?: undefined;
|
|
811
808
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
812
|
-
readonly iconUrl: "https://testnet.matchscan.io/static/identicon_logos/blockies.png";
|
|
813
809
|
}, {
|
|
814
810
|
blockExplorers: {
|
|
815
811
|
readonly default: {
|
package/dist/index.js
CHANGED
|
@@ -9077,70 +9077,6 @@ var messages = {
|
|
|
9077
9077
|
var import_rainbowkit2 = require("@rainbow-me/rainbowkit");
|
|
9078
9078
|
var import_wallets = require("@rainbow-me/rainbowkit/wallets");
|
|
9079
9079
|
var import_chains = require("wagmi/chains");
|
|
9080
|
-
|
|
9081
|
-
// src/config/chains/MatchMain.ts
|
|
9082
|
-
var import_viem16 = require("viem");
|
|
9083
|
-
var matchMain = /* @__PURE__ */ (0, import_viem16.defineChain)({
|
|
9084
|
-
//定义match链
|
|
9085
|
-
id: 698,
|
|
9086
|
-
name: "Matchain",
|
|
9087
|
-
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
9088
|
-
rpcUrls: {
|
|
9089
|
-
default: {
|
|
9090
|
-
http: ["https://rpc.matchain.io"]
|
|
9091
|
-
}
|
|
9092
|
-
},
|
|
9093
|
-
blockExplorers: {
|
|
9094
|
-
default: {
|
|
9095
|
-
name: "Matchscan",
|
|
9096
|
-
url: "https://matchscan.io/",
|
|
9097
|
-
apiUrl: "https://matchscan.io/api"
|
|
9098
|
-
}
|
|
9099
|
-
},
|
|
9100
|
-
iconUrl: "https://matchscan.io/static/identicon_logos/blockies.png",
|
|
9101
|
-
contracts: {
|
|
9102
|
-
multicall3: {
|
|
9103
|
-
address: "0xca11bde05977b3631167028862be2a173976ca11"
|
|
9104
|
-
}
|
|
9105
|
-
}
|
|
9106
|
-
// testnet: true,
|
|
9107
|
-
});
|
|
9108
|
-
|
|
9109
|
-
// src/config/chains/MatchTest.ts
|
|
9110
|
-
var import_viem17 = require("viem");
|
|
9111
|
-
var matchTest = /* @__PURE__ */ (0, import_viem17.defineChain)({
|
|
9112
|
-
//定义matchTest链
|
|
9113
|
-
id: 699,
|
|
9114
|
-
name: "MatchTest",
|
|
9115
|
-
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
9116
|
-
rpcUrls: {
|
|
9117
|
-
default: {
|
|
9118
|
-
http: ["https://testnet-rpc.matchain.io"]
|
|
9119
|
-
}
|
|
9120
|
-
},
|
|
9121
|
-
blockExplorers: {
|
|
9122
|
-
default: {
|
|
9123
|
-
name: "Matchscan",
|
|
9124
|
-
url: "https://testnet.matchscan.io/",
|
|
9125
|
-
apiUrl: "https://testnet.matchscan.io/api"
|
|
9126
|
-
}
|
|
9127
|
-
},
|
|
9128
|
-
iconUrl: "https://testnet.matchscan.io/static/identicon_logos/blockies.png",
|
|
9129
|
-
contracts: {
|
|
9130
|
-
multicall3: {
|
|
9131
|
-
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
9132
|
-
blockCreated: 751532
|
|
9133
|
-
},
|
|
9134
|
-
ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
|
|
9135
|
-
ensUniversalResolver: {
|
|
9136
|
-
address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",
|
|
9137
|
-
blockCreated: 5317080
|
|
9138
|
-
}
|
|
9139
|
-
}
|
|
9140
|
-
// testnet: true,
|
|
9141
|
-
});
|
|
9142
|
-
|
|
9143
|
-
// src/MatchContext.tsx
|
|
9144
9080
|
var import_wagmi3 = require("wagmi");
|
|
9145
9081
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
9146
9082
|
var queryClient = new import_react_query10.QueryClient();
|
|
@@ -9159,7 +9095,7 @@ var wagmiConfig = (0, import_rainbowkit2.getDefaultConfig)({
|
|
|
9159
9095
|
]
|
|
9160
9096
|
}
|
|
9161
9097
|
],
|
|
9162
|
-
chains: [import_chains.mainnet, import_chains.polygon, import_chains.optimism, import_chains.arbitrum, import_chains.base,
|
|
9098
|
+
chains: [import_chains.mainnet, import_chains.polygon, import_chains.optimism, import_chains.arbitrum, import_chains.base, import_chains.matchain, import_chains.matchainTestnet, import_chains.bsc]
|
|
9163
9099
|
});
|
|
9164
9100
|
var MatchContext = (0, import_react42.createContext)(void 0);
|
|
9165
9101
|
var MatchProvider = ({
|
|
@@ -9283,6 +9219,68 @@ __export(chains_exports, {
|
|
|
9283
9219
|
MatchTest: () => matchTest
|
|
9284
9220
|
});
|
|
9285
9221
|
|
|
9222
|
+
// src/config/chains/MatchMain.ts
|
|
9223
|
+
var import_viem16 = require("viem");
|
|
9224
|
+
var matchMain = /* @__PURE__ */ (0, import_viem16.defineChain)({
|
|
9225
|
+
//定义match链
|
|
9226
|
+
id: 698,
|
|
9227
|
+
name: "Matchain",
|
|
9228
|
+
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
9229
|
+
rpcUrls: {
|
|
9230
|
+
default: {
|
|
9231
|
+
http: ["https://rpc.matchain.io"]
|
|
9232
|
+
}
|
|
9233
|
+
},
|
|
9234
|
+
blockExplorers: {
|
|
9235
|
+
default: {
|
|
9236
|
+
name: "Matchscan",
|
|
9237
|
+
url: "https://matchscan.io/",
|
|
9238
|
+
apiUrl: "https://matchscan.io/api"
|
|
9239
|
+
}
|
|
9240
|
+
},
|
|
9241
|
+
iconUrl: "https://matchscan.io/static/identicon_logos/blockies.png",
|
|
9242
|
+
contracts: {
|
|
9243
|
+
multicall3: {
|
|
9244
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11"
|
|
9245
|
+
}
|
|
9246
|
+
}
|
|
9247
|
+
// testnet: true,
|
|
9248
|
+
});
|
|
9249
|
+
|
|
9250
|
+
// src/config/chains/MatchTest.ts
|
|
9251
|
+
var import_viem17 = require("viem");
|
|
9252
|
+
var matchTest = /* @__PURE__ */ (0, import_viem17.defineChain)({
|
|
9253
|
+
//定义matchTest链
|
|
9254
|
+
id: 699,
|
|
9255
|
+
name: "MatchTest",
|
|
9256
|
+
nativeCurrency: { name: "Match Coin", symbol: "BNB", decimals: 18 },
|
|
9257
|
+
rpcUrls: {
|
|
9258
|
+
default: {
|
|
9259
|
+
http: ["https://testnet-rpc.matchain.io"]
|
|
9260
|
+
}
|
|
9261
|
+
},
|
|
9262
|
+
blockExplorers: {
|
|
9263
|
+
default: {
|
|
9264
|
+
name: "Matchscan",
|
|
9265
|
+
url: "https://testnet.matchscan.io/",
|
|
9266
|
+
apiUrl: "https://testnet.matchscan.io/api"
|
|
9267
|
+
}
|
|
9268
|
+
},
|
|
9269
|
+
iconUrl: "https://testnet.matchscan.io/static/identicon_logos/blockies.png",
|
|
9270
|
+
contracts: {
|
|
9271
|
+
multicall3: {
|
|
9272
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
9273
|
+
blockCreated: 751532
|
|
9274
|
+
},
|
|
9275
|
+
ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
|
|
9276
|
+
ensUniversalResolver: {
|
|
9277
|
+
address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",
|
|
9278
|
+
blockCreated: 5317080
|
|
9279
|
+
}
|
|
9280
|
+
}
|
|
9281
|
+
// testnet: true,
|
|
9282
|
+
});
|
|
9283
|
+
|
|
9286
9284
|
// src/types/index.ts
|
|
9287
9285
|
var types_exports = {};
|
|
9288
9286
|
__export(types_exports, {
|