@@ -22,8 +22,11 @@ CREATE TABLE "WalletTemplate" (
22
22
);
23
23
24
24
INSERT INTO " WalletTemplate" (name, " sendProtocols" , " recvProtocols" ) VALUES
25
- (' ALBY' ,
26
- ARRAY[' NWC' , ' WEBLN' ]::" WalletSendProtocol" [],
25
+ (' ALBY_BROWSER_EXTENSION' ,
26
+ ARRAY[' WEBLN' ]::" WalletSendProtocol" [],
27
+ ARRAY[]::" WalletRecvProtocol" []),
28
+ (' ALBY_HUB' ,
29
+ ARRAY[' NWC' ]::" WalletSendProtocol" [],
27
30
ARRAY[' NWC' , ' LN_ADDR' ]::" WalletRecvProtocol" []),
28
31
(' BLINK' ,
29
32
ARRAY[' BLINK' ]::" WalletSendProtocol" [],
@@ -859,7 +862,7 @@ BEGIN
859
862
relay := substring (row." nwcUrlRecv" from ' relay=([^&]+)' );
860
863
861
864
IF relay LIKE ' %getalby.com%' THEN
862
- walletName := ' ALBY ' ;
865
+ walletName := ' ALBY_HUB ' ;
863
866
ELSIF relay LIKE ' %rizful.com%' THEN
864
867
walletName := ' RIZFUL' ;
865
868
ELSIF relay LIKE ' %primal.net%' THEN
@@ -903,7 +906,7 @@ BEGIN
903
906
IF domain LIKE ' %walletofsatoshi.com' THEN
904
907
walletName := ' WALLET_OF_SATOSHI' ;
905
908
ELSIF domain LIKE ' %getalby.com' THEN
906
- walletName := ' ALBY ' ;
909
+ walletName := ' ALBY_HUB ' ;
907
910
ELSIF domain LIKE ' %coinos.io' THEN
908
911
walletName := ' COINOS' ;
909
912
ELSIF domain LIKE ' %speed.app' OR domain LIKE ' %tryspeed.com' THEN
@@ -957,9 +960,9 @@ BEGIN
957
960
userWalletId INT ;
958
961
protocolWalletId INT ;
959
962
BEGIN
960
- userWalletId := get_or_create_user_wallet(row." userId" , ' ALBY ' , row." priority" , row." enabled" );
963
+ userWalletId := get_or_create_user_wallet(row." userId" , ' ALBY_BROWSER_EXTENSION ' , row." priority" , row." enabled" );
961
964
962
- protocolWalletId := create_protocol_wallet(row." walletId" , userWalletId, true, ' WEBLN' , row." userId" , ' ALBY ' , row." priority" , row." enabled" );
965
+ protocolWalletId := create_protocol_wallet(row." walletId" , userWalletId, true, ' WEBLN' , row." userId" , ' ALBY_BROWSER_EXTENSION ' , row." priority" , row." enabled" );
963
966
INSERT INTO " WalletSendWebLN" (" walletId" )
964
967
VALUES (protocolWalletId);
965
968
END;
0 commit comments