Skip to content

Commit

Permalink
chore(communities-wallet): statusgo calls updated to use renamed comm…
Browse files Browse the repository at this point in the history
…unitytokens service
  • Loading branch information
saledjenic committed Jan 29, 2025
1 parent a4d4cfc commit 1cb4c07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/backend/community_tokens.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ const eventCommunityTokenReceived*: string = "wallet-community-token-received"
proc storeDeployedCollectibles*(addressFrom: string, addressTo: string, chainId: int, txHash: string, deploymentParams: JsonNode):
RpcResponse[JsonNode] =
let payload = %* [addressFrom, addressTo, chainId, txHash, deploymentParams]
return core.callPrivateRPC("communitytokensv2_storeDeployedCollectibles", payload)
return core.callPrivateRPC("communitytokens_storeDeployedCollectibles", payload)

proc storeDeployedAssets*(addressFrom: string, addressTo: string, chainId: int, txHash: string, deploymentParams: JsonNode):
RpcResponse[JsonNode] =
let payload = %* [addressFrom, addressTo, chainId, txHash, deploymentParams]
return core.callPrivateRPC("communitytokensv2_storeDeployedAssets", payload)
return core.callPrivateRPC("communitytokens_storeDeployedAssets", payload)

proc removeCommunityToken*(chainId: int, address: string): RpcResponse[JsonNode] =
let payload = %* [chainId, address]
Expand Down Expand Up @@ -56,16 +56,16 @@ proc updateCommunityTokenSupply*(chainId: int, contractAddress: string, supply:

proc remainingSupply*(chainId: int, contractAddress: string): RpcResponse[JsonNode] =
let payload = %* [chainId, contractAddress]
return core.callPrivateRPC("communitytokensv2_remainingSupply", payload)
return core.callPrivateRPC("communitytokens_remainingSupply", payload)

proc remoteDestructedAmount*(chainId: int, contractAddress: string): RpcResponse[JsonNode] =
let payload = %*[chainId, contractAddress]
return core.callPrivateRPC("communitytokensv2_remoteDestructedAmount", payload)
return core.callPrivateRPC("communitytokens_remoteDestructedAmount", payload)

proc storeDeployedOwnerToken*(addressFrom: string, chainId: int, txHash: string, ownerParams: JsonNode, masterParams: JsonNode):
RpcResponse[JsonNode] =
let payload = %* [addressFrom, chainId, txHash, ownerParams, masterParams]
return core.callPrivateRPC("communitytokensv2_storeDeployedOwnerToken", payload)
return core.callPrivateRPC("communitytokens_storeDeployedOwnerToken", payload)

proc createCommunityTokenDeploymentSignature*(resultOut: var JsonNode, chainId: int, addressFrom: string, signerAddress: string): string =
try:
Expand Down Expand Up @@ -97,11 +97,11 @@ proc registerLostOwnershipNotification*(communityId: string): RpcResponse[JsonNo

proc getOwnerTokenOwnerAddress*(chainId: int, contractAddress: string): RpcResponse[JsonNode] =
let payload = %*[chainId, contractAddress]
return core.callPrivateRPC("communitytokensv2_ownerTokenOwnerAddress", payload)
return core.callPrivateRPC("communitytokens_ownerTokenOwnerAddress", payload)

proc reTrackOwnerTokenDeploymentTransaction*(chainId: int, contractAddress: string): RpcResponse[JsonNode] =
let payload = %*[chainId, contractAddress]
return core.callPrivateRPC("communitytokensv2_reTrackOwnerTokenDeploymentTransaction", payload)
return core.callPrivateRPC("communitytokens_reTrackOwnerTokenDeploymentTransaction", payload)

rpc(registerReceivedCommunityTokenNotification, "wakuext"):
communityId: string
Expand Down

0 comments on commit 1cb4c07

Please sign in to comment.