@mocanetwork/airkit 1.4.0-beta.1 → 1.4.0

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/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Moca Network
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -97,7 +97,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
97
97
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
98
98
  };
99
99
 
100
- var version = "1.4.0-beta.1";
100
+ var version = "1.4.0";
101
101
  var airkitPackage = {
102
102
  version: version};
103
103
 
@@ -95,7 +95,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
95
95
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
96
96
  };
97
97
 
98
- var version = "1.4.0-beta.1";
98
+ var version = "1.4.0";
99
99
  var airkitPackage = {
100
100
  version: version};
101
101
 
@@ -101,7 +101,7 @@
101
101
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
102
102
  };
103
103
 
104
- var version = "1.4.0-beta.1";
104
+ var version = "1.4.0";
105
105
  var airkitPackage = {
106
106
  version: version};
107
107
 
@@ -0,0 +1,27 @@
1
+ export declare const mocaTestnet: {
2
+ id: number;
3
+ name: string;
4
+ nativeCurrency: {
5
+ decimals: number;
6
+ name: string;
7
+ symbol: string;
8
+ };
9
+ rpcUrls: {
10
+ default: {
11
+ http: string[];
12
+ webSocket: string[];
13
+ };
14
+ };
15
+ blockExplorers: {
16
+ default: {
17
+ name: string;
18
+ url: string;
19
+ };
20
+ };
21
+ contracts: {
22
+ readonly multicall3: {
23
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
24
+ readonly blockCreated: 3837540;
25
+ };
26
+ };
27
+ };
@@ -1,5 +1,5 @@
1
1
  import { ConfirmationStrategy, RealmLoginWalletId } from "../wallet";
2
- export type RealmIdValidation = {
2
+ export type AliasValidation = {
3
3
  minLength: number;
4
4
  maxLength: number;
5
5
  };
@@ -20,7 +20,7 @@ export type RealmPartnerConfig = {
20
20
  allowedDomains?: string[];
21
21
  publicKey?: string;
22
22
  jwksUrl?: string;
23
- realmIdValidation: RealmIdValidation;
23
+ aliasValidation: AliasValidation;
24
24
  style?: RealmPartnerConfigStyle;
25
25
  loginMethods?: RealmLoginMethod[];
26
26
  walletLoginMethods?: RealmLoginWalletId[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mocanetwork/airkit",
3
- "version": "1.4.0-beta.1",
3
+ "version": "1.4.0",
4
4
  "description": "Air kit to interact with the Moca Network",
5
5
  "main": "dist/airkit.cjs.js",
6
6
  "module": "dist/airkit.esm.js",
@@ -8,7 +8,8 @@
8
8
  "jsdelivr": "dist/airkit.umd.min.js",
9
9
  "types": "dist/types/index.d.ts",
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "LICENSE"
12
13
  ],
13
14
  "scripts": {
14
15
  "build": "rollup --config",
@@ -39,15 +40,15 @@
39
40
  },
40
41
  "keywords": [
41
42
  "airkit",
42
- "mocaverse",
43
+ "mocanetwork",
43
44
  "wallet",
44
45
  "embed",
45
46
  "login",
46
47
  "OAuth",
47
48
  "crypto"
48
49
  ],
49
- "author": "Mocaverse",
50
- "license": "ISC",
50
+ "author": "Moca Network",
51
+ "license": "MIT",
51
52
  "lint-staged": {
52
53
  "!(*d).{js,ts}": [
53
54
  "eslint --cache --fix",