@recoilpay/intent-widget 0.1.0 → 0.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recoilpay/intent-widget",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "RecoilPay intents for any website: one script tag, a <recoilpay-intent> element, wallet connection included.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"recoilpay",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"prepublishOnly": "npm run build"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@recoilpay/intent-core": "^0.
|
|
39
|
-
"@recoilpay/intent-react": "^0.
|
|
38
|
+
"@recoilpay/intent-core": "^0.2.0",
|
|
39
|
+
"@recoilpay/intent-react": "^0.2.0",
|
|
40
40
|
"@testing-library/react": "^16.3.3",
|
|
41
41
|
"@types/react": "^18.3.31",
|
|
42
42
|
"@types/react-dom": "^18.3.7",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,i as b,j as k,l as y,w as S,y as C,z as t}from"./chunk-Z3OIWTR5.js";import{g as m,h as T,i as n,o as s,s as i,u as h}from"./chunk-JYRWMYZ2.js";var D=t({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0});var v={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}};var g={block:y({format(o){return{transactions:o.transactions?.map(r=>{if(typeof r=="string")return r;let p=b(r);return p.typeHex==="0x7e"&&(p.isSystemTx=r.isSystemTx,p.mint=r.mint?m(r.mint):void 0,p.sourceHash=r.sourceHash,p.type="deposit"),p}),stateRoot:o.stateRoot}}}),transaction:k({format(o){let e={};return o.type==="0x7e"&&(e.isSystemTx=o.isSystemTx,e.mint=o.mint?m(o.mint):void 0,e.sourceHash=o.sourceHash,e.type="deposit"),e}}),transactionReceipt:S({format(o){return{...o.depositNonce?{depositNonce:m(o.depositNonce)}:{},...o.depositReceiptVersion?{depositReceiptVersion:T(o.depositReceiptVersion)}:{},l1GasPrice:o.l1GasPrice?m(o.l1GasPrice):null,l1GasUsed:o.l1GasUsed?m(o.l1GasUsed):null,l1Fee:o.l1Fee?m(o.l1Fee):null,l1FeeScalar:o.l1FeeScalar?Number(o.l1FeeScalar):null}}})};function N(o,e){return P(o)?F(o):C(o,e)}var z={transaction:N};function F(o){j(o);let{sourceHash:e,data:r,from:p,gas:l,isSystemTx:E,mint:c,to:M,value:d}=o,B=[e,p,M??"0x",c?n(c):"0x",d?n(d):"0x",l?n(l):"0x",E?"0x1":"0x",r??"0x"];return h(["0x7e",u(B)])}function P(o){return o.type==="deposit"||typeof o.sourceHash<"u"}function j(o){let{from:e,to:r}=o;if(e&&!i(e))throw new s({address:e});if(r&&!i(r))throw new s({address:r})}var a={blockTime:2e3,contracts:v,formatters:g,serializers:z};var f=11155111,w=t({...a,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...a.contracts,disputeGameFactory:{[f]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[f]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[f]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[f]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:f}),H=t({...w,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}});var x=11155111,A=t({...a,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...a.contracts,disputeGameFactory:{[x]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[x]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[x]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[x]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:x});var G=t({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-amoy.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0});var L=t({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0});export{D as a,w as b,A as c,G as d,L as e};
|