@human.tech/waap-constants 0.0.1 → 0.0.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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSON_RPC_METHOD } from '@
|
|
1
|
+
import { JSON_RPC_METHOD } from '@human.tech/waap-interface-core';
|
|
2
2
|
export declare const silkWalletAppOrigin: string;
|
|
3
3
|
export declare const silkWalletAppOrigin2Staging = "https://staging.waap.xyz";
|
|
4
4
|
export declare const authServerOrigin: string;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e,t=require("@
|
|
1
|
+
var e,t=require("@human.tech/waap-interface-core"),r="https://waap.xyz",s=r,i=((e={})[t.JSON_RPC_METHOD.eth_sendTransaction]=!0,e[t.JSON_RPC_METHOD.personal_sign]=!0,e[t.JSON_RPC_METHOD.eth_signTypedData_v4]=!0,e[t.JSON_RPC_METHOD.eth_getBalance]=!1,e[t.JSON_RPC_METHOD.eth_requestAccounts]=!1,e[t.JSON_RPC_METHOD.eth_accounts]=!1,e[t.JSON_RPC_METHOD.eth_chainId]=!1,e[t.JSON_RPC_METHOD.net_version]=!1,e[t.JSON_RPC_METHOD.wallet_switchEthereumChain]=!1,e[t.JSON_RPC_METHOD.wallet_addEthereumChain]=!1,e[t.JSON_RPC_METHOD.eth_estimateGas]=!1,e[t.JSON_RPC_METHOD.eth_blockNumber]=!1,e[t.JSON_RPC_METHOD.eth_getCode]=!1,e[t.JSON_RPC_METHOD.eth_call]=!1,e[t.JSON_RPC_METHOD.eth_getTransactionReceipt]=!1,e[t.JSON_RPC_METHOD.eth_getTransactionByHash]=!1,e);exports.authServerOrigin="https://auth.waap.xyz",exports.fieldOrder="0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",exports.recoveryEmailAddress="test@recovery.silk.sc",exports.rpcMethodRequiresUI=function(e){return i[e]},exports.rpcMethodRequiresUIMap=i,exports.silkAdminAppOrigin="https://dashboard.silk.sc",exports.silkDemoAppOrigin="https://silk-demo-app.vercel.app",exports.silkDevPortalOrigin="https://silk-dev-portal-vercel-holonymid-holonym.vercel.app/",exports.silkKeyshareManagerOrigin="https://lbr.silk-protector-microservice-km.com",exports.silkMfaServerOrigin="https://server.silkwallet.net",exports.silkPolicyEngineOrigin="https://lbr.silk-protector-microservice-pe.com",exports.silkProtectorMainOrigin="https://main.silk-protector.com",exports.silkWalletAppOrigin="https://silksecure.net",exports.silkWalletAppOrigin2=s,exports.silkWalletAppOrigin2Prod=r,exports.silkWalletAppOrigin2Staging="https://staging.waap.xyz",exports.wsRelayOrigin="https://prod-waap-ws-relay.fly.dev";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { JSON_RPC_METHOD } from '@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { JSON_RPC_METHOD } from '@human.tech/waap-interface-core'\n\n// See the \"build\" and \"dev\" scripts in package.json. During build, we replace these\n// env vars with the value \"production\". For development, we do not replace them with\n// anything, allowing the package consumer (e.g., silk-next-app) to set them.\nconst silkNodeEnv =\n process.env.SILK_NODE_ENV ?? process.env.NEXT_PUBLIC_SILK_NODE_ENV\n\nexport const silkWalletAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://silksecure.net'\n : 'http://127.0.0.1:3000'\nexport const silkWalletAppOrigin2Staging = 'https://staging.waap.xyz'\nexport const authServerOrigin =\n silkNodeEnv === 'production'\n ? 'https://auth.waap.xyz'\n : silkNodeEnv === 'staging'\n ? 'https://staging.human-wallet.com'\n : 'https://localhost:8000'\n\n// WebSocket relay origin for auth completion notifications\nexport const wsRelayOrigin =\n silkNodeEnv === 'production'\n ? 'https://prod-waap-ws-relay.fly.dev'\n : silkNodeEnv === 'staging'\n ? 'https://staging-waap-ws-relay.fly.dev'\n : 'https://local-waap-ws-relay.fly.dev'\n\n// export const silkWalletAppOrigin2Prod = 'https://humansignon.com'\nexport const silkWalletAppOrigin2Prod = 'https://waap.xyz'\nexport const silkWalletAppOrigin2 =\n silkNodeEnv === 'production'\n ? silkWalletAppOrigin2Prod\n : silkNodeEnv === 'staging'\n ? silkWalletAppOrigin2Staging\n : 'http://127.0.0.1:3000'\nexport const silkAdminAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://dashboard.silk.sc'\n : 'http://127.0.0.1:3002'\nexport const silkDemoAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://silk-demo-app.vercel.app'\n : 'http://127.0.0.1:3001'\nexport const silkDevPortalOrigin =\n silkNodeEnv === 'development' || !silkNodeEnv\n ? 'http://localhost:3001'\n : 'https://silk-dev-portal-vercel-holonymid-holonym.vercel.app/'\nexport const silkMfaServerOrigin =\n silkNodeEnv === 'production'\n ? 'https://server.silkwallet.net'\n : 'http://0.0.0.0:3003'\nexport const silkPolicyEngineOrigin =\n silkNodeEnv === 'production'\n ? 'https://lbr.silk-protector-microservice-pe.com'\n : silkNodeEnv === 'staging'\n ? 'https://policyengine.staging.silk-protector.com'\n : 'http://127.0.0.1:3003'\nexport const silkKeyshareManagerOrigin =\n silkNodeEnv === 'production'\n ? 'https://lbr.silk-protector-microservice-km.com'\n : silkNodeEnv === 'staging'\n ? 'https://keyshare-manager.staging.silk-protector.com'\n : 'http://127.0.0.1:3004'\nexport const silkProtectorMainOrigin =\n silkNodeEnv === 'production'\n ? 'https://main.silk-protector.com'\n : silkNodeEnv === 'staging'\n ? 'https://protector-main.staging.silk-protector.com'\n : 'http://127.0.0.1:3005'\nexport const recoveryEmailAddress = 'test@recovery.silk.sc'\n\nexport const fieldOrder =\n '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141'\n\nexport const rpcMethodRequiresUI = (method: JSON_RPC_METHOD) =>\n rpcMethodRequiresUIMap[method]\nexport const rpcMethodRequiresUIMap = {\n // Requires user interaction\n [JSON_RPC_METHOD.eth_sendTransaction]: true,\n [JSON_RPC_METHOD.personal_sign]: true,\n [JSON_RPC_METHOD.eth_signTypedData_v4]: true,\n // Does not require user interaction\n [JSON_RPC_METHOD.eth_getBalance]: false,\n [JSON_RPC_METHOD.eth_requestAccounts]: false,\n [JSON_RPC_METHOD.eth_accounts]: false,\n [JSON_RPC_METHOD.eth_chainId]: false,\n [JSON_RPC_METHOD.net_version]: false,\n [JSON_RPC_METHOD.wallet_switchEthereumChain]: false,\n [JSON_RPC_METHOD.wallet_addEthereumChain]: false,\n [JSON_RPC_METHOD.eth_estimateGas]: false,\n [JSON_RPC_METHOD.eth_blockNumber]: false,\n [JSON_RPC_METHOD.eth_getCode]: false,\n [JSON_RPC_METHOD.eth_call]: false,\n [JSON_RPC_METHOD.eth_getTransactionReceipt]: false,\n [JSON_RPC_METHOD.eth_getTransactionByHash]: false\n}\n"],"names":["silkWalletAppOrigin2Prod","silkWalletAppOrigin2","rpcMethodRequiresUIMap","_rpcMethodRequiresUIM","JSON_RPC_METHOD","eth_sendTransaction","personal_sign","eth_signTypedData_v4","eth_getBalance","eth_requestAccounts","eth_accounts","eth_chainId","net_version","wallet_switchEthereumChain","wallet_addEthereumChain","eth_estimateGas","eth_blockNumber","eth_getCode","eth_call","eth_getTransactionReceipt","eth_getTransactionByHash","method","silkNodeEnv"],"mappings":"mDA6BaA,EAA2B,mBAC3BC,EAEPD,EA6COE,IAAsBC,EAAA,CAAA,GAEhCC,kBAAgBC,sBAAsB,EAAIF,EAC1CC,EAAeA,gBAACE,gBAAgB,EAAIH,EACpCC,EAAeA,gBAACG,uBAAuB,EAAIJ,EAE3CC,EAAAA,gBAAgBI,iBAAiB,EAAKL,EACtCC,kBAAgBK,sBAAsB,EAAKN,EAC3CC,kBAAgBM,eAAe,EAAKP,EACpCC,EAAeA,gBAACO,cAAc,EAAKR,EACnCC,EAAeA,gBAACQ,cAAc,EAAKT,EACnCC,EAAAA,gBAAgBS,6BAA6B,EAAKV,EAClDC,kBAAgBU,0BAA0B,EAAKX,EAC/CC,kBAAgBW,kBAAkB,EAAKZ,EACvCC,EAAeA,gBAACY,kBAAkB,EAAKb,EACvCC,EAAeA,gBAACa,cAAc,EAAKd,EACnCC,EAAAA,gBAAgBc,WAAW,EAAKf,EAChCC,kBAAgBe,4BAA4B,EAAKhB,EACjDC,kBAAgBgB,2BAA2B,EAAKjB,4BAhF7C,2CA0DJ,kGAHkC,oDAKD,SAACkB,GAClC,OAAAnB,EAAuBmB,EAAO,8DAtC1B,sDAIA,+DAGJC,iGAeI,6EAVA,+DAIA,iFAYA,8DAxDA,+HAEqC,iDAWrC"}
|
package/dist/index.modern.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{JSON_RPC_METHOD as t}from"@
|
|
1
|
+
import{JSON_RPC_METHOD as t}from"@human.tech/waap-interface-core";const e="https://silksecure.net",s="https://staging.waap.xyz",a="https://auth.waap.xyz",r="https://prod-waap-ws-relay.fly.dev",h="https://waap.xyz",c=h,o="https://dashboard.silk.sc",p="https://silk-demo-app.vercel.app",F="https://silk-dev-portal-vercel-holonymid-holonym.vercel.app/",i="https://server.silkwallet.net",l="https://lbr.silk-protector-microservice-pe.com",n="https://lbr.silk-protector-microservice-km.com",m="https://main.silk-protector.com",_="test@recovery.silk.sc",d="0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",k=t=>v[t],v={[t.eth_sendTransaction]:!0,[t.personal_sign]:!0,[t.eth_signTypedData_v4]:!0,[t.eth_getBalance]:!1,[t.eth_requestAccounts]:!1,[t.eth_accounts]:!1,[t.eth_chainId]:!1,[t.net_version]:!1,[t.wallet_switchEthereumChain]:!1,[t.wallet_addEthereumChain]:!1,[t.eth_estimateGas]:!1,[t.eth_blockNumber]:!1,[t.eth_getCode]:!1,[t.eth_call]:!1,[t.eth_getTransactionReceipt]:!1,[t.eth_getTransactionByHash]:!1};export{a as authServerOrigin,d as fieldOrder,_ as recoveryEmailAddress,k as rpcMethodRequiresUI,v as rpcMethodRequiresUIMap,o as silkAdminAppOrigin,p as silkDemoAppOrigin,F as silkDevPortalOrigin,n as silkKeyshareManagerOrigin,i as silkMfaServerOrigin,l as silkPolicyEngineOrigin,m as silkProtectorMainOrigin,e as silkWalletAppOrigin,c as silkWalletAppOrigin2,h as silkWalletAppOrigin2Prod,s as silkWalletAppOrigin2Staging,r as wsRelayOrigin};
|
|
2
2
|
//# sourceMappingURL=index.modern.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.modern.mjs","sources":["../src/index.ts"],"sourcesContent":["import { JSON_RPC_METHOD } from '@
|
|
1
|
+
{"version":3,"file":"index.modern.mjs","sources":["../src/index.ts"],"sourcesContent":["import { JSON_RPC_METHOD } from '@human.tech/waap-interface-core'\n\n// See the \"build\" and \"dev\" scripts in package.json. During build, we replace these\n// env vars with the value \"production\". For development, we do not replace them with\n// anything, allowing the package consumer (e.g., silk-next-app) to set them.\nconst silkNodeEnv =\n process.env.SILK_NODE_ENV ?? process.env.NEXT_PUBLIC_SILK_NODE_ENV\n\nexport const silkWalletAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://silksecure.net'\n : 'http://127.0.0.1:3000'\nexport const silkWalletAppOrigin2Staging = 'https://staging.waap.xyz'\nexport const authServerOrigin =\n silkNodeEnv === 'production'\n ? 'https://auth.waap.xyz'\n : silkNodeEnv === 'staging'\n ? 'https://staging.human-wallet.com'\n : 'https://localhost:8000'\n\n// WebSocket relay origin for auth completion notifications\nexport const wsRelayOrigin =\n silkNodeEnv === 'production'\n ? 'https://prod-waap-ws-relay.fly.dev'\n : silkNodeEnv === 'staging'\n ? 'https://staging-waap-ws-relay.fly.dev'\n : 'https://local-waap-ws-relay.fly.dev'\n\n// export const silkWalletAppOrigin2Prod = 'https://humansignon.com'\nexport const silkWalletAppOrigin2Prod = 'https://waap.xyz'\nexport const silkWalletAppOrigin2 =\n silkNodeEnv === 'production'\n ? silkWalletAppOrigin2Prod\n : silkNodeEnv === 'staging'\n ? silkWalletAppOrigin2Staging\n : 'http://127.0.0.1:3000'\nexport const silkAdminAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://dashboard.silk.sc'\n : 'http://127.0.0.1:3002'\nexport const silkDemoAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://silk-demo-app.vercel.app'\n : 'http://127.0.0.1:3001'\nexport const silkDevPortalOrigin =\n silkNodeEnv === 'development' || !silkNodeEnv\n ? 'http://localhost:3001'\n : 'https://silk-dev-portal-vercel-holonymid-holonym.vercel.app/'\nexport const silkMfaServerOrigin =\n silkNodeEnv === 'production'\n ? 'https://server.silkwallet.net'\n : 'http://0.0.0.0:3003'\nexport const silkPolicyEngineOrigin =\n silkNodeEnv === 'production'\n ? 'https://lbr.silk-protector-microservice-pe.com'\n : silkNodeEnv === 'staging'\n ? 'https://policyengine.staging.silk-protector.com'\n : 'http://127.0.0.1:3003'\nexport const silkKeyshareManagerOrigin =\n silkNodeEnv === 'production'\n ? 'https://lbr.silk-protector-microservice-km.com'\n : silkNodeEnv === 'staging'\n ? 'https://keyshare-manager.staging.silk-protector.com'\n : 'http://127.0.0.1:3004'\nexport const silkProtectorMainOrigin =\n silkNodeEnv === 'production'\n ? 'https://main.silk-protector.com'\n : silkNodeEnv === 'staging'\n ? 'https://protector-main.staging.silk-protector.com'\n : 'http://127.0.0.1:3005'\nexport const recoveryEmailAddress = 'test@recovery.silk.sc'\n\nexport const fieldOrder =\n '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141'\n\nexport const rpcMethodRequiresUI = (method: JSON_RPC_METHOD) =>\n rpcMethodRequiresUIMap[method]\nexport const rpcMethodRequiresUIMap = {\n // Requires user interaction\n [JSON_RPC_METHOD.eth_sendTransaction]: true,\n [JSON_RPC_METHOD.personal_sign]: true,\n [JSON_RPC_METHOD.eth_signTypedData_v4]: true,\n // Does not require user interaction\n [JSON_RPC_METHOD.eth_getBalance]: false,\n [JSON_RPC_METHOD.eth_requestAccounts]: false,\n [JSON_RPC_METHOD.eth_accounts]: false,\n [JSON_RPC_METHOD.eth_chainId]: false,\n [JSON_RPC_METHOD.net_version]: false,\n [JSON_RPC_METHOD.wallet_switchEthereumChain]: false,\n [JSON_RPC_METHOD.wallet_addEthereumChain]: false,\n [JSON_RPC_METHOD.eth_estimateGas]: false,\n [JSON_RPC_METHOD.eth_blockNumber]: false,\n [JSON_RPC_METHOD.eth_getCode]: false,\n [JSON_RPC_METHOD.eth_call]: false,\n [JSON_RPC_METHOD.eth_getTransactionReceipt]: false,\n [JSON_RPC_METHOD.eth_getTransactionByHash]: false\n}\n"],"names":["silkWalletAppOrigin","silkWalletAppOrigin2Staging","authServerOrigin","wsRelayOrigin","silkWalletAppOrigin2Prod","silkWalletAppOrigin2","silkAdminAppOrigin","silkDemoAppOrigin","silkDevPortalOrigin","silkMfaServerOrigin","silkPolicyEngineOrigin","silkKeyshareManagerOrigin","silkProtectorMainOrigin","recoveryEmailAddress","fieldOrder","rpcMethodRequiresUI","method","rpcMethodRequiresUIMap","JSON_RPC_METHOD","eth_sendTransaction","personal_sign","eth_signTypedData_v4","eth_getBalance","eth_requestAccounts","eth_accounts","eth_chainId","net_version","wallet_switchEthereumChain","wallet_addEthereumChain","eth_estimateGas","eth_blockNumber","eth_getCode","eth_call","eth_getTransactionReceipt","eth_getTransactionByHash"],"mappings":"kEAKA,MAGaA,EAEP,yBAEOC,EAA8B,2BAC9BC,EAEP,wBAMOC,EAEP,qCAMOC,EAA2B,mBAC3BC,EAEPD,EAIOE,EAEP,4BAEOC,EAEP,mCAEOC,EAGP,+DACOC,EAEP,gCAEOC,EAEP,iDAIOC,EAEP,iDAIOC,EAEP,kCAIOC,EAAuB,wBAEvBC,EACX,qEAEWC,EAAuBC,GAClCC,EAAuBD,GACZC,EAAyB,CAEpC,CAACC,EAAgBC,sBAAsB,EACvC,CAACD,EAAgBE,gBAAgB,EACjC,CAACF,EAAgBG,uBAAuB,EAExC,CAACH,EAAgBI,iBAAiB,EAClC,CAACJ,EAAgBK,sBAAsB,EACvC,CAACL,EAAgBM,eAAe,EAChC,CAACN,EAAgBO,cAAc,EAC/B,CAACP,EAAgBQ,cAAc,EAC/B,CAACR,EAAgBS,6BAA6B,EAC9C,CAACT,EAAgBU,0BAA0B,EAC3C,CAACV,EAAgBW,kBAAkB,EACnC,CAACX,EAAgBY,kBAAkB,EACnC,CAACZ,EAAgBa,cAAc,EAC/B,CAACb,EAAgBc,WAAW,EAC5B,CAACd,EAAgBe,4BAA4B,EAC7C,CAACf,EAAgBgB,2BAA2B"}
|
package/dist/index.module.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{JSON_RPC_METHOD as t}from"@
|
|
1
|
+
import{JSON_RPC_METHOD as t}from"@human.tech/waap-interface-core";var e,a="https://silksecure.net",s="https://staging.waap.xyz",r="https://auth.waap.xyz",h="https://prod-waap-ws-relay.fly.dev",c="https://waap.xyz",o=c,p="https://dashboard.silk.sc",F="https://silk-demo-app.vercel.app",i="https://silk-dev-portal-vercel-holonymid-holonym.vercel.app/",l="https://server.silkwallet.net",n="https://lbr.silk-protector-microservice-pe.com",m="https://lbr.silk-protector-microservice-km.com",_="https://main.silk-protector.com",d="test@recovery.silk.sc",v="0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",k=function(t){return u[t]},u=((e={})[t.eth_sendTransaction]=!0,e[t.personal_sign]=!0,e[t.eth_signTypedData_v4]=!0,e[t.eth_getBalance]=!1,e[t.eth_requestAccounts]=!1,e[t.eth_accounts]=!1,e[t.eth_chainId]=!1,e[t.net_version]=!1,e[t.wallet_switchEthereumChain]=!1,e[t.wallet_addEthereumChain]=!1,e[t.eth_estimateGas]=!1,e[t.eth_blockNumber]=!1,e[t.eth_getCode]=!1,e[t.eth_call]=!1,e[t.eth_getTransactionReceipt]=!1,e[t.eth_getTransactionByHash]=!1,e);export{r as authServerOrigin,v as fieldOrder,d as recoveryEmailAddress,k as rpcMethodRequiresUI,u as rpcMethodRequiresUIMap,p as silkAdminAppOrigin,F as silkDemoAppOrigin,i as silkDevPortalOrigin,m as silkKeyshareManagerOrigin,l as silkMfaServerOrigin,n as silkPolicyEngineOrigin,_ as silkProtectorMainOrigin,a as silkWalletAppOrigin,o as silkWalletAppOrigin2,c as silkWalletAppOrigin2Prod,s as silkWalletAppOrigin2Staging,h as wsRelayOrigin};
|
|
2
2
|
//# sourceMappingURL=index.module.js.map
|
package/dist/index.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.js","sources":["../src/index.ts"],"sourcesContent":["import { JSON_RPC_METHOD } from '@
|
|
1
|
+
{"version":3,"file":"index.module.js","sources":["../src/index.ts"],"sourcesContent":["import { JSON_RPC_METHOD } from '@human.tech/waap-interface-core'\n\n// See the \"build\" and \"dev\" scripts in package.json. During build, we replace these\n// env vars with the value \"production\". For development, we do not replace them with\n// anything, allowing the package consumer (e.g., silk-next-app) to set them.\nconst silkNodeEnv =\n process.env.SILK_NODE_ENV ?? process.env.NEXT_PUBLIC_SILK_NODE_ENV\n\nexport const silkWalletAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://silksecure.net'\n : 'http://127.0.0.1:3000'\nexport const silkWalletAppOrigin2Staging = 'https://staging.waap.xyz'\nexport const authServerOrigin =\n silkNodeEnv === 'production'\n ? 'https://auth.waap.xyz'\n : silkNodeEnv === 'staging'\n ? 'https://staging.human-wallet.com'\n : 'https://localhost:8000'\n\n// WebSocket relay origin for auth completion notifications\nexport const wsRelayOrigin =\n silkNodeEnv === 'production'\n ? 'https://prod-waap-ws-relay.fly.dev'\n : silkNodeEnv === 'staging'\n ? 'https://staging-waap-ws-relay.fly.dev'\n : 'https://local-waap-ws-relay.fly.dev'\n\n// export const silkWalletAppOrigin2Prod = 'https://humansignon.com'\nexport const silkWalletAppOrigin2Prod = 'https://waap.xyz'\nexport const silkWalletAppOrigin2 =\n silkNodeEnv === 'production'\n ? silkWalletAppOrigin2Prod\n : silkNodeEnv === 'staging'\n ? silkWalletAppOrigin2Staging\n : 'http://127.0.0.1:3000'\nexport const silkAdminAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://dashboard.silk.sc'\n : 'http://127.0.0.1:3002'\nexport const silkDemoAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://silk-demo-app.vercel.app'\n : 'http://127.0.0.1:3001'\nexport const silkDevPortalOrigin =\n silkNodeEnv === 'development' || !silkNodeEnv\n ? 'http://localhost:3001'\n : 'https://silk-dev-portal-vercel-holonymid-holonym.vercel.app/'\nexport const silkMfaServerOrigin =\n silkNodeEnv === 'production'\n ? 'https://server.silkwallet.net'\n : 'http://0.0.0.0:3003'\nexport const silkPolicyEngineOrigin =\n silkNodeEnv === 'production'\n ? 'https://lbr.silk-protector-microservice-pe.com'\n : silkNodeEnv === 'staging'\n ? 'https://policyengine.staging.silk-protector.com'\n : 'http://127.0.0.1:3003'\nexport const silkKeyshareManagerOrigin =\n silkNodeEnv === 'production'\n ? 'https://lbr.silk-protector-microservice-km.com'\n : silkNodeEnv === 'staging'\n ? 'https://keyshare-manager.staging.silk-protector.com'\n : 'http://127.0.0.1:3004'\nexport const silkProtectorMainOrigin =\n silkNodeEnv === 'production'\n ? 'https://main.silk-protector.com'\n : silkNodeEnv === 'staging'\n ? 'https://protector-main.staging.silk-protector.com'\n : 'http://127.0.0.1:3005'\nexport const recoveryEmailAddress = 'test@recovery.silk.sc'\n\nexport const fieldOrder =\n '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141'\n\nexport const rpcMethodRequiresUI = (method: JSON_RPC_METHOD) =>\n rpcMethodRequiresUIMap[method]\nexport const rpcMethodRequiresUIMap = {\n // Requires user interaction\n [JSON_RPC_METHOD.eth_sendTransaction]: true,\n [JSON_RPC_METHOD.personal_sign]: true,\n [JSON_RPC_METHOD.eth_signTypedData_v4]: true,\n // Does not require user interaction\n [JSON_RPC_METHOD.eth_getBalance]: false,\n [JSON_RPC_METHOD.eth_requestAccounts]: false,\n [JSON_RPC_METHOD.eth_accounts]: false,\n [JSON_RPC_METHOD.eth_chainId]: false,\n [JSON_RPC_METHOD.net_version]: false,\n [JSON_RPC_METHOD.wallet_switchEthereumChain]: false,\n [JSON_RPC_METHOD.wallet_addEthereumChain]: false,\n [JSON_RPC_METHOD.eth_estimateGas]: false,\n [JSON_RPC_METHOD.eth_blockNumber]: false,\n [JSON_RPC_METHOD.eth_getCode]: false,\n [JSON_RPC_METHOD.eth_call]: false,\n [JSON_RPC_METHOD.eth_getTransactionReceipt]: false,\n [JSON_RPC_METHOD.eth_getTransactionByHash]: false\n}\n"],"names":["silkWalletAppOrigin","silkWalletAppOrigin2Staging","authServerOrigin","wsRelayOrigin","silkWalletAppOrigin2Prod","silkWalletAppOrigin2","silkAdminAppOrigin","silkDemoAppOrigin","silkDevPortalOrigin","silkMfaServerOrigin","silkPolicyEngineOrigin","silkKeyshareManagerOrigin","silkProtectorMainOrigin","recoveryEmailAddress","fieldOrder","rpcMethodRequiresUI","method","rpcMethodRequiresUIMap","_rpcMethodRequiresUIM","JSON_RPC_METHOD","eth_sendTransaction","personal_sign","eth_signTypedData_v4","eth_getBalance","eth_requestAccounts","eth_accounts","eth_chainId","net_version","wallet_switchEthereumChain","wallet_addEthereumChain","eth_estimateGas","eth_blockNumber","eth_getCode","eth_call","eth_getTransactionReceipt","eth_getTransactionByHash"],"mappings":"wEAQaA,EAEP,yBAEOC,EAA8B,2BAC9BC,EAEP,wBAMOC,EAEP,qCAMOC,EAA2B,mBAC3BC,EAEPD,EAIOE,EAEP,4BAEOC,EAEP,mCAEOC,EAGP,+DACOC,EAEP,gCAEOC,EAEP,iDAIOC,EAEP,iDAIOC,EAEP,kCAIOC,EAAuB,wBAEvBC,EACX,qEAEWC,EAAsB,SAACC,GAClC,OAAAC,EAAuBD,EAAO,EACnBC,IAAsBC,EAAA,CAAA,GAEhCC,EAAgBC,sBAAsB,EAAIF,EAC1CC,EAAgBE,gBAAgB,EAAIH,EACpCC,EAAgBG,uBAAuB,EAAIJ,EAE3CC,EAAgBI,iBAAiB,EAAKL,EACtCC,EAAgBK,sBAAsB,EAAKN,EAC3CC,EAAgBM,eAAe,EAAKP,EACpCC,EAAgBO,cAAc,EAAKR,EACnCC,EAAgBQ,cAAc,EAAKT,EACnCC,EAAgBS,6BAA6B,EAAKV,EAClDC,EAAgBU,0BAA0B,EAAKX,EAC/CC,EAAgBW,kBAAkB,EAAKZ,EACvCC,EAAgBY,kBAAkB,EAAKb,EACvCC,EAAgBa,cAAc,EAAKd,EACnCC,EAAgBc,WAAW,EAAKf,EAChCC,EAAgBe,4BAA4B,EAAKhB,EACjDC,EAAgBgB,2BAA2B,EAAKjB"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@human.tech/waap-interface-core")):"function"==typeof define&&define.amd?define(["exports","@human.tech/waap-interface-core"],t):t((e||self).waapConstants={},e.waapInterfaceCore)}(this,function(e,t){var i,r="https://waap.xyz",a=r,s=((i={})[t.JSON_RPC_METHOD.eth_sendTransaction]=!0,i[t.JSON_RPC_METHOD.personal_sign]=!0,i[t.JSON_RPC_METHOD.eth_signTypedData_v4]=!0,i[t.JSON_RPC_METHOD.eth_getBalance]=!1,i[t.JSON_RPC_METHOD.eth_requestAccounts]=!1,i[t.JSON_RPC_METHOD.eth_accounts]=!1,i[t.JSON_RPC_METHOD.eth_chainId]=!1,i[t.JSON_RPC_METHOD.net_version]=!1,i[t.JSON_RPC_METHOD.wallet_switchEthereumChain]=!1,i[t.JSON_RPC_METHOD.wallet_addEthereumChain]=!1,i[t.JSON_RPC_METHOD.eth_estimateGas]=!1,i[t.JSON_RPC_METHOD.eth_blockNumber]=!1,i[t.JSON_RPC_METHOD.eth_getCode]=!1,i[t.JSON_RPC_METHOD.eth_call]=!1,i[t.JSON_RPC_METHOD.eth_getTransactionReceipt]=!1,i[t.JSON_RPC_METHOD.eth_getTransactionByHash]=!1,i);e.authServerOrigin="https://auth.waap.xyz",e.fieldOrder="0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",e.recoveryEmailAddress="test@recovery.silk.sc",e.rpcMethodRequiresUI=function(e){return s[e]},e.rpcMethodRequiresUIMap=s,e.silkAdminAppOrigin="https://dashboard.silk.sc",e.silkDemoAppOrigin="https://silk-demo-app.vercel.app",e.silkDevPortalOrigin="https://silk-dev-portal-vercel-holonymid-holonym.vercel.app/",e.silkKeyshareManagerOrigin="https://lbr.silk-protector-microservice-km.com",e.silkMfaServerOrigin="https://server.silkwallet.net",e.silkPolicyEngineOrigin="https://lbr.silk-protector-microservice-pe.com",e.silkProtectorMainOrigin="https://main.silk-protector.com",e.silkWalletAppOrigin="https://silksecure.net",e.silkWalletAppOrigin2=a,e.silkWalletAppOrigin2Prod=r,e.silkWalletAppOrigin2Staging="https://staging.waap.xyz",e.wsRelayOrigin="https://prod-waap-ws-relay.fly.dev"});
|
|
2
2
|
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { JSON_RPC_METHOD } from '@
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { JSON_RPC_METHOD } from '@human.tech/waap-interface-core'\n\n// See the \"build\" and \"dev\" scripts in package.json. During build, we replace these\n// env vars with the value \"production\". For development, we do not replace them with\n// anything, allowing the package consumer (e.g., silk-next-app) to set them.\nconst silkNodeEnv =\n process.env.SILK_NODE_ENV ?? process.env.NEXT_PUBLIC_SILK_NODE_ENV\n\nexport const silkWalletAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://silksecure.net'\n : 'http://127.0.0.1:3000'\nexport const silkWalletAppOrigin2Staging = 'https://staging.waap.xyz'\nexport const authServerOrigin =\n silkNodeEnv === 'production'\n ? 'https://auth.waap.xyz'\n : silkNodeEnv === 'staging'\n ? 'https://staging.human-wallet.com'\n : 'https://localhost:8000'\n\n// WebSocket relay origin for auth completion notifications\nexport const wsRelayOrigin =\n silkNodeEnv === 'production'\n ? 'https://prod-waap-ws-relay.fly.dev'\n : silkNodeEnv === 'staging'\n ? 'https://staging-waap-ws-relay.fly.dev'\n : 'https://local-waap-ws-relay.fly.dev'\n\n// export const silkWalletAppOrigin2Prod = 'https://humansignon.com'\nexport const silkWalletAppOrigin2Prod = 'https://waap.xyz'\nexport const silkWalletAppOrigin2 =\n silkNodeEnv === 'production'\n ? silkWalletAppOrigin2Prod\n : silkNodeEnv === 'staging'\n ? silkWalletAppOrigin2Staging\n : 'http://127.0.0.1:3000'\nexport const silkAdminAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://dashboard.silk.sc'\n : 'http://127.0.0.1:3002'\nexport const silkDemoAppOrigin =\n silkNodeEnv === 'production'\n ? 'https://silk-demo-app.vercel.app'\n : 'http://127.0.0.1:3001'\nexport const silkDevPortalOrigin =\n silkNodeEnv === 'development' || !silkNodeEnv\n ? 'http://localhost:3001'\n : 'https://silk-dev-portal-vercel-holonymid-holonym.vercel.app/'\nexport const silkMfaServerOrigin =\n silkNodeEnv === 'production'\n ? 'https://server.silkwallet.net'\n : 'http://0.0.0.0:3003'\nexport const silkPolicyEngineOrigin =\n silkNodeEnv === 'production'\n ? 'https://lbr.silk-protector-microservice-pe.com'\n : silkNodeEnv === 'staging'\n ? 'https://policyengine.staging.silk-protector.com'\n : 'http://127.0.0.1:3003'\nexport const silkKeyshareManagerOrigin =\n silkNodeEnv === 'production'\n ? 'https://lbr.silk-protector-microservice-km.com'\n : silkNodeEnv === 'staging'\n ? 'https://keyshare-manager.staging.silk-protector.com'\n : 'http://127.0.0.1:3004'\nexport const silkProtectorMainOrigin =\n silkNodeEnv === 'production'\n ? 'https://main.silk-protector.com'\n : silkNodeEnv === 'staging'\n ? 'https://protector-main.staging.silk-protector.com'\n : 'http://127.0.0.1:3005'\nexport const recoveryEmailAddress = 'test@recovery.silk.sc'\n\nexport const fieldOrder =\n '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141'\n\nexport const rpcMethodRequiresUI = (method: JSON_RPC_METHOD) =>\n rpcMethodRequiresUIMap[method]\nexport const rpcMethodRequiresUIMap = {\n // Requires user interaction\n [JSON_RPC_METHOD.eth_sendTransaction]: true,\n [JSON_RPC_METHOD.personal_sign]: true,\n [JSON_RPC_METHOD.eth_signTypedData_v4]: true,\n // Does not require user interaction\n [JSON_RPC_METHOD.eth_getBalance]: false,\n [JSON_RPC_METHOD.eth_requestAccounts]: false,\n [JSON_RPC_METHOD.eth_accounts]: false,\n [JSON_RPC_METHOD.eth_chainId]: false,\n [JSON_RPC_METHOD.net_version]: false,\n [JSON_RPC_METHOD.wallet_switchEthereumChain]: false,\n [JSON_RPC_METHOD.wallet_addEthereumChain]: false,\n [JSON_RPC_METHOD.eth_estimateGas]: false,\n [JSON_RPC_METHOD.eth_blockNumber]: false,\n [JSON_RPC_METHOD.eth_getCode]: false,\n [JSON_RPC_METHOD.eth_call]: false,\n [JSON_RPC_METHOD.eth_getTransactionReceipt]: false,\n [JSON_RPC_METHOD.eth_getTransactionByHash]: false\n}\n"],"names":["silkWalletAppOrigin2Prod","silkWalletAppOrigin2","rpcMethodRequiresUIMap","_rpcMethodRequiresUIM","JSON_RPC_METHOD","eth_sendTransaction","personal_sign","eth_signTypedData_v4","eth_getBalance","eth_requestAccounts","eth_accounts","eth_chainId","net_version","wallet_switchEthereumChain","wallet_addEthereumChain","eth_estimateGas","eth_blockNumber","eth_getCode","eth_call","eth_getTransactionReceipt","eth_getTransactionByHash","method","silkNodeEnv"],"mappings":"gVA6BaA,EAA2B,mBAC3BC,EAEPD,EA6COE,IAAsBC,EAAA,CAAA,GAEhCC,kBAAgBC,sBAAsB,EAAIF,EAC1CC,EAAeA,gBAACE,gBAAgB,EAAIH,EACpCC,EAAeA,gBAACG,uBAAuB,EAAIJ,EAE3CC,EAAAA,gBAAgBI,iBAAiB,EAAKL,EACtCC,kBAAgBK,sBAAsB,EAAKN,EAC3CC,kBAAgBM,eAAe,EAAKP,EACpCC,EAAeA,gBAACO,cAAc,EAAKR,EACnCC,EAAeA,gBAACQ,cAAc,EAAKT,EACnCC,EAAAA,gBAAgBS,6BAA6B,EAAKV,EAClDC,kBAAgBU,0BAA0B,EAAKX,EAC/CC,kBAAgBW,kBAAkB,EAAKZ,EACvCC,EAAeA,gBAACY,kBAAkB,EAAKb,EACvCC,EAAeA,gBAACa,cAAc,EAAKd,EACnCC,EAAAA,gBAAgBc,WAAW,EAAKf,EAChCC,kBAAgBe,4BAA4B,EAAKhB,EACjDC,kBAAgBgB,2BAA2B,EAAKjB,sBAhF7C,qCA0DJ,4FAHkC,8CAKD,SAACkB,GAClC,OAAAnB,EAAuBmB,EAAO,kDAtC1B,gDAIA,yDAGJC,2FAeI,uEAVA,yDAIA,2EAYA,wDAxDA,6GAEqC,2CAWrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@human.tech/waap-constants",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Constants for Silk",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"exports": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"eslint-config-custom": "0.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@
|
|
32
|
+
"@human.tech/waap-interface-core": "0.1.1"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "microbundle",
|