rise-wallet 0.3.1 → 0.3.3-beta.1

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.
@@ -15,6 +15,7 @@ export declare const defaultConfig: {
15
15
  readonly modes: {
16
16
  readonly dialog: true;
17
17
  readonly headless: {
18
+ readonly privilegedOrigins: string[];
18
19
  readonly sameOrigin: true;
19
20
  };
20
21
  };
@@ -58,6 +59,7 @@ export declare const defaultConfig: {
58
59
  readonly modes: {
59
60
  readonly dialog: true;
60
61
  readonly headless: {
62
+ privilegedOrigins: string[];
61
63
  sameOrigin: true;
62
64
  } | undefined;
63
65
  };
@@ -914,61 +916,25 @@ export declare const defaultConfig: {
914
916
  }, ...{
915
917
  blockExplorers: {
916
918
  readonly default: {
917
- readonly name: "Basescan";
918
- readonly url: "https://sepolia.basescan.org";
919
- readonly apiUrl: "https://api-sepolia.basescan.org/api";
919
+ readonly name: "Etherscan";
920
+ readonly url: "https://sepolia.etherscan.io";
921
+ readonly apiUrl: "https://api-sepolia.etherscan.io/api";
920
922
  };
921
923
  };
922
- blockTime: 2000;
924
+ blockTime?: number | undefined | undefined;
923
925
  contracts: {
924
- readonly disputeGameFactory: {
925
- readonly 11155111: {
926
- readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
927
- };
928
- };
929
- readonly l2OutputOracle: {
930
- readonly 11155111: {
931
- readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
932
- };
933
- };
934
- readonly portal: {
935
- readonly 11155111: {
936
- readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
937
- readonly blockCreated: 4446677;
938
- };
939
- };
940
- readonly l1StandardBridge: {
941
- readonly 11155111: {
942
- readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
943
- readonly blockCreated: 4446677;
944
- };
945
- };
946
926
  readonly multicall3: {
947
927
  readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
948
- readonly blockCreated: 1059647;
949
- };
950
- readonly gasPriceOracle: {
951
- readonly address: "0x420000000000000000000000000000000000000F";
952
- };
953
- readonly l1Block: {
954
- readonly address: "0x4200000000000000000000000000000000000015";
955
- };
956
- readonly l2CrossDomainMessenger: {
957
- readonly address: "0x4200000000000000000000000000000000000007";
928
+ readonly blockCreated: 751532;
958
929
  };
959
- readonly l2Erc721Bridge: {
960
- readonly address: "0x4200000000000000000000000000000000000014";
961
- };
962
- readonly l2StandardBridge: {
963
- readonly address: "0x4200000000000000000000000000000000000010";
964
- };
965
- readonly l2ToL1MessagePasser: {
966
- readonly address: "0x4200000000000000000000000000000000000016";
930
+ readonly ensUniversalResolver: {
931
+ readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
932
+ readonly blockCreated: 8928790;
967
933
  };
968
934
  };
969
935
  ensTlds?: readonly string[] | undefined;
970
- id: 84532;
971
- name: "Base Sepolia";
936
+ id: 11155111;
937
+ name: "Sepolia";
972
938
  nativeCurrency: {
973
939
  readonly name: "Sepolia Ether";
974
940
  readonly symbol: "ETH";
@@ -977,248 +943,15 @@ export declare const defaultConfig: {
977
943
  experimental_preconfirmationTime?: number | undefined | undefined;
978
944
  rpcUrls: {
979
945
  readonly default: {
980
- readonly http: readonly ["https://sepolia.base.org"];
946
+ readonly http: readonly ["https://sepolia.drpc.org"];
981
947
  };
982
948
  };
983
- sourceId: 11155111;
949
+ sourceId?: number | undefined | undefined;
984
950
  testnet: true;
985
951
  custom?: Record<string, unknown> | undefined;
986
952
  fees?: import("viem").ChainFees<undefined> | undefined;
987
- formatters: {
988
- readonly block: {
989
- exclude: [] | undefined;
990
- format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
991
- baseFeePerGas: bigint | null;
992
- blobGasUsed: bigint;
993
- difficulty: bigint;
994
- excessBlobGas: bigint;
995
- extraData: import("viem").Hex;
996
- gasLimit: bigint;
997
- gasUsed: bigint;
998
- hash: `0x${string}` | null;
999
- logsBloom: `0x${string}` | null;
1000
- miner: import("viem").Address;
1001
- mixHash: import("viem").Hash;
1002
- nonce: `0x${string}` | null;
1003
- number: bigint | null;
1004
- parentBeaconBlockRoot?: `0x${string}` | undefined;
1005
- parentHash: import("viem").Hash;
1006
- receiptsRoot: import("viem").Hex;
1007
- sealFields: import("viem").Hex[];
1008
- sha3Uncles: import("viem").Hash;
1009
- size: bigint;
1010
- stateRoot: import("viem").Hash;
1011
- timestamp: bigint;
1012
- totalDifficulty: bigint | null;
1013
- transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
1014
- transactionsRoot: import("viem").Hash;
1015
- uncles: import("viem").Hash[];
1016
- withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
1017
- withdrawalsRoot?: `0x${string}` | undefined;
1018
- } & {};
1019
- type: "block";
1020
- };
1021
- readonly transaction: {
1022
- exclude: [] | undefined;
1023
- format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
1024
- blockHash: `0x${string}` | null;
1025
- blockNumber: bigint | null;
1026
- from: import("viem").Address;
1027
- gas: bigint;
1028
- hash: import("viem").Hash;
1029
- input: import("viem").Hex;
1030
- nonce: number;
1031
- r: import("viem").Hex;
1032
- s: import("viem").Hex;
1033
- to: import("viem").Address | null;
1034
- transactionIndex: number | null;
1035
- typeHex: import("viem").Hex | null;
1036
- v: bigint;
1037
- value: bigint;
1038
- yParity: number;
1039
- gasPrice?: undefined | undefined;
1040
- maxFeePerBlobGas?: undefined | undefined;
1041
- maxFeePerGas: bigint;
1042
- maxPriorityFeePerGas: bigint;
1043
- isSystemTx?: boolean;
1044
- mint?: bigint | undefined | undefined;
1045
- sourceHash: import("viem").Hex;
1046
- type: "deposit";
1047
- } | {
1048
- r: import("viem").Hex;
1049
- s: import("viem").Hex;
1050
- v: bigint;
1051
- value: bigint;
1052
- gas: bigint;
1053
- to: import("viem").Address | null;
1054
- from: import("viem").Address;
1055
- nonce: number;
1056
- blockHash: `0x${string}` | null;
1057
- blockNumber: bigint | null;
1058
- transactionIndex: number | null;
1059
- hash: import("viem").Hash;
1060
- input: import("viem").Hex;
1061
- typeHex: import("viem").Hex | null;
1062
- accessList?: undefined | undefined;
1063
- authorizationList?: undefined | undefined;
1064
- blobVersionedHashes?: undefined | undefined;
1065
- chainId?: number | undefined;
1066
- yParity?: undefined | undefined;
1067
- type: "legacy";
1068
- gasPrice: bigint;
1069
- maxFeePerBlobGas?: undefined | undefined;
1070
- maxFeePerGas?: undefined | undefined;
1071
- maxPriorityFeePerGas?: undefined | undefined;
1072
- isSystemTx?: undefined | undefined;
1073
- mint?: undefined | undefined;
1074
- sourceHash?: undefined | undefined;
1075
- } | {
1076
- blockHash: `0x${string}` | null;
1077
- blockNumber: bigint | null;
1078
- from: import("viem").Address;
1079
- gas: bigint;
1080
- hash: import("viem").Hash;
1081
- input: import("viem").Hex;
1082
- nonce: number;
1083
- r: import("viem").Hex;
1084
- s: import("viem").Hex;
1085
- to: import("viem").Address | null;
1086
- transactionIndex: number | null;
1087
- typeHex: import("viem").Hex | null;
1088
- v: bigint;
1089
- value: bigint;
1090
- yParity: number;
1091
- accessList: import("viem").AccessList;
1092
- authorizationList?: undefined | undefined;
1093
- blobVersionedHashes?: undefined | undefined;
1094
- chainId: number;
1095
- type: "eip2930";
1096
- gasPrice: bigint;
1097
- maxFeePerBlobGas?: undefined | undefined;
1098
- maxFeePerGas?: undefined | undefined;
1099
- maxPriorityFeePerGas?: undefined | undefined;
1100
- isSystemTx?: undefined | undefined;
1101
- mint?: undefined | undefined;
1102
- sourceHash?: undefined | undefined;
1103
- } | {
1104
- blockHash: `0x${string}` | null;
1105
- blockNumber: bigint | null;
1106
- from: import("viem").Address;
1107
- gas: bigint;
1108
- hash: import("viem").Hash;
1109
- input: import("viem").Hex;
1110
- nonce: number;
1111
- r: import("viem").Hex;
1112
- s: import("viem").Hex;
1113
- to: import("viem").Address | null;
1114
- transactionIndex: number | null;
1115
- typeHex: import("viem").Hex | null;
1116
- v: bigint;
1117
- value: bigint;
1118
- yParity: number;
1119
- accessList: import("viem").AccessList;
1120
- authorizationList?: undefined | undefined;
1121
- blobVersionedHashes?: undefined | undefined;
1122
- chainId: number;
1123
- type: "eip1559";
1124
- gasPrice?: undefined | undefined;
1125
- maxFeePerBlobGas?: undefined | undefined;
1126
- maxFeePerGas: bigint;
1127
- maxPriorityFeePerGas: bigint;
1128
- isSystemTx?: undefined | undefined;
1129
- mint?: undefined | undefined;
1130
- sourceHash?: undefined | undefined;
1131
- } | {
1132
- blockHash: `0x${string}` | null;
1133
- blockNumber: bigint | null;
1134
- from: import("viem").Address;
1135
- gas: bigint;
1136
- hash: import("viem").Hash;
1137
- input: import("viem").Hex;
1138
- nonce: number;
1139
- r: import("viem").Hex;
1140
- s: import("viem").Hex;
1141
- to: import("viem").Address | null;
1142
- transactionIndex: number | null;
1143
- typeHex: import("viem").Hex | null;
1144
- v: bigint;
1145
- value: bigint;
1146
- yParity: number;
1147
- accessList: import("viem").AccessList;
1148
- authorizationList?: undefined | undefined;
1149
- blobVersionedHashes: readonly import("viem").Hex[];
1150
- chainId: number;
1151
- type: "eip4844";
1152
- gasPrice?: undefined | undefined;
1153
- maxFeePerBlobGas: bigint;
1154
- maxFeePerGas: bigint;
1155
- maxPriorityFeePerGas: bigint;
1156
- isSystemTx?: undefined | undefined;
1157
- mint?: undefined | undefined;
1158
- sourceHash?: undefined | undefined;
1159
- } | {
1160
- blockHash: `0x${string}` | null;
1161
- blockNumber: bigint | null;
1162
- from: import("viem").Address;
1163
- gas: bigint;
1164
- hash: import("viem").Hash;
1165
- input: import("viem").Hex;
1166
- nonce: number;
1167
- r: import("viem").Hex;
1168
- s: import("viem").Hex;
1169
- to: import("viem").Address | null;
1170
- transactionIndex: number | null;
1171
- typeHex: import("viem").Hex | null;
1172
- v: bigint;
1173
- value: bigint;
1174
- yParity: number;
1175
- accessList: import("viem").AccessList;
1176
- authorizationList: import("viem").SignedAuthorizationList;
1177
- blobVersionedHashes?: undefined | undefined;
1178
- chainId: number;
1179
- type: "eip7702";
1180
- gasPrice?: undefined | undefined;
1181
- maxFeePerBlobGas?: undefined | undefined;
1182
- maxFeePerGas: bigint;
1183
- maxPriorityFeePerGas: bigint;
1184
- isSystemTx?: undefined | undefined;
1185
- mint?: undefined | undefined;
1186
- sourceHash?: undefined | undefined;
1187
- }) & {};
1188
- type: "transaction";
1189
- };
1190
- readonly transactionReceipt: {
1191
- exclude: [] | undefined;
1192
- format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
1193
- blobGasPrice?: bigint | undefined;
1194
- blobGasUsed?: bigint | undefined;
1195
- blockHash: import("viem").Hash;
1196
- blockNumber: bigint;
1197
- contractAddress: import("viem").Address | null | undefined;
1198
- cumulativeGasUsed: bigint;
1199
- effectiveGasPrice: bigint;
1200
- from: import("viem").Address;
1201
- gasUsed: bigint;
1202
- logs: import("viem").Log<bigint, number, false>[];
1203
- logsBloom: import("viem").Hex;
1204
- root?: `0x${string}` | undefined;
1205
- status: "success" | "reverted";
1206
- to: import("viem").Address | null;
1207
- transactionHash: import("viem").Hash;
1208
- transactionIndex: number;
1209
- type: import("viem").TransactionType;
1210
- l1GasPrice: bigint | null;
1211
- l1GasUsed: bigint | null;
1212
- l1Fee: bigint | null;
1213
- l1FeeScalar: number | null;
1214
- } & {};
1215
- type: "transactionReceipt";
1216
- };
1217
- };
1218
- serializers: {
1219
- readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
1220
- };
1221
- readonly network: "base-sepolia";
953
+ formatters?: undefined;
954
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
1222
955
  }[]];
1223
956
  readonly relay: import("viem").HttpTransport<undefined, false>;
1224
957
  readonly storageKey: "risewallet.store";
@@ -1 +1 @@
1
- {"version":3,"file":"Porto.d.ts","sourceRoot":"","sources":["../../src/remote/Porto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,eAAe,CAAA;AAChD,OAAO,EAAe,KAAK,QAAQ,EA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M,CAAC,KAAK,EAAE,CAAC,GAAG,SAAS;IACnE,MAAM,CAAC,KAAK;IACZ,GAAG,MAAM,CAAC,KAAK,EAAE;CAClB,IACC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS,CAAA;IACrE,cAAc,CAAC,EAAE,cAAc,CAAC,cAAc,GAAG,SAAS,CAAA;IAC1D,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,KAAK,CACf,MAAM,SAAS,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,SAAS;IACnE,MAAM,CAAC,KAAK;IACZ,GAAG,MAAM,CAAC,KAAK,EAAE;CAClB,IACC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;AAExB,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,aAAa,GAAG;QACzC,OAAO,EAAE,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;KACjD,CAAC,EAAE,CAAA;CACL,CAAA"}
@@ -3,6 +3,7 @@ export type MethodPolicy = {
3
3
  modes?: {
4
4
  headless?: true | {
5
5
  sameOrigin?: boolean | undefined;
6
+ privilegedOrigins?: string[] | undefined;
6
7
  } | undefined;
7
8
  dialog?: true | {
8
9
  sameOrigin?: boolean | undefined;
@@ -11,11 +12,13 @@ export type MethodPolicy = {
11
12
  requireConnection?: boolean | undefined;
12
13
  };
13
14
  export type MethodPolicies = readonly MethodPolicy[];
15
+ export declare const privilegedOrigins: string[];
14
16
  export declare const methodPolicies: readonly [{
15
17
  readonly method: "eth_requestAccounts";
16
18
  readonly modes: {
17
19
  readonly dialog: true;
18
20
  readonly headless: {
21
+ readonly privilegedOrigins: string[];
19
22
  readonly sameOrigin: true;
20
23
  };
21
24
  };
@@ -59,6 +62,7 @@ export declare const methodPolicies: readonly [{
59
62
  readonly modes: {
60
63
  readonly dialog: true;
61
64
  readonly headless: {
65
+ privilegedOrigins: string[];
62
66
  sameOrigin: true;
63
67
  } | undefined;
64
68
  };
@@ -1 +1 @@
1
- {"version":3,"file":"methodPolicies.d.ts","sourceRoot":"","sources":["../../../src/remote/internal/methodPolicies.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EACF;QACE,QAAQ,CAAC,EACL,IAAI,GACJ;YACE,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;SACjC,GACD,SAAS,CAAA;QACb,MAAM,CAAC,EACH,IAAI,GACJ;YACE,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;SACjC,GACD,SAAS,CAAA;KACd,GACD,SAAS,CAAA;IACb,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACxC,CAAA;AACD,MAAM,MAAM,cAAc,GAAG,SAAS,YAAY,EAAE,CAAA;AAEpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmGQ,CAAA"}
1
+ {"version":3,"file":"methodPolicies.d.ts","sourceRoot":"","sources":["../../../src/remote/internal/methodPolicies.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EACF;QACE,QAAQ,CAAC,EACL,IAAI,GACJ;YACE,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;YAChC,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;SACzC,GACD,SAAS,CAAA;QACb,MAAM,CAAC,EACH,IAAI,GACJ;YACE,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;SACjC,GACD,SAAS,CAAA;KACd,GACD,SAAS,CAAA;IACb,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACxC,CAAA;AACD,MAAM,MAAM,cAAc,GAAG,SAAS,YAAY,EAAE,CAAA;AAEpD,eAAO,MAAM,iBAAiB,UAI7B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqGQ,CAAA"}
@@ -1,10 +1,16 @@
1
1
  import * as UserAgent from '../../core/internal/userAgent.js';
2
+ export const privilegedOrigins = [
3
+ 'rise.trade',
4
+ 'wallet.risechain.com',
5
+ 'localhost:5173',
6
+ ];
2
7
  export const methodPolicies = [
3
8
  {
4
9
  method: 'eth_requestAccounts',
5
10
  modes: {
6
11
  dialog: true,
7
12
  headless: {
13
+ privilegedOrigins,
8
14
  sameOrigin: true,
9
15
  },
10
16
  },
@@ -56,6 +62,7 @@ export const methodPolicies = [
56
62
  dialog: true,
57
63
  headless: !UserAgent.isSafari()
58
64
  ? {
65
+ privilegedOrigins,
59
66
  sameOrigin: true,
60
67
  }
61
68
  : undefined,
@@ -1 +1 @@
1
- {"version":3,"file":"methodPolicies.js","sourceRoot":"","sources":["../../../src/remote/internal/methodPolicies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAwB7D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B;QACE,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE;YACL,MAAM,EAAE,IAAI;YACZ,QAAQ,EAAE;gBACR,UAAU,EAAE,IAAI;aACjB;SACF;QACD,iBAAiB,EAAE,KAAK;KACzB;IACD;QACE,MAAM,EAAE,0BAA0B;QAClC,KAAK,EAAE;YACL,QAAQ,EAAE,IAAI;SACf;KACF;IACD;QACE,M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