update mainnet and ropsten ethereum contract addresses

pull/329/head
James Sangalli 7 years ago
parent e35156a6bc
commit fd31883cba
  1. 4
      Trust/Foundation/AssetDefinitionXML.swift
  2. 2
      Trust/Foundation/XMLHandler.swift
  3. 2
      Trust/Settings/Types/Config.swift
  4. 4
      Trust/Settings/Types/Constants.swift

@ -99,8 +99,8 @@ class AssetDefinitionXML {
"</ds:KeyInfo>\n" + "</ds:KeyInfo>\n" +
"</ds:Signature>\n" + "</ds:Signature>\n" +
"\t<contract type=\"issuing\">\n" + "\t<contract type=\"issuing\">\n" +
"\t\t<address network=\"1\">0x277b1318965030C62E1dAc9671a6F8dF77F855Cf</address>\n" + "\t\t<address network=\"1\">0xDBc5934463Effb93a770C62EfeE4FeaeaF462ede</address>\n" +
"\t\t<address network=\"3\">0x2Cd6CbC60219B33161F1BF69fbd6c741aD980BBa</address>\n" + "\t\t<address network=\"3\">0x93C66a7D9DBBfbA24BfeaD49913Fcf444c3F52e5</address>\n" +
"\t\t<name lang=\"ru\">Билеты</name>\n" + "\t\t<name lang=\"ru\">Билеты</name>\n" +
"\t\t<name lang=\"en\">Tickets</name>\n" + "\t\t<name lang=\"en\">Tickets</name>\n" +
"\t\t<name lang=\"zh\">票</name>\n" + "\t\t<name lang=\"zh\">票</name>\n" +

@ -22,7 +22,7 @@ public class XMLHandler {
let unFormattedDate = Date(timeIntervalSince1970: TimeInterval(timestamp)) let unFormattedDate = Date(timeIntervalSince1970: TimeInterval(timestamp))
let dateString = formatter.string(from: unFormattedDate) let dateString = formatter.string(from: unFormattedDate)
if let date = Date(string: dateString, format: "dd/MM/yyyy hh:mm:ss a") { if let date = Date(string: dateString, format: "dd/MM/yyyy hh:mm:ss a") {
return date; return date
} }
return unFormattedDate return unFormattedDate
} }

@ -142,7 +142,7 @@ struct Config {
return ERCToken( return ERCToken(
contract: contractAddress, contract: contractAddress,
name: name, name: name,
symbol: "TICK", symbol: "SHANKAI",
decimals: 0, decimals: 0,
isStormBird: true, isStormBird: true,
balance: [] balance: []

@ -28,8 +28,8 @@ public struct Constants {
public static let dappsBrowserURL = "https://dapps.trustwalletapp.com" public static let dappsBrowserURL = "https://dapps.trustwalletapp.com"
// FIFA hardcoded FIFA token address. Look for "//FIFA" for relevant changes // FIFA hardcoded FIFA token address. Look for "//FIFA" for relevant changes
public static let ticketContractAddress = "0x277b1318965030C62E1dAc9671a6F8dF77F855Cf" public static let ticketContractAddress = "0xDBc5934463Effb93a770C62EfeE4FeaeaF462ede"
public static let ticketContractAddressRopsten = "0x2Cd6CbC60219B33161F1BF69fbd6c741aD980BBa" public static let ticketContractAddressRopsten = "0x93C66a7D9DBBfbA24BfeaD49913Fcf444c3F52e5"
public static let nullTicket = "0x0000000000000000000000000000000000000000000000000000000000000000" public static let nullTicket = "0x0000000000000000000000000000000000000000000000000000000000000000"
public static let burnAddressString = "0x000000000000000000000000000000000000dEaD" public static let burnAddressString = "0x000000000000000000000000000000000000dEaD"
public static let event = "FIFA WC 2018" public static let event = "FIFA WC 2018"

Loading…
Cancel
Save